*Level Breakout system* for Amibroker (AFL)
Tinych over 14 years ago Amibroker (AFL)
This is reverse trading system founded on level breakout.
The system draws the levels on base last peaks and troughs. If the price breaks the level, it plots signal for long or short entry.
Indicator / Formula
Copy & Paste Friendly
_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("R&S Channel");
a1= LastValue(StDev(abs(C-Ref(C,-1))/Ref(C,-1)*100,50));
a1 = Param( "R&S Period",1,1,5);
Peak(H,a1,1);
Trough(L,a1,1);
Plot(Peak(H,a1,1), "Resistance Level", colorGreen, styleLine, Null, Null, 10 );
Plot(Trough(L,a1,1), "Support Level", colorRed, styleLine, Null, Null, 10 );
_SECTION_END();
Buy = Cross( C, Peak(H,a1,1) ) ;
Sell =Cross( Trough(L,a1,1), C ) ;
PlotShapes(IIf(Buy, shapeUpArrow , shapeNone), colorGreen);
PlotShapes(IIf(Sell, shapeDownArrow , shapeNone), colorRed);4 comments
Leave Comment
Please login here to leave a comment.
You can see picture of Level Breakout system: http://savepic.su/604854.htm
This system doesn’t work.
This system looks in the future.
Correction
Buy = Cross( C, ref(Peak(H,a1,1),-1) ) ;
Sell =Cross( ref(Trough(L,a1,1),-1), C ) ;
Dear Sir,
Why does it give 3/4 buy signals together ? Theoratically it should give buy and close that trade as sell and than new buy generates. Secondly it gives short / cover error.
Thanks & solve this query pls