Last tick label

J

jacobbiller

New member
2019 Donor
I need a way to have a label update the price on each tick, instead of on a new minute (on one minute chart). I also another label that changes colors if it crosses the vwap. It does change it on a new minute, but I want it changed instantly. Here is the code for the new minute change:

Last close price:
AddLabel(yes, "price " + close, Color.GREEN);

VWAP chaning colors:
AddLabel(yes, " VWAP " + Round(VWAP, 2), if close < VWAP then Color.RED else Color.GREEN);
 

Similar threads

Top