double prev_fast_ma,prev_slow_ma,fast_ma,slow_ma; MT4 code int start() { prev_fast_ma=iMA(Symbol(),0,Fast_MA_Period,0,MA_Method,PRICE_CLOSE,2); prev_slow_ma=iMA(Symbol(),0,Slow_MA_Period,0,MA_Method,PRICE_CLOSE,2); fast_ma=iMA(Symbol(),0,Fast_MA_Period,0,MA_Method,PRICE_CLOSE,1); slow_ma=iMA(Symbol(),0,Slow_MA_Period,0,MA_Method,PRICE_CLOSE,1); } MT5 converted code int OnInit() { prev_fast_ma=iMA(Symbol(),0,Fast_MA_Period,0,MA_Method,PRICE_CLOSE,???); prev_slow_ma=iMA(Symbol(),0,Slow_MA_Period,0,MA_Method,PRICE_CLOSE,???); fast_ma=iMA(Symbol(),0,Fast_MA_Period,0,MA_Method,PRICE_CLOSE,???); slow_ma=iMA(Symbol(),0,Slow_MA_Period,0,MA_Method,PRICE_CLOSE,???); }
double Fast_MA_Buffer[]; CopyBuffer(fast_ma_handle, 0, 0, count, Fast_MA_Buffer);
prev_fast_ma = Fast_MA_Buffer[2];
no , i didn't finished ;-(Have you been able to finish the conversion of this indicator?
Dear Enivid,Try the one attached. Works for me:
View attachment 12385
Trend continuation factor is an interesting idea. I really enjoyed converting this indicator from MT4 to MT5.
Hi Envid, i downloaded this but go an error on compiling.Try the one attached. Works for me:
View attachment 12385
Trend continuation factor is an interesting idea. I really enjoyed converting this indicator from MT4 to MT5.
Should be fixed here.Hi Envid, i downloaded this but go an error on compiling.
'iBarShift' - override system function TCF MTF.mq5 172 5