RegularRob
New member
Hi, I get multiple signals that clutter up my chart with arrows. What is the best way to only plot one arrow if conditions are met?
Code:
plot signal = if positive5 and oktobuy and positive and arrows
then 2
else 0;
plot signal2 = if negative5 and oktoshort and negative and arrows
then 1
else 0;
Alert(alert and signal == 2, "Ok_to_Buy", Alert.bar, Sound.Ding);
signal.SetDefaultColor(Color.violet);
signal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
signal.setLineWeight (1);
Alert( alert and signal2 ==1, "Ok_to_Short", Alert.bar, Sound.Ding);
signal2.SetDefaultColor(Color.violet);
signal2.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_Down);
signal2.setLineWeight (1);