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
  • 4 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?

1 reply

geomancer
Evangelist
Forum|alt.badge.img+47
  • 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