Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 9/2/2018(UTC) Posts: 1
Thanks: 1 times
|
Hello, this is my first question here. Sorry if there is any problem. Consider I have imported data of 1K stocks in metastock, then I like to find which stock's today's price is less than half of it's maximum history price? How should I code it as a filter?
Thank you in advanced!
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Originally Posted by: rezaeeeee Hello, this is my first question here. Sorry if there is any problem. Consider I have imported data of 1K stocks in metastock, then I like to find which stock's today's price is less than half of it's maximum history price? How should I code it as a filter?
Thank you in advanced!
One way you could write this is as follows: Filter C < HHV(C,LastValue(Cum(1)))/2
LastValue in this case is used to bypass the limitation of needing to use a fixed/constant value with a function like Cum(1) which cumulates all the price bars loaded dynamically.
|
1 user thanked MS Support for this useful post.
|
|
|
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.