Forum on trading, automated trading systems and testing trading strategies
SymbolInfoTick last price is 0
Fernando Carreiro, 2023.03.13 20:14
There is no "last price" in FX. For FX the charts show bid prices, so use the bid price.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi, I´m programming an EA:
It has Forex Info: EURUSD,
I´m using SymbolInfoTick(_Symbol,latest_price) to get the last price,
When it runs with History Data there is no problema and the function SymbolInfoTick works ok and returns correct information.
But when switch to listen RT, the field latest_price.last returns zero. And there is no error in the function result. (SymbolInfoTick returns TRUE) The other fields like ask, bid,etc returns values.
Also I tried with SymbolInfoDouble , SYMBOL_LAST and it´s the same result.
Do you have any idea to solve it or make a workaround?
Thanks.