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
    BertrandNinjaTrader Customer Service

    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 usazencort, Today, 01:16 AM
      0 responses
      1 view
      0 likes
      Last Post usazencort  
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      603 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      22 views
      0 likes
      Last Post xiinteractive  
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      21 views
      0 likes
      Last Post Pattontje  
      Started by flybuzz, 04-21-2024, 04:07 PM
      17 responses
      230 views
      0 likes
      Last Post TradingLoss  
      Working...
      X