Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Variable for Open Equity to determine order quantity remains the same

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

    Variable for Open Equity to determine order quantity remains the same

    I notice on 6.5 that If I set the Qty for order to "starting" Account Size (ex, 100,000)....

    Even if the equity is already large due to cumulative profits, it still calculates the quantity as if the equity is still at starting Account Size.

    Shouldnt this adjust to the current equity for next order's position size?

    #2
    Hi Oil_Trader,

    Unfortunately that is not how the field behaves, you will need to include that logic in your code.

    Two options:

    Access your account size while running a strategy live (not necessarily with real money) by using the GetAccountValue() method: http://www.ninjatrader.com/support/h...countvalue.htm

    Another option would be to create a variable that you input the starting account balance into, and then when each trade closes, you can update that value to run your position sizing calculations.

    This sample goes over how to use performance data in your strategy: http://www.ninjatrader.com/support/f...ead.php?t=4084
    TimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X