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 Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      30 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      943 views
      0 likes
      Last Post spwizard  
      Started by Max238, Today, 01:28 AM
      0 responses
      9 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by rocketman7, Today, 01:00 AM
      0 responses
      7 views
      0 likes
      Last Post rocketman7  
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      28 views
      0 likes
      Last Post wzgy0920  
      Working...
      X