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;
}
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Missing 1 minute candles
Collapse
X
-
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:
I see a lot of candles missing. please advice. thanksCode:Tags: None
-
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
-
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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
633 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment