Hi I want to use an EA on several charts (1 is master mode for writing to the file, others are slave mode for reading from the file)
After a new data writes by first master EA, other slave EAs can't read this new date.
This always print same number on slave EA.
Should I put FileOpen() in OnTick() for slave EA? Or problem is from somewhere else?
Thanks.
I think you may run into problems with this approach - leaving the file open for long periods could block other processes from accessing it.
Could be better to open, read then close. Alternatively you could take a copy of the file and allow read that to avoid blocking the writing process.
Depends how frequently you will write and for how long - you need to experiment
- 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 I want to use an EA on several charts (1 is master mode for writing to the file, others are slave mode for reading from the file)
After a new data writes by first master EA, other slave EAs can't read this new date.
This always print same number on slave EA.
Should I put FileOpen() in OnTick() for slave EA? Or problem is from somewhere else?
Thanks.