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.
|
|
|
|
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
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 3/24/2008(UTC) Posts: 22
|
thks for help.
but exploration are all 0,sth missing ?
|
|
|
|
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.