i have a doubt

 

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);
 
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)

Reason: