Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Allow for manual changes

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

    Allow for manual changes

    I have a strategy that works well but periodically i want to move my stop or close the position manually. Any time i do this it automatically closes the position and disables the strategy. If I restart the strategy it loses the data it has collected and is no longer accurate because it uses the open price of the session. I used the strategy builder to code this and I'd like to be able to do manual adjustments as the day goes without disabling the strategy, Is there a way in the strategy builder to set that?

    Thanks!

    #2
    Hi,

    You can't.

    Maybe it's feature so the Close button can be used as a panic button, a 'stop the Strategy Now!" button ?

    So you can't.


    YOU.... can't.


    However, your strategy Can.

    If you host buttons from your Strategy and have the Strategy itself execute order actions driven by clicks on buttons then it is the Strategy executing the close and not another party. So the Strategy keeps humming.

    Example of one way to do that.. These example buttons execute Longs and Shorts but you can modify/extend this code to execute the Close as well.
    https://ninjatraderecosystem.com/use...bar-buttons-2/

    HedgePlay

    Comment


      #3
      Wow thanks! Can I have it move the stop to break even plus a few points?

      Comment


        #4
        Originally posted by Shiner452 View Post
        Wow thanks! Can I have it move the stop to break even plus a few points?
        Yes.

        One of the best ways to search the forums here and everywhere for NinjaTrader is Google.

        I just Googled a query as simple as "Ninjatrader Builder BE Break Even"

        https://www.google.com/search?q=Ninjatrader+Builder+BEBreak+Even&ei=OHgDY cnkBJe6tAbA6IXwBw&oq=Ninjatrader+Builder+BEBreak+E ven&gs_lcp=Cgdnd3Mtd2l6EAMyBggAEBYQHjoHCAAQRxCwAzo ICAAQgAQQsQM6BAgAEEM6BQgAEIAEOgQIABANOgYIABANEB46B QghEKABOgcIIRAKEKABOggIIRAWEB0QHkoECEEYAFCHEFikSWC 2TGgBcAJ4AIABkwGIAfwQkgEEMTUuN5gBAKABAcgBCMABAQ&sc lient=gws-wiz&ved=0ahUKEwjJ4JaJ84nyAhUXHc0KHUB0AX4Q4dUDCA8&u act=5


        "Journey to the second post in the first search results link to find the wisdom you seek." Lol


        In reality you might find something worth reading in most every link in the first page of Google Search results.


        HedgePlay
        Last edited by hedgeplay; 07-29-2021, 10:06 PM.

        Comment


          #5
          Hello Shiner452,

          Thanks for your post.

          Forum member hedgeplay has provided you with the correct advice.

          The close button will automatically disable any strategy running on the instrument.

          In most strategies, you cannot adjust the stop/profit targets like an ATM. It is possible to create a ninjascript strategy that does work with an ATM template, however, this type of strategy cannot be done with the strategy builder.

          In your other forum thread, https://ninjatrader.com/support/foru...ak-even-plus-1 I have provided a link to an example of a strategy builder break-even example.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          93 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          138 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          123 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          73 views
          0 likes
          Last Post PaulMohn  
          Working...
          X