// Downloaded From https://www.WiseStockTrader.com
_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();