int hFile = FileOpen(IndExportFileName, FILE_CSV | FILE_ANSI | FILE_WRITE | FILE_REWRITE, ",", CP_ACP);
REwrite isn't defined for FileOpen. Since you are writing the file completely, you don't want read.
File
Functions / FileOpen - Reference on algorithmic/automated trading language for MetaTrader 5
File
Functions / FileCopy - Reference on algorithmic/automated trading language for MetaTrader 5
William Roeder:
I think this issue does not result in wrong values, or I am wrong?
REwrite isn't defined for FileOpen. Since you are writing the file completely, you don't want read.
File
Functions / FileOpen - Reference on algorithmic/automated trading language for MetaTrader 5
File
Functions / FileCopy - Reference on algorithmic/automated trading language for MetaTrader 5
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
Hello, I try to get data from custom indicator (CustomIndicator), which shows a histogram of values between -2000 and 2000. I don't have source code of CustomIndicator
The code of script is as follows. As an example I used also other indicators (Stochastik and Williams). The resulting file mt5export.csv has correct values for Stochastik and Williams, but strange values for CustomIndicator, for example '0.0000000000', '-1809763237966210544315555930765042774681059328.0000000000' or even '14157495007440318255220461244635233750276190992296988497933634536158460323864765893608118071358733691783097890112221762587271787859631941052368234162851957343624540101891009798444483629279084544.0000000000'
I am not good at mql5, so I don't understand how to debug it and what is going wrong.
How to get correct values of CustomIndicator?