Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time-frame lag in strategy

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

    #16
    You got it -- I'm glad to hear that you've found the cause.
    Dave I.NinjaTrader Product Management

    Comment


      #17
      Update to timeframe lag issue

      I have tested my strategy and discovered that In a multi-timeframe strategy, I cannot get current data on the longer time series. The chart is 1 minute but any indicator data from the 150 minute series is invisible to BarsInProgress 0.

      In my case I'm trying to use an adapted RSI on the 150 minute series to determine a longer term trend and then waiting for conditions on the shorter time series. Unfortunately the 150 minute info is update every 150 minutes and not seen in real time so my strategy can have incorrect information for up to 150 minutes.

      Back to the original issue....does anyone have an approach that allows my strategy to be more responsive? I can't afford to have my strategy look for shorts when I should be going long for as long as 150 minutes!

      Comment


        #18
        Hello,

        It sounds like this may be one of the rare instances in which CalculateOnBarClose = False would be appropriate. If you set this to False, it will consume more CPU resources, but it will give you the benefit of performing calculations on each incoming tick, rather than once at the close of each bar.

        Can you try adding CalculateOnBarClose = False into Initialize(), then making sure that it is set to False in the Strategies window as well, and see if you see the same result?
        Dave I.NinjaTrader Product Management

        Comment


          #19
          I'll try that and update results here. thanks!!

          That idea solved the problem of delay...however, I'll need to study this carefully because there is the posability that I might get premature entries. I may have to code some safeguards....I'll test.

          Thanks for the suggestion!
          Last edited by ShruggedAtlas; 06-09-2015, 12:20 PM.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          596 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          554 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X