You can add 3 candles time to your current candle time get your Custom Time for expiration.
datetime OrderTimeSpecified = iTime(NULL,0,0) + (3*PeriodSeconds());
You can add 3 candles time to your current candle time get your Custom Time for expiration.
datetime OrderTimeSpecified = iTime(NULL,0,0) + (3*PeriodSeconds());
Note that some brokers do not allow expiration time.
You agree to website policy and terms of use
I would like to change my order time type to valid until next 3 candles from good until the end of day:
I tried this, but it didn't work:
Does anybody knows how to do it? Thanks!