Hi, so I was trying to create a label for this statement, but it says invalid statement for the label portion, any way to fix this in order to get the label to display? Thanks in advance!
Code:
def a = 1250;
def b = close;
def uptrend = b > a;
def downtrend = a < b;
addlabel(yes, if uptrend "bullish" else if downtrend "bearish" else "N/A", color.yellow);