- Please edit
your (original) post and use the CODE button
(Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor - Is the file ANSI or Unicode and which did you use to open the file?
- Please edit
your (original) post and use the CODE button
(Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor - Is the file ANSI or Unicode and which did you use to open the file?
FileOpen(getActiveFileName(), FILE_CSV|FILE_READ|FILE_WRITE, ',');
I use that, it is csv file
then the value of var dataActiveSignals is written to openSignal-6-2019.csv file by using function code as follows:
I have file activeSignal-6-2019.csv and openSignal-6-2019.csv.
activeSignal-6-2019.csv, the data is
04 June 01:06 PM GMT+3,GBPNZD,SELL,1.9267,1.9157,1.9117,1.9037
openSignal-6-2019.csv get the data
04 June 01:06 PM GMT+3,GBPNZD,SELL,1.9267,1.9157,1.9117,
the value 1.9037 not written
dataActiveSignals[6][0] shows empty string, how can I get the value from activeSignal-6-2019.csv?
The sequence of these 3 lines are wrong:
: if(FileIsEnding(activeSignalsFileHandle)) break; //FileIsLineEnding = End of Line dataActiveSignals[col][row]=temp; //save reading result to array Print(temp); :
Should change to:
: dataActiveSignals[col][row]=temp; //save reading result to array Print(temp); if(FileIsEnding(activeSignalsFileHandle)) break; //FileIsLineEnding = End of Line :
Or else the last field of the last line will never be assigned into your dataActiveSignals array.
The sequence of these 3 lines are wrong:
Should change to:
Or else the last field of the last line will never be assigned into your dataActiveSignals array.
ok thanks. It works. :)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
then the value of var dataActiveSignals is written to openSignal-6-2019.csv file by using function code as follows:
I have file activeSignal-6-2019.csv and openSignal-6-2019.csv.
activeSignal-6-2019.csv, the data is
04 June 01:06 PM GMT+3,GBPNZD,SELL,1.9267,1.9157,1.9117,1.9037
openSignal-6-2019.csv get the data
04 June 01:06 PM GMT+3,GBPNZD,SELL,1.9267,1.9157,1.9117,
the value 1.9037 not written
dataActiveSignals[6][0] shows empty string, how can I get the value from activeSignal-6-2019.csv?