Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Flatten open trades in a startegy

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

    Flatten open trades in a startegy

    While my strategy is running, at times I want to flatten the positions to get out of the market on a fly. I have many strategies running at the same time. I have only found how to stop a strategy one by one, but that leaves the positions open. The chart trader link is dimmed when the strategy is running.

    How can I quit a strategy and flatten the position of a specific strategy on a fly.

    Thanks

    #2
    Hello,

    Thank you for your note.

    One of the ways to do this is to have a superDOM of the instrument open and then hitting the close button on the superDOM. This will close all active strategies and close all open positions and cancel any remaining orders.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      I want to flatten positions for selected strategy only, not for all of them. Is that possible?

      Thanks

      Comment


        #4
        Hello,

        The close button would only close strategies on that instrument. Will this work for you or are you running multiple strategies on the same instrument?

        I look forward to assisting you further.
        BrettNinjaTrader Product Management

        Comment


          #5
          I run multiple strategies on same instrument. Example: TF short, TF Long

          Thanks

          Comment


            #6
            Originally posted by Nice Person View Post
            While my strategy is running, at times I want to flatten the positions to get out of the market on a fly. I have many strategies running at the same time. I have only found how to stop a strategy one by one, but that leaves the positions open. The chart trader link is dimmed when the strategy is running.

            How can I quit a strategy and flatten the position of a specific strategy on a fly.

            Thanks
            There are discretionary buttons that are available to do that, and other options to code into the buttons if you desire:


            TJ

            Comment


              #7
              I found the codes on the link given. Reading the description it seems to me that this could work but I have a novice question. Where and how do I install this script? I am looking for a guide or a link to find more about installation. Sorry about this novice question.

              Comment

              Latest Posts

              Collapse

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