Posted By: Grat
dataParse - format string - 06/07/19 18:32
Hi,
I have data in the csv:
1551356100;rsi_14;7;0;rsi_7;0;9;willr_27;0;9;willr_60;8;0;99.25;99.01
1551357000;rsi_14;6;9;rsi_7;0;9;willr_27;0;9;willr_60;8;0;99.34;99.11
1551357900;rsi_14;5;9;rsi_7;0;5;willr_27;0;9;willr_60;8;0;98.98;97.78
and format string:
string Format = "%t;;i1;i2;;i3;i4;;i5;i6;;i7;i8;f1;f2";
with test:
2019-02-28 12:15 1120305152 1120273695 0 9 0 9 8 0 0
2019-02-28 12:30 1120316948 1120286802 0 9 0 9 8 0 0
2019-02-28 12:45 1120269763 1120112476 0 5 0 9 8 0 0
2019-02-28 13:00 1120288113 1120229130 9 4 0 9 9 0 0
2019-02-28 13:15 1120260588 1120105923 9 3 0 9 9 0 0
2019-02-28 13:30 1120223887 1119966986 9 2 3 9 9 0 0
first 2 integer (red) are missing in the dataset. Know anybody, where I have bug?
Thanks Milan
I have data in the csv:
1551356100;rsi_14;7;0;rsi_7;0;9;willr_27;0;9;willr_60;8;0;99.25;99.01
1551357000;rsi_14;6;9;rsi_7;0;9;willr_27;0;9;willr_60;8;0;99.34;99.11
1551357900;rsi_14;5;9;rsi_7;0;5;willr_27;0;9;willr_60;8;0;98.98;97.78
and format string:
string Format = "%t;;i1;i2;;i3;i4;;i5;i6;;i7;i8;f1;f2";
with test:
Code:
for (Row=0;Row<6;Row++){ printf("n %s", strdate("%Y-%m-%d %H:%M", dataVar(nHandle,Row,0))); for (i=1;i<10;i++) printf(" %d",dataInt(nHandle,Row,i)); }
2019-02-28 12:15 1120305152 1120273695 0 9 0 9 8 0 0
2019-02-28 12:30 1120316948 1120286802 0 9 0 9 8 0 0
2019-02-28 12:45 1120269763 1120112476 0 5 0 9 8 0 0
2019-02-28 13:00 1120288113 1120229130 9 4 0 9 9 0 0
2019-02-28 13:15 1120260588 1120105923 9 3 0 9 9 0 0
2019-02-28 13:30 1120223887 1119966986 9 2 3 9 9 0 0
first 2 integer (red) are missing in the dataset. Know anybody, where I have bug?
Thanks Milan