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

Accessing past trades

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

    Accessing past trades

    Is there a way to retrieve information on all trades associated with the account that my strategy is running for? I need to see all trades, not just trades executed by the strategy itself. Need trade date, instrument and profit/loss. thanks!

    #2
    Hello pman777,

    Thanks for your post.

    You can find this information by using New>Trade Performance. You can use the filter (funnel icon) to select account, instruments and other selections.

    Please see the help guide here: https://ninjatrader.com/support/help...erformance.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Need to do this within a strategy

      Comment


        #4
        Hello pman777,

        Thanks for your reply.

        Can you clarify what you are trying to do, what your end goal is?

        You mentioned, " Need trade date, instrument and profit/loss.", how far back are you looking to go, current session or further back yet?




        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Its for an internal risk mgmt algo ... need at least last 10 trades for the given account the strategy is running for

          Comment


            #6
            Hello pman777,

            Thanks for your reply.

            There is no supported way to accomplish your goal.

            I understand it would be possible by directly accessing the NinjaTrader SQL Database through C#. Again this would be unsupported.

            Here is a link to a thread where this subject is discussed (it is NT7 but may provide some ideas): https://ninjatrader.com/support/foru...sample?t=10296
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Thank you Paul

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by andrewtrades, Today, 04:57 PM
              1 response
              5 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by chbruno, Today, 04:10 PM
              0 responses
              3 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Started by josh18955, 03-25-2023, 11:16 AM
              6 responses
              436 views
              0 likes
              Last Post Delerium  
              Started by FAQtrader, Today, 03:35 PM
              0 responses
              7 views
              0 likes
              Last Post FAQtrader  
              Started by rocketman7, Today, 09:41 AM
              5 responses
              19 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X