Hi, I have my code working when 2 indicators ( when 2 conditions meet) line up for a sell signal,
but how do I get the opposite “buy” side signal (which is exactly opposite of sell code) on the same
screener that will display as a buy or sale correctly only when triggered to display within the screener?
Thanks
Sell code working…but need to add my buy signal on same screener
indicator1 = Average[1](Stochastic[3,1](close))
c1 = (indicator1 CROSSES OVER 78)
indicator2 = ExponentialAverage[9](MACDline[8,26,9](close))
indicator3 = MACDline[8,26,9](close)
c2 = (indicator2 > indicator3)
SCREENER[c1 AND c2] (Variation AS "%Chg prev bar")
Trye this
indicator1 = Average[1](Stochastic[3,1](close))
c1 = (indicator1 CROSSES OVER 78)
d1 = (indicator1 CROSSES UNDER 22)
indicator2 = ExponentialAverage[9](MACDline[8,26,9](close))
indicator3 = MACDline[8,26,9](close)
c2 = (indicator2 > indicator3)
d2 = (indicator2 < indicator3)
x1 = c1 AND c2
x2 = (d1 AND d2) * 2
y = x1 OR x2
SCREENER[y] (y AS "1/2") //1=bullish, 2=bearish
Roberto
Great, thanks so much for your help.
Will it display buy and sell setups on just the 60 minute timframe? Or what part of your code makes it a 60 min screener? ( so I can change other TF’s)
Or is there an easy way to add more timeframes to the one screener?
With this exact code, can you tell me how I could add 5 min, 15 min, 60 min, 4 hour, and Daily timeframes for example?
Thankyou very much
When you install and run it you have to apply it to the TF you prefer.
You can easily duplicate it and run it more than once, each time for a different TF.
Here you may find useful hints and suggestions https://www.youtube.com/channel/UC0OEWQSbrDTH2ArVFAzNJkQ
ana more here https://www.youtube.com/channel/UC8bNosI3wuid_3Ze7CzorvA
Hi Roberto, This code does not work anymore. It only gives criteria 1 in its result. I tried it on 10.3 and the new prorealcode. Regards
This one should do:
indicator1 = Average[1](Stochastic[3,1](close))
c1 = (indicator1 CROSSES OVER 78)
d1 = (indicator1 CROSSES UNDER 22)
indicator2 = ExponentialAverage[9](MACDline[8,26,9](close))
indicator3 = MACDline[8,26,9](close)
c2 = (indicator2 > indicator3)
d2 = (indicator2 < indicator3)
y = 0
IF c1 AND c2 THEN
y = 1
ELSIF d1 AND d2 THEN
y = 2
ENDIF
SCREENER[y] (y AS "1=↑, 2=↓") //1=bullish, 2=bearish