V
Re: Time to Stick my Neck Out ,Nifty 7300
hi sanjay,
pls provide the back testing settings used to back test this indicator & other indicators in amibroker.also how are u forward testing it??
I think the afl code was already posted in the thread for kol indicator
Just hope the moderators don't ban me for posting code in this thread
My testing showed works better with higher time frames (hourly and above) found it tough to use with smaller TFs like 2/3/5/ mins..., anyway Goutam is already successfully using it on smaller TFs, so choose what suits you.
Please backtest, forward test, paper trade or any which way you can, just be sure before using in RT.
Regards
Sanjay
Code:
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("Kolkata Meet - Bands");
//..........................................................................
a = Param("Angle Degrees",30,15,90,15);
n = Param("Slope_Bars",5,10,50,1);
a = (22 / 7) * (a / 180);
Num = NumL = NumH = 0;
Den = 0;
for (i = 1;i < n+1;i++)
{
Num = Num + sin(i * a) * Ref(C,-i-1);
NumL = NumL + sin(i * a) * Ref(L,-i-1);
NumH = NumH + sin(i * a) * Ref(H,-i-1);
Den = Den + sin(i * a);
}
j = Num/Den;
jL = NumL/Den;
jH = NumH/Den;
//Plot(j, "Slope", IIf(j > Ref(j,-1), colorBlueGrey,colorLime), styleThick | styleDashed);
Plot(jL, "LB", colorLime,styleThick | styleDashed);
Plot(jH, "UB", colorBlueGrey,styleThick | styleDashed);
_SECTION_END();
_SECTION_BEGIN("Signal 04");
Buy = C > jH;
Sell = C < jL;
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
Short = Sell;
Cover = Buy;
Short = ExRem(Short,Cover);
Cover = ExRem(Cover,Short);
_SECTION_END();
_SECTION_BEGIN("Plot Arrows");
//Position size fixed 100 units
SetPositionSize(100,4);
SetTradeDelays(1,1,1,1);
PlotShapes(shapeUpArrow * Buy, colorBlue,0, L,-20);
PlotShapes(shapeDownArrow * Short, colorRed,0, H, -20);
_SECTION_END();
My testing showed works better with higher time frames (hourly and above) found it tough to use with smaller TFs like 2/3/5/ mins..., anyway Goutam is already successfully using it on smaller TFs, so choose what suits you.
Please backtest, forward test, paper trade or any which way you can, just be sure before using in RT.
Regards
Sanjay
pls provide the back testing settings used to back test this indicator & other indicators in amibroker.also how are u forward testing it??