new column in screener

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #169518 quote
    Inertia
    Participant
    Master

    Here is the screener.

    Wish to have a column saying “up” or “down”…

    Thank you…

    // 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”)
    #169536 quote
    robertogozzi
    Moderator
    Master

    Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.

    Thank you 🙂

    Inertia thanked this post
    #170148 quote
    Inertia
    Participant
    Master
    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… :))

    #170150 quote
    robertogozzi
    Moderator
    Master

    Screeners can only return positive numbers, so 1/2, or 10/20, etc…

    No UP/DN, nor -1/1.

    #170152 quote
    Inertia
    Participant
    Master

    Hi Roberto,

    It does on mine but we may not talk about the same results.

    Minus_numbers.png Minus_numbers.png
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

new column in screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Inertia @inertia Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Inertia
4 years, 10 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 05/12/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...