
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
What is the recommended technique to use these functions for different time frames and currency pairs in an EA attached to a single chart? Do I have to open up a chart for all of currency pairs and time frame combinations I wish to access? I was hoping to update the local history data within the EA without having to create a chart for each combination.
Usually only commercial developers would go to all the trouble of coding to manage 15 pairs and multi timeframes at the same time from one EA because there is no accepted technique for doing that and it takes a lot of work to figure it out. So don't expect a whole bunch of developers are going to share their commercial level coding logic on a public forum.
It is more efficient for a trader writing his own EA to attach it to 15 charts in a matter of a minute or two.
The Pre 600 documentation said when you get the History Will be Updated error code, you should wait 15 seconds and then retry once. You do not get that error code again.
The code that I posted was only intended to show that the history will be updated while the EA is "sleeping"
In response to this
The problem is that there isn't history data for the currency pairs and time frames that I am using the "I" functions for. (This is why iTime returned 0) The sleep function won't produce or update these local files.