Skip to main content

TREND INDICATOR WITH CCI for Amibroker (AFL)

sudesh over 16 years ago Amibroker (AFL)

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

This indicator is god if one is trading the trend market

Indicator / Formula

Copy & Paste Friendly
//TREND INDICATOR
// by Sudesh Jha sudeshjha@gmail.com
//when the CCI cross zero line the trend is up & when it cross from top to down - zero like its sell trend

_SECTION_BEGIN("CCI");
periods = Param( "Periods", 14);
Plot( CCI( periods ), _DEFAULT_NAME(), ParamColor( "Color",  colorBlue ), ParamStyle("Style")  );
_SECTION_END();

_SECTION_BEGIN("CCI1");
periods = Param( "Periods", 50);
Plot( CCI( periods ), _DEFAULT_NAME(), ParamColor( "Color",  colorRed ), ParamStyle("Style")  );
_SECTION_END();


Plot(0,"",colorGreen,styleLine);

//Plot(50,"",colorYellow,styleLine);

//Plot(100,"",colorWhite,styleLine);


Buy = Cross( CCI(50), 0 )
AND CCI(14) > CCI(50);

Sell = Cross( 0,CCI(50))
AND CCI(14) < CCI(50);



shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorBlue, colorRed ));

2 comments

about 14 years ago

REALLY GODTHIS INDICATOR IS HIGHLY PROFIT GENERATING ONE..BUY AND SELL SIGNALS MOST ACCURATE ..FENTASTIC..THANKX TO THE DEVELOPER

almost 10 years ago

How to make this afl into exploration. I want to see which stock gave by signal last trading day.

Leave Comment

Please login here to leave a comment.