Sort out column please

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #126404 quote
    InertiaInertia
    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
    InertiaInertia
    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
    InertiaInertia
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    You cannot colour lines differently.

    Inertia thanked this post
    #126928 quote
    InertiaInertia
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTimeā„¢ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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

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