Bollinger Band Breakout

How do I create a scan that shows a stock that has broke out the top of the Bollinger band more than once? This is what I have so far.

[type = stock]
and [ [exchange is NYSE] or [exchange is NASDAQ] ]
and [SMA(20,close) x Upper BB(20,2) < close]

Comments

  • You would have to specify the instances when the breaks occurred, e.g. 1 day ago and 3 days ago, 2 days ago and 7 days ago, etc.

    Alternatively, you could run a break scan today, put the results in a list, then run the scan again on subsequent days against that list.

    Another method might be to test for BBWidth today, greater than BBWidth some time in the past. That doesn't guarantee a break, but it might help find stocks with similar characteristics.
  • Thank you for your assistance I will build off your advice