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

3-line break in strategy

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

    3-line break in strategy

    I found out if I used 3-line break chart in my strategy analyzer for my trend-following strategy, it generates 3x better profit factor than using candlestick.

    But, the question is.... is it realistic to use 3-line break in strategy analyzer of strategy itself? What's the caveat?

    #2
    Hello,

    Thanks for the forum post.

    Only thing to be aware of is how line break charts form in realtime vs historical. To get a line break chart that will look exactly like it would in live you would need to run it with a 1 tick input series to have the granularity needed to get a full line break chart.

    -Brett

    Comment


      #3
      What do you mean by 1-tick input series? Could you elaborate?

      Comment


        #4
        Sure, when you create the line break chart you specify what you want to build the chart from. You want to set the settings for Base period type and base period value.

        Let me know if I can be of further assistance.

        Comment


          #5
          Thanks Brett

          I am still a bit confused.

          If my strategy is tested with 'Base period type = minute' and 'Base period value = 2', then the chart will looks different from running it with type=tick and value=1

          1-tick will generate longer chart and it may not what my strategy is supposed to run on, right?

          Please clarify... thanks

          Comment


            #6
            ssg10, if you use 2 minute series to build the three line break bars, the TLB bars would only be built using the closes of the 2 minute series. Brett is saying if you want the most accurate TLB bars, you have to use a 1 tick series because then every tick would be used to build the bars instead of a "tick" every two minutes.
            AustinNinjaTrader Customer Service

            Comment


              #7
              Thanks for the great support!

              I played with the settings and tried to understand how the 3-linebreak is constructed -- now I understood that 3LB is probably not very realistic for strategy dev.

              The 3LB 'candle' won't finalize and be formed until it takes out the past 'value' bars' high or low. The current candle can drop until X-points without candle being formed (unless it takes out the past 'value' bars). This causes problems with my fixed stop getting stopped-out many times during simulation on tick-replay. It didn't get stopped out in strategy analyzer, but it got a lot of stop-outs in real tick-replay playback.

              Comment


                #8
                ssg10 do you have a code that you can share? im having hard time coding a 3 line break and would help if I have an example in front of me.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Irukandji, Today, 09:34 AM
                0 responses
                1 view
                0 likes
                Last Post Irukandji  
                Started by TraderBCL, Today, 04:38 AM
                3 responses
                24 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by WeyldFalcon, 08-07-2020, 06:13 AM
                11 responses
                1,423 views
                0 likes
                Last Post jculp
                by jculp
                 
                Started by RubenCazorla, Today, 09:07 AM
                0 responses
                4 views
                0 likes
                Last Post RubenCazorla  
                Started by BarzTrading, Today, 07:25 AM
                2 responses
                29 views
                1 like
                Last Post BarzTrading  
                Working...
                X