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 to fetch all trades from trade performance window

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

    How to fetch all trades from trade performance window

    Hello,

    I've studied the docs but the nearest I can find to what I'm looking for is https://ninjatrader.com/support/help...ric_values.htm
    Last edited by TradingRocks; 02-17-2020, 05:14 PM.

    #2
    Hello TradingRocks, thanks for your post.

    To do this in an indicator you will need to set up an account object similar to this example. After that is set up, you can get an Execution collection from the Account object. With the execution collection you can create "Trades", comprising of one entry execution and one exit execution.

    Please let me know if you have any questions on this material.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris,

      Many thanks for your response.

      I took a look at this and building the trades data myself from the executions on the account. However there is a problem with this method. If I look at my trades within my trade performance, I can see 13 trades (from the last 5 days). However, when I look at the executions (within the executions tab), it only shows two executions (from today, the rest are missing). Are executions only stored in NT for the current day? It seems that way.

      Is there another way to access this the trade information?

      Comment


        #4
        Actually, I have just found this...

        https://ninjatrader.com/support/foru...tions?t=109434

        This appears to be the same issue for me.
        Last edited by TradingRocks; 02-17-2020, 05:14 PM.

        Comment


          #5
          Hi TradingRocks, thanks for your reply.

          Now that I read that post I do recall this limitation. It looks like that feature request is still open with plenty of votes on it, I'll add a vote for you as well. Currently, it is still not supported, but it is possible to grab this data form the NinjaTrader core if you are willing to dig through IntelliSense to find it.
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            Hi Chris,

            That would do. I'm not familiar with Ninja Core but I should be able to figure it out.
            Last edited by TradingRocks; 02-17-2020, 05:14 PM.

            Comment


              #7
              Hi TradingRocks, thanks for your reply.

              I'm honestly not sure where that resides in the core. I just gathered from a knowledge base page that it is possible from the core, but there are no details on how to do it. I will ask a colleague if they can provide a code sample to get you started, but if I can not find anything there I would not be able to dig any further since it is unsupported. That will be on Monday since my colleague is out of the office already.

              Kind regards.
              Chris L.NinjaTrader Customer Service

              Comment


                #8
                Hi TradingRocks, thanks for your patience.

                I asked our NinjaScript team but nobody has made an example of this. I will add a vote to the SFT-586 feature request vote for you. Please track new releases through the release notes upon future updates:



                Best regards.
                Chris L.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by lorem, Today, 09:18 AM
                0 responses
                2 views
                0 likes
                Last Post lorem
                by lorem
                 
                Started by hazylizard, Today, 08:38 AM
                4 responses
                11 views
                0 likes
                Last Post hazylizard  
                Started by geddyisodin, Today, 05:20 AM
                2 responses
                20 views
                0 likes
                Last Post geddyisodin  
                Started by Max238, Today, 01:28 AM
                5 responses
                47 views
                0 likes
                Last Post Max238
                by Max238
                 
                Started by giulyko00, Yesterday, 12:03 PM
                3 responses
                13 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Working...
                X