MQL4 and MetaTrader 4 - page 1130

In this code I want to test what the values are for the Orderprofit but "OrderOpenPrice() - OrderClosePrice()" just shows 0, why?, isn´t these values not avalible in the demo version or what? (The code below is just a simple code with 3 seconds between OrderSend and OrderClose to illustrate the...
As soon as another grail is found, there are sanctions from SC (change of spread, quoter change, etc.) that bring the whole grail to naught. Are there any methods to fight with CCs? ))
[Deleted]
Ilan 1.6 Dyn, statement: 24 march 2011.
[Deleted]
Hi, I am trying to run some backtest, but I cannot do it because there are several gaps in data in the history center, especially the hole month of 2011 August. How can I get the past data complete and correct? Thanks.
  Saving Quotes  (5)
Hi, I want to save the actual tick data into a csv-file. Every week or month I want to save one csv-file. So in my init-function I will open a new file and every tick I do a FileWrite(handle_tick,TimeToStr(CurTime(),TIME_DATE|TIME_MINUTES|TIME_SECONDS),Bid,Ask); Now I have a few problems /...
Hi I'm not sure how to word this question because there are broad topics. But lets say you want to mark a high and low. Not a high a low as in High[0] etc but as in marking them for drawing trendlines etc. Or perhaps engulfing candles, or tweezertops etc. And remembering them, or something like the...
[Deleted]
hi please i need the code of the indicator that gives the trend following on all the TF like the picture thank you
Is there an indicator out there that will display both the bid and ask price on the chart (MT4) instead of just the bid? It would be helpful for me.
  Maximum minimum distance  (13   1 2)
Hi everyone, Is there any way to figure out what the maximum minimum distance and/or freezelevel is for a particular broker. The marketinfo properties dont seem to contain this information. Thanks!
[Deleted]
I believe I could simply move indicators, like a Stoch curve to another pane by drag&drop in the past doesnt seem to work for me anymore either my MT4 is corrupted or I am missing the correct cursor pre select? any help is much appreciated thanks Dietmar
Hello, This question is not about a specific problem writing mql4 code. It's about knowing what works best for an EA. Suppose I'm going long, I wonder where's best to put the SL, choosing between the low of the last closed bar, or the middle of the last closed bar (in this case the stop would be...
please who can explain this: It is possible that an EA written in MQL4 that was working very well after it must have been coded will later start failing. if so, what was the cause of such thing. Can MQL4 codes Expires? Can a coded system that was exposed in a real market condition to prove its...
hello, how can i add an m120 or h2 inbetween h1 -h4 on the periodicity toolbar ? is this possible ? thanks
I need 5th digit after decimal from price quote, it will display when using DoubleToStr function. I want to store a vlue get from object and use it for further calcullation i.e "price2" could anyone please help me to solve this problem
[Deleted]
hello, Dear all I'm a new learner for MQL4 and now got problem with coding . from this forum i found that trading multip pair in the same char is using Marketinfo(), it does work really, but can't open a trade with stoploss by coding ''''marketinfo(symbal,MODE_ASK)-stoploss*Point ''or...
Dear community, i have an EA which does partial close of position. I want to detect that a position has already been partialy closed and was checking the ordercomment for "split from " string. Now i have seen in other terminal this string may vary to "to #" "split #" etc. What do you recommend how
[Deleted]
  keep on loosing  (2)
Hi, please advise me,iam keep on loosing my money.Please advise me what indicators is the best?
[Deleted]
Hi All, Just wanted to ask is there anyway to change the take profit and stop loss messages in the journal...? Examples below Stop Loss Take profit Kind Regards Jesse
[Deleted]
Hi Everyone, I'm hoping that you can help me. I'm wanting to break free from trading on a computer, the trouble is that I have my own unique trading method that I use and it takes a series of steps. I would love to create a program that sits on my iphone (an iphone App) that -connects to my data...
Hello, Suppose I'm going long, does anyone know where's best to put the SL, choosing between the low of the last closed bar, or the middle of the last closed bar (in this case the stop would be tighter)? Thanks
The code below is supposed to pick up any pending and market orders that are open and set the particular variable to value 1. Although there are open pending orders or market orders the code does not pick them up and the variables stay at value 0. Why does it not see the open orders? Is there...
  If it's not a GRAAL then what is  (67   1 2 3 4 5 6 7)
Six months of work on realising my idea and I ended up with a super profitable Expert Advisor. When my friends and I finished it and tested it, we almost fell off our chairs. I know one thing, I have not searched the Internet for Expert Advisor with similar idea but I have never found it. If anyone
Need instruction on how to add pivot points onto charts. Thanks
[Deleted]
Hey guys I'm new to Meta trader and i want to get some information about a market from it and send it to my server for live info on my site. I've been looking around a bit and can't find much on this, I've also looked around to get the data from another site or something like that. So can this be...
Hi All, I need a script to tell me the statistic of if the day is bull candle, the hours (as in the time) of hourly candle that close above the opening price for that day and over a few days. for bear candle, the hourly candle that close below the open price of that day. anyone can help me?
please can any body tell me the major difference between MQL4 and MQL5. Programs written in MQL4 can it work in MT5, if not what is the cause? and vice versa
Like to pay and change my authored EA. Anyone interested? talktojosef@yahoo.com
Hello everyone; Over the last few months I have managed to become a little more proficient at programming, thanks mainly to the great tips on this forum and the comments by some of you (thank you!!!!). However, I seem to constantly get stuck in a situation where my EAs are in effect one (and...
I have seen quite a few posts about people who can't send email in MT4. One way to do it is set up a mail relay from your own computer. How? you ask - You will have to setup IIS - go to Add/remove programs, click on Add/Remove Windows Components, scroll down until you see Internet Information...
New article Creating Custom Criteria of Optimization of Expert Advisors is published at mql5.com: The MetaTrader 5 Client Terminal offers a wide range of opportunities for optimization of Expert Advisor parameters. In addition to the optimization criteria included in the strategy tester, developers...