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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X