MQ4 EA opens trade at beginning time of candle

To add comments, please log in or register
ryanmatovu
7
ryanmatovu  

Hi

I'm a complete beginner on MQL4 but using what ive learnt so far, i've built an EA which puts a strategy ive developed into practice.

However, after figuring out how to only trade once per bar, I realised that the trade only opens at the beginning of the candle eg. at 10:00 rather than when my trade condition is satisfied.

How to I ensure the trade only opens when the trade condition is satisfied and not at the candle open tick.

Thanks in advance.

Keith Watford
Moderator
20526
Keith Watford  
Show your code if you want help.
To add comments, please log in or register