Programmatically open offline chart

 

Hi,

how can I programmatically open an offline chart?

 
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.
 

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".

 

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.

 

hrenfx was kind enough and did it 3 years ago

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

tnx for hrenfx

Reason: