OmniTrader Forum OmniTrader Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Help - Omniscript for BB Scan
Posted : 6/30/2011 4:38 PM
Post #24439 - In reply to #24438

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]

Deleting message 24439 : RE: Help - Omniscript for BB Scan


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.