MarketInfo function in mql5
This is valid for both MQL5 and MQL4+ ...
Forum on trading, automated trading systems and testing trading strategies
Fernando Carreiro, 2022.05.18 21:05
double dbTickSize = SymbolInfoDouble( _symbol, SYMBOL_TRADE_TICK_SIZE ), // Tick size dbTickValue = SymbolInfoDouble( _symbol, SYMBOL_TRADE_TICK_VALUE ), // Tick value dbPointSize = SymbolInfoDouble( _symbol, SYMBOL_POINT ), // Point size dbPointValue = dbTickValue * dbPointSize / dbTickSize; // Point valueRemember, it's best to use tick size and tick value in your calculations, instead of point size and its value.
@Sergio Fernandez #: Fernando I've read a lot of your contributions in this forum. I want to thank you, you helped me a lot of times :-)
🙏You are welcome.
what is the equal of this mql4 code in mql5 :