Here's the code I'm working with. Trying to get it to send me alerts for any result over 1%.
It's a custom watchlist column if that makes a difference. I've watched it meet the criteria
several times but haven't received any alerts. Where am I going wrong here?
plot x = Round(100 * ((close / open) - 1), 1);
x.AssignValueColor( if x < 0 then Color.ORANGE else Color.CYAN);
def condition = if x > 1.0 then 1 else 0;
Alert(condition, ”text”, Alert.BAR);
It's a custom watchlist column if that makes a difference. I've watched it meet the criteria
several times but haven't received any alerts. Where am I going wrong here?
plot x = Round(100 * ((close / open) - 1), 1);
x.AssignValueColor( if x < 0 then Color.ORANGE else Color.CYAN);
def condition = if x > 1.0 then 1 else 0;
Alert(condition, ”text”, Alert.BAR);