Screener Help for Nicolas's Standard Deviation/Error LR Channel

Forums ProRealTime English forum ProScreener support Screener Help for Nicolas's Standard Deviation/Error LR Channel

Viewing 11 posts - 1 through 11 (of 11 total)
  • #119085

    Greetings team. I’ve been working on back testing with Nicolas’s Indicator here: https://www.prorealcode.com/prorealtime-indicators/standard-deviation-standard-error-linear-regression-channel/

    I’d like to develop a screener along with another indicator in order to share with you all, however, I’m a little stuck with the conditions. Ideally this is a question directly to Nicolas. But anyone who can help, please feel free. I can do the rest of the work on my own I think.

    As a visual indicator, this is amazing. But how does one detect digitally, when price (close) is above (>) the top line (+1) of the channel? I’m struggling with converting the drawn-line to a number or fixed point to use for a reference.

    Ideally I want to make the top line of the channel, indicator 1 and the bottom line, indicator 2 respectively.

    I think this has real potential…

     

     

    #119086

    I’m guessing that you want to know if the current bar is above or below the lines and not if a candle in the lookback period has been above or below  the lines?

    If so then a+b*0+dat is the upper line y value and a+b*0dat is the lower line y value for the current bar.

    1 user thanked author for this post.
    #119092

    absolutely that… Thanks, I’ll have a play round with that now and see the results. Thank you, Craig 🙂

    #119101

    I’m sure that I made that screener already, let me check in the forums.

    #119103

    I can’t find it now.. anyway, what you are looking for is if the price is exceding a linear regression + standard deviation factorized, should be coded like this:

    (not tested)

    1 user thanked author for this post.
    #119208

    Okay guys… Thank you so far. I’ve managed to learn a bit more from what you’ve both told me and I’ve merged both comments into one screener prototype. However… the MAX units I can set for the lookback is 254, ideally I’d like this to be 300.

    I’m enclosing the code below for assistance. (Please keep in mind I’m a real newcomer, but I really am interested in learning more).

    Thanks for your help and patience, Craig 🙂

    #119231

    Yes 254 is the maximum lookback allowed in screeners unfortunately.

    Perhaps Nicolas’s simpler version returns the same results? Otherwise that is a screener based on that indicator.

    #119304

    Indeed, because in realtime we don’t have to compute the affine function in order to plot a line in the past, the last point of the channel is enough.

    #121010

    Hi Nicolas

    I know you’re constantly bombarded with questions, however, I was wondering if there’s a way to code that both values must be “above” the top line. (Even though I know the line is only a drawn on object)! I’m working on this as developing the indicator for multi-timeframe, but then also for use later in a strategy to share. (I just want it to be better before sharing.

    So far I have…

    However, currently this would show when say the one hour is Above the Top line but the default or 15m is below the bottom line. I know that this is correct. But it’s not the outcome I wish to return.

    #121011

    I may have just answered my own question on this… If it’s not this, then any help would be received with gratitude.

     

    #121033

    You have indeed answered your own question 🙂 That last screener code seems correct to me!

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

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