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

Auto Breakeven

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

    Auto Breakeven

    Hello,

    I would like to implement an auto breakeven into my current strategy. I would like it to automatically set a total stop loss at breakeven after moving up 10 points.

    How would I do this?

    Thank you.

    #2
    ChelsieB. with NinjaTrader Customer Service ​ has created a very helpful Strategy example, named:

    BreakEvenBuilderExample_NT8.zip (you can Search for it, here in the Forum)

    This example has been created using Strategy Builder and has both a practical and an educational value !
    Last edited by KonstantinosNT; 01-12-2023, 02:52 AM.

    Comment


      #3
      Hello, thanks for writing in. The examples in the strategy builder for break even and a trailing stop can be found here:



      Kind regards,

      -ChrisL

      Chris L.NinjaTrader Customer Service

      Comment


        #4
        Hello Chris,

        Thank you for the info, I have followed the steps in Chelsea's tutorial but still cannot seem to figure out why it is not working. I have set my trade entry conditions to trigger state 1 and followed the rest of the example strategy but the breakeven still does not set.

        Comment


          #5
          Hello, thanks for the follow up. The examples I sent in my last reply work. Please import those and test them out to see how the logic works. Unfortunately, the support team will not be able to assist in debugging custom scripts. This is so we can provide help to all requests in a timely matter.
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            That is okay, quick question about the triggers. Is it okay to have more than 1 "trigger 1" i.e. wiil have 2 "trigger 1"s, one for short and one for long? Is this possible or should unique triggers be used?

            Comment


              #7
              Hello, thanks for the follow up To have long and short orders you would need to just duplicate the logic within the example I sent, one set for long and another set for short orders.
              Chris L.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by burtoninlondon, Today, 12:38 AM
              0 responses
              5 views
              0 likes
              Last Post burtoninlondon  
              Started by AaronKoRn, Yesterday, 09:49 PM
              0 responses
              12 views
              0 likes
              Last Post AaronKoRn  
              Started by carnitron, Yesterday, 08:42 PM
              0 responses
              11 views
              0 likes
              Last Post carnitron  
              Started by strategist007, Yesterday, 07:51 PM
              0 responses
              13 views
              0 likes
              Last Post strategist007  
              Started by StockTrader88, 03-06-2021, 08:58 AM
              44 responses
              3,982 views
              3 likes
              Last Post jhudas88  
              Working...
              X