Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"Global" Money Management

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

    "Global" Money Management

    Are there any way to control money management setting in NT, especially for Automated Trading?

    For example, say I only want to trade 20% of my equity.

    Or, I will allow a 10% drawdown but then no new trades may be entered, or perhaps even all strategies become disabled upon a 10% drawdown.

    Thanks

    #2
    Hi outstretchedarm,

    Yes, it's possible to work with the trade performance class for money management, and halt strategies after a condition. Trade Performance statistics are specific to the strategy that generates them, so you would have to do your own aggregation from multiple strategy instances. That could be done reading/writing to a file.

    These two samples can help working with TradePerformance:

    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      thanks.

      I'm starting to notice that alot of key features need to be coded. Of course, I can't code worth a lick. Maybe a wizard for this in the future, or an options window?

      Comment


        #4
        Yes, our strategy framework is built with C#, a complete coding language. There can be an initial learning curve if you have never been exposed to programming concepts. We also offer a point and click GUI for creating strategies, in the strategy wizard.



        This is good to get you started, and you can create a lot of different conditions and actions there that interface directly with NinjaScript.

        Of course, working with code provides the most control. If you have run into the limit with what you can do in the strategy wizard, next step is learning NinjaScript or consider hiring a consultant if you have limited time or programming experience.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          This is exactly what I am looking for...do you know where to find some examples?

          Thanks
          Bob

          Comment


            #6
            Bob, you could for example look into this simple example attached created solely with the Strategy Wizard - you can import the zip via File > Utilities > Import NinjaScript.
            Attached Files

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              Bob, you could for example look into this simple example attached created solely with the Strategy Wizard - you can import the zip via File > Utilities > Import NinjaScript.
              Thanks Bertrand... I imported and it works fine on its own, had some difficulties integrating with my strategy... Will work it and make it work.... I keep track of day of week and time of day as well and I think that this goes into same protected overide. or a separate protected overide?

              Comment


                #8
                If you have your own variables, these belong in the variables region. You should not have to create a new method or event handler (protected override void), unless you have a specific need.

                Most all the coding you're doing will take place within the structure created when you create a new script. The different parts of a NinjaScript indicator are explained here:

                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                103 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                52 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                34 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                37 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                74 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X