Possible to force history file on chart?

 
Hello Slawa,

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
 
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
Reason: