/ _SECTION_BEGIN("MACD"); SetChartBkColor( colorBlack ) ; f = Param("fast Dema",12,1,50,1); s = Param("Slow Dema",26,2,100,1); A1=DEMA(C,f)-DEMA(C,s); BBtop=BBandTop(A1,5,.5); BBbot=BBandBot(A1,5,.5); //Color=IIf(a1<0 AND a1>Ref(a1,-1), colorBrightGreen,IIf(a1>0 AND a1>Ref(a1,-1),colorBrightGreen,IIf(a1>0 AND a1 bbtop, colorBrightGreen, IIf(a1 < bbbot,colorRed,colorYellow)); Plot(a1,"MACD",color,styleDots+styleLine); Plot(BBtop,"",colorYellow,styleDashed); Plot(BBbot,"",colorYellow,styleDashed); Plot(0,"",31,styleNoLabel); _SECTION_END(); Plot( EMA( a1, 9 ), "", colorBlue, styleThick ); thick = Param("thickness",0.1,0.1,5,0.1); //Plot(6, "", Color, styleOwnScale| styleArea|styleNoLabel,-0.5,100); PlotOHLC(0,thick,-thick,0,"",Color,styleCloud+styleNoLabel); _SECTION_END();