how can i get TWO hour indicator value

 
 double iMA( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift) 
 
PERIOD_M1 1 1 分钟 
PERIOD_M5 5 5分钟 
PERIOD_M15 15 15 分钟 
PERIOD_M30 30 30 分钟 
PERIOD_H1 60 1 小时 
PERIOD_H4 240 4 小时 
PERIOD_D1 1440 每天 
PERIOD_W1 10080 每星期 
PERIOD_MN1 43200 每月 
0 (zero) 0 在图表中使用的时间周期. 



If i set the timeframe for 120   ,he can cal the two hour's value?
 
zdj229:

If i set the timeframe for 120   ,he can cal the two hour's value?
Only if you have  H2 timeframe data,  do you ?  have you created it as an offline chart ?
 
no i don't have H2 timeframe  data,i can't cal the value in trade time?
 
zdj229:
no i don't have H2 timeframe  data,i can't cal the value in trade time?

You could create your own H2 data store it in an array and the use iMAOnArray() . . . maybe.