Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Missing 1 minute candles

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

    Missing 1 minute candles

    I created a 1 min chart of ES-06 and added an indicator with the following code to check for missing candles:
    Code:
    protected override void OnBarUpdate()
    {
    			if(CheckPeriodicity() == false)
    				Print("Periodicity check failed @ " + Time[0].ToString());
    }
    
    
    		bool CheckPeriodicity()
    		{
    			if(BarsPeriod.Id != PeriodType.Minute || CurrentBar < 0)
    				return true;
    			bool retval = false;				
    			int periodicity = BarsPeriod.Value;
    			if(CurrentBar > 0)
    			{
    				TimeSpan ts0  = Time[0] - Time [1] ;
    				retval = periodicity == (int)ts0.TotalMinutes;		
    			}
    			retval = retval && (BarsPeriod.Id == PeriodType.Minute);
    			return retval;		
    		}
    I see a lot of candles missing. please advice. thanks

    #2
    Newworldguy,

    What are the times that you see these missing candles?

    Can you show me the output window prints?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Screen shot of output window.

      here it is. or you can just cut and paste the code into a new indicator and run it. Pretty easy to replicate on, I will assume any time duration and possibly multiple instruments. I tried on ES-06-14 so far.

      thanks for the attention.
      Attached Files

      Comment


        #4
        newworldguy, which feed / broker connection do you run this on to test? In NT everything is done event based, so you do not have to have a new candle / timestamp each minute, if there was no trade event > then a candle could definitely be missing, however uncommon for a liquid instrument as the ES. Do you see this both in realtime and backtesting use? What data would the historical data manager show as confirm for the period tested?

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        147 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        284 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X