Bollinger squeeze and divergence

Forums ProRealTime English forum ProScreener support Bollinger squeeze and divergence

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

    Hi,

    Sometimes it’s possible to catch good runs and to make some profit when Bollinger bands start to diverge after a squeeze. But as Nicolas and some other members mentioned it is difficult to program this squeeze and divergence. I did some backtesting in excel and the results are kind of OK depends of individual’s expectations. I need your help to write a code to screen the market for opportunities based on my excel spreadsheet.

    The difference between upper and lower Bollinger bands must be smaller or equal to the minimum difference between Bollinerg bands over 100 periods multiplied with a constant (e.g. 1.1) (upper Bollinger – lower Bollinger) <= 1.1*min(upper Bollinger – lower Bollinger) over 100 periods . The signal that triggers a ‘buy’ will be given when the bands will start to diverge (current upper Bollinger > previous period upper Bollinger and current lower Bollinger > previous period lower Bollinger) with the price closing above upper Bollinger. To be on the conservative side 7 period moving average should be greater than 23 period moving average. I downloaded a spreadsheet and screenshot.

    It is for an uptrend market on a weekly timeframe.

    Thank you very much.

     

    Best Regards,

     

    Petru

    #61307

    Thanks. I will have a look at this next week. Remind me if I don’t

    #61348
    Fr7

    Hi Petrus,
    I tried to make your system, but I can not get the signal of divergence ……. Let’s see if Nicolás can improve it. I leave the indicator so you can see it and tell me where the fault may be.

     

    1 user thanked author for this post.
    #61351
    Fr7

     

    #61353
    Fr7

    Here the code without divergences

     

    1 user thanked author for this post.
    #61374

    Thank you and I appreciate very much your help. As I mentioned it is a great forum and people like Nicolas, you and others is keeping it alive. Unfortunately my programming skills are not great but gladly I can share my ideas written in spreadsheets.

    #61805

    Hi again,

    I do get ‘syntax error’ when I am using the code (see attached). Help me to fix this error, please. May be I am doing something wrong , but I don’t know where can be.

     

    Regards]

    Petru

    #61814

    ProScreener does not support graphic keywords, like BACKGROUNDCOLOR etc…, just comment them out. The code above is an indicator, you must work a tiny bit on it to convert it to a ProScreener code.

    Please attach only .ITF files for import and screenshots for examples or to show issues you may encounter, or at most text files. Avoid attaching .PDF and especially .DOCx files, since many members might not have them installed thus reducing your chances to be helped.

    1 user thanked author for this post.
    #61820

    I will try. I hope I can make it work.

    #61840

    Fr7 has made an indicator for you (thanks to him), not a screener. Here is my own view of your query:

    Not so much results, c1 condition is very restrictive. Are you sure about c2 (where bolling upper band is superior to its previous one AND the same for the bollinger lower band).

     

     

    2 users thanked author for this post.
    #61853
    Fr7

     

    2 users thanked author for this post.
    #61859
    Fr7

    Here is the screener. In this are not divergences, you can try mine or Nicolas. And will say what is most appropriate.

    #61945

    Hi Nicolas and Fr7,

    Nicolas, you’re right. My conditions are too restrictive and how market behaved in the last few days I don’t have many hits. I have to change a little bit.

    Fr7, it is not what I wanted but for sure can be modified and I can use it. I wanted to compare the actual Bollinger difference with minimum (minimal or lowest) difference between bands in the last 100 periods with the same settings, not Bollinger bands with 100 periods as SMA and 2 standard deviations for BS100 and BI100, may be I wasn’t clear in my request

    Thank you both of you for your help.

    Regards,

    Petru

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