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

How do you set Strategy builder to scale out at profit targets?

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

    How do you set Strategy builder to scale out at profit targets?

    How do I set up Strategy builder to scale out of a 3 contract order? Say close 1 @ 5 ticks, close 1 @ 15 ticks and trail 1 at 25 ticks? Do you have a video somewhere showing ows to set this up with SBuilder?

    #2
    Hello mrlucky1x,

    This would be done by having 3 entry orders with 3 different signal names, and 3 different exit orders or stop losses each tied to the from entry signal of one of the entries.

    The Strategy Builder 301 course discusses signal names but doesn't demonstrate creating a strategy that utilizes multiple signal names.

    Below is a public link.
    https://youtu.be/HCyt90GAs9k

    There is however a reference sample on scaling out of a position in the help guide.
    https://ninjatrader.com/support/help...a_position.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      OK thanks. This is a good start but it really doesn't demonstrate how to set this up. The video you linked to doesn't show how to do this even though its supposed to be a 301 course.

      Comment


        #4
        Hello mrlucky1x,

        The Strategy Builder 301 course reviews all properties and options in the Strategy Builder. It is not meant to teach logic. It does show how signal names and from entry signals work at 52 minutes 40 seconds.


        Are you finding the SampleScaleOut_NT8 reference sample I have provided a link to is not providing an adequate example of scaling out of a position?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Is the "SampleScaleOut_NT8" supposed to work in Strategy Builder because when I imported it I didn't see it listed or is it simply code snippet showing the syntax to use in a manually created strategy?

          Comment


            #6
            Hello mrlucky1x,

            No, the reference samples in the help guide do not open with the strategy builder. These are code samples that include custom comments and open in the NinjaScript Editor.

            New > NinjaScript Editor > in the explorer pane on the right double click to expand the Strategies folder > double click to open SampleScaleOut.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hello Community,

              This is a commonly requested example for the Strategy Builder so I've made a similar script still locked for editing with the strategy builder.
              Attached Files
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                How do you open Scaleoutbuilderexample? I downloaded it and don't see it as an indicator?

                Comment


                  #9
                  Hello JTizz,

                  ScaleOutBuilderExample is not an indicator. This is a NinjaScript Strategy that is locked in the Strategy Builder.

                  To run the script, open the Strategies window from a chart.
                  https://ninjatrader.com/support/help...rategyInAChart

                  To view the code, open the Strategy Builder.
                  https://ninjatrader.com/support/help...gy_builder.htm
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    I have 3 strategies set to run in separate sim accounts. The Profit and loss does not show in each individual sim account it shows in the main sim account. How can I get each strategy to show in the sim account it is set to?

                    Comment


                      #11
                      The profit and or loss isn't showing in the chart trader account when I have a strategy running?

                      Comment


                        #12
                        Hello JTizz,

                        ChartTrader will only show the orders for the account selected in the Account drop-down.

                        The ChartTrader Account and the NinjaScript Strategy Account need to match.

                        Please provide screenshots of both if you would like me to confirm you have these set to the same selection.
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          Got it Thx

                          Comment


                            #14
                            I am running a strategy and the bars on the chart have been freezing. The profit and loss keeps going but the candles on the chart stop printing. If I turn off the strategy and turn it back on its ok but its a problem doing this in the middle of a trade. Any suggestions?

                            Comment


                              #15
                              Hello JTizz,

                              Is the script using a high amount of CPU?
                              https://ninjatrader.com/support/help...izationMonitor

                              Is this running with Calculate set to On bar close?

                              Are there any added series?

                              Is OnMarketData() or OnMarketDepth() being overridden?
                              Chelsea B.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by vpatanka, Today, 09:25 AM
                              1 response
                              51 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by UncleRyan, Today, 08:48 AM
                              1 response
                              12 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by Halmix, Today, 07:12 AM
                              1 response
                              38 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by Bobin, Today, 06:39 AM
                              1 response
                              40 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by KirkHammett, Today, 03:23 AM
                              1 response
                              22 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Working...
                              X