Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Call addon after initialization ninjatrader without strategy

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

    Call addon after initialization ninjatrader without strategy

    HI.
    I am getting data of all accounts in an addon for some logic.
    I need to implement the addon call, after the initialization of the main window of the Ninjatrader, but without launching the strategy.
    how and where can I do it?

    #2
    Hello Danila,

    Can you provide more detail about what you are trying to do?

    Addons are called only once at startup, that is so the addon can do whatever task it needs to do one time. They also have overrides for window creation, for example adding a menu item to a window when it observes that window was created. If you need to later execute some logic you would need to add a way for you to do that such as a menu item or make a custom window so you can control the addon code you wrote. Other options would be to execute the logic at a fixed interval using a timer.

    Comment


      #3
      Hello Jesse

      I want to get some data from accounts before my program starts.
      1. launching a ninjatrader.
      2. writing some account data to a file.
      3. launch my program.
      4. reading from a file.

      Comment


        #4
        Hello Danila,

        You would need to open NinjaTrader and connect to the data feed which the account is on. After doing that you could execute code to get account values from a script. You would still need a way to execute your code after that point, for example using an indicator or if you wanted to use an addon you would need to make a way to execute the code in the addon. Addons are only run once at startup and can monitor for new windows. Addons are created before the control center so that they can observe the control center window opening to add to the control center.

        Comment


          #5
          Hello Jesse. Thanks for your answer.

          NinjaTrader and connect to the data feed which the account is on
          Do you have any examples of how to connect to the data feed user account or maybe a link for its demonstration in Guide NT8?
          Maybe I was inattentively and scrupulously looking for this information in your Guide, but I found nothing on this topic.

          Thanks in advance.

          Comment


            #6
            Hello Danila,

            That would be a manual action you take through the user interface, if you want to auto connect to your connection you should use the connections auto connect feature. That is configured in the connection edit menu. Any accounts under that connection would then be listed in the control center and able to be seen by scripts using the addon account code.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            66 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            141 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
            46 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            51 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X