Download MetaTrader 5

How to change the moment to appear an arrow?

To add comments, please log in or register
Kerubin
9
Kerubin 2014.11.29 18:39 
I want to edit ADX crosses to arrow appear 5 seconds before the end of candle? Is it possible? Thanks
Carl Schreiber
6682
Carl Schreiber 2014.11.29 22:08  
datetime ACTION = Time[0] + PeriodSeconds() - 5;
whroeder1
14752
whroeder1 2014.11.30 13:26  
datetime ACTION = Time[0] + PeriodSeconds() - 5;
if( TimeCurrent() >= ACTION){ ...
Note if the code is in start and there is no tick during that 5 seconds, the code won't work. You'll have to use the timer.
To add comments, please log in or register