Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How Do These Trade Journals Auto-Sync with NT8?

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

    How Do These Trade Journals Auto-Sync with NT8?

    Hi there,

    As the title suggests. We are interested in building our own auto-syncing software outside of NinjaTrader. The goal is for the the tool to autosync with NinjaTrader and get account balance information as well as strategy trade PnL.

    I found a few platforms in the NinjaTrader ecosystem that seem to do this
    Search trading apps & services to cusomize your NinjaTrader platform with trading indicators, signals and strategies.


    How is this done? Specifically TradesViz, who claim to auto-sync. How could a vendor build something like this? Are there APIs that external software can use to read information from the account of an authorized user?

    - Jay
    Last edited by jaybedreamin; 11-06-2024, 05:15 PM.
    jaybedreamin
    NinjaTrader Ecosystem Vendor - Zion Trading Algos

    #2
    Hello jaybedreamin,

    Thank you for your post.

    Please also note our ability to provide support for how to program applications external to NinjaTrader is limited. Our support team is NinjaScript specific, and unfortunately I would not be able to make a specific recommendation / suggestion as to how an external application is auto-syncing information from the NinjaTrader platform.

    The NinjaTrader Application does have an API that can be used to connect an external application.

    The Application Programming Interface (API) is available in the form of a .NET managed assembly dll file, with the name NinjaTrader.Client.dll, for you to use in an external application to interface with NinjaTrader.

    Support for the API is limited from NinjaTrader Support. While we are not able to assist with any code in an application external to NinjaTrader, we are able to detail the usage of any methods available from the API.

    Below I am providing a link to the help guide that lists the functions available to the API. There are no functions to specifically get account information via the API.

    https://ninjatrader.com/support/helpguides/nt8/dll_interface.htm

    The NinjaTrader.Client.dll can be found in:
    • 64 bit - C:\Program Files\NinjaTrader 8\bin\NinjaTrader.Client.dll

    If you'd like to learn more about using the API, below I am providing a link to a support article that details using the API and provides an unsupported visual studio project that demonstrates connecting to NinjaTrader and receiving data.



    Please let me know I may answer any specific questions you have about API methods documented in the help guide.

    This thread will also remain open for any members of the community who may want to provide their insight / suggestions.

    Comment


      #3
      Originally posted by jaybedreamin View Post
      How is this done?
      DeskTop Versions <= 8.0.26.1 use an sqlCompact database.
      Documents\NinjaTrader 8\db\NinjaTrader.sdf

      DeskTop Versions >= 8.0.27.1 use an sqlite database.
      Documents\NinjaTrader 8\db\NinjaTrader.sqlite

      Free version of LINQPad5 will connect to either.
      Takes poking and prodding, but trade data there.



      I've got a pretty good handle on the data collection.
      Next step better visualization, Care to Collaborate?

      Click image for larger version

Name:	htjournal.jpg
Views:	277
Size:	74.8 KB
ID:	1324203


      Question for NT?

      Does App/Web versions store this information locally? where?​
      -=Edge=-
      NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

      Comment


        #4
        Hey there -=Edge=-, this looks great! However, I specifically need to track the performance of individual live, automated strategies. Do you know if the sqlite database keeps track of the strategy that executed the trade?


        jaybedreamin
        NinjaTrader Ecosystem Vendor - Zion Trading Algos

        Comment


          #5
          Originally posted by jaybedreamin View Post
          Hey there -=Edge=-, this looks great! However, I specifically need to track the performance of individual live, automated strategies. Do you know if the sqlite database keeps track of the strategy that executed the trade?
          All information from the NT's Trade Performance window comes from db.
          So if you are exporting from there into a Journal, information's in db.

          Been awhile since I looked at all the tables, fields, and relationships.
          Takes some poking/prodding around, as relationships not overly intuitive.

          Looks like Stategies2Executions table stores an execution and strategy ID.
          Related back to both Executions and Strategies tables thru those fields.

          Click image for larger version

Name:	strat2exe.jpg
Views:	276
Size:	88.3 KB
ID:	1324579

          Although oddly enough, strat info only seems available until Close/ReOpen NT.
          Seems after close/re-open NT, that S2E table info in db no longer shows up.

          Not sure how or why that is, but then I didn't spend much time testing this.
          All this somewhat frowned upon and completely unsupported, so can't ask.

          But I'd venture to bet the information is there if you dig deep enough.


          Be Safe in this Crazy World!
          -=Edge=-
          NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

          Comment


            #6
            Thank you-=Edge=- ! Really appreciate the context and detail in your responses. Gives me a starting place to work from. Took a look at your work on your website as well, really nice work!

            So basically I need to download the free version of LINQPad5, and just point it to the location of the NinjaTrader db in order to start poking around at this data myself?
            jaybedreamin
            NinjaTrader Ecosystem Vendor - Zion Trading Algos

            Comment


              #7
              Originally posted by jaybedreamin View Post
              So basically I need to download the free version of LINQPad5, and just point it to the location of the NinjaTrader db in order to start poking around at this data myself?
              yep. That along with writing the SQL.
              (which can definitely be tricky part)​


              Originally posted by jaybedreamin View Post
              Took a look at your work on your website as well, really nice work!
              ​ Thank You!


              Be Safe in this Crazy World!
              -=Edge=-
              NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              110 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              59 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              37 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              41 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              78 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X