Can someone help with this--
1. when macd histogram ticks up color of candle = Blue
2. when macd ticks up color of candle = orange
3. when macd cross color of candle = Green
4. when macd histogram ticks down color of candle = blue
5. when macd ticks down color of candle = orange
6. when macd cross down color of candle = Red
1. when macd histogram ticks up color of candle = Blue
2. when macd ticks up color of candle = orange
3. when macd cross color of candle = Green
4. when macd histogram ticks down color of candle = blue
5. when macd ticks down color of candle = orange
6. when macd cross down color of candle = Red
r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
McD=MACD(r1, r2);
sig=Signal(r1,r2,r3);
Hist=MCd- sig;
Buy1= Cross(McD,sig) ;
buy2=McD > Ref(McD,-1);
Sell1=Cross(sig,McD);
sell2=McD < Ref(McD,-1);
Buy=ExRem(Buy2,Sell2);
Sell=ExRem(Sell2,Buy2);
Color =IIf(Buy2,colorGreen,IIf(Sell2,colorRed,colorBlue));
SetBarFillColor(Color);
Plot(Close,"Close",colorWhite,styleCandle);
shape = Buy1 * shapeUpArrow + Sell1 * shapeDownArrow;
PlotShapes( shape, IIf( Buy1, colorYellow, colorRed ), 0, IIf( Buy1, Low, High ) );
GraphXSpace = 5;
Could not Succeed in adding histgram change color(point no.4in original post) in this. Can anyone please help here?