Bollinger band contraction in programming

Forums ProRealTime English forum ProBuilder support Bollinger band contraction in programming

Viewing 7 posts - 1 through 7 (of 7 total)
  • #190668

    Hi all,

    How to detect a Bollinger band contraction in Probuilder programming, I haven’t started yet, do you have any leads or ideas, I thought for example to measure the angles of the moving average that constitute the Bollinger bands, or perhaps an average angle calculation of the upper or upper and lower bands at the same time

    Best Reguards

    #190674

    Have you tried Bollinger Band Width ? BollingerBandWidth

    and measure a statistical width with a long term average applied to it.

    1 user thanked author for this post.
    #190676

    another usual way to check bandwidth contraction is the “bollinger squeeze”: TTM Squeeze Oscillator and On price version

    it checks if current standard deviation of volatility (Bbands) is located inside the average of candlesticks true range (keltner bands).

    1 user thanked author for this post.
    #190684

    Have you tried Bollinger Band Width ? BollingerBandWidth

    and measure a statistical width with a long term average applied to it.

    tks you Nicolas, I tried quickly the result of the search indicator and I found the “BandWith”, I think it’s the same you showed me (the second indicator in the picture), the third one it’s the same but I removed the BBwidthSlow = BollingerBandWidth[30](close) and calculate just an Average on the the bandwith with 9 periode like a signal line, I will also check the history discus on the page indicator,

    how to detect the flat part of the indicator ? I will try this methode of you on youtube and see what king of result I will find

    #190699

    Bollingerbandwidth is an internal instruction I gave you the link above 🙂

    https://www.prorealcode.com/documentation/bollingerbandwidth/

    It returns the value of the bollinger bands width in price. There is a also a normalized version named %BBands: https://www.prorealcode.com/prorealtime-indicators/b-bollinger/

    1 user thanked author for this post.
    #190704

    It returns the value of the bollinger bands width in price. There is a also a normalized version named %BBands: https://www.prorealcode.com/prorealtime-indicators/b-bollinger/

    tks you, I add it in the last in the photo and drawed a 0 ligne because I saw that the value can  be negative, at first glance I do not see how we can detect a compression with this indicator, again thank you for all your answers I will search more and see what I can do

    Best Reguards

    #190865

    when you said a statistical width with a long term average applied to it. I don’t understand a statistical ?
    I do for exemple the the difference betwen the BBwidth  and BBwidthSlow  (it’s the differnce between the Slow and fast average like the MACD betwen 2 average),

    but after if I do an average of this variabl I get the same problem of how to determinate the good value of contraction, I do for exemple trying to get my maximum and minimum and try to find the condition is true when theis last value is under 10% from the highest value, but not working correctly

    exemple :

    second solution, I’m trying to get the highest value of the difference between the slow and the fast with and try to find the contraction, sorry for my code is a mess (it’s not the final code ) :

     

    any new idea for find the contraction is welcom

    Best Reguards

Viewing 7 posts - 1 through 7 (of 7 total)

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