Forum

How to remove the extra digits of the fetched prices from MqlRates?

Hi guys, I'm using this code to fetch the close price of the previous candle MqlRates mrate[]; double Close_Price; Close_Price=mrate[1].close; Sometimes I get the correct price (1.12086) and other times I get a wrong price (1.1208600000000001) How can I remove all of these extra digits

Learning MQL

Hi guys.. I'm a C & PHP languages programmer and I would like to learn MQL Does anyone know how and where to start? Is there a difference between MQL4 and MQL5?. If yes, then which is better to learn