
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello All,
I am new to MQL5 so please forgive my ignorance. I am trying create EA that places a BuyStop order at the very beginning of each new candle with Price = the High of the previous candle and SL = the Low of previous candle. This order must expire at the end of current candle. However, when I do backtesting some orders don't expire at the end of the current candle but they stay for longer, then they are fulfilled at the wrong (outdated) Buy Stop / SL values. On the other habd, some BuyStop orders do not get fulfilled even if the current price hits the Buy Stop / SL values! Clearly I am doing something wrong so I would appreciate your advice. Thanks in advance