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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X