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 1:05 PM
Post #35647 - In reply to #35646

Solution uses the "Sum" function to accumulate "votes" for successive condition rules to be valid (-sign is important since it converts the sum of four "trues", each = -1, to a positive number):

For shorts, this identifies the run of U+L up's with the most recent bar's Upper having just turned down ...
-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]

For longs, this identifies the run of U+L dn's with the most recent bar's Lower having just turned up ...
-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_Lower(9,1.2) > Bol_Lower(9,1.2)[1]

I'm not clear how you want to integrate a squeeze with this, so I'll leave that to you ... and btw I have not tested this re syntax or validity, but it's pretty straightforward so hopefully you're good to go.
Deleting message 35647 : RE: ABOUT CREATING bOLLINGER BANDS SCAN ?


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