Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() | Marc is close but his formulae are missing a [1] on the right side. Here's what you need, I think ... a scan that identifies stocks that were VERY CLOSE TO the lower BB yesterday. "Very Close" is usually defined as a fraction of ATR (as Marc suggested) ... another way is to make it a percentage of price. If you're looking for any part of the bar being close to the lower BB yesterday (ie a bit above, a bit below, or exact hit), this should do it for you: Abs( BOL_Lower(13,2)[1] - L[1] ) < ATR(14)[1] / 20 You can adjust the ATR periods, or the divisor, as you wish. I suggest you try out the scan and check the results on a chart before messing with it. === OTOH === If you're looking for a stock whose HIGH is close to the lower BB (ie the bar is mostly below the BB): Abs( BOL_Lower(13,2)[1] - H[1] ) < ATR(14)[1] / 20 === FINALLY === If you're looking for a bar that STRADDLES the lower BB yesterday: H[1] >= BOL_Lower(13,2)[1] and BOL_Lower(13,2)[1] >= L[1] [Edited by Jim Dean on 6/30/2011 4:44 PM] |