wanted to color a rectangle box automatically when a crossover happens
default rectangle color black
GfxRectangle( 10, 150, 150, 50); GfxFillSolidRect(10, 150, 150, 50, colorBlack ); a=C; g=(EMA(Close,3) * (2 / 4 - 1)-EMA(Close,60) * (2 / 61 - 1)) / (2 /4- 2 /61); e=Ref(g,-1); Plot (EMA(a,10), "10ema", colorBlue,styleNoTitle); Plot (EMA(a,30), "30ema", colorRed,styleNoTitle); Buy=Cross(EMA(C,10),EMA(C,30)); Sell=Cross(EMA(C,30),EMA(C,10));
how to color the rectangle to green when buy and red when sell ?
if there is no crossover want the box to be black as would want conditions to apply later .
and also want to remove the ema price value which show up on the right where the price range, I tried with stylenolabel and stylenotitle dint help