• Get $30 off VIP with code SUMMER30. Ends July 27. Happy trading!

How to paint the active candle?

Yo Adrian

New member
Hey everyone, first post but I've been reading the board for a long time. Finally getting around to participating :)

How can I paint the active candle gray and revert to the original color as soon as it closes?

So far this is my line of thinking:

Code:
def Active = (_no Close price yet_);

AssignPriceColor
(if Active then Color.GRAY
else Color.CURRENT);

Can anyone here fill in the blanks?
 

Pensar

Well-known member
VIP
@Yo Adrian It seems to work fine on my end. I colored the candle blue to make it more visible, as gray is hard to see. Are there any other chart studies loaded that color the price? If so, one will usually override the other.

XmrZyIU.png
 

Similar threads

Top