I've set up commissions and they mostly properly calculate and then display in Account Performance of my strategy. My commission is set up as $1.51 per side and that is plugged into Tools > Options > Commissions and into the proper categories.
These work fine as long as I am buying/selling one contract. But let's say that I have 3 contracts, and I send an order to flatten my position with the following code:
ZN_flattenOrder = SubmitOrder(0,OrderAction.Sell,OrderType.Market,Positions[0].Quantity,0,0,"","ZN_flattenOrder");
How do I change this behavior?
Thanks

Comment