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

Notification

Icon
Error

Options
Go to last post Go to first unread
matt678  
#1 Posted : Tuesday, February 6, 2007 7:50:25 AM(UTC)
matt678

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/16/2007(UTC)
Posts: 3

Hi, Does anyone know of a way to plot discrete values with a custom indicator? Or more precisely, is there a way to force Metastock into not plotting anything when a given condition is false, as apposed to Metastock plotting 0, so as to create an indicator with discontinuities? Thanking you in advance for your help, Matt
hayseed  
#2 Posted : Tuesday, February 6, 2007 10:59:42 AM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey matt..... you can trick meta into not plotting the 0 if false ...... or at least a long as no negative numbers are involved.....

we can have indicators where we see nothing more than dashes/trues.... create your indicator first, set style to histogram dots , size to 4 and then limit the window to something like a minimum of .2 .......

quick example below will give ya an idea of how.....h

------------------------------

{set style to histogram dots, size to 4 and set window minimum to .2}

a:= If(C>Mov(C,3,S),1,0);
aa:=If(C>Mov(C,10,S),2,0);
aaa:=If(C>Mov(C,10,S),3,0);
aaaa:=If(C>Mov(C,20,S),4,0);

a;aa;aaa;aaaa;

------------------------------

matt678  
#3 Posted : Tuesday, February 6, 2007 3:08:09 PM(UTC)
matt678

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/16/2007(UTC)
Posts: 3

It works! Fortunately I don’t need to plot negative numbers, Thanks for your help, Matt
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.