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: ABOUT CREATING bOLLINGER BANDS SCAN ?
Posted : 8/17/2015 6:39 PM
Post #35650 - In reply to #35649

There could be two reasons for not getting any hits (if the compile is correct):
1. the starting population is too small, or
2. the formula is not doing what you hoped

The first is easy to check ... just set population to All US Stocks.

If still no hits, then break the formula down to smaller pieces and make sure each piece works right ...
-Sum( (Bol_Upper(9,1.2)[1] > Bol_Upper(9,1.2)[2] and Bol_Lower(9,1.2)[1] > Bol_Lower(9,1.2)[2]), 4) = 4 and Bol_Upper(9,1.2) < Bol_Upper(9,1.2)[1]

would become:
Bol_Upper(9,1.2) < Bol_Upper(9,1.2)[1]
(check it by itself)
... and ...
-Sum( (Bol_Upper(9,1.2)[1] > Bol_Upper(9,1.2)[2] and Bol_Lower(9,1.2)[1] > Bol_Lower(9,1.2)[2]), 4) = 4
(check it by itself)

if the first piece works but the second doesn't, break the second down:
Bol_Upper(9,1.2)[1] > Bol_Upper(9,1.2)[2] and Bol_Lower(9,1.2)[1] > Bol_Lower(9,1.2)[2]
(checks for just one bar before current to be "up"
... if that works, then try this form, which should give the same results:
-Sum( (Bol_Upper(9,1.2)[1] > Bol_Upper(9,1.2)[2] and Bol_Lower(9,1.2)[1] > Bol_Lower(9,1.2)[2]), 1) = 1


if that works, then gradually increase the two final "1's" to 2's then 3's then 4's ... each time you add another test, it gets tougher to satisfy and you will get fewer hits.

I can't take time to do a full development and tuning process for you ... but hopefully that "plan" will lead you to a solution, or at least to help focus on the problem area.


Deleting message 35650 : RE: ABOUT CREATING bOLLINGER BANDS SCAN ?


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