Forum

How to write a code for close price of Monday?

Hi, I am having problem get close price of Monday, could you please help? Thanks a lot

I have problem sending email and play sound

Hi, In my EA, when trade is done, it should send email and play sound. At first, I can not enable the sending email on \Tools\Options\Email\Enable. After I fill up all information, can click on Test, nothing happy. After I close this window, when I reopen \Tools\Options\Email, all information is

how can I enable a symbol for trade?

Hi, When I try to enable XAUUSD in its property to trade, I could not change it, I double click on it , nothing change. I do anything wrong? Thanks

Why my EA can not open position on XAUUSD?

HI, Why my EA can not open position on XAUUSD ? It can open position on EUR, the error is: Error opening SELL position by XAUUSD : '(null)' Thanks

I have problem to run Logical Operation AND (&&)

Hi, In my EA, I need to do a Logical Operation AND (&&). It give me wrong result. like: A=true; B=false; (A && B) always returns true, it should return false. Have any body have the same problem? How do you fix it? Thanks

Why so many errer about my test

In my optimizing test, I see a lot of error: :2012.02.20 10:14:45 Core 2 genetic pass (499, 23500048018036) tested with error "cannot initialize expert" ......... :2012.02.20 11:38:45 Core 2 genetic pass (511, 23500048018036) tested with error "cannot initialize expert" Almost every minutes

MACD_TIMEFRAME in optimizing returns a 16385?

Hi, What I can do when MACD_TIMEFRAME in optimizing returns a 16385? Does mean 16385 minutes? It equal to 273.08 hours, and 11.37 days. How can I use this number? Can any body help? Thanks

Why m_position.Volume() always return a "0"?

Hi, In my EA, I need to adjust the volume according to m_position.Volume(), but it always return "0" during the beginning of test, but later, it jump to a big number, like 47666668, the numberjump very fast to an other big number like 1043269, then it stay at 47013514. It is not the volume that I

The same EA Some time can enter a trade with SL and TP, but some time it cann't

Hi, I get a wired problem recently, The same EA Some time can enter a trade with SL and TP, but some time it cann't. When I do the backtest , at late night time, it seem better, it can enter trade with SL and TP, but other time it can not. It is the same EA. Any body has the same problem? how do you

My MT4 could not handle buy order and timeframe properly?

Hi, When I try to test this code which located: https://www.mql5.com/en/code/10576 , I find it only has sell trade, after check the code, find the MT4 could not handle buy order properly, could place lost stop on buy order. I couldn't modify buy order eighter. And when I try to change the time from