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 cmoran13, Yesterday, 01:02 PM
        0 responses
        25 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        17 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        94 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        147 views
        2 likes
        Last Post CaptainJack  
        Working...
        X