Skip to main content

CCI Cross SAR for Amibroker (AFL)

mrbar2000 over 10 years ago Amibroker (AFL)

  • Rating:
    2 / 5 (Votes 5)
  • Tags:
    oscillator, trading system, amibroker

This indicator can be used to see very good Buy sinals.
To sell I think that can be better using other indicator as Hilo or ATR

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

_SECTION_BEGIN("CCI Cross Zero - Simple and Exact");
acc = Param("Acceleration", 0.02, 0, 1, 0.001 );
accm = Param("Max. acceleration", 0.2, 0, 1, 0.001 );
sarstop = SAR( acc, accm );
Plot( sarstop, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style", styleDots | styleNoLine, maskDefault | styleDots | styleNoLine ) );
ccip = Param("CCI", 20, 5, 100, 1 );

Buy=CCI(ccip)>0;
Sell=C<sarstop;

Buy=ExRem(Buy, Sell);
Sell=ExRem(Sell, Buy);

PlotShapes(Buy*shapeUpArrow+Sell*shapeDownArrow ,IIf(Buy,colorBrightGreen,colorRed));
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.