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 MacDad, 02-25-2024, 11:48 PM
        8 responses
        171 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by alancurry, Today, 06:53 AM
        0 responses
        4 views
        0 likes
        Last Post alancurry  
        Started by Juanhuisman, Today, 06:51 AM
        0 responses
        2 views
        0 likes
        Last Post Juanhuisman  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        173 responses
        2,339 views
        0 likes
        Last Post intelligenttrader  
        Started by ArkansasClint, 04-25-2024, 09:28 AM
        1 response
        23 views
        0 likes
        Last Post Leafcutter  
        Working...
        X