Skip to main content

1-2-3 Trading System for Amibroker (AFL)

mrjitender about 12 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 2)
  • Tags:
    amibroker

Hi Friends,

It is my first amibroker afl. I am using this afl from last some days and it is giving good profit. If you know the 1-2-3 setup rules then please apply the proper money management rules with this setup.

You have to cut position with small stop loss and take at least 0.5 % to 1% profit on every trade if trend continues. Active traders use trailing stop loss.

Jitender Sharma

Screenshots

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%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

_SECTION_END();

_SECTION_BEGIN("1-2-3 Setup");

C1=Ref(H,-2)<Ref(H,-3) AND Ref(L,-2)>Ref(L,-3);

MB=C1 AND Ref(H,-1)>Ref(H,-3);
MS=C1 AND Ref(L,-1)<Ref(L,-3);

MB = MB AND H>Ref(H,-1);
MS = MS AND L<Ref(L,-1);

PlotShapes(IIf(MB, shapeUpTriangle, shapeNone),colorGreen, 0,L,Offset=-30);
PlotShapes(IIf(MS, shapeDownTriangle, shapeNone),colorRed, 0,H,Offset=-30);

0 comments

Leave Comment

Please login here to leave a comment.