Luca Motta: use another command to check every candlsestick closure ?
You can't know when a candle closes. Only when a new tick arrives that starts a new bar is the old bar closed. For a new bar test, Bars is unreliable (a refresh/reconnect can change number of bars on chart), volume is unreliable (miss ticks), Price is unreliable (duplicate prices and The == operand. - MQL4 programming forum.) Always use time.
New candle - MQL4 programming forum #3 2014.04.04
I disagree with making a new bar function, because it can only be called once per tick. A variable can be tested multiple times.
Running EA once at the start of each bar - MQL4 programming forum 2011.05.06

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
I've done with a lot of difficulties (I'm completely a beginner) the following code, but the order is opening every tick (I've used MqlTick).
Is there a possibility to use another command to check every candlsestick closure ?
Thanks