Squeeze Trading Indicator

Forums ProRealTime English forum ProBuilder support Squeeze Trading Indicator

Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • #119856

    Squeeze Trading Indicator

    from https://www.netpicks.com/squeeze-out-the-chop/

    The basic formulas we need are:

    Bollinger Band = Moving Average + (Number of standard deviations X Standard Deviation)
    Keltner Channel = Moving Average + (Number of ATR’s X ATR)

    Or if we translate this into pseudo-code:

     

    The squeeze is calculated by taking the difference between these two values:

     

    Which simplifies down to this:

     

    • Hello Nicholas sorry for the mix-up sending it to the wrong place hopefully there’s enough information i’ve linked the web page that it’s from and also sticking a picture I can make a basic version of this but it would not use the standard deviation or the ATR so I’d like to see this version with that in it and then test that out, thank you.
    • Patrick

     

    Moderators edit: Post edited to remove text from inserted code. Please only insert actual code when using the ‘Insert PRT Code’ button.

    #119861

    These screeners uses BB + KC to tell a squeeze: https://www.prorealcode.com/topic/bollinger-band-squeeze-with-rsi-divergence/#post-28411, https://www.prorealcode.com/prorealtime-market-screeners/intraday-volatility-explosion-screener/.

    Did you ever happen to use the search box?  It’s your friend, don’t be afraid.

    #119862

    Hello robertogozzi 

    Does the screener show up on the charts as an indicator because I’m doing a lot of backtesting and I use the simplified creation tool for backtesting so it helps a lot to have it on the chart thank you

    Patrick

     

    #119864

    This is the one at https://www.prorealcode.com/prorealtime-market-screeners/intraday-volatility-explosion-screener/ (it returns explosions, you can set it as a histogram):

     

    #119871

    That indicated that you shared me is only a breakout indicator can you change it into a zero line Cross please

    I have only a very basic understanding of coding I’ve watched quite a few videos, if I Could code it myself I would, zero line cross indicator version might be more beneficial

    Thank you

    Patrick

    #119874

    What do you mean by zero line?

    BB & KC do not have 0.

    #119875

    I might be able to use this line in a different way like putting a moving average on it so its a zero line Cross plus momentum then use it in conjunction with other indicators might have a winning strategy most likely not

     

    #119878

    Yes you’re right the Bollinger bands and keltner channels do not but the indicator based on them that I would like you to build would,

    just to clarify rate of Change would be a zero line cross.

    thank you

    Patrick

    #119903

    Ok, I changed so that it returns all crossings with different colours:

    • bullish explosion: plain GREEN                (returns 1)
    • bullish implosion: light GREEN                (returns 1)
    • bearish explosion: plain RED                    (returns -1)
    • bearish implosion: ligtht RED (pink)      (returns -1)

    The attached pic shows all possible crossings of the Bollinger Bands over/under the Keltner Channel.

     

    #119910

    Roberto

    you won’t believe this I don’t really believe this but I think I’ve done it even so I still would like to thank you for helping

    It’s not 100% because it only incorporates the upper Bollinger band and the upper keltner channel which doesn’t give you 100% Reading somehow how I need to factor in in the lower band and the lower channel into the equation but I don’t know how to do that

    Here’s what I have done

     

    #119912

    The other one might be better

     

    Thank you again

    Patrick

    #119916

    You don’t need to call the indicator twice so the code can be simplified a little further. Also you forgot a comma in your return line.

    Please always use the ‘Insert PRT Code’ button when posting code. I tidied up your first code that you posted. 🙂

     

    1 user thanked author for this post.
    #119930

    Various “squeeze” codes:

    https://www.prorealcode.com/tag/squeeze/

    https://www.prorealcode.com/topics-tag/squeeze/

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

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