Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi Timeframe with CalcOnBarClose

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

    Multi Timeframe with CalcOnBarClose

    Hi,

    My chart is a range chart to which I have added a 60 minute secondary data series.

    My problem is that calculations for the range part of the indicator need to be done with calconbarclose=false, but the calculations for the data in the 60 minute series I only want to do at the end of each 60 minute bar, ie calconbarclose=true;

    I can seperate the logic for the range and minute data using BarsInProgress, but I dont know how to differentiate the timing.

    Any suggestions?

    Thanks,
    Will.

    #2
    Hi Will, you can work with FirstTickOfBar here for the 'on bar close' calcs, as essentially that would be the same tick (closing of the bar, open of new bar).

    This technique is further outlined in our reference here - http://www.ninjatrader.com/support/f...ad.php?t=19387

    Comment


      #3
      Thanks, I knew that I had seen something like that somewhere, but I was looking for "LastTickOfBar" and coming up blank!

      W.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      37 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, Yesterday, 02:41 AM
      0 responses
      18 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      25 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      34 views
      0 likes
      Last Post CarlTrading  
      Working...
      X