Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Fire OnOrderUpdate on manually entered order??
Collapse
X
-
Fire OnOrderUpdate on manually entered order??
I have a rather complex unmanaged strategy that manages my stop loss order, exit order, breakeven levels based on parameters, etc. Works great when the strategy itself initiates the entry order. What I'm wondering is: Is there a way for my strategy to detect a manually entered order from Chart Trader? I am aware of ATM capabilities, but I have custom trailing stop and exit logic I would like to use on a manually entered order. Bottom line - is there a way to fire the On___Update events for an order that originated OUTSIDE of the strategy itself? I can see the OnAccountItemUpdate firing, but none of the others.
Tags: None
-
Hello shortrader,
Unfortunately, the strategy would not be able to detect a manually placed order.
However, you could add buttons (or right-click context menu options) from the strategy to chart trader and then trigger the strategy to place the order from a button click.
As long as the strategy code submits the order, it will cause the advanced order handling methods (like OnOrderUpdate()) to run.
Below is a link to an example of submitting orders from button clicks.
I need some guidance. I need to create a script that has 3 plots that are public and they plot either a 1 or 0. But I need to create another indicator that has 3 chart buttons that sets these variables. The first indicator needs to get those values from the second indicator depending on the button clicks. Because of using
As well as a link to the help guide reference sample on modifying WPF to add buttons to chart trader.
Chelsea B.NinjaTrader Customer Service
-
Thank you for the prompt response, and for your alternate suggestion. That may work for me. I will look into it.
Comment
-
Why couldn't the user subscribe to OrderUpdate eventsOriginally posted by NinjaTrader_ChelseaB View PostUnfortunately, the strategy would not be able to detect a manually placed order.
on the account and detect manual orders that way?
That means they'd detect all orders, even their own Strategy,
which they would have to filter out ...
Anyways, just saying ... seems quite possible to me.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|
Comment