Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Brandon H.NinjaTrader Customer Service

    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.
          Brandon H.NinjaTrader Customer Service

          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.
              Brandon H.NinjaTrader Customer Service

              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.
                  Brandon H.NinjaTrader Customer Service

                  Comment


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

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by kaywai, 09-01-2023, 08:44 PM
                    5 responses
                    601 views
                    0 likes
                    Last Post NinjaTrader_Jason  
                    Started by xiinteractive, 04-09-2024, 08:08 AM
                    6 responses
                    22 views
                    0 likes
                    Last Post xiinteractive  
                    Started by Pattontje, Yesterday, 02:10 PM
                    2 responses
                    17 views
                    0 likes
                    Last Post Pattontje  
                    Started by flybuzz, 04-21-2024, 04:07 PM
                    17 responses
                    230 views
                    0 likes
                    Last Post TradingLoss  
                    Started by agclub, 04-21-2024, 08:57 PM
                    3 responses
                    17 views
                    0 likes
                    Last Post TradingLoss  
                    Working...
                    X