Hi, I am having trouble retrieving the correct row for a timeperiod in a dataset. I am using dataParse to read in a csv file and then trying to find the corresponding row for the bar's timeperiod. Here is the code:
to read and parse:
string Format = "%Y-%m-%d %H:%M:%S,f"; int RecordsEUR1H = dataParse(1,Format,InNameEUR1H);
and then:
int RowEUR1H = dataFind(1,wdate());
it returns the attached for this print: printf("n Date: %s, Row: %i, Value: %f",strdate("%Y-%m-%d %H:%M:%S",wdate()),RowEUR1H, dataVar(1,RowEUR1H,1));
It looks as if dataFind returns a record for every 2nd or so timeperiod BEFORE the given date? How can i make sure that it return a record for the exact timeperiod? data for that timeperiod is available in the dataset as you can see.
thanks for the help in advance. I am using Zorro S 1.72 but tried it on S 1.66 and it is the same.
Entire Thread
Subject
Posted By
Posted
dataFind() does not return the correct row for a timeperiod