Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Export list of executions with code
Collapse
X
-
Hello soyjesus,
Thanks for your post.
You would need to implement a StreamWriter into your script to write information, such as executions in OnExecutionUpdate(), to a file.
See this reference sample demonstrating the use of a StreamWriter: https://ninjatrader.com/support/help...b=streamwriter
OnExecutionUpdate(): https://ninjatrader.com/support/help...tionupdate.htm
Execution: https://ninjatrader.com/support/help.../execution.htm<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
Hello soyjesus,
Thanks for your notes.
NinjaScript strategies cannot see orders placed manually on the chart and cannot see ATM Strategies submitted from Chart Trader.
Something you could consider trying is subscribing to Account ExecutionUpdate events and using a StreamWriter to write the execution information to a file.
Account: https://ninjatrader.com/support/help...ount_class.htm
OnExecution: https://ninjatrader.com/support/help...tionupdate.htm
Executions: https://ninjatrader.com/support/help...executions.htm
Otherwise, manually submitted orders and ATM Strategy orders would have to be manually exported by right-clicking on the Executions tab of the Control Center and selecting 'Export'.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
- Likes 1
Comment
-
Hello soyjesus,
Thanks for your notes.
There are no files that could be accessed through supported NinjaScript code that saves executions that were made.
As previously noted, NinjaScript strategies cannot see orders placed manually on the chart and cannot see ATM Strategies submitted from Chart Trader.
Manually submitted orders and ATM Strategy orders would have to be manually exported by right-clicking on the Executions tab of the Control Center and selecting 'Export'.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
474 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
315 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
253 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
340 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
305 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment