Screener For Multiple TF’s
Forums › ProRealTime English forum › ProScreener support › Screener For Multiple TF’s
- This topic has 2 replies, 2 voices, and was last updated 2 years ago by Paulg999.
-
-
12/19/2022 at 1:11 PM #206028
Hi,
Is someone able to help me with a multi-timeframe Pro-screener?
Longs are essentially as described below with the shorts in reverse.
55ema > 144ema
55ema < 21sma
42sma > 55ema
42sma < 21sma
8ema < 21sma
I have created a basic version below but I think it will require some modification if my questions are to be answered.
Questions
- I want the screener to advise which Timeframe meets the condition.
- Can the screener also advise if it is Long or Short?
- I would like the screener to work for the following timeframes 5m, 15, & 1Hr
Any help is greatly appreciated.
//Long
Timeframe(5 minute)
indicator1 = ExponentialAverage[55](close)
indicator2 = ExponentialAverage[144](close)
c1 = (indicator1 > indicator2)
indicator3 = ExponentialAverage[55](close)
indicator4 = Average[21](close)
c2 = (indicator3 < indicator4)
indicator5 = Average[42](close)
indicator6 = ExponentialAverage[55](close)
c3 = (indicator5 > indicator6)
indicator7 = Average[42](close)
indicator8 = Average[21](close)
c4 = (indicator7 < indicator8)
indicator9 = ExponentialAverage[8](close)
indicator10 = Average[21](close)
c5 = (indicator9 < indicator10)
SCREENER[c1 AND c2 AND c3 AND c4 AND c5]
//Short
Timeframe(5 minute)
indicator1 = ExponentialAverage[55](close)
indicator2 = ExponentialAverage[144](close)
c1 = (indicator1 < indicator2)
indicator3 = ExponentialAverage[55](close)
indicator4 = Average[21](close)
c2 = (indicator3 < indicator4)
indicator5 = Average[42](close)
indicator6 = ExponentialAverage[55](close)
c3 = (indicator5 < indicator6)
indicator7 = Average[42](close)
indicator8 = Average[21](close)
c4 = (indicator7 < indicator8)
indicator9 = ExponentialAverage[8](close)
indicator10 = Average[21](close)
c5 = (indicator9 > indicator10)
SCREENER[c1 AND c2 AND c3 AND c4 AND c5]
12/20/2022 at 7:47 AM #206054There you go:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121// F stands for 5-min TF// 1 stands for 15-min TF// h stands for 1-hour TF//// Returns 9 for each TF when no signal is met,1-2-3=Long, 6-7-8=Short// Timeframe 5m 15m 1h// Long 1 2 3// Short 6 7 8//// examples:// 198 (5min=Long, 15min=none, 1h=Short)// 929 (5min?none, 15min=Short, 1h=none)// 999 none in all TFs//Timeframe(5 minute)Ind1A = ExponentialAverage[55](close)Ind2A = ExponentialAverage[144](close)Ind3A = ExponentialAverage[55](close)Ind4A = Average[21](close)Ind5A = Average[42](close)Ind6A = ExponentialAverage[55](close)Ind7A = Average[42](close)Ind8A = Average[21](close)Ind9A = ExponentialAverage[8](close)Ind10A = Average[21](close)// Longc1LA = (Ind1A > Ind2A)c2LA = (Ind3A < Ind4A)c3LA = (Ind5A > Ind6A)c4LA = (Ind7A < Ind8A)c5LA = (Ind9A < Ind10A)CondLA = c1LA AND c2LA AND c3LA AND c4LA AND c5LA// Shortc1SA = (Ind1A < Ind2A)c2SA = (Ind3A > Ind4A)c3SA = (Ind5A < Ind6A)c4SA = (Ind7A > Ind8A)c5SA = (Ind9A < Ind10A)CondSA = c1SA AND c2SA AND c3SA AND c4SA AND c5SA//Timeframe(15 minute)Ind1B = ExponentialAverage[55](close)Ind2B = ExponentialAverage[144](close)Ind3B = ExponentialAverage[55](close)Ind4B = Average[21](close)Ind5B = Average[42](close)Ind6B = ExponentialAverage[55](close)Ind7B = Average[42](close)Ind8B = Average[21](close)Ind9B = ExponentialAverage[8](close)Ind10B = Average[21](close)// Longc1LB = (Ind1B > Ind2B)c2LB = (Ind3B < Ind4B)c3LB = (Ind5B > Ind6B)c4LB = (Ind7B < Ind8B)c5LB = (Ind9B < Ind10B)CondLB = c1LB AND c2LB AND c3LB AND c4LB AND c5LB// Shortc1SB = (Ind1B < Ind2B)c2SB = (Ind3B > Ind4B)c3SB = (Ind5B < Ind6B)c4SB = (Ind7B > Ind8B)c5SB = (Ind9B < Ind10B)CondSB = c1SB AND c2SB AND c3SB AND c4SB AND c5SB//Timeframe(1 hour)Ind1C = ExponentialAverage[55](close)Ind2C = ExponentialAverage[144](close)Ind3C = ExponentialAverage[55](close)Ind4C = Average[21](close)Ind5C = Average[42](close)Ind6C = ExponentialAverage[55](close)Ind7C = Average[42](close)Ind8C = Average[21](close)Ind9C = ExponentialAverage[8](close)Ind10C = Average[21](close)// Longc1LC = (Ind1C > Ind2C)c2LC = (Ind3C < Ind4C)c3LC = (Ind5C > Ind6C)c4LC = (Ind7C < Ind8C)c5LC = (Ind9C < Ind10C)CondLC = c1LC AND c2LC AND c3LC AND c4LC AND c5LC// Shortc1SC = (Ind1C < Ind2C)c2SC = (Ind3C > Ind4C)c3SC = (Ind5C < Ind6C)c4SC = (Ind7C > Ind8C)c5SC = (Ind9C < Ind10C)CondSC = c1SC AND c2SC AND c3SC AND c4SC AND c5SC//Timeframe(default)Signal = 0IF CondLA THENSignal = Signal + 100ELSIF CondSA THENSignal = Signal + 600ELSIF (CondLA + CondSA) = 0 THENSignal = Signal + 900ENDIF//IF CondLB THENSignal = Signal + 10ELSIF CondSB THENSignal = Signal + 60ELSIF (CondLB + CondSB) = 0 THENSignal = Signal + 90ENDIF//IF CondLC THENSignal = Signal + 1ELSIF CondSC THENSignal = Signal + 6ELSIF (CondLC + CondSC) = 0 THENSignal = Signal + 9ENDIFIF Signal = 999 THENSignal = 0ENDIFSCREENER[Signal](Signal AS "51h")12/24/2022 at 11:33 AM #206277 -
AuthorPosts
Find exclusive trading pro-tools on