Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Characteristics of a Line Break Bar

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

    Characteristics of a Line Break Bar

    Help to understand a Line Break Bar on the Current bar in progress

    I am running my conditions OnPriceChange and referencing Close 2 and Close 1, the current bar should be Close 0

    When Setting a stop for example on High[2] (could be referencing any prior bar segment)

    What happens as the current bar is in progress the stop will jump from High[2] to High[1], back and forth as the bar is inprogress

    this occurs if the current bar is inside the body of the prior bar - AT THAT TIME THE BAR THINKS IT IS Close[1] so it then thinks High[1] is High[2]


    #2
    Hello DTSSTS,

    Thank you for writing in.

    The Highs and Lows collections could be used instead of High and Low, such as Highs[0][2] instead of High[2].

    By using Highs and Lows you could get the specific BarsInProgress index for the series you want instead of the index that is updating OnBarUpdate().

    See the help guide documentation below for more information.

    Highs - https://ninjatrader.com/support/help.../nt8/highs.htm
    Lows - https://ninjatrader.com/support/helpGuides/nt8/lows.htm
    PriceSeries - https://ninjatrader.com/support/help...riceseries.htm

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      to confirm that method can only be used in an UNLOCKED Code
      thanks

      Comment


        #4
        Hello DTSSTS,

        Thank you for your note.

        That is correct. To use the Highs and Lows collections you would need to have your code unlocked from the Strategy Builder.

        Let us know if we may assist further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X