I want to create a watchlist indicator that compares two different times 5min and 15min to determine if the highs of each candle are different. I put together a code but it's not working properly any tips or suggestion?
Thanks
Code:
def high5 = high(period = "5 min");
def high15 = high(period = "15 min");
def highDiff = high5 != high15;
# Add custom columns to display the results
AddLabel(yes, if highDiff then "yes" else "", if highDiff then Color.GREEN else Color.RED);
Thanks