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

How I can accomplish getting data from multiple strategies?

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

    How I can accomplish getting data from multiple strategies?

    Forgive me if this is a newbie question...I appreciate any insight you can provide.

    I am running a large number (20) of third party strategies on various instruments in NT. These run on the simulated data feed. Each time a trade is initiated by any one of these strategies, I need to log information about that trade (contract, short/long, number of shares, price, etc, etc) to an external database, or the very least a log file. I can handle the database insertion, etc, but I'm unsure how to make each strategy (or ninjatrader itself) make this data available, especially since I don't have access to the third-party strategies' source.

    Is this possible?

    Thanks guys!

    #2
    nijwiv,

    You can try the Trade class or the Performance class. You can also break it down to the IOrder or IExecution to get information too.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      nijwiv,

      You can try the Trade class or the Performance class. You can also break it down to the IOrder or IExecution to get information too.
      Thanks Josh. Is there an example app that shows use of these?

      Additionally, from where would I try these classes? Since I don't have access to the strategy source, I can't there. The client API doesn't seem to support the above. Where should I begin with this code?

      Thanks!

      Comment


        #4
        nijwiv,

        To use these you have to have access to the strategy code. Unfortunately this is the only way to get this information.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          nijwiv,

          To use these you have to have access to the strategy code. Unfortunately this is the only way to get this information.
          Hi Josh...thanks again for your help.

          Is there no way to extend these strategies through class inheritance or something else to add additional event hooks? Aren't the strategies really just normal C# classes, and couldn't I wrap or hook into them in some way, even without the source?

          I appreciate it!

          Comment


            #6
            Unfortunately that would be outside the scope of what we can offer support for. Thanks for understanding.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              Unfortunately that would be outside the scope of what we can offer support for. Thanks for understanding.
              Hey Josh. I do understand...but can I pay you to provide this support?

              Comment


                #8
                nijwiv,

                I understand your desire on this subject, but unfortunately we just do not offer this service.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Josh,

                  Thanks. What if I wanted to execute trades in other accounts within NT based on the results of these strategies? This is the route I'm thinking I'd like to go. Let's say I have a strategy that follows a certain pattern and executes trades. I want to have another strategy that pays attention to the first strategy and execute trades in other accounts when trades in the first strategy happens. However, I don't have the source code to the first strategy. Is this possible? If so, I think this will satisfy my needs.

                  Thank!

                  Comment


                    #10
                    Cross strategy communication is beyond the level of support we offer. You can try searching the forums for how others have done this though. It requires more advanced programming then we can cover.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      You might want to have a look at this thread:


                      Be sure to thank Ralph.


                      Thanks,

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by arvidvanstaey, Today, 02:19 PM
                      4 responses
                      11 views
                      0 likes
                      Last Post arvidvanstaey  
                      Started by samish18, 04-17-2024, 08:57 AM
                      16 responses
                      60 views
                      0 likes
                      Last Post samish18  
                      Started by jordanq2, Today, 03:10 PM
                      2 responses
                      9 views
                      0 likes
                      Last Post jordanq2  
                      Started by traderqz, Today, 12:06 AM
                      10 responses
                      18 views
                      0 likes
                      Last Post traderqz  
                      Started by algospoke, 04-17-2024, 06:40 PM
                      5 responses
                      48 views
                      0 likes
                      Last Post NinjaTrader_Jesse  
                      Working...
                      X