Thanks for your notes.
This would require adding additional custom logic into your script that calls ExitLongLimit() (Order management folder > Exit long position by a limit order) to place a profit target order for a quantity of 1 and set the limit price to be 10 ticks above the Position.AveragePrice.
You could set the limit price to be 10 ticks above the Position.Average price similar to how the stop loss order is set up in the BreakEvenBuilderExample shared by Chelsea in post # 2.
The BreakEvenTrigger determines the number of ticks that you want the script to change the stop price to breakeven at. The TriggerPrice variable uses the BreakEvenTrigger to offset the Position.AveragePrice by a set number of ticks. Since you want to change the stop price to breakeven when the profit target order is filled 10 ticks above the Position.AveragePrice, you should set the BreakEvenTrigger to 10 so that the TriggerPrice is the same price as the profit target order's limit price (10 ticks above the Position.AveragePrice).
Comment