• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

please create a breakeven for Strategy builder

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

    please create a breakeven for Strategy builder

    please create a breakeven for Strategy builder

    #2
    Hello DTSSTS,

    Thanks for your post.

    The Strategy Builder can create Breakeven functionality by logically controlling your exit in Conditions and Actions. I have attached a demonstration that can explain the basics behind creating such a strategy. Keep in mind, logic will have to be added to reset your bool that controls the Move To Breakeven so the strategy's next entry will submit the exit to the initial level.

    Demo - https://www.screencast.com/t/DsJf82f464f

    We have previously tracked your interest to have Breakevens offered out of box in the Strategy Builder in the thread here. The feature request ticket ID is SFT-2212.

    We collect interest in feature requests before determining if the feature should be implemented. For that reason we cannot offer an ETA or promise of fulfillment. Upon implementation, the number for the ticket ID can be publicly found in the Release Notes page of the help guide. I will provide a link below.

    Release Notes - https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if you have any questions.
    JimNinjaTrader Customer Service

    Comment


      #3
      spent 10 days trying to get one to work

      https://ninjatrader.com/support/foru...-average-price

      Comment


        #4
        i watched your video and will try that approach tonight thanks, where have you been for the last 10 days

        Comment


          #5
          Hello DTSSTS,

          We should be clear that in the Support Department, it is not our role design logic, but to show you how to use the tools we have available like the Strategy Builder and documented NinjaScript code. My video in post #2 is to convey an idea, and should not be taken as an example that should be used as-is.

          When creating logic, it will be necessary to take debugging steps to understand exactly what the logic you have written is doing so it can be corrected. It looks like you and NinjaTrader_Chelsea were discussing how to debug the logic. I have a video that describes how debugging prints can be added in the Strategy Builder which may help you to check and verify the logic you have created in the Builder.

          Debugging in the Strategy Builder - https://www.screencast.com/t/8uvjfM8h

          Please let me know if I can be of further assistance.
          JimNinjaTrader Customer Service

          Comment


            #6

            https://gyazo.com/4b0b8e49db07e17432feb9fffd1b4d5b

            as far as i can tell this is what i have been working on for 9 days. the issue is by the time you get back to the point For your breakeven order to be submitted your condition will no longer be True

            Default input[0] > Position.AveragePrice + (5 * TickSize))

            will not be True when the price reaches the BreakEven point

            Comment


              #7
              Hello DTSSTS,

              The idea is to set a bool when your Breakeven condition is true.

              When the bool is false and you are in position, your initial stop should be submitting.

              When the bool is true and you are in position, your an exit order should be submitting to the average entry price.

              Please let me know if you have any additional questions.
              JimNinjaTrader Customer Service

              Comment


                #8
                i am telling you it does not submit. I agree that it should. I actually sent another support topic. I have not been able to get ANY stopmarket orders to work on renko bars. ANY so i think there is issue there. Thanks

                Comment


                  #9
                  Hello DTSSTS,

                  Do you see any errors in the log tab of the Control Center?

                  Is the strategy in a virtual position calculated from historical data after you enable the strategy? Please see the bottom of this post for more details.

                  When you enable TraceOrders (set in Default Properties page of the Strategy Builder) do you see any feedback that tells you what is happening?

                  When you add debugging prints, can you verify that your conditions are becoming true, and your order submission methods are in fact getting reached?

                  When a strategy is enabled, it processes historical data to determine trades that the strategy would have made on the data that is already on the PC/chart and to determine what position the strategy is in. (Strategy positions are separate from actual Account positions.) If the strategy calculates that is in a virtual position when it transitions to processing realtime data, the strategy's Start Behavior may waiting until this position becomes flat before orders are allowed to submit with realtime data. (Wait Until Flat.) You can observe the Strategies tab of the Control Center if the strategy is in a virtual position waiting to become flat. The strategy will be orange/yellow when waiting to for the historical position to be closed, and will be green when allowed to trade live.

                  Strategy Position vs. Account Position - https://ninjatrader.com/support/help..._account_p.htm

                  Start Behaviors - https://ninjatrader.com/support/help..._positions.htm

                  Trace Orders - https://ninjatrader.com/support/help...aceorders2.htm

                  I look forward to being of further assistance.
                  JimNinjaTrader Customer Service

                  Comment


                    #10
                    Great Video to set Break Even or Other advancing stops

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Mberg, Today, 05:13 PM
                    0 responses
                    0 views
                    0 likes
                    Last Post Mberg
                    by Mberg
                     
                    Started by Barry Milan, Today, 01:33 PM
                    2 responses
                    7 views
                    0 likes
                    Last Post marcus2300  
                    Started by NW Trader, Today, 03:42 PM
                    2 responses
                    7 views
                    0 likes
                    Last Post NW Trader  
                    Started by ralett, Today, 01:42 PM
                    1 response
                    4 views
                    0 likes
                    Last Post NinjaTrader_ShawnB  
                    Started by dkbyond, Yesterday, 04:11 PM
                    1 response
                    22 views
                    0 likes
                    Last Post NinjaTrader_ChrisL  
                    Working...
                    X