MT4 does not keep a tick data history, and chart data is build up purely with Bid prices. The same holds true for offline charts. So you will never be able to read historical Ask prices. Only the current Ask price is available.
Also, and this probably the reason for your situation, if an Offline Chart is constructed using a modified symbol name so as not to clash with the real chart, then obtaining the Bid and Ask prices for that symbol will report an invalid symbol.
Ask returns zero SymbolInfoInteger(Symbol(),SYMBOL_ASK); returns invalid symbolPrices are not integers.
MT4 does not keep a tick data history, and chart data is build up purely with Bid prices. The same holds true for offline charts. So you will never be able to read historical Ask prices. Only the current Ask price is available.
Also, and this probably the reason for your situation, if an Offline Chart is constructed using a modified symbol name so as not to clash with the real chart, then obtaining the Bid and Ask prices for that symbol will report an invalid symbol.
It seems you don't get how Soft4fx works. It opens an offline chart at a certain time, like 2021/02/15 16:45, it is the last candle. Then It creates the next candles one by one (simulation live market for backrest with past data). It also shows ask price line. So it has the last candle ask price in some way. But my indicator on that chart can not read the ask price (although I can see it in ask line)
I do know how it works and have answered you appropriately. Soft4x generates Offline Charts with not standard symbol names, and I called your attention to that fact.
But besides that fact I also outlined the fact that there are limiting factors to accessing tick data from MQL code running on the Offline charts.
However, if you claim to to know better, then please direct your queries at the makers of Soft4fx and not here on this forum, as according to the forum rules we should not even be discussing 3rd party products here.
I do know how it works and have answered you appropriately. Soft4x generates Offline Charts with not standard symbol names, and I called your attention to that fact.
But besides that fact I also outlined the fact that there are limiting factors to accessing tick data from MQL code running on the Offline charts.
However, if you claim to to know better, then please direct your queries at the makers of Soft4fx and not here on this forum, as according to the forum rules we should not even be discussing 3rd party products here.
Ok. The 3rd party app is not important here. I do not have question about it. I just wanted to know how I can see ask line in an offline chart, but I can not read it with MQL code!
An Offline Chart is just as the name says, it is "Offline". It is not live! Any Ask line you see on Soft4x's Offline Chart are simulated visually by that software. It isn't real.
Historical tick data is unavailable for ANY chart type. MT4 does NOT keep tick data history, so you cannot access that irrespective of the chart being Offline or Online.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Anyone can help how should I read ask price given that I can see the ask line.