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 funk10101, Today, 09:43 PM
      0 responses
      6 views
      0 likes
      Last Post funk10101  
      Started by pkefal, 04-11-2024, 07:39 AM
      11 responses
      37 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Yesterday, 08:51 AM
      8 responses
      44 views
      0 likes
      Last Post bill2023  
      Started by yertle, Today, 08:38 AM
      6 responses
      26 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Started by algospoke, Yesterday, 06:40 PM
      2 responses
      24 views
      0 likes
      Last Post algospoke  
      Working...
      X