Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Daily Charts & Historical
Collapse
X
-
Daily Charts & Historical
On a Daily Chart todays Bar is classified as Historical although todays session is still going on. Is this intended?Tags: None
-
The following Indicator attached to a daily chart sets History to 1 for the CurrentBar, although CurrentBar is still updated, because the session is still running.
protectedoverridevoid Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.White), PlotStyle.Line, "Backward"));
Add(new Plot(Color.FromKnownColor(KnownColor.White), PlotStyle.Line, "Forward"));
Add(new Plot(Color.FromKnownColor(KnownColor.White), PlotStyle.Line, "History"));
CalculateOnBarClose = false;
Overlay = false;
PaintPriceMarkers = false;
bardone=-1;
}
protectedoverridevoid OnBarUpdate()
{
int i;
Forward.Set(CurrentBar);
if (Historical) History.Set(1);
for (i=0;i<=CurrentBar;i++)
Backward.Set(i,i);
}
Comment
-
The Historical Data Manager does not show any daily data for today. I'm connecting to IB and the Historical Data Manager shows minute and tick data for today.
Something which is still changing cannot be historical. Having historical tick and minute data for a day does not make the daily bar historical before the end of the session.Last edited by WolliWilli; 12-29-2009, 11:21 AM.
Comment
-
This is really true for any bar type/duration.
When data is pulled, all bars formed should be marked as historical. When a new "live" tick arrives and is used to update a bar, that bar should be marked as not historical until it closes. When a new bar is added, the previous bar becomes historical, and the new bar is live.
Comment
-
>> The Historical Data Manager does not show any daily data for today
Could be the case. On some providers NT will construct a historical bar of the current session based of Opening price, DailyHigh/Low for the session (has been the same with NT6.5). There would not be any reflection in the historical data manager for that case.
Comment
-
Your reply is unsatisfying. Something that changes realtime is not historical.
Historical is a NinjaTrader property and not a data provider property. It should be part of the interfaces to the different data providers to implement the NinjaTrader property Historical in the right way.
It's the typical problem of buying different components in different shops (software & data). Each side blames the other of doing something wrong and the user doesn't get what he should get.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
612 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
355 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
561 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
564 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment