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.


    There is however a reference sample on scaling out of a position in the help guide.
    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.

              ScaleOutBuilderExample_NT8.zip

              ScaleOutStopLimitExitOrdersBuilderExample_NT8.zip
              Attached Files
              Last edited by NinjaTrader_ChelseaB; 10-31-2022, 12:09 PM.
              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.


                  To view the code, open the Strategy Builder.
                  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?


                              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 Christopher_R, Today, 12:29 AM
                              0 responses
                              9 views
                              0 likes
                              Last Post Christopher_R  
                              Started by sidlercom80, 10-28-2023, 08:49 AM
                              166 responses
                              2,235 views
                              0 likes
                              Last Post sidlercom80  
                              Started by thread, Yesterday, 11:58 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post thread
                              by thread
                               
                              Started by jclose, Yesterday, 09:37 PM
                              0 responses
                              8 views
                              0 likes
                              Last Post jclose
                              by jclose
                               
                              Started by WeyldFalcon, 08-07-2020, 06:13 AM
                              10 responses
                              1,415 views
                              0 likes
                              Last Post Traderontheroad  
                              Working...
                              X