(1) i want to have all number in 5 digit
DoubleToString(100,5);https://docs.mql4.com/convert/doubletostring
(2) how to make to get 200000 candle info or more candle?
Tools > Options > Chart
(3) right now when the file is open it donot make change in file

- docs.mql4.com
(1) i want to have all number in 5 digit
https://docs.mql4.com/convert/doubletostring(2) how to make to get 200000 candle info or more candle?
Tools > Options > Chart
(3) right now when the file is open it donot make change in file
Thanks a lot,
Could you please add these that you meantion in the code 🙏🥰🥰🥰
Thanks a lot,
Could you please add these that you meantion in the code 🙏🥰🥰🥰
You will never learn to code, if you don't try to code it.
Show your tries.. woking with files is easy.. if you get any problem, update the code here and I can help you.DoubleToString(100,5);
before FileWrite but still its ignore "0" when "0" is at the end of number!
i put it like this
int out_hist(string ccy, int tf) { string fname = ccy + "," + tf + "000.csv"; // Same folder for each TF (...\experts\files) //string fname = "TF-" + tf + "\\" + ccy + "," + tf + "000.csv"; // Different subfolder for each timeframe int handle = FileOpen(fname, FILE_CSV|FILE_WRITE, ","); // "," means that output data will be separated by commas; change if necessary if(handle>=0) { DoubleToString(100,5); FileWrite(handle,"Date,Time,Open,Low,High,Close,Volume"); // This writes the Header record to the file (change or remove to suit) for(int i=0; i<=iBars(ccy,tf); i++)
could you please help me about (( FileFlush )) what code and where i add that when file is open its work?
hi , thanks alot, i put
before FileWrite but still its ignore "0" when "0" is at the end of number!
i put it like this
could you please help me about (( FileFlush )) what code and where i add that when file is open its work?
DoubleToString(100,5);
alone this command is useless. You have to put the return from its convertion to some variable:
ExampleL
string myNumberWithFiveDigits = DoubleToString(100,5);
Have you ever programmed in any other computer language ? This is C Language, the example you did demonstrates you dont know the CONCEPT of programming languages.
You better study the Concepts, to later choose a language to learn. Otherwise yout mind will create a huge confusion about how programming works, which you lead you to future learning difficulties.
First what comes first, then later what comes after the first things.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi below code is export data from mt4 to txt or csv , (1) i want to have all number in 5 digit , now when last number is 0 its donot write it exmpale it write 1.22320 --> 1.2232 ?
And also (2) how to make to get 200000 candle info or more candle?
and one more quastion (3) right now when the file is open it donot make change in file and the file must be close that this indicator export new data in it how to make it possible that when the file is open it make new candle information on the file?
(4) is it possible to have info in separate CELL in excel ? (right now its make all info in one CELL i mean to have for example OpenPrice in A2 ClosePrice in B2 and ...