logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
bull&bear  
#1 Posted : Wednesday, August 5, 2009 1:52:43 AM(UTC)
bull&bear

Rank: Member

Groups: Registered, Registered Users
Joined: 3/24/2008(UTC)
Posts: 22

How do write a formula that tells me the Bollinger Band has just started or started to expand for the past 2 or 3 or 5 dys ago.
Data  
#2 Posted : Tuesday, September 1, 2009 2:33:19 AM(UTC)
Data

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 5/20/2008(UTC)
Posts: 53

bull&bear wrote:
How do write a formula that tells me the Bollinger Band has just started or started to expand for the past 2 or 3 or 5 dys ago.

That would be :
time:=20;
barssince(cross(stdev(C,time)-ref(stdev(C,time),-1),0)<=5
bull&bear  
#3 Posted : Saturday, September 12, 2009 2:18:37 AM(UTC)
bull&bear

Rank: Member

Groups: Registered, Registered Users
Joined: 3/24/2008(UTC)
Posts: 22

thks for help.

but exploration are all 0,sth missing ?

Data  
#4 Posted : Saturday, September 12, 2009 3:01:19 AM(UTC)
Data

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 5/20/2008(UTC)
Posts: 53

Sorry, The last bracket was missing.. The correct formula would be :
time:=20;
BarsSince(Cross(Stdev(C,time)-Ref(Stdev(C,time),-1),0))<=5


This is for a 20 periods bollinger band.
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.