Developing a strategy, I am calculating the stop loss level for the engine.submitOrder() method.
My problem is that I don't know the code for rounding down the result of my calculation to the 5th decimal, so that the platform will accept my stop loss level.
As you know, the platform only accepts placing order with price levels with a 0.1 pip precision. So need the result of my calculation to look something like: 1,42123
Thank you in advance!
API Support
Post subject: Re: rounding down the result of a calculation to the 5th dec