How To Add Buy Or Sell With 2 Screener Conditions
- This topic has 5 replies, 2 voices, and was last updated 2 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:
Forums › ProRealTime English forum › ProScreener support › How To Add Buy Or Sell With 2 Screener Conditions
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
1 2 3 4 5 6 7 8 9 |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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
This one should do:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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 |
Find exclusive trading pro-tools on