Skip to main content
Solved

I am looking extract data from a csv file, (1) all open orders and (2) all closed orders within the last 90 days. Any recommendations. Thanks

  • April 4, 2023
  • 1 reply
  • 6 views

Forum|alt.badge.img
I am looking extract data from a csv file, (1) all open orders and (2) all closed orders within the last 90 days. Any recommendations. Thanks

Best answer by geomancer

Read the CSV file. Then filter the features:

All open orders will be the features where the attribute indicating the closing day is null (or zero? or ...?).

To determine all closed orders within the last 90 days calculate the number of days between today (@DateTimeNow()) and the attribute indicating the closing day for the features where this attribute is not null.

Some date conversions may be needed.

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • Best Answer
  • April 4, 2023

Read the CSV file. Then filter the features:

All open orders will be the features where the attribute indicating the closing day is null (or zero? or ...?).

To determine all closed orders within the last 90 days calculate the number of days between today (@DateTimeNow()) and the attribute indicating the closing day for the features where this attribute is not null.

Some date conversions may be needed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings