Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

LineBreak bar type

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

    LineBreak bar type

    When I use LineBreak Bars. I have Calculate on Bar Close set to true, it calculates on every tic rather then when the bar is actually closed(a new bar created)..

    #2
    Hello gg80108,
    The calculate on bar close property will not apply on the BarType but on the indicator (or strategy) which is applied on it (i.e. on the bar series).

    In the attached screenshot I have the SMA indicator applied on it with Calculate on bar close set to true. As expected it is not calculating the value of the running bar.

    Please let me know if I can assist you any further.
    Attached Files
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Here is how i ran into this, I am checking for a higher high or lower low on a closing bases (Close[0],Close[1], as an exit strategy after entering a position . This works ok on normal like minute,tic,vol, bars, checks when the bar closes only (which is when the new bar appears) But with LineBreak bars it seems to check immediately after entry on every tic and usually stop out on the same bar..

      Comment


        #4
        Hello gg80108,
        Thanks for the clarifications.

        Can you send a toy strategy* replicating the issue to support[AT]ninjatrader[DOT]com

        Please append Attn:Joydeep in the subject of the email and please give a reference of this threrad in the body of the email.

        I look forward to assisting you further.

        *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        59 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        283 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X