Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Export list of executions with code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Export list of executions with code

    Hello, I need to export the list of executions (all of them that appears when I check the tab "Executions") automaticly with code, not manually. How can I do it? Thanks in advance and regards.

    #2
    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>

    Comment


      #3
      Ok Brandon, but I need to export all the executions (manually and by strategies). I can use StreamWriter with my strategies but what about the executions from ATM or directly in the chart?

      Comment


        #4
        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>

        Comment


          #5
          Sorry, but is there any file where Ninjatrader save all the executions? I could read this file with an external software and check it.

          Comment


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