bobtParticipant
Average
Hello,
I’m using multiple ColorBetween statements in an indicator, but only the last ColorBetween statement actually shows on screen.
for example :-
Var = RSI[14]
ColorBetween(0,20,0,100,0,100) //Green Bar
ColorBetween(80,100,100,0,0,100) //Red Bar
Return Var AS “RSI”
Only the red bar shows. I’m confident that this used to work.
Is this a known issue ?
Regards,
Bob
I never used it before, but… yes, it only can be used once.
I suggest that you colour the area 21 to 79, to keep the OB and OS outside, so you can still see them better:
ColorBetween(79,21,"Grey",35) //light Grey area
JSParticipant
Senior
Or alternatively, use two colored rectangles…
Var = RSI[14]
//ColorBetween(0,20,0,100,0,100) //Green Bar
//ColorBetween(80,100,100,0,0,100) //Red Bar
DrawRectangle(BarIndex-100,0,BarIndex,20)Coloured(0,255,0,1)BorderColor(0,255,0,0)
DrawRectangle(BarIndex-100,80,BarIndex,100)Coloured(255,0,0,1)BorderColor(255,0,0,0)
Return Var