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
Order Submission Easy Question
Collapse
X
-
Hello Doctor JR,
Thank you for your reply.
No, they are asynchronous. So when the order is fired off, OnOrderUpdate would run while OnBarUpdate is still running - it would not be queued to run after OnBarUpdate.
Please let us know if we may be of further assistance to you.
- 1 like
Leave a comment:
-
Thanks for your response. My orders are assigned in onOrderUpdate but I'm not sure I understand your response, so I'll rephrase my question in my less-than-professional-level programming language:
When I place an order in OnBarUpdate does the strategy complete the scan of onBarUpdate content before the order is communicated to onOrderUpdate or is OnOrderUpdate notified of the order and then the scan of remaining onBarUpdate continues. I have several different order types and this issue makes a difference (not of the most critical nature) in my coding.
Leave a comment:
-
Hello Doctor JR,
Thank you for your inquiry.
Since this is in relation to strategy development, I have moved this to the appropriate forum.
OnBarUpdate and OnOrderUpdate are completely asynchronous, so when an order is placed it's running through both. This is why we suggest if you are tracking orders in Order variables that you assign the order in OnOrderUpdate so you can be sure the order has been created.
Please let us know if we may be of further assistance to you.
- 1 like
Leave a comment:
-
Order Submission Easy Question
When my strategy generates a buy or sell order, does it go straight to onOrderUpdate or does the program first complete the scan of remaining content in OnBarUpdate?Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Shai Samuel, Yesterday, 11:29 PM
|
0 responses
2 views
0 likes
|
Last Post
![]()
by Shai Samuel
Yesterday, 11:29 PM
|
||
Started by futurestrader0000, Yesterday, 09:27 PM
|
0 responses
4 views
0 likes
|
Last Post
![]() |
||
Started by AdeptistJune, Yesterday, 09:19 PM
|
0 responses
6 views
0 likes
|
Last Post
![]()
by AdeptistJune
Yesterday, 09:19 PM
|
||
Started by Johnny90, 05-14-2022, 04:17 AM
|
4 responses
25 views
0 likes
|
Last Post
![]()
by jeronymite
Yesterday, 07:25 PM
|
||
Started by junkone, Yesterday, 07:25 PM
|
0 responses
5 views
0 likes
|
Last Post
![]()
by junkone
Yesterday, 07:25 PM
|
Leave a comment: