Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
pause till order filled
Collapse
X
-
Hi malcolm, thanks for writing in. This can certainly be done. To complete this you will need to know how to use OnOrderUpdate/OnPositionUpdate and know how to use boolean variables to control the flow of logic in your strategy. Unfortunately its too much to make a simple example of, but we have existing examples that can help.
Here is an example showcasing how to use OnOrderUpdate/OnExecutionUpdate:
C# boolean variables are straight forward. They should be known by all C# developers for their usefulness:
(publicly available)
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
-
Hi malcolm, thanks for the follow up. You will need to be able to test and re-write code based on the output. Unfortunately, I can not verify your code through snippets like this. To see the data flowing through your code, you can use the Print() method to print data to the New>NinjaScript Output window. This is the best way to see how your script is processing data while it is running:
Last edited by NinjaTrader_ChrisL; 12-19-2022, 11:09 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
169 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
326 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
252 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
353 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
180 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment