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

Notification

Icon
Error

Options
Go to last post Go to first unread
Sev  
#1 Posted : Thursday, January 12, 2006 1:40:11 PM(UTC)
Sev

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 1/12/2006(UTC)
Posts: 4

Following the Metastock indicator guide. I don't have any problems, but I expected a different 'binairy wave'. [code:1:5ca1c01ef0]If( C>Mov(C, 40 ,S),1,0)[/code:1:5ca1c01ef0] I would expect true values of 1 or 0, however, before a change you get the values between 0 and 1, in the form of a very steep line. Can I setup Metastock to only give 0 or 1 as output?
Jose  
#2 Posted : Thursday, January 12, 2006 2:58:20 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Try plotting your indicator in a histogram style. Right-click on indicator plot -> Properties -> Color/Style -> Style: Histogram. jose '-)
sportrider  
#3 Posted : Thursday, January 12, 2006 5:24:05 PM(UTC)
sportrider

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/12/2005(UTC)
Posts: 141
Location: Brooklyn,NY

Sev, You could write this formula as {C>MOV(C,40,S)}.This will automatically plot a"1" or a"0". With the way the "if "function is worded you are telling it to do what it will do anyway which is plot a "1" for true or a "0" for false,since is in binary form already.
Sev  
#4 Posted : Thursday, January 12, 2006 8:17:21 PM(UTC)
Sev

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 1/12/2006(UTC)
Posts: 4

Jose wrote:
Try plotting your indicator in a histogram style. Right-click on indicator plot -> Properties -> Color/Style -> Style: Histogram. jose '-)
Thanks for your tip. However I could not select histogram as display option in Metastock 8. After all, MS formula gives the correct output of either 1 or 0
Jose  
#5 Posted : Friday, January 13, 2006 11:25:12 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Sev, follow the instructions - it's all there in MSv8.0 Right-click on indicator plot -> Properties -> Color/Style -> Style: Histogram. jose '-)
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.