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 traderqz, Today, 12:06 AM
              4 responses
              7 views
              0 likes
              Last Post traderqz  
              Started by Mongo, Today, 11:05 AM
              0 responses
              3 views
              0 likes
              Last Post Mongo
              by Mongo
               
              Started by Tim-c, Today, 10:58 AM
              0 responses
              2 views
              0 likes
              Last Post Tim-c
              by Tim-c
               
              Started by traderqz, Yesterday, 09:06 AM
              3 responses
              24 views
              0 likes
              Last Post NinjaTrader_ThomasC  
              Started by f.saeidi, Today, 10:19 AM
              1 response
              5 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X