
public event Action<Position> PositionProfitActivateEvent;
The PositionProfitActivateEvent is triggered at the moment the profit order for a position is activated.
It can be used for various scenarios, such as cancelling related orders, creating reverse strategies. An example of using the event:

1. Subscribe to the event of successful position opening.
2. Subscribe to the PositionProfitActivateEvent.
3. Create parameters for calculating profit and the offset of a conditional position.

In the handler for the event of position opening, implement the following functionality:
1. Calculate the offset in price steps for the profit order.
2. If it is a long position, calculate the activation level and price for the order, which should be above the entry point.
3. If it is a short position, calculate the activation level and price for the order, which should be below the entry point.
4. Set the profit for the position.

In the method handler for profit activation, create a conditional position according to the following algorithm:
1. Determine the size of the offset for the conditional position.
2. If the long position closed with a profit, calculate the activation level and price for the new position.
3. Send a command to the tab to create a conditional short position.
4. If the short position closed with a profit, calculate the activation level and price for the new position.
5. Send a command to the tab to create a conditional long position.
If you have any difficulties or questions, please write to the support chat. Link