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

Querying Account Performance.

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

    Querying Account Performance.

    Is there a way I can query Account Performance (say based on an account name and a date-range) within a strategy. I'd like to programatically access Account Performance (as seen within the NT ui) when I receive execution notifications of a trade.

    thanks!
    jon

    #2
    Hello,

    This link may help:

    Try this one too:
    DenNinjaTrader Customer Service

    Comment


      #3
      NT_Ben,

      Thank you for the response. I am looking for a way to find trade performance data based on account information (for example by using an accountname, etc) and by limiting that data based on a date-range. I don't see how that is possible using the links you provided. Is there a way to do this (there must be since the NT UI contains all of this information)?

      thanks-
      jon

      Comment


        #4
        Hello,

        Your options are listed in the links I provided. Your only other option is to record the fill price in a variable and check the profit againsted the most recent price etc. within your program. Sorry!
        DenNinjaTrader Customer Service

        Comment


          #5
          Is there a way to query this information from the local computer that NT is running on (instead of per-se the NT database..)?

          regards

          Comment


            #6
            Hi there, unfortunately accessing the data presented in the UI is unsupported.

            You could try building your own database and saving all the relevant information. Every IExecution and IOrder update includes a time property.

            In addition, the methods in the post Ben referred you to (Trade Class (entry and exit specifically), and Trade Collection Class) return time properties (via IExecutions). You might have to build your own time filter though.
            Last edited by NinjaTrader_Austin; 07-28-2009, 01:36 PM.
            AustinNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by lorem, 04-25-2024, 09:18 AM
            19 responses
            81 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by joselube001, 05-10-2024, 12:17 PM
            6 responses
            29 views
            0 likes
            Last Post joselube001  
            Started by bigc0220, 09-18-2018, 09:16 AM
            6 responses
            2,580 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by DawnTreader, 05-08-2024, 05:58 PM
            21 responses
            81 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by doihaveto13, Today, 12:46 PM
            2 responses
            8 views
            0 likes
            Last Post doihaveto13  
            Working...
            X