Rank:: Newbie
Groups: Registered, Registered Users Joined: 3/8/2011(UTC) Posts: 3
|
I am a new user in Metastock. I would like to write a formula to scan securities reaching the top and bottom of bolliger bands. Please help me.Thank you.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
Create an indicator with the upper and lower bands as variables:
a1:=BBandBot( , , , ) ; a2:= BBandTop( , , , ) ;
Then use the Cross() function if you want to know if they cross Close or: something like:
a3:=100*((a2-C)/(a2-a1)); a3
to plot where the close is relative to the band width.
|
|
|
|
Rank:: Newbie
Groups: Registered, Registered Users Joined: 3/8/2011(UTC) Posts: 3
|
There are many columns. Can you show what should I input in each columns? Thank you.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
Copy this into a new indicator:
a1:=BBandBot(C,14,S,2); a2:=BBandTop(C,14,S,2); a3:=100*((C-a1)/(a2-a1)); a3;100;0
This indicator tells you where the close is relative to the upper and lower BB.
|
|
|
|
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.