kraalarw 18 posts msg #156070 - Ignore kraalarw |
3/9/2021 8:56:28 AM
I'm needing some help writing code for a particular Bollinger Band Squeeze with an Expansion on the current day. Wanting the Upper Band to be decreasing, and the Lower Band to be increasing......for say the past (5) days. Then on the current day (at the close of market) the Upper Band needs to be Higher than the previous day, and the Lower Band needs to be Lower than the previous day. Any assistance with the code for this will be greatly appreciated. Here is the code I've been working on:
count(upper bollinger band(8) 1 day ago < upper bollinger band(8) 2 days ago) equals 5
count(lower bollinger band(8) 1 day ago > lower bollinger band(8) 2 days ago) equals 5
and (upper bollinger band(8) today > (upper bollinger band(8) 1 day ago
and (lower bollinger band(8) today < (lower bollinger band(8) 1 day ago
and volume above 50,000
and price above 1
and price is below 20
and chart-time is 3 months
and not ETF
|