Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 10/16/2009(UTC) Posts: 34
|
Hello everyone,
really sorry for my poor english.I'm trying to normalizie a price series,starting a certain price(i.e 40 bars price ago).This will be my base((ref(C,-40)/ref(C,-40))*100.Then,the following price will be (Ref(C,-39)/Ref(C,-40))*100 and so on.
How can i write it in Metastock language?
Thank you
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
You can do something like below if you are trying to nail down a price at a specific time: a1:=If((Year()=2009) AND (Month()=5) AND (DayOfMonth()=20),C,PREV); a1
I am guessing that is what you are looking for.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 10/16/2009(UTC) Posts: 34
|
Thank you,johnl, for your reply.
|
|
|
|
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.