Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dynamic Account Value?

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

    Dynamic Account Value?

    I read in the docs that AccountSize is dynamic when SetOrderSize:ByAccountSize but i'm finding that my AccountSize isn't updating. Am I doing something wrong or do I need to calc it myself?

    TIA

    #2
    Please ensure you are actually using ByAccountSize. Otherwise you will need to self calculate.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I'm pretty sure i have it set as advised.

      In the order properties of strategy dialog:

      Account size:10000
      Set order quantity: by account size
      Time in force: Gtc

      The strategy is running live sim, update on close = true.
      I'm specifying order size in the strategy with integer quantities.
      On every OnBarUpdate() it Print() realtime p/l and AccountSize. The realtime p/l is updating but the AccountSize doesn't seem to change.

      Comment


        #4
        darckeen,

        When you use account size for your order placement it should not care what integer quantity you place and instead always try to max out the number of shares by account size. Please confirm you are seeing this behavior to ensure you have the correct settings.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Naw the orders are going in according to what I set as the integer size as.

          if (Close[0] > sma[0]) EnterLong(tradeinc,"entry");
          else EnterShort(tradeinc,"entry");

          Comment


            #6
            darckeen,

            Please use an instance of your strategy where you are not using the integer quantities and leave that up to ByAccountSize to determine. That should solve your issue.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              kk thanks Josh

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, Yesterday, 10:06 AM
              0 responses
              14 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              11 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              9 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              4 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              31 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X