Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to know chart of an order placed

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

    How to know chart of an order placed

    Hi , I have created a indicator which will register an OrderUpdate event to all accounts. When an order is placed for that account, my event method will calculate the stoploss and update the stoploss order. To compute the stoploss, my indicator will collect data from onBarUpdate method. I am attaching the indicator on one chart. Since i am attaching an event at account level , if an order is placed from different char where my indicator is not enabled, my order update method is getting executed and computing the stoploss value based on different chart. I want to restrict this behavior to the order placed from the chart which i enabled my indicator. How to do that ?

    #2
    Hello nandhumca,

    You would need to check the Instrument which the order was attached to in order to filer out other instruments, that won't help to determine it was from a different chart of the same instrument. There would not be a specific value that the order has that says its from a specific chart/tool.



    What you are asking for would essentially require using a strategy which has its order/execution events filtered to that instance and its built in override methods.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    601 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    347 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    559 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    558 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X