• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 nctpar, Yesterday, 02:13 PM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_ChrisSch  
                Started by webus, Today, 12:02 AM
                0 responses
                5 views
                0 likes
                Last Post webus
                by webus
                 
                Started by jeronymite, Yesterday, 09:26 PM
                0 responses
                11 views
                0 likes
                Last Post jeronymite  
                Started by ttodua, 08-08-2020, 06:45 AM
                2 responses
                17 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by franco12364, Yesterday, 08:08 PM
                2 responses
                11 views
                0 likes
                Last Post franco12364  
                Working...
                X