
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello RaptorUK
Im experiencing the same problem as strive23. I have a commercial rangebar generator and I can display the offline charts it generates. However, because its commercial the source code is not available.
When I open the offline charts that I generate, it shows "Waiting for Update".
Show your code.
Fix your array declarations: https://www.mql5.com/en/forum/146260
Instead of this:
do this:
I think you also need to use a valid Symbol or the symbol properties won't be found in the symbols.sel file . . .
HarriMQL4:
By the way, I cannot see the code posted by the OP - has it been deleted?
When I open the offline charts that I generate, it shows "Waiting for Update".
Show your code.
This is my code for generating offline charts, not the commercial. And as I said, when I read back the file that is generated, it all looks good. Just displaying the offline chart in the terminal is the problem.
and for the header
This is my code for generating offline charts, not the commercial. And as I said, when I read back the file that is generated, it all looks good. Just displaying the offline chart in the terminal is the problem.
and for the header
What is the value of path ?
Also the order you are writing the data looks wrong, shouldn't it be Open, Low, High, Close, Volume ?
What is the value of path ?
Also the order you are writing the data looks wrong, shouldn't it be Open, Low, High, Close, Volume ?
Thanks for replying.
path is constructed as follows:
where pRange is an int representing the range of the bars. I have tried playing around with the filename (path) and the values for the fields c_symbol and i_period, but still the same result. Is there a correlation? What is correct?
And is the order of fields wrong? I thought it was OHLC, based on what is displayed on a live chart, but even then, I dont understand how the order of the price values can affect whether its displayed or not.
Thanks for replying.
path is constructed as follows:
where pRange is an int representing the range of the bars. I have tried playing around with the filename (path) and the values for the fields c_symbol and i_period, but still the same result. Is there a correlation? What is correct?
And is the order of fields wrong? I thought it was OHLC, based on what is displayed on a live chart, but even then, I dont understand how the order of the price values can affect whether its displayed or not.
You should look at the code in period_converter, it shows you what you need to do.
Regarding path, you code says this . . .
. . . isn't path meant to be the symbol name ? so what is the value of path ?
You should look at the code in period_converter, it shows you what you need to do.
Regarding path, you code says this . . .
. . . isn't path meant to be the symbol name ? so what is the value of path ?
Anyway, I followed your hint about the order of fields (OHLC - which is definitely how its displayed on a chart), and changed it to OLHC when generating the custom chart. And hey presto! The custom chart now loads. Thank you very much Raptor, for your help. I guess the terminal must have some sanity checking whenever it loads price data from a hst file. But I do think its naughty that the display order is not the same as how the prices are stored.
Thanks again