Allows you to write conditions for your ProScreener in different timeframes (description of the ProScreener command only on this page).
Syntax:
Example 1:
Triple bullish screen from the ProScreener documentation.
|
REM Condition 1 and 2: MACD weekly < 0 and increasing TIMEFRAME(weekly) MyMACD = MACD[12,26,9](Close) c1 = MyMACD < 0 AND MyMACD > MyMACD[1] REM Condition 2: Daily Stochastic < 30 TIMEFRAME(daily) MySTO = Stochastic[14,3](Close) c2 = MySTO < 30 REM Set Stop Level MyStop = High[1] REM Criteria: Proximity to the high of the previous day Criteria = (Close / MyStop - 1) * 100 REM Condition 3: Price is less than previous day's high or no more than 5% above it. c3 = Criteria < 5 SCREENER[c1 AND c2 AND c3](Criteria) |
Example 2:
Daily and Weekly timeframes conditions in the same screener.
|
//PRC_Positive Momentum | screener //31.08.2017 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge mmacd = MACD[12,26,9](close) sto = Stochastic[14,3] TIMEFRAME(weekly) c1 = mmacd crosses over 0 TIMEFRAME(daily) c2 = mmacd>0 c3 = sto>70 SCREENER[c1 and c2 and c3] |