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 Taddypole, 04-26-2024, 02:47 PM
        5 responses
        35 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by kujista, 04-23-2024, 06:23 AM
        6 responses
        47 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by giulyko00, 04-24-2024, 12:03 PM
        7 responses
        36 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by NM_eFe, Today, 10:13 AM
        0 responses
        10 views
        0 likes
        Last Post NM_eFe
        by NM_eFe
         
        Started by hdge4u, Yesterday, 12:23 PM
        1 response
        10 views
        0 likes
        Last Post hdge4u
        by hdge4u
         
        Working...
        X