Anyone found a way around this issue?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
60 minute vs hour MultiTimeframe data with IB
Collapse
X
-
60 minute vs hour MultiTimeframe data with IB
I have found out that when using multitimeframe strategies, I cannot use PeriodType.Minute greater than 59 with Interactive Brokers. It seems IB doesn't provide minute data from 60 and higher. In fact you would have to use hourly data.
Anyone found a way around this issue?Tags: None
-
That's the strange thing. I'm able to create regular charts using any interval I want (65, 93 / 128 etc etc).
Here is the code I tested with:
Now this works fine! I get a nice "so far so good" text in my Output window. But when I change the 15 into a 60 or higher timeframe something goes wrong.Code:protected override void Initialize() { CalculateOnBarClose = true; // Index = 0 (1 minute) Add(PeriodType.Minute, 5); // Index = 1 Add(PeriodType.Minute, 15); // Index = 2 } protected override void OnBarUpdate() { Print("So far so good"); }
Nothing is printed now.Code:protected override void Initialize() { CalculateOnBarClose = true; // Index = 0 (1 minute) Add(PeriodType.Minute, 5); // Index = 1 Add(PeriodType.Minute, 60); // Index = 2 } protected override void OnBarUpdate() { Print("So far so good"); }
Comment
-
Looks fine on my end, I tried with this setup also printing the BarsInProgress alongside, to see which bars object is calling the OnBarUpdate.
protected override void Initialize()
{
CalculateOnBarClose = true;
// Index = 0 (1 minute)
Add(PeriodType.Minute, 5); // Index = 1
Add(PeriodType.Minute, 60); // Index = 2
Add(PeriodType.Minute, 240); // Index = 3
}
protected override void OnBarUpdate()
{
Print(BarsInProgress + " So far so good");
}
Do you run on latest NT7R21 and IB TWS 938.1?
Comment
-
No, I always download directly from the Interactive Brokers website so I am sure the software is original. So I downloaded version 943.1c.I will download the combo as you stated later on a separate machine. Will keep you posted. But problem does seem strange right?
Comment
-
But I know that IB provides data in set intervals of seconds and then minutes of 1,2,3,5,10,15,20,30 and then hourly intervals and then daily and weekly.
So maybe the 55 minute interval is made up of 30+20+5 .. And 60 minute cannot be created because it expects an hourly?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
600 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment