I have been searching the forums for some code without success which helps identifies assets where the Bollinger Bands are squeezing togther during the past (x) periods. Is anyone able to help please. Thanks in advance.
Hi Simon,
You can try the screener below…
In this screener, the BBWidth is the “narrowest” over the last 120 (trading) days…
(You can change the number of days)
Bollinger BandWidth
1
2
3
BBWidth=BollingerBandWidth[20](Close)
C1=BBWidth<=Lowest[120](BBWidth)//120 trading days
Thank JS appreciate your reply. On second thoughts what I think I am really looking for is a period (x) of time where the lower and upper bands are moving sideways. Thanks.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue