Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to know chart of an order placed
Collapse
X
-
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 ?Tags: None
-
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.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
31 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
21 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
184 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
342 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
264 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment