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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      110 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      156 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      74 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X