multiple filtering codes in one pro-screener window

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #124359 quote
    muqwishi
    Participant
    New

    Hello

    I’m new using demo account, I have couple question.

    Technical question – How to show multiple filtering codes in one pro-screener window ?

    Coding question – How to get the sum number of bars per day at different time-frame? (willing to calculate for relative volume)

     

    Thank you

    #124361 quote
    robertogozzi
    Moderator
    Master
    #124377 quote
    muqwishi
    Participant
    New

    robertogozzi, Thank you for respond!

    There’s misunderstanding my question,

     

    For example I have two screeners

    1. Engulfing Bullish screener.

    2. Crosses 200-MA screener.

    How to show both screeners in one pro-screener window?

    #124384 quote
    robertogozzi
    Moderator
    Master

    There you go:

    // it will return two chatacters, one for each different screener, the rightmost for the first screener (engulfing
    // patterns) and the leftmost for the second screener (crossings)
    //
    // For each one of the above two it will either return:
    //        1  = long
    //        2  = short
    //
    // So you may have these 8 combinations (9=zero, just to avoid it from being dropped):
    //
    //        91 = No crossing and Engulfing is Bullish
    //        92 = No crossing and Engulfing is Bearish
    //        10 = Crossover   and NO Engulfing
    //        20 = CrossUnder  and NO Engulfing
    //        11 = CrossOver   and Bullish Engulfing
    //        12 = CrossOver   and Bearish Engulfing
    //        21 = CrossUnder  and Bullish Engulfing
    //        22 = CrossUnder  and Bearish Engulfing
    //
    Bullish          = close > open
    Bearish          = close < open
    Body             = abs(open - close)
    BullishEngulfing = (Bullish AND Bearish[1]) AND (Body > Body[1]) AND (open <= close[1]) AND (close >= open[1])
    BearishEngulfing = (Bearish AND Bullish[1]) AND (Body > Body[1]) AND (open >= close[1]) AND (close <= open[1])
    CrossOver        = close CROSSES OVER  Average[200,0](close)
    CrossUnder       = close CROSSES UNDER Average[200,0](close)
    Result           = 0
    IF BullishEngulfing THEN
       Result = Result = 1
    ELSIF BearishEngulfing THEN
       Result = Result + 2
    ENDIF
    IF CrossOver THEN
       Result = Result + 10
    ELSIF CrossUnder THEN
       Result = Result + 20
    ENDIF
    IF (Result > 0) AND (Result < 10) THEN
       Result = Result + 90
    ENDIF
    SCREENER[Result](Result AS "1=↑,2=↓")
    Nicolas and muqwishi thanked this post
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

multiple filtering codes in one pro-screener window


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
muqwishi @muqwishi Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzi
5 years, 11 months ago.

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