Sort out column please

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

    Hi All!

    Hope you guys are safe 😉

    Screener:

    The code below works but how can I have an additional colomn “saying” Bull or Bear signal please ??

    2 time frames, 2 conditions in each…

    Thank you !

    REM Condition 1: MACD weekly > 0 and decreasing
    TIMEFRAME(weekly)
    REM RSIWL = RSI Weekly Long
    RSIWL = RSI[5](close)
    c1 = (RSIWL > RSIWL[1])
    
    REM RSIWS = RSI Weekly Short
    RSIWS = RSI[5](close)
    c11 = (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)
    c22 = (RSIDS<RSIDS[1])
    
    SCREENER [(c1 AND c2) OR (c11 AND c22)]
    #126425 quote
    Inertia
    Participant
    Master

    Founded it !

    Cheers.

    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")
    
    #126904 quote
    Inertia
    Participant
    Master

    Quick one please.

    From the code below,

    How can have the boxes “-1” coloured in RED and the “1” in Green please ?

    Is this feasable? Thank you 😉

    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")
    #126916 quote
    robertogozzi
    Moderator
    Master

    You cannot colour lines differently.

    Inertia thanked this post
    #126928 quote
    Inertia
    Participant
    Master

    Thank you Roberto. I wasn’t sure. Take care.

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

Sort out column please


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
5 years, 11 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/16/2020
Status: Active
Attachments: No files
Logo Logo
Loading...