I know my broker's LotStep (it is 0.01), is the above ok to use then (so long as I don't switch brokers)?
Your Broker doesn't have a LotStep . . . each Symbol has it's own LotStep. You have to do it depending upon the Symbol you are trading, use MarketInfo() to get the relevant LotStep.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thank you Raptor!
I did this:
I know my broker's LotStep (it is 0.01), is the above ok to use then (so long as I don't switch brokers)?
Your Broker doesn't have a LotStep . . . each Symbol has it's own LotStep. You have to do it depending upon the Symbol you are trading, use MarketInfo() to get the relevant LotStep.
Do not use NormalizeDouble() to do this . . .
Did you search ?
https://www.mql5.com/en/forum/141997
https://www.mql5.com/en/forum/143966