To use nonstsndard timeframes appropriate chart should be opened offline.
After file is opened You can get its data from EA attached to standard chart, for instance:
iClose("ABCDEF", 10, 0); // 10-minutes chart
ArrayCopyRates(my_array,"ABCDEF", 360); // 360-minutes (6-hours) chart
iMA("ABCDEF",360,13,0,MODE_SMA,PRICE_CLOSE,1);
and so on
After file is opened You can get its data from EA attached to standard chart, for instance:
iClose("ABCDEF", 10, 0); // 10-minutes chart
ArrayCopyRates(my_array,"ABCDEF", 360); // 360-minutes (6-hours) chart
iMA("ABCDEF",360,13,0,MODE_SMA,PRICE_CLOSE,1);
and so on
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
Is this possible:
-Drop EA on Chart.
-EA forces chart to attach to certain offline history file instead of its current symbol/period
Even if this would have to be done with Windows API calls, that is OK, I just need to know if it can be done.
Why?
I'm generating a .hst file with OHLC data that is the OHLC of the AccountEquity(), and I want the EA to forcibly attach to that .hst file when it is used.
Thanks very much!
-Christian