Download MetaTrader 5

Programmatically open offline chart

To add comments, please log in or register
forexfan
192
forexfan 2013.07.30 11:31 

Hi,

how can I programmatically open an offline chart?

whroeder1
14753
whroeder1 2013.07.30 12:17  
The source chart must be open, the generator must be running on it to generate ticks, before you can open the offline chart. You don't want to.
forexfan
192
forexfan 2013.07.30 13:16  

Yes, I know about that.

I have the generator running and now I want the offline chart to be opened by a script, as described in https://www.mql5.com/en/forum/119595 for online charts,

where they search through "symbols.sel" to find the position of the symbol to be opened.

How do I do that for offline charts?

I won't find them in "symbols.sel".

Ex Ovo Omnia
3185
Ex Ovo Omnia 2013.07.30 17:00  

They are not in symbol.sel.

You need to open the offline charts list, then to navigate to its appropriate line.

I haven't tried, but there is a promissing constant mentioned in PostMessageA description: 33053 - открывает список Offline-графиков

The correct line could be guessed by reading the chart files list in a history folder.

If you plan to code it, please drop a message here if you succeeded.

qjol
3243
qjol 2014.01.27 23:15  

hrenfx was kind enough and did it 3 years ago

https://www.mql5.com/ru/forum/120490/page3#382947

tnx for hrenfx

To add comments, please log in or register