New York
Posts: 1 since Apr 2018
Thanks Given: 0
Thanks Received: 0
|
Hi experts,
How do I retain color only on the last bar which matched my condition i.e
AssignPriceColor( if condition1 then Color.MAGENTA
else if open < close then Color.GREEN
else if open > close then Color.RED
else Color.RED);
Currently above will show all the candles which match this condition, how can I restrict to only one last candle, i.e if new match found the old should reset to default GREEN and RED. Appreciate the help.
Thanks
|