The strategy sells 2 contracts at market, one of them should be go out with Target Profit, the second one goes out with another parameters.
How can i sell the first one? Set Target profit xx dont works in this case, it will close both contracts.
The answer is in your Title of the topic. It is actually like that. 🙂
Of course you must do it in code and track yourself when to exit that 1 (or any number) of contracts.
How can i set Target Profit for one contract if i have two contracts? Thats the question.
Firstly set the TP to the max TP you want to gain.
Secondly, check when the intermediate TP is reached, at the closing of each bar (pending orders cannot partially close positions) and close the desired size AT MARKET.