Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
I am using the following Bollinger Bands formula that looks for stocks whose Upper and Lower Bands are closing in to each other ( tightening ), want to scan for two other setups that if both of the UPPER and LOWER have been going UP for at least 4 bars then on the last bar the UPPER BAND TURNED DOWN 1 bar ago, then show me those stocks.
Then at the opposite direction is that if both of the UPPER and LOWER BANDS have been going DOWN for at least 4 bars then on the last bar the LOWER BAND TURNED UP 1 bar ago, then show me those stocks.
This is what I am now using for TIGHTENING BANDS
Bol_Upper(9,1.2) < Bol_Upper(9,1.2)[1] and Bol_Lower(9,1.2) > Bol_Lower(9,1.2)[1] |
Hi, Gerry
Your description is good but seems contradictory in one regard. If you are requiring the U+L to go up for at least 4 bars, then how could the Upper turn down on the bar before the current one (if it's also going up)?
Do you mean, for shorts ...
On current bar, Upper is down vs the bar before, and for 4 bars before that, U+L are both up ... and reverse for longs?
[Edited by Jim Dean on 8/17/2015 1:06 PM]
|