Γιάννης Χριστόπουλος: I am trying for 2 days now a way to read the file
Per line, you have two read strings (date and time) and three read doubles (price, TP, SL). There is no splitting required. What's the problem?
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using SRC).
How To Ask Questions The Smart Way. 2004
Be precise and informative about your problem
We can't see your broken code.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi. I have coded an EA for FXCM TS2, in .lua language from which i export from backtesting, the
1) Date Time,
2) Price ,
3) SL(in pips) ,
4) TP (in pips).
in a Symbol.csv file, as shown bellow.
04/1/2016,08:00,1.09057,153.6,133.6
05/1/2016,11:00,1.0721,224.1,194.1
07/1/2016,14:00,1.09006,310.5,280.5
I am trying for 2 days now a way to read the file, split the lines, and split its line by delimiter (,)
to assign them to variables , so i can code an EA that will read the csv and open the trades.
My problem is that i have been lost in the FileRead sections and i need some help .
Not for opening the orders. But i really need help to Read and Split the file.