Dear EA,
Presently I am using Reno and Adapting moving average in MT4 and doing manual. The same strategy I am looking for PI.
My strategy is Renko box size should be 10( It will be able to modify based on market condition)
On the Renko I am using Adapting moving average parameters of 2/6/3/18/1/1/1(And it should be modified based on market trend)
Could you please help me the code EA in Pi and also i want see the chart on script same how?
As per the above query as of now we don't have Adapting Moving average in pi by default, and it is not possible to code the Adapting Moving average formula in Tradescript, please find the below AFL of Adapting Moving average you can connect pi and amibroker and can use this afl and can fire orders to pi
_SECTION_BEGIN("KAMA - Kaufman Adaptive Moving Average");
LBPeriods = Param( "LB Periods", 10, 1, 200, 1 );
FSCPeriods = Param( "FSC Periods", 2, 1, 200, 1 );
SSCPeriods = Param( "SSC Periods", 30, 1, 200, 1 );
FastSmoothConst = 2 / ( FSCPeriods + 1 );
SlowSmoothConst = 2 / ( SSCPeriods + 1 );
Direction = abs( Close - Ref( Close, -LBPeriods ) );
Volatility = Sum( abs( Close - Ref( Close, -1 ) ), LBPeriods );
EfficiencyRatio = Direction / Volatility;
SC = ( EfficiencyRatio * ( FastSmoothConst - SlowSmoothConst ) +
SlowSmoothConst ) ^ 2;
KAMA = AMA( Close, SC );
Plot( KAMA, "KAMA", ParamColor( "Color", colorRed ), styleLine );
_SECTION_END();
2 Likes