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 argusthome, 03-08-2026, 10:06 AM
|
0 responses
75 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
45 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
26 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
62 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment