Download MetaTrader 5

How to change the moment to appear an arrow?

To add comments, please log in or register
Kerubin
9
Kerubin  
I want to edit ADX crosses to arrow appear 5 seconds before the end of candle? Is it possible? Thanks
Carl Schreiber
7087
Carl Schreiber  
datetime ACTION = Time[0] + PeriodSeconds() - 5;
whroeder1
15553
whroeder1  
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