Download MetaTrader 5

Programmatically open offline chart

To add comments, please log in or register
forexfan
192
forexfan  

Hi,

how can I programmatically open an offline chart?

whroeder1
15724
whroeder1  
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  

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
3316
Ex Ovo Omnia  

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  

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