Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1133
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
How to replace Sleep(500) function in the indicator?
by nothing, unfortunately... You cannot stop the flow of the indicator.
Revise the logic of the indicator...
It only writes one "iii" while I need it to add a "iii" to each tick. Where did I go wrong?
Open the file in oninit, close it in deinit. That's how it works for me)))
It only records one "eeee" while I want it to be completed with every tick. Where did I go wrong?
Because the FILE_WRITE flag creates a NEW file each time it is opened. To be able to append something to existing file, it is necessary to open file for reading and writing.
Because the FILE_WRITE flag creates a NEW file each time you open it. To be able to add something to an existing file, you must open the file for reading and writing.
Didn't notice, sorry....
Because the FILE_WRITE flag creates a NEW file each time it is opened. To be able to add something to an existing file, you must open the file for reading and writing.
So, it should be FILE_SHARE_READ
FILE_SHARE_READ
128
Shared read access by multiple programs. This flag is used when opening files (FileOpen()), but does not replace the need to specify FILE_WRITE and/or FILE_READ when opening a file
It does not. And in general, it's better not to open and close the file on every tick
It allows shared reads, not shared reads