Connect with us

Amibroker

Chaikin Buy Sell for Amibroker AFL

Chaikin Buy Sell for Amibroker AFLChaikin Oscillator is a very popular indicator and is extensively used for technical analysis in the financial markets.

Simple Chaikin Buy Sell as introduced in the famous book of “TECHNICAL ANALYSIS THE COMPLETE RESOURCE FOR FINANCIAL MARKET TECHNICIANS”

This indicator’s definition is further expressed in the condensed code given in the calculation below.

Similar Formulas

_SECTION_BEGIN("Simple Chaikin Buy Sell");
r1 = Param( "Fast avg", 6, 2, 200, 1 );
r2 = Param( "Slow avg", 20, 2, 200, 1 );
Cha = Chaikin(r1,r2);
topCDev = StDev(Chaikin(r1,r2),r1);
botCDev = -StDev(Chaikin(r1,r2),r1);
Plot( Cha, "Chaikin", ParamColor( "Color",  colorCycle ), ParamStyle("Style")  );
Plot( topCDev, "topDev", ParamColor( "Color",  colorCycle ), ParamStyle("Style")  );
Plot( botCDev, "bottomDev", ParamColor( "Color",  colorCycle ), ParamStyle("Style")  );
Buy=Cross(Cha, botCDev);
Sell=Cross(topCDev, Cha);
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy ); 
shape=Buy*shapeUpArrow + Sell*shapeDownArrow;
PlotShapes(shape,IIf(Buy,colorBlue,colorRed),0,IIf(Buy,Low,High));
Plot( 0, _DEFAULT_NAME(), ParamColor( "Color",  colorCycle ), ParamStyle("Style")  );
_SECTION_END();

Disclaimer

There is a substantial risk of loss associated with trading in Stock Markets. Losses can and
will occur. No responsibility for loss occurred to any person acting or refraining to act as a result of using the AFL written by their respective creators and published in this Blog for sharing of knowledge can be accepted by the Blog owner.

Use your ← → (arrow) keys to browse

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 47 other subscribers

Trending