iCustom() for an offline symbol

 

Hi,

i want to use iCustom() for an offline symbol.

Is there a way to use iCustom(), without opening the offline chart?

 
mt4forum:

Hi,

i want to use iCustom() for an offline symbol.

Is there a way to use iCustom(), without opening the offline chart?

Probably, what have you tried so far that doesn't work ?
 

I started my offline chart generator, opened the offline chart, started my indicator, which uses iCustom() and everything worked as expected.

When I close MT4 and start it again, performing the same steps as above, exept that I don't open the offline chart,

MT4 hangs for about 1 minute, consuming 13% CPU and then comes back without any result for iCustom().

The expert logfile shows tons of entries

21:29:03 ZigZag CI_EUR,M15: removed
21:29:03 ZigZag CI_EUR,M15: loaded successfully
21:29:03 ZigZag CI_EUR,M15: removed
21:29:03 ZigZag CI_EUR,M15: loaded successfully
21:29:03 ZigZag CI_EUR,M15: removed
21:29:03 ZigZag CI_EUR,M15: loaded successfully
21:29:03 ZigZag CI_EUR,M15: removed
21:29:03 ZigZag CI_EUR,M15: loaded successfully
21:29:03 ZigZag CI_EUR,M15: removed
21:29:03 ZigZag CI_EUR,M15: loaded successfully

CI_EUR is my offline symbol, ZigZag is the iCustom() indicator I'm using.

 

Any ideas???

 

I found that I can use the offline charts' data only when they are opened in the background.


Once I thought of accessing the file directly and read the data to handle like ArrayCopyRates results. But in the end I did not need it.

BTW the indicators should be able to use this kind of array, not all of them has a ...OnArray version.

 

RaptorUK, do you have further ideas?

 
mt4forum:

RaptorUK, do you have further ideas?

Sorry, no . . . it's not something I've tried. I can't understand why it shouldn't work, shouldn't it be looking at the hst file ?