Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AccountSize

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

    AccountSize

    Hello,

    i have a problem with AccountSize atribut..
    i set:
    Initialize() {
    AccoutSize=10000;
    }

    and then

    OnBarUpdate() {
    sometimes EnterLong();
    sometimes EnterShort();
    Print("Current size of my account is "+AccountSize);
    }

    but it is still writing:
    Current size of my account is 10000
    Current size of my account is 10000
    Current size of my account is 10000...

    Why is the accountSize still on 10000?
    I thought when I am entering to long and entering to short the account size will sometimes lower and sometimes higher (if the contract will win then higher and if the contract will lose then the account size will be lower).

    Thank you for your advice ... Zooinek

    #2
    AccountSize is the starting account size. You have to manually calculate your current account balance using the starting account balance and adding your realized gains/losses using something like Performance.AllTrades.TradesPerformance.Currency.C umProfit. You'll also need to see if you only want to consider money that is free to immediately invest (not invested currently), unrealized gains, etc.

    I'd suggest to NT staff that the documentation be updated to make the purpose of AccountSize more clear:


    The rumor is that NT7 will have better account balance tracking support.
    Last edited by Anagoge; 04-23-2009, 11:00 PM.

    Comment


      #3
      To clarify, AccountSize only dynamically updates if you use the proper order quantity settings as outlined in the Help Guide article Anagoge posted.
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        I am trying to do this:

        I have any trading system. And this trading system win sometimes and lose sometimes..
        And I have two account graphs. Firs is called RealAccount and the second is FakeAccount. The first is the same as the second in begin. Both of them start on 0.
        Then start my strategy.. the strategy is winning and loosing and these graph are growing up and falling down. These graph are same.
        But the FakeAccount has EMA(15)[0]. When the value of this FakeAccount will fall under his EMA then the real ordering will stop and the strategy will only simulate next ordering and just for the FakeAccount. (So there will be not the real ordering. There will be only calculating how would the RealAccount looks like if we will real order.) So the RealAccount will stop his growing and falling for while. Until the FakeAccount value will grow up over the EMA and in this moment will the real ordering start again also for RealAccount.

        Could you please help me with this?

        Comment


          #5
          So is there anyone who could help me or did i write the description bad?

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          558 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X