Download MetaTrader 5

i have a doubt

To add comments, please log in or register
Jiayu Fu
1334
Jiayu Fu  

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
6686
Stuart Browne  
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