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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        117 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        166 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        85 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        130 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        88 views
        0 likes
        Last Post PaulMohn  
        Working...
        X