Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

halt trading after x consecutive losses

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

    halt trading after x consecutive losses

    Hi,

    is there any way to get a strategy to stop trading for the day (and only the the day) after x consecutive losses?

    #2
    Hi diffused, you can check this reference sample for this - http://www.ninjatrader-support2.com/...ead.php?t=4804

    Comment


      #3
      How do you know a strategy has halted. Does it "stop" in the strategy window, or does it simply stop processing orders?

      Comment


        #4
        It just stops trading. It will still show up in the Strategies tab as ON though.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I see... if there anyway to stop the strategy?

          Comment


            #6
            Unfortunately you have to do that manually..
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              simplest way is to insert a print statement... something like

              Code:
              Print ("Strategy Halted" + "    " + "P&L is:" + " " + Performance.RealtimeTrades.TradesPerformance.Currency.CumProfit + "    " + "Number of trades is:" + " " + Performance.RealtimeTrades.Count)

              can add a timestamp or something to let you know what time the halt command was sent too

              Comment


                #8
                This reference sample (http://www.ninjatrader-support2.com/...ead.php?t=4804) outlines halting a strategy only after a certain profit or loss target is met. Is there a reference sample that outlines halting a strategy after a number of trades are made? For example, After 5 trades for the day, halt strategy.

                Comment


                  #9
                  Welcome to our forums - yes you could check for example into the SampleTradeLimiter script offered here - http://www.ninjatrader.com/support/f...ad.php?t=19182

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by SalmaTrader, 07-07-2026, 10:26 PM
                  0 responses
                  47 views
                  0 likes
                  Last Post SalmaTrader  
                  Started by CarlTrading, 07-05-2026, 01:16 PM
                  0 responses
                  22 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CaptainJack, 06-17-2026, 10:32 AM
                  0 responses
                  15 views
                  0 likes
                  Last Post CaptainJack  
                  Started by kinfxhk, 06-17-2026, 04:15 AM
                  0 responses
                  21 views
                  0 likes
                  Last Post kinfxhk
                  by kinfxhk
                   
                  Started by kinfxhk, 06-17-2026, 04:06 AM
                  0 responses
                  23 views
                  0 likes
                  Last Post kinfxhk
                  by kinfxhk
                   
                  Working...
                  X