A code can't "skip entries", it does what is coded using the input you provided (the file).
Can you post the csv file ?
2020.05.18 20:29,XAUUSD,Sell,,"1,728.10"
You said it is a comma separated file and are reading five (5) items per line. Those two lines, for example, have six (6) items and the last two are not numbers. «"1» is not a number, as is «728.07"»
2020.05.18 20:29,XAUUSD,Sell,,"1,728.10"
You said it is a comma separated file and are reading five (5) items per line. Those two lines, for example, have six (6) items and the last two are not numbers. «"1» is not a number, as is «728.07"»
1. My example I quoted was for "GBPJPY" not "XAUUSD".
2. The last number is One thousand seven hundred and twenty eight (point) zero seven. It has a comma separator for the thousand. So there are 5 items.
That is what a Human would read it as. The machine reads quote1 which is not a number! Your reading is bogus from the first quote read.
That is what a Human would read it as. The machine reads quote1 which is not a number! Your
reading is bogus from the first quote read.
mmm..so how does it read it and print it out. What is quote1? What do you mean my reading is bogus? Please back up comments like this with an explanation?
It reads the file and prints it fine so what am I to expect! It should therefore handle it as well.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am reading data from a csv file but not all of the data is being read. The code I am using is below:
As an example I read the data file from a chart of "GBPJPY" - this returned 21 entries in the Print statement. If I look at the number of entries in the raw csv file there are 95.
I have checked over every entry individually in the csv file and the code seems to skip entries before picking up again down the list of "GBPJPY".
Has anybody else had similar experience?