Forum

How to call this indicator into EA

Hi guys, Anyone got any idea on how to call this indicator to work in EA? From the forum i found several method as the following: val1=iCustom(NULL,0,"SilverTrend",3,350,2,0,0); val2=iCustom(NULL,0,"SilverTrend",3,350,2,1,0); or BuyST= iCustom ( NULL , 0 , " SilverTrend ", 0 , 0 ); SellST= iCustom (

TimeFrame Problem

Hi, I am facing a problem of Timeframe for iMA. See below:- int timeframe = 30 ; int period = 10 ; double MA = iMA ( NULL , timeframe , period , 0 , MODE_SMA , PRICE_OPEN , 0 ) ; //inserted into open sell position if ( MA * ( 1 + Percent / 100 )) trade = true ; //inserted into open buy position if (