Hi
I was trying to code a screener to find stocks to trade by the 9/30 method (https://www.tradingsetupsreview.com/930-trading-setup/)
My code looks like this:
ema9 = ExponentialAverage[9](close)
wma30 = WeightedAverage[30](close)
bullish = ema9 crosses over wma30
SCREENER [bullish]
Works great and I get results of stocks that crosses the averages. Is it someway possible to code so I find stocks that have a bar closed below the EMA9? I have read the manual and can’t figure it out.
Is this correct?
indicator1 = ExponentialAverage[9](close)
indicator2 = WeightedAverage[30](close)
c1 = (indicator1 CROSSES OVER indicator2)
indicator3 = ExponentialAverage[9](close)
c2 = (close < indicator3)
I”m unsure if I got the candleclose right below the EMA 9…
And I only get results from the screener of stocks that just hit the cross of 9/30. How do I code to get stocks that already has the cross done?
WingParticipant
Veteran
Change this:
c1 = (indicator1 CROSSES OVER indicator2)
To this:
c1 = (indicator1 > indicator2)