New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.
Bollinger band tight range
Hi,
I'm looking for a tight range Bollinger band squeeze or just a flat consolidation between 8-14 days.
Best Regards,
Max.
0
Comments
see the very bottom of the page
You could also try the min( ) and max( ) functions to specify a range over some number of days. You can search Help for how to use min( ) and max(). If your run into a problem, post what you have.
and [BB Width(20,2) < 6] Here I want the last 15 days to be below 6
and [country is US]
and [volume > 200,000]
[country is US]
and [type = stock]
and [Daily SMA(20,Daily Volume) > 40000]
and [volume > 200,000]
and [BB Width(20,2) < 6]
You want to put the BBWidth indicator inside the max( ) function.
The max( ) function is documented here:
https://stockcharts.com/docs/doku.php?id=scans:functions
The first term inside the parens is the look back period (for you, 15). The second term is the value to look at - for your BB Width(20,2).
Some of its uses and coding examples are here:
https://stockcharts.com/docs/doku.php?id=scans:advanced_scan_syntax:min_max_scans
[country is US]
and [type = stock]
and [Daily SMA(20,Daily Volume) > 40000]
and [volume > 200,000]
and [max(30,BB Width(20,2)) < 6]
and [group is not ETF]
[country is US]
and [type = stock]
and [group is not ETF]
and [Daily SMA(20,Daily Volume) > 40000]
and [volume > 200,000]
and [max(30,BB Width(20,2)) < 6]