Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trade based off of Sim account size

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

    Trade based off of Sim account size

    I want to test how a system I have written will perform when I position size based on current account size. Is this possible?

    Exaple: Start with $25000. Each trade will risk 5% of the total current account (so it trades heavier as it increases and lighter as it decreases)

    My system already has a variable which takes in dollar amount to risk so I can manually trade this but ideally I would like it to look at the account size and find a percentage so I can backtest my method.

    #2
    shazzmoe, it is possible with NinjaTrader 7 to access your account size while running a strategy live (not necessarily with real money) by using the GetAccountValue() method.

    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.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Thank you very much this has been a great help for me trying to properly position size

      Comment


        #4
        shazzmoe, you are very welcome. Enjoy the rest of your evening!
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        26 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, Yesterday, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        192 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,234 views
        0 likes
        Last Post xiinteractive  
        Working...
        X