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
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
How about:
a1:=If(H>PREV,H,PREV); a1
|
|
|
|
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.