Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help: How to Capture Entry, StopLoss, and TakeProfit Prices

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help: How to Capture Entry, StopLoss, and TakeProfit Prices

    Hello,

    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!

    #2
    Hello xvz88,

    Thank you for your post.

    Use ExecutionUpdate to capture the fill price of your orders.



    You can provide an OCO ID to link orders together when using CreateOrder.



    Please let us know if you have any further questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    52 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    25 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X