I've been trying for a couple days to enter a position, immediately set a stop loss and profit target, then if the position is up enough, add a second contract and modify the existing stop loss and profit target to account for my new average price and quantity. I can't seem to get it working correctly though. Usually my problem is that my stop and profit target quantities never update to reflect the fact that I am now holding two (or more) contracts. They always execute with a quantity of one.
Can you point me towards some documentation or some code samples (preferable) that describe how to do this in NT8?
If possible, I assuming using managed orders is preferable. Additionally, I'd like the orders to actually exist as Stop Market or Stop Limit OCO orders vs my code monitoring and just creating market orders on the fly as conditions dictate.
Comment