Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order execution events?

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

    Order execution events?

    Are there any events an indicator can listen to when an order is executed (filled specifically)? Or is there a way to capture the order executions from an indicator? TY

    #2
    Hello cay7man,

    Thanks for your post.

    You could use the AddOn approach to subscribe to ExecutionUpdate events for an Account and check if the OrderState of an order is equal to OrderState.Filled.

    See the help guide documentation below for more information.
    ExecutionUpdate: https://ninjatrader.com/support/help...tionupdate.htm
    Executions: https://ninjatrader.com/support/help...executions.htm
    Account: https://ninjatrader.com/support/help...ount_class.htm

    Let us know if we may assist further.
    <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
      TY! Will check it out

      Comment


        #4
        brandon, How an addon gets installed/enabled if created via Ninjascript Editor? I know how to install it via Tools | Import option for installing anything I download from internet

        Comment


          #5
          Hello cay7man,

          Thanks for your note.

          NinjaScript Indicators, Strategies, and AddOns are all able to be imported into NinjaTrader by navigating to Tools > Import > NinjaScript AddOn.

          Note that to import a custom NinjaScript using the Tools > Import feature, you would need to have the original exported .ZIP file for that NinjaScript.

          See the help guide documentation below for more information.
          Importing: https://ninjatrader.com/support/help...nt8/import.htm
          Exporting: https://ninjatrader.com/support/help...tAsSourceFiles

          Let us know f we may assist further.
          <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


            #6
            TY. My question is, if I add an addon via Ninjascript editor, do I have to export it and then import it?

            Comment


              #7
              Hello cay7man,

              Thanks for your note.

              No, you do not have to export and then import a custom NinjaScript that was created in the NinjaScript Editor window on your machine.

              NinjaScript Indicators, Strategies, AddOns, etc that are created on your machine will already be available to access on your machine and do not have to be imported.

              Let us know if we may assist further.
              <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


                #8
                Ok, I know can you explain how to access the addon I just created via Ninjascript editor? I know how to add the indicator/strategy from chart window..

                Comment


                  #9
                  Hello cay7man,

                  Thanks for your note.

                  I understand that in your initial post, you are wanting to create an indicator that can listen to when an order is executed.

                  It looks like there may be some confusion on my post #2 reply, I had intended to say that you could use this code from your indicator. You can remove the addon you made and put that account subscription in an indicator so you can apply the indicator to a chart.

                  Let us know if we may assist further.
                  <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


                    #10
                    TY! Was able to capture the event from the indicator. Awesome!

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    602 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    347 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    103 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    560 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    559 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X