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 know the capital value of my account at all times?

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

    How to know the capital value of my account at all times?

    I am developing a strategy and I need to know the capital value in the last 100 bars. Is there any indicator or variable that stores that value?

    #2
    Hello lju45,

    I am not personally aware of an indicator with this description.

    This thread will remain open for any community members that may know of this indicator.


    You have posted in Strategy Development section of the forums. Are you trying to code your own script in C# (development)?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Yes, I am developing the strategy in a script but I need to access the capital value. How can I access it?

      Comment


        #4
        Hello lju45,

        I'm not familiar with capital value.

        This would not be market data or fundamental data.
        https://ninjatrader.com/support/help...aeventargs.htm
        https://ninjatrader.com/support/help...aeventargs.htm

        This means that value likely would not be something you can get from a connected data feed.

        What do you consider Capital Value?

        Is this is a calculated value or something that comes from a feed?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you,

          I am simply referring to the money I have in my account at all times. I need it as a series to be able to calculate the average of the last 10 values.
          Last edited by lju45; 07-14-2020, 08:16 AM.

          Comment


            #6
            Hello lju45,

            With brokerage accounts NinjaTrader can access the BuyingPower and CashValue if these are supported by your broker. If your broker has an account value that is specifically called Capital Value, this would not be accessible in NinjaTrader.
            https://ninjatrader.com/support/help...ccountitem.htm
            https://ninjatrader.com/support/helpGuides/nt8/get.htm
            https://ninjatrader.com/support/help...itemupdate.htm
            https://ninjatrader.com/support/helpGuides/nt8/index.html?accounts_tab.htm#UnderstandingTheAccoun tsTab
            Last edited by NinjaTrader_ChelseaB; 07-14-2020, 08:33 AM.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hi,

              Thank you, when I use:
              Print(Account.Get(AccountItem.CashValue, Currency.UsDollar));
              the output is allways 100000 although there are several trades with positive and negative impact.
              I would like the impact of each trade to be reflected so that I can evaluate them.

              Comment


                #8
                Hello lju45,

                The strategy performance can be accessed from the StrategyPerformance TradeCollection.
                https://ninjatrader.com/support/help...erformance.htm
                https://ninjatrader.com/support/help...collection.htm
                Chelsea B.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by GeorgeW, Today, 07:52 AM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by Rocket, Yesterday, 08:05 PM
                1 response
                29 views
                0 likes
                Last Post NinjaTrader_ChrisL  
                Started by SuperDude123, Today, 06:35 AM
                0 responses
                10 views
                0 likes
                Last Post SuperDude123  
                Started by sgordet, Today, 06:14 AM
                1 response
                13 views
                0 likes
                Last Post NinjaTrader_Jason  
                Started by PaulMohn, Today, 04:26 AM
                1 response
                17 views
                0 likes
                Last Post bltdavid  
                Working...
                X