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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment