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

Notification

Icon
Error

Options
Go to last post Go to first unread
rsdamha  
#1 Posted : Saturday, October 31, 2009 5:51:41 AM(UTC)
rsdamha

Rank: Newbie

Groups: Registered, Registered Users
Joined: 9/11/2009(UTC)
Posts: 2

Hi , How can I write a code that gives me a continuous value if condition A is continuing true.lets try this by using volume with condition ( value remains max ): day --------- volume 1---------------- 5 2---------------- 2 3---------------- 3 4---------------- 6 At day 1 value is 5 day 2 value is 5 day 3 value is 5 day 4 valye is 6 How can I write this with metastock? Thank you
johnl  
#2 Posted : Saturday, October 31, 2009 8:05:01 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

How about:

a1:=If(H>PREV,H,PREV);
a1


rsdamha  
#3 Posted : Sunday, November 1, 2009 2:09:56 AM(UTC)
rsdamha

Rank: Newbie

Groups: Registered, Registered Users
Joined: 9/11/2009(UTC)
Posts: 2

Thank you johnl. It is working.
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.