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

Strategy Builder

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

    Strategy Builder

    I built a strategy with trade signals and it skips and or misses some of the signals. What causes this to happen?

    #2
    Hello JTizz,

    This could be due to violating the internal order handling rules.

    Use prints and TraceOrders to understand the behavior.


    Are all of the values used in the condition allowing the condition to evaluate as true?

    I am happy to assist with analyzing the output from prints.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      What do I need to do for you to help with this. I am a novice at strategies and code?

      Comment


        #4
        I am happy to assist with analyzing the output from prints.
        Let me know when and how?

        Comment


          #5
          Hello JTizz,

          Have you followed the videos in the post I have linked?

          Are you following the steps to add prints in the strategy builder from the video?

          You would need to save the output from the prints in the output window to a text file and then post the text file with your reply.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Sorry but there is no way I know what to do. I would need to watch these videos a couple of hundred times to figure it out.

            Comment


              #7
              Hello JTizz,

              Understanding how to use prints is very valuable for understanding behavior.

              Watch the video that adds prints using the Strategy Builder several times.

              Start with a simple print that prints the time of the bar.

              What are the values in the condition that leads to the order action?
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                I am looking for info, videos or any material on setting up multiple orders in SB. Enter, initial stop, exit 1 and trail remainder.

                Comment


                  #9
                  Hello JTizz,

                  Below is a link to the SampleScaleOut reference sample in the help guide.
                  https://ninjatrader.com/support/help...a_position.htm

                  As well as a link to an example I have created that is locked in the Strategy Builder.


                  Please let me know if you continue using prints to understand the behavior of your strategy. I am happy to assist with analyzing the output.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    I have 3 strategys running on separate sim accounts but the profit and loss doesn't show in the assigned sim account it shows on the main sim account all combined. How do I get the P$L to show in each sim account the strategy is assigned too?

                    Comment


                      #11
                      When a strategy is running in an assigned sim account the profit or loss is not showing in the chart trader?

                      Comment


                        #12
                        Can you provide any info on how to attach a trailing stop to an indicator in a strategy in strategy builder?

                        Comment


                          #13
                          Hello JTizz,

                          Thanks for your replies.

                          Regarding, "I have 3 strategys running on separate sim accounts but the profit and loss doesn't show in the assigned sim account it shows on the main sim account all combined. How do I get the P$L to show in each sim account the strategy is assigned too?" Please post a screenshot of your Strategies tab that shows the three strategies and their assigned accounts and also a screenshot of your account gtab that shows all three accounts.

                          Regarding, "When a strategy is running in an assigned sim account the profit or loss is not showing in the chart trader?" Is the chart trader connect to the same sim account?

                          Regarding, "Can you provide any info on how to attach a trailing stop to an indicator in a strategy in strategy builder?" In the Strategy Builder, in a set you could check to ensure that you are in a position, and if so you can place an exit stop limit type order at the value of the indicator.

                          Paul H.NinjaTrader Customer Service

                          Comment


                            #14
                            How can I save a strategy to a zip file so it can be shared?

                            Comment


                              #15
                              Hello JTizz,

                              To export a NinjaTrader 8 NinjaScript so this can be shared and imported by the recipient do the following:
                              1. Click Tools -> Export -> NinjaScript...
                              2. Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
                              3. Click the 'Export' button
                              4. Enter a unique name for the file in the value for 'File name:'
                              5. Choose a save location -> click Save
                              6. Click OK to clear the export location message
                              By default your exported file will be in the following location:
                              • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
                              Below is a link to the help guide on Exporting NinjaScripts.
                              Chelsea B.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by inanazsocial, Today, 01:15 AM
                              0 responses
                              2 views
                              0 likes
                              Last Post inanazsocial  
                              Started by trilliantrader, 04-18-2024, 08:16 AM
                              5 responses
                              22 views
                              0 likes
                              Last Post trilliantrader  
                              Started by Davidtowleii, Today, 12:15 AM
                              0 responses
                              3 views
                              0 likes
                              Last Post Davidtowleii  
                              Started by guillembm, Yesterday, 11:25 AM
                              2 responses
                              9 views
                              0 likes
                              Last Post guillembm  
                              Started by junkone, 04-21-2024, 07:17 AM
                              9 responses
                              71 views
                              0 likes
                              Last Post jeronymite  
                              Working...
                              X