Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Request Breakeven Functions in Strategy Builder

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

    Hello Chelsea
    I have the
    TrailBuilderExample_NT8.zip (6.1 KB, 579 views
    tested and works great but it only opens long positions.
    Do you have the possibility to create a script of this strategy also for sell positions?
    Unfortunately I do not have the experience for this, I would be very grateful.

    Greetings Vasili

    Comment


      Originally posted by Boesdude View Post
      Hi

      When using examples like the BreakEvenBuidler you always end up trading with no stop loss until the close of the entry bar. Is there anyway to work around this. Post the first bar everything works perfectly as you have a stop.

      thank you
      This is currently my issue. I have finally, after 9 days, got the breakevens working and everything looks great on the lower timeframe charts(15 seconds etc) however as soon as i try on larger time frames, the stop doesn't work if the price on the entry bar goes below your stop price, and will never work after that bar if this happens. Has anyone figured out a workaround on this?

      Comment


        Originally posted by Steve4616 View Post

        This is currently my issue. I have finally, after 9 days, got the breakeven working and everything looks great on the lower timeframe charts(15 seconds etc) however as soon as i try on larger time frames, the stop doesn't work if the price on the entry bar goes below your stop price, and will never work after that bar if this happens. Has anyone figured out a workaround on this?
        You probably need to bring in a tick time frame, then execute orders on it. Doing it this way will not allow high resolution back tests via the Strategy Analyzer. Instead you have to unlock the code, then index the order executions to that tick data series. Whenever you back test from there it will use the tick data for orders and everything should work better.

        the reason why you get wild on higher time frames is because of the bar height and how the engine calculates....explained here:

        https://ninjatrader.com/support/help...lFillAlgorithm

        You need more 'intrabar granualarity' and then you have to manage your order executions like this:

        https://ninjatrader.com/support/help...BasicOperation

        mapping all the orders to the tick series using:

        "AnOrderMethod"(intbarsInProgressIndex,boolisLiveUntilCancelled,intquantity,doublelimitPrice,stringsignalName)

        so 0 is your chart TF and if you added 1-tick that would be '1'

        so intbarsInProgressIndex would be set to '1'

        Here is a post going into more detail....

        https://ninjatrader.com/support/foru...nce#post100192
        Last edited by HaveGunsWillTravel; 03-22-2022, 06:20 AM.

        Comment


          I was able to get the breakeven to work when entering Long. Can you post a file on Beak Even when entering Short? I attempted to reverse everything but was unsuccessful. Thanks!

          Comment


            Hi, I uploaded a short version of the break even strategy builder example. Please see attached.
            Attached Files
            Chris L.NinjaTrader Customer Service

            Comment


              Hi, I'm struggling to figure out how to combine the Breakeven commands with the Trailing Stop commands. Could someone please send me an example? Thanks!

              Comment


                Hi alnghiem, I am sorry but I have already provided many example modifications of the original script. This thread will remain open to the community to contribute.

                Kind regards,
                -ChrisL
                Chris L.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by sidlercom80, Today, 08:22 AM
                0 responses
                3 views
                0 likes
                Last Post sidlercom80  
                Started by Ludwik, Today, 07:16 AM
                0 responses
                5 views
                0 likes
                Last Post Ludwik
                by Ludwik
                 
                Started by Market1337, 07-02-2022, 08:54 AM
                1 response
                64 views
                1 like
                Last Post NinjaTrader_Jason  
                Started by GaryWillio, Today, 04:29 AM
                0 responses
                3 views
                0 likes
                Last Post GaryWillio  
                Started by DavidCampbeL, Today, 04:21 AM
                0 responses
                2 views
                0 likes
                Last Post DavidCampbeL  
                Working...
                X