Hello,
I try to display a golden cross indicator using the following code found here : https://www.prorealcode.com/prorealtime-market-screeners/golden-cross-stock-screener/
mm50 = average[50](close)
mm200 = average[200](close)
//bullish golden cross
bullish = mm50 crosses over mm200
bearish = mm50 crosses under mm200
SCREENER [bullish or bearish] (Variation as "% change from previous day")
It doesn’t work; I get an error message saying “program shall be finished by return”
It’s the first time I try to code with ProRealtime, somebody could help me ?
I guss something is missing in the code
This is a screener code (market scanner), not an indicator.
What do you expect to be plotted on the chart? An arrow for each of the 2 moving average crossing?
Yes exactly, and the best would be to have an alarm when crossing