Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
How to check if I have any pending order for particular instrument?
Collapse
X
-
How to check if I have any pending order for particular instrument?
I can use OrderState.Filled to check if my particular order is filled or not. Are there a method I can check any pending order for a particular instrument? Thanks.Tags: None
-
Hello localappleseed,
Thanks for your question.
You can check for orders that have an OrderState of Working or Accepted to see orders that are pending.
Usage of OnOrderUpdate and OrderStates can be found below.
OnOrderUpdate - https://ninjatrader.com/support/help...rderupdate.htm
If you would like to check outside of the context of your strategy, you can loop through the Account.Orders collection.
Account.Orders - https://ninjatrader.com/support/help...rs_account.htm
We look forward to assisting.JimNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Skifree, Today, 03:41 AM
|
3 responses
12 views
0 likes
|
Last Post
by Skifree
Today, 12:03 PM
|
||
Started by traderqz, Yesterday, 09:06 AM
|
5 responses
32 views
0 likes
|
Last Post Today, 12:03 PM | ||
Started by guillembm, Today, 11:25 AM
|
1 response
6 views
0 likes
|
Last Post Today, 12:01 PM | ||
Started by owensd, 04-21-2024, 11:34 PM
|
9 responses
34 views
0 likes
|
Last Post Today, 11:59 AM | ||
Started by trilliantrader, 04-10-2024, 09:33 PM
|
7 responses
25 views
0 likes
|
Last Post Today, 11:56 AM |
Comment