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

Notification

Icon
Error

Options
Go to last post Go to first unread
Andrew7267  
#1 Posted : Saturday, November 23, 2019 5:57:51 AM(UTC)
Andrew7267

Rank: Newbie

Groups: Registered, Registered Users, Unverified Users
Joined: 11/30/2013(UTC)
Posts: 5
Location: Tasmania - Australia

Say for a 52 week high explorer on weekly data.

I want to only look at securities that have at least 100 weeks of data available - how can I code that?

I tried BarsSince() but it seems messy.

Cheers,

Andrew

MS Support  
#2 Posted : Monday, December 2, 2019 3:25:32 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,588

Thanks: 50 times
Was thanked: 125 time(s) in 121 post(s)
Originally Posted by: Andrew7267 Go to Quoted Post

Say for a 52 week high explorer on weekly data.

I want to only look at securities that have at least 100 weeks of data available - how can I code that?

I tried BarsSince() but it seems messy.

Cheers,

Andrew

Hello,

You might be able to try something like Cum(1)>=50 which essentially cumulates a "true" condition on each data point. Any security with less than 50 data points should then get sent to the Rejects tab of the report.

Users browsing this topic
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.