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

Linebreak strategy

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

    Linebreak strategy

    do you have a sample code for the three line breaks so that we can start from?

    #2
    Hello babouin77,

    Thanks for the post.

    It is not clear what you mean by 3 line break, do you mean a 3 line break data series? You can use the AddLineBreak method to add data.


    Additionally please let me know if this question is for NT8 it looks like this is a very old post for NT7.


    Last edited by NinjaTrader_Jesse; 07-23-2020, 09:42 AM. Reason: updated to nt8 forum based on user comment
    JesseNinjaTrader Customer Service

    Comment


      #3
      that is correct. i just want a code to start from that is all. the example is not a full code. it is for nt8

      Comment


        #4
        Hello babouin77,

        Thanks for the reply.

        In that case you would need to either use a 3 line break chart and apply the strategy to that chart or you can use AddLineBreak to add a secondary series if you don't want the line break as the primary.

        We don't have a full strategy already set up for adding line break as a secondary series, or any strategy sample that uses the custom AddDataSeries methods because these are more advanced topics. It would instead be expected that you first read the multi series documentation to learn how to use multi series scripts. The AddDataSeries methods all work the same so once you learn the multi series concepts that would apply to any of the methods like AddLineBreak. There are samples for each in the help guide but it would be expected that you need to make the script yourself if you wanted to use that sample. https://ninjatrader.com/support/help...lightsub=multi

        For simplicity you can also just apply any strategy you create to a line break chart to make it use linebreak data and by doing that you do not need to use AddLineBreak.



        JesseNinjaTrader Customer Service

        Comment


          #5
          oh ok. thanks. so i can build one in strategy builder and say for example when close is higher than previous close and above ema 9 enter long and apply it on line break chart... ill try that. thanks

          Comment


            #6
            Hello babouin77,

            Correct, you just cannot add line break as a secondary series in the builder. You can still apply a builder strategy to any data series because you have to manually select that and configure it when you apply the strategy.

            The data series for the strategy is either configured in the control center when you apply the strategy there or it would inherit the charts series if you apply it to the chart.



            JesseNinjaTrader Customer Service

            Comment


              #7
              got you i will test it out. thanks

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by gemify, 11-11-2022, 11:52 AM
              6 responses
              803 views
              2 likes
              Last Post ultls
              by ultls
               
              Started by ScottWalsh, Today, 04:52 PM
              0 responses
              3 views
              0 likes
              Last Post ScottWalsh  
              Started by ScottWalsh, Today, 04:29 PM
              0 responses
              7 views
              0 likes
              Last Post ScottWalsh  
              Started by rtwave, 04-12-2024, 09:30 AM
              2 responses
              22 views
              0 likes
              Last Post rtwave
              by rtwave
               
              Started by tsantospinto, 04-12-2024, 07:04 PM
              5 responses
              70 views
              0 likes
              Last Post tsantospinto  
              Working...
              X