//@version=5 indicator('Offet VWAP', overlay=true) ResetHour = input(0) ResetMinute = input(0) VWAPOffset = input( 0 ) var float vwapsum = na var float volumesum = na //------------------------------------------------ TimeReset = hour == ResetHour and minute == ResetMinute newSession = TimeReset and not TimeReset[1] //------------------------------------------------ vwapsum := newSession ? hl2 * volume : hl2 * volume + vwapsum[1] volumesum := newSession ? volume : volume + volumesum[1] myvwap = vwapsum / volumesum //This is code for VWAP changing color based on price above or below ***This color change is not working**** //Coloring = close > myvwap ? color.green : color.red coloring = color.aqua av = myvwap + VWAPOffset A = plot(av, style=plot.style_circles, color=color.new(coloring, 0)) //This colors based on coloring ****Not working***** //barcolor(showBcol?Coloring:na) //end