Sign in
|
Join
|
Help
in
Formula Assistance (forum)
Product and Service Development (group)
(Entire Site)
Search
Home
Blogs
Discussions
Images
Files
External News
Equis International Online Com...
»
Product and Service Developmen...
»
Formula Assistance
»
How to find out security with the most narrow bollinger band in X period
How to find out security with the most narrow bollinger band in X period
Last post 11-26-2009, 8:08 by
johnl
. 4 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
09-13-2009, 3:05
30703
bobylam
Joined on 06-25-2009
Posts 11
How to find out security with the most narrow bollinger band in X period
How to find out security with the most narrow bollinger band in X period.
for example: X=300
thanks for your supports.
Post Points: 35
Report abuse
09-13-2009, 7:11
30706
in reply to
30703
Data
Joined on 05-20-2008
Posts 53
Re: How to find out security with the most narrow bollinger band in X period
Here's one way to do that for a 20-periods bollinger bands.
Open the Explorer. Create the new exploration " Most narrow Boll" (spaces are important).
Name ColA "Lowest". Then put in this formula :
X:=300;
LLV(stdev(C,20),X)
Then run the exploration on your securities, look at the reports and double-click on the lowest column to sort the securities by the lowest value of bollinger bands.
That being said, it's not really usefull because security prices are different which means you can't compare the bollinger bands of a security to that of an other. I'd create a column B named "ratio" with this formula :
X:=300;
LLV(StDev(C,20)/mov(StDev(C,20),100,E),X)
Post Points: 20
Report abuse
09-13-2009, 8:52
30711
in reply to
30706
bobylam
Joined on 06-25-2009
Posts 11
Re: How to find out security with the most narrow bollinger band in X period
data,
thanks for your useful supports.
Post Points: 5
Report abuse
11-26-2009, 6:40
31329
in reply to
30703
lifelongfool
Joined on 11-26-2009
Posts 1
Re: How to find out security with the most narrow bollinger band in X period
Dear,
I'm a newbie looking for help. I'd like to explore securities with following criteria:
Bollinger bands: the narrowest the best (just compared with itself)
EMA (20 and 40): sideways and moving in nearly the same line
tks a lot
Post Points: 20
Report abuse
11-26-2009, 8:08
31331
in reply to
31329
johnl
Joined on 11-08-2005
Posts 388
Re: How to find out security with the most narrow bollinger band in X period
Try coding like this:
{My variables}
a1:=BBandBot(C,20,S,4)-BBandTop(C,20,S,4);
a2:=Mov(C,20,E);
a3:=Mov(C,40,E);
{------------------------------------}
{Bollinger bands: the narrowest}
b1:=LLV(a1,100);
b2:=((a1-b1)/b1)*100;
b3:=(b2<5);
{------------------------------------}
{sideways}
c1:=HHV(a2,20)-LLV(a3,20);
c2:=c1<(0.1*C);
{------------------------------------}
{and moving in nearly the same line}
d1:=Mov(c1,20,S);
d2:=(Stdev(d1,20)<5);
b3*c2*d2
Write a sentence of what you want, break it out into segments, bracket the English,
then code each segment. This keeps you organized and it is easier to maintain and
change since the English is easier to read. Try plotting each b3,c2,d2 separately to
see if you want to change one, then just change the code.
Post Points: 5
Report abuse
Copyright © 2009 Equis International, a Thomson Reuters company. All rights reserved.
Community Dedication
|
Membership Policy
|
Community Rules
|
Privacy
|
About