I need some assistance in understanding how to capture order placement events. Specifically, I would like to retrieve the entry price, StopLoss price, and TakeProfit price.
Currently, I'm trying to achieve this using an AddOn. I'm utilizing the account.OrderUpdate function to capture order update events. However, I'm encountering an issue where I can only retrieve the StopLoss and TakeProfit parameters after the main order has been filled. Moreover, I cannot find a parameter that links the main order with the StopLoss and TakeProfit orders.
Is there any method that would allow me to capture the price parameters for the main order, StopLoss, and TakeProfit when the order is placed? Additionally, is there a parameter or a way to programmatically link these three orders together?
Thank you for your help!

Comment