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

Notification

Icon
Error

Options
Go to last post Go to first unread
terryhui  
#1 Posted : Monday, March 7, 2011 10:34:18 PM(UTC)
terryhui

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.
johnl  
#2 Posted : Tuesday, March 8, 2011 7:16:50 PM(UTC)
johnl

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.

terryhui  
#3 Posted : Wednesday, March 9, 2011 7:45:17 AM(UTC)
terryhui

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.
johnl  
#4 Posted : Wednesday, March 9, 2011 6:48:38 PM(UTC)
johnl

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.