Download MetaTrader 5

i have a doubt

To add comments, please log in or register
Write your articles using our editor. It is convenient!
Jiayu Fu
1231
Jiayu Fu 2015.03.29 23:40 

i have the moving average shifted 10 and with sma i know his value(price) but it's possible get the datetime of the shifted period too?

thanks in advance! 

double sma = iMA(NULL,PERIOD_CURRENT,16,0,MODE_SMA,PRICE_CLOSE,10);
Stuart Browne
5818
Stuart Browne 2015.03.30 00:01  
Aeither:

i have the moving average shifted 10 and with sma i know his value(price) but it's possible get the datetime of the shifted period too?

thanks in advance! 

 

You can use either Time[shift] or iTime(Symbol, timeframe, shift)

To add comments, please log in or register