How to get the SubmitOrderUnmanaged() quantity to detect and use the manual order quantity? I don't find any valid syntax example in the documentation.
My strategy as default has 1 as quantity:
But I need for it to use whatever quantity the manually entered order it's gonna manage the exit of has.
For example, if the manually entered order has 5 contracts then the SubmitOrderUnmanaged() should automatically detect 5 contracts and execute a 5 contracts quantity exit.
How do I set the quantity?
Would PositionAccount.Quantity work?
What potential problem could there be with that way? For example if I have 2 position on 2 different instruments at the same time, will it auto-detect and auto-manage the correct position separately?
If not what best other way/ways do you suggest?
Thank you for an example.
Comment