• Happy Independence Day! Take $40 off VIP Membership with code JULY4. Sign up here.

Repainting a candle if price action meets criteria


New member
Hey guys

Looking for a way to accomplish the following and I am hitting a mental wall

The basic rule I want to accomplish is..if in the last 5 minutes, the price of a stock has at some point moved $1.50, then repaint the candle. This is where I'm at but it would only work on a 5minute view...

AssignPriceColor(if low-close <= -1.50 then Color.YELLOW else Color.CURRENT);

Similar threads