Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Breakeven on strategy builder

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

    #31
    Hello corvettecandles,

    Our policy is that we do not write code for clients to use to trade. We provide examples for developers to learn from only, as well as to demonstrate that NinjaScript tools work as documented.

    This is because we have an ecosystem of developers and educators who's entire business is to do consulting work to develop strategies and addons at customers request as well as provide one on one educational services. Meaning, that we do not provide the services of our ecosystem partners. Further, our team does not have the bandwidth to provide free development and free educational services.

    This thread will remain open of course for any community members that would like to develop your strategy as a convenience to you.

    I will have a member of the Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.


    Should you have interest in learning about how the example works or if you have inquiries about NinjaScript tools or methods, I am happy to answer any specific questions you have.

    That said, I have directed you that if you wanted to ignore our policy and use the example, the code would be added before or in place of the conditions that place orders with EnterLong() and EnterShort().
    May I confirm, you can find which condition sets are calling EnterLong() and EnterShort() in the example?


    "or can i just request someone else to talk to?"

    Our support does not work that way. Asking other members of our support to violate our policy will not result in achieving them to do so.

    While we are happy to continue providing direction and examples, we will not be providing code for you to actually use to trade.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #32
      Hello corvettecandles,

      This is Chris from the NinjaTrader Ecosystem responding on behalf of my colleague Chelsea.

      You can search our list of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more:You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third-party services for NinjaTrader, all pricing and support information will need to be obtained through the consultant.

      The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem, LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
      Christopher S.NinjaTrader Customer Service

      Comment


        #33
        i never asked you or anyone to write any code. Not once.

        I was just working from the strategy builder. NOT THE CODE OR NINJA SCRIPT EDITOR. i just assumed i could put the conditions for longs and shorts into the strategy builder somewhere. is that not so?

        Im not trying to unlock the code and do it that way.

        i was trying to put it into one of the sets. set 2 and set 3 are the only sets that have the "actions" of "enter long" or "enter short".

        all ive been asking is where to put things in the strategy builder to make this work...

        Are you saying to put the long conditions in the Set 2 and the short conditions in the Set 3? Emily said to put them before so i assumed she meant Set 1. thats why ive been asking.

        Then the last part.. where do i put a Stop loss or Profit target. Emily said that this example doesnt use the "target and stop" section of the builder. So where would they go?

        Comment


          #34
          Hello corvettecandles,

          The code was written as an example. This example was not written with the intention that you would trade the example. The example was written for you to learn from, so that you can write your own custom logic, with understanding of how the code works.

          Yes, you can add conditions. You can add conditions by clicking the + tab at the bottom of the Conditions and Actions page where each tab set Set.

          I have not directed you to unlock the code.

          "i was trying to put it into one of the sets. set 2 and set 3 are the only sets that have the "actions" of "enter long" or "enter short"."

          If you intend to trade the example, yes set 2 and set 3 are where the entry conditions are evaluated and the entry orders submitted. You can add your entry conditions before or replacing these.

          Emily would be advising to add a new condition set and place this before the exit conditions. This would not necessary mean to add to an existing condition set.

          However, the point would be that you understand what the logic in each condition set is doing, that way you can intelligently use that knowledge to make your own strategy that has the ability to do a breakeven. You should be fully understanding what every part of the strategy logic does. If you do not, ask questions so that we can explain what each line is doing.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #35
            Hello i cant incorpore the BE strategy i got so many errros of codification, so if you can give me back the strategy whit BE i would appreciate.
            Attached Files

            Comment


              #36
              Hello Fedelloret,

              Thank you for your post and welcome to the NinjaTrader forums!

              Unfortunately, in the support department at NinjaTrader it is against our policy to create, debug, or modify, code or logic for our clients. Further, we do not provide C# programming education services or one on one educational support in our NinjaScript Support department. This is so that we can maintain a high level of service for all of our clients as well as our associates.

              That said, through email or on the forum we are happy to answer any questions you may have about NinjaScript if you decide to continue with adding the breakeven function yourself. We are also happy to assist with finding resources in our help guide as well as simple examples, and we are happy to assist with guiding you through the debugging process in order to understand unexpected behavior. If you would like assistance understanding how to debug the errors you received, please advise what the error messages reported so we may better assist you.

              Another option is to contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. A member of our NinjaTrader Ecosystem team has advised how to go about this process in post number 34 of this thread.

              ​Please let us know if any of these options interest you and we'd be glad to further assist.

              Comment


                #37
                Hi Support Team,

                I have added the ''LongShortBreakEvenBuilderExample.zip'' in my strategy. Everything is running well, except that the Target Price doesn't display on my chart. StopLoss is displayed but no Target Price on the chart. Could you please help me solving this issue?

                In addition, is there a way to select which rules to apply? Meaning for Long only or for Short only? The ''LongShortBreakEvenBuilderExample.zip'' is for long and short. I would like to select short or long depending on the trend.

                Thanks for your comments.
                Last edited by NGVLTRADING; 03-07-2023, 10:00 AM.

                Comment


                  #38
                  Hello NGVLTRADING,

                  Thank you for your note.

                  The Stop Loss shows on the short because it is using a Stop Market order - either ExitLongStopMarket or ExitShortStopMarket. The profit target orders in the example use a market order, ExitLong or ExitShort, and will not show on your chart. You would need to change the order type used if you would like to see the working order on your chart while running the strategy.

                  The initial example in this thread only went long:
                  Please help me add a breakeven stop to a trategy developed on the builder, im not good with programming...ive tried something like Current Ask greter/equal positian.average.price(+15) then...exitLONG as a sTOP order, and on the price i set average.position.price -15 but the order doesnt happen .... if i insted just put exit

                  Then, Kate made the LongShortBreakEvenBuilderExample based on the note in post number 10 about going long and short. To work with long or short only, you could change the entry conditions for long vs. short entries based on the "trend" that you are looking for. Otherwise, if you want to manually choose which strategy you would like to use, you could separate it into two strategies (one that only goes long and one that only goes short), and depending on the circumstances you can choose to enable one strategy or the other.

                  Please let us know if we may be of further assistance.

                  Comment


                    #39
                    Hello Emily,

                    Thanks for your comments.

                    Sorry but I am new with NinjaTrader and Strategy Builder, Could you please precise what is the order type which could be used in replacement of Stop Market Order? Any example to share?

                    Thanks for your support.

                    Comment


                      #40
                      Hello NGVLTRADING,

                      Thank you for your reply.

                      The order type to use is completely up to you; you could keep it as is with the market order or you could change to one of the other Exit Long order options. I have made some screenshots to explain using Set 10 of the Conditions and Actions screen from the LongShortBreakEvenBuilderExample and I replaced the ExitLong order with ExitLongLimit instead as an example.Please let me know if I may be of further assistance.
                      Last edited by NinjaTrader_Emily; 03-08-2023, 03:36 PM.

                      Comment


                        #41
                        Thank you Emily. I followed your instructions and everything is running well now.

                        The only remaining issue is that the strategy status in the Control Panel remains yellow. Did I miss something in the configuration?

                        Thank you.
                        Last edited by NGVLTRADING; 03-08-2023, 06:15 PM.

                        Comment


                          #42
                          Originally posted by NGVLTRADING View Post
                          Thank you Emily. It is really appreciated.

                          Sorry but your screencast 3 (xZ8r9JH) can not be opened. Could you please share it again?

                          Thanks
                          Oops! Thanks for pointing that out. I edited the link in my post, so now it should work.

                          World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.

                          Comment


                            #43
                            ​Thank you Emily, I followed your instructions and it is running as expected now.
                            Last edited by NGVLTRADING; 03-09-2023, 02:39 PM.

                            Comment


                              #44
                              Hello NGVLTRADING,

                              Thank you for your reply.

                              If the strategy name on the Strategy tab is yellow, this likely means that the strategy is in an open position and it is waiting to be flat to sync with the account position. For more information, please see the following pages in the help guide:Please let me know if I may be of further assistance.

                              Comment


                                #45
                                Originally posted by NinjaTrader_Kate View Post
                                Hello Vinnypoker,

                                Thank you for your post.

                                I'm attaching a simple example showing how to create a stop order that moves to breakeven after a specific number of ticks in profit in the Strategy Builder.

                                Please let us know if we may be of further assistance to you.
                                Where in this strategy could I add a simple take profit condition?
                                I attempted to add a hard take profit but that seems to cancel out the break even functionality.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by NullPointStrategies, 03-13-2026, 05:17 AM
                                0 responses
                                86 views
                                0 likes
                                Last Post NullPointStrategies  
                                Started by argusthome, 03-08-2026, 10:06 AM
                                0 responses
                                151 views
                                0 likes
                                Last Post argusthome  
                                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                                0 responses
                                79 views
                                0 likes
                                Last Post NabilKhattabi  
                                Started by Deep42, 03-06-2026, 12:28 AM
                                0 responses
                                52 views
                                0 likes
                                Last Post Deep42
                                by Deep42
                                 
                                Started by TheRealMorford, 03-05-2026, 06:15 PM
                                0 responses
                                59 views
                                0 likes
                                Last Post TheRealMorford  
                                Working...
                                X