invert Screener code

Forums ProRealTime English forum ProScreener support invert Screener code

Viewing 15 posts - 1 through 15 (of 36 total)
  • #225492

    Hello the community,

    is there a way to invert this screener, so we get the Bearish Breakouts instead of the Bullish ?

    https://www.prorealcode.com/prorealtime-market-screeners/screener-break-out-with-high-volume/

    Thanks in advance.

    #225500
    JS

    Hi @sam00075

    Here’s the screener for the “Bearish BreakOut”…

    1 user thanked author for this post.
    #225652

    Awesome ! A big Thank you.

    1 user thanked author for this post.
    avatar JS
    #227869

    Hello @JS , thanks again for the last code, works like a charm.

    I need your help for another one if you have time : I’d like to add some criterias to the  screener “Break out with high volume”

    https://www.prorealcode.com/prorealtime-market-screeners/screener-break-out-with-high-volume/

    1- The price candle spreads the Bollinger band to the upside.

    2- The MACD baseline is touched, and broken to the upside.

    3- The volume is bigger than the last candle (tho i guess it’s already the case in the actual code ?)

    I joined a picture as an example for the configuration i’m looking for.

    Thank you in advance.

    #227871
    JS

    Hi Sam,

    How many periods do you want to use for the Bollinger Band and how much standard deviation?

    The BollingerUp[period](Close) uses 2 standard deviations I think…

    For the MACD, use the line: MACDLine[12,26,9](Close) or MACD[12,26,9](Close)?

    The volume larger than the last candle is not yet specific in the code but is no more than: C5=Volume>Volume[1]

    1 user thanked author for this post.
    #227872
    JS

    Forget the stupid question about the MACD… (I’m not very familiar with MACD)

    Do you mean this:

    C4=MACD[12,26,9](Close) CrossesOver MACDLine[12,26,9](Close)

    1 user thanked author for this post.
    #227874

    Hi @JS , thanks for the quick reply.

    – i don’t know what the technical term is for the MACD : What i meant is Cross the Horizontal line, in direction of the upside, i think the Horizontal line value is 0,00

    – for the bollinger band standard deviation, and periods, i have no idea, if you can please do what you think is best, we’ll ajust if needed.

    – for the volume, let’s test the without adding this part, just keeping what’s in the original code, we’ll see if it’s needed after testing the code.

    #227875
    JS

    Hi Sam,

    Hereby the screener with the extra conditions:

    1 user thanked author for this post.
    #227877

    Awesome ! You even included the .ift

    – For the Bollinger it seems good.

    – For the MACD it shows some results that are far from the Horizontal Baseline, like the joined picture.

    Do you know the reason ?

    #227879
    JS

    What I see in your screenshot is that the MACD is correct, it goes from red to green in the last bar…
    It’s about the zero line, MACD crosses the zero line upwards…

    1 user thanked author for this post.
    #227880

    Sorry i didn’t know how to express it better,

    please see the joined picture i drawed the line in Black, this is the one i want to be crossed.

    #227882
    JS

    For me that is the zero line…you see the crossing (from red to green) in the last bar…

    1 user thanked author for this post.
    #227883
    JS

    You only have to look at the last bar, the screener looks for stocks that now meet the conditions and when you call up the graph of the stock it is always about the last bar (where all conditions are true)…

    #227884

    Yes screeners are for the last bar, Agree.

    The picture was just as an example, what i would like is the detection when the Black line is crossed.

     

    #227885
    JS

    We’re talking past each other… 🙂
    How do you call that black line… what function does it have in the MACD?

    1 user thanked author for this post.
Viewing 15 posts - 1 through 15 (of 36 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login