Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

calculateonbarclose true for one timeframe and false for another

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

    calculateonbarclose true for one timeframe and false for another

    Is the following idea possible?

    If I have a strategy that has two timeframes for one instrument, for example a 1 min series and a 5 min series for the same instrument, can I calculate indicators based on the close of the 1 min bar and at the same time some other indicators based on the current tick (new progressing bar) for the 5 min?

    In another word, whenever the 1 min has a closed bar, I calculate sth and at the same time I'll look at the progressing 5 min bar even it's not closed yet.

    Thanks.

    #2
    Hello Dodoei,

    Thank you for your post.

    While, you wouldn't be able to change the CalculateOnBarClose for those timeframes you can use FirstTickOfBar and BarsInProgress to separate out the new bar and the timeframe that you want.

    http://www.ninjatrader.com/support/h...ttickofbar.htm
    http://www.ninjatrader.com/support/h...inprogress.htm

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    368 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    571 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X