Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
          Paul H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          147 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          5 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          33 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          4 views
          0 likes
          Last Post tkaboris  
          Started by GussJ, 03-04-2020, 03:11 PM
          16 responses
          3,282 views
          0 likes
          Last Post Leafcutter  
          Working...
          X