Cem,
I am new too. Its hard to assist without showing some code, maybe provide a section of the code.
But would you not just change the na to gray. Obs Up and Down would be defined.
barcolor(Up ? color.blue : Down ? color.yellow : color.gray, transp=70)
Try the below
UpCond = fastEMA[1]>slowEMA[1] and high>high[1]
DownCond = fastEMA[1]<slowEMA[1] and hist[1] < 0 and low<low[1]
barcolor(UpCond ? color.blue : DownCond ? color.yellow : color.gray, transp=70)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…