Announcement

Collapse
No announcement yet.

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.
    https://ninjatrader.com/support/help...b=addlinebreak

    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, 08: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 swcooke, Today, 07:17 PM
              0 responses
              6 views
              0 likes
              Last Post swcooke
              by swcooke
               
              Started by aguison, Today, 04:20 PM
              1 response
              11 views
              0 likes
              Last Post s.kinra
              by s.kinra
               
              Started by timko, Today, 04:11 PM
              0 responses
              6 views
              0 likes
              Last Post timko
              by timko
               
              Started by djkiwi, Today, 03:25 PM
              2 responses
              12 views
              0 likes
              Last Post djkiwi
              by djkiwi
               
              Started by hdge4u, Today, 12:29 PM
              1 response
              21 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Working...
              X