new column in screener
- This topic has 4 replies, 2 voices, and was last updated 4 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
Similar topics:
Forums › ProRealTime English forum › ProScreener support › new column in screener
Here is the screener.
Wish to have a column saying “up” or “down”…
Thank you…
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
// The following code is related to this timescale:10 minutes TIMEFRAME(2 minutes) c1 = (close > close[1]) MySMA2m = Average[8](close) c2 = (close > MySMA2m) c22 = (close crosses over MySMA2m ) TIMEFRAME(10 minutes) c3 = (close > close[1]) MySMA10mn = Average[8](close) c4 = (close > MySMA10mn) // The following code is related to this timescale:1 hour TIMEFRAME(1 hour) c5 = (close > close[1]) MySMA1hr = Average[8](close) c6 = (close > MySMA1hr) //DownTrend TIMEFRAME(2 minutes) c7 = (close < close[1]) MySMA2m = Average[8](close) c8 = (close < MySMA2m) c88 = (close crosses under MySMA2m) TIMEFRAME(10 minutes) c9 = (close < close[1]) MySMA10mn = Average[8](close) c10 = (close < MySMA10mn) // The following code is related to this timescale:1 hour TIMEFRAME(1 hour) c11 = (close < close[1]) MySMA1hr = Average[8](close) c12 = (close < MySMA1hr) // The following code is related to this timescale:DEFAULT TIMEFRAME(DEFAULT) SCREENER[(c1 AND c2 AND c22 AND c3 AND c4 AND c5 AND c6) OR (c7 and c8 and c88 AND c9 and c10 and c11 and c12)] (Variation AS “%Chg prev bar”) |
Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.
Thank you 🙂
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
TIMEFRAME(weekly) REM RSIWL = RSI Weekly Long RSIWL = RSI[5](close) c1 = (RSIWL > RSIWL[1]) REM RSIWS = RSI Weekly Short RSIWS = RSI[5](close) c3 = (RSIWS<RSIWS[1]) TIMEFRAME(daily) REM RSIDL = RSI Daily Long RSIDL = RSI[5](close) c2 = (RSIDL>RSIDL[1]) REM RSIDS = RSI Daily Short RSIDS = RSI[5](close) c4 = (RSIDS<RSIDS[1]) LONG = c1 AND c2 SHORT = c3 AND c4 IF LONG then Criteria = 1 ELSIF SHORT then Criteria = -1 ENDIF SCREENER [(LONG) OR (SHORT)](Criteria as "BULL 1 BEAR -1") |
Foun it on my own file… :))
Screeners can only return positive numbers, so 1/2, or 10/20, etc…
No UP/DN, nor -1/1.
Find exclusive trading pro-tools on