May I know how to round down the quantity, such as hundreds digit, in strategy monitor window and order manager window?
What do you mean it has to be rounded down? What position sizing, market, broker provider are you using?
Round Lots in Preferences, Backtest
Just for completeness, if you want ultimate control of sizing transactions in your code, the technique is demonstrated here -
int roundIncrement = 10; // nearest 10 shares double size = 253; // a size to test with double roundedSize = Math.Floor(size / roundIncrement) * roundIncrement; WriteToDebugLog(size + " rounded by " + roundIncrement + " is " + roundedSize);
Your Answer Post
A log in is required