def Bullish = close is greater than reference VWAP()."VWAP"; def Bearish = close is less than reference VWAP()."VWAP"; def NearVwap = close crosses reference VWAP()."VWAP"; AssignBackgroundColor(if bullish then Color.GREEN else if Bearish then color.red else color.black); AddLabel(yes, if bullish then "1", color.green else if bearish then "-1", color.red else " " , Color.Black); plot scan = reference VWAP(); scan.AssignValueColor(Color.BLACK);