Ok, now that we have some clarification on what signal should trigger an alert we have the following solution:
Alert(signal, “Momentum Alert”, Alert.BAR, Sound.RING);
Notice that my solution does not differentiate between up signal or down signal. The reason for this is because the direction of the signal is determined further upstream, in the user inputs. Specifically, the user input named "crossingType".
In the interest of providing some educations how does this compare to what you attempted?
In the last two lines you added to the code we find that you have added three variable names that were not previous defined. Let's take a look at what you had:
Alert(UpSignal == ZeroLine, “Up Arrow Alert”, Alert.BAR, Sound.RING);
Alert(DownSignal == ZeroLine, “Down Arrow Alert”, Alert.BAR, Sound.RING);
So we find the following variables that were never defined in the code:
UpSignal
DownSignal
ZeroLine
So when you try to say "UpSignal == ZeroLine", the English interpretation of this is:
undefined variable equals undefined variable
This creates a compiler error and the study cannot be saved an applied to the chart until the error is corrected.