// Downloaded From https://www.WiseStockTrader.com /* You are not allowed to change or share this AFL It belongs to me...BILL ROUSE It is a compillation of many bits of code that was free to distribute */ _SECTION_BEGIN("Pulse"); si=Param("Zoom/In Out",5,-50,100,1); GraphXSpace=si; r1 = Param( "ColorFast avg", 2, 2, 200, 1 ); r2 = Param( "ColorSlow avg", 13, 2, 200, 1 ); r3 = Param( "ColorSignal avg", 5, 2, 200, 1 ); m1=MACD(r1,r2); s1=Signal(r1,r2,r3); mycolor=IIf(m1<0 AND m1>s1, colorPink,IIf(m1>0 AND m1>s1,colorAqua,IIf(m1>0 AND m1Open,ColorRGB(0,245,0),ColorRGB(255,0,0)); Ctmpl = E_TSKPCOLORTMPL(Open,High,Low,Close,Volume); total = 0; total = total + IIf(tskp_colortmplcnd0 > 0, 1, -1); total = total + IIf(tskp_colortmplcnd1 > 0, 1, -1); total = total + IIf(tskp_colortmplcnd2 > 0, 1, -1); total = total + IIf(tskp_colortmplcnd3 > 0, 1, -1); total = total + IIf(tskp_colortmplcnd4 > 0, 1, -1); total = total + IIf(tskp_colortmplcnd5 > 0, 1, -1); total = total + IIf(tskp_colortmplcnd6 > 0, 1, -1); total = total + IIf(tskp_colortmplcnd7 > 0, 1, -1); total = total + IIf(tskp_colortmplcnd8 > 0, 1, -1); for( i = 0; i < BarCount; i++ ) { if( total[i] >= 5 ) Color[i] = colorAqua; else if( total[i] <= -5 ) Color[i] = colorRed; else Color[i] = colorLightGrey; } //////////////////////// //////////////////////// ///Replace this below with code further below Candle=ParamList("Candle","Modified Heikin Ashi,Modified Candlestick,Normal Candlestick",1); if(Candle=="Modified Candlestick") {ColorHighliter = myColor; SetBarFillColor( ColorHighliter ); Plot (Close," Modified Candlestick", Color,ParamStyle( "Style", styleCandle|styleLine | styleThick , maskAll)); } //////////////////////////// ///all this below removes if(Candle=="Modified Heikin Ashi"){ ColorHighliter = myColor; SetBarFillColor( ColorHighliter ); PlotOHLC( IIf(flowerOpenRef(MA(H,Lb),-1),1,IIf(Close