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 llanqui, Yesterday, 12:51 PM
              3 responses
              9 views
              0 likes
              Last Post llanqui
              by llanqui
               
              Started by FAQtrader, 04-25-2024, 12:00 PM
              4 responses
              51 views
              0 likes
              Last Post blkbird
              by blkbird
               
              Started by dcriador, Yesterday, 10:45 AM
              5 responses
              32 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by llanqui, Today, 09:59 AM
              0 responses
              1 view
              0 likes
              Last Post llanqui
              by llanqui
               
              Started by Haiasi, Today, 09:16 AM
              2 responses
              7 views
              0 likes
              Last Post Haiasi
              by Haiasi
               
              Working...
              X