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

Notification

Icon
Error

Options
Go to last post Go to first unread
rezaeeeee  
#1 Posted : Sunday, September 16, 2018 6:24:29 PM(UTC)
rezaeeeee

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!

MS Support  
#2 Posted : Monday, September 17, 2018 3:32:30 PM(UTC)
MS Support

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 Go to Quoted Post

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.

thanks 1 user thanked MS Support for this useful post.
rezaeeeee on 9/19/2018(UTC)
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.