Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
BidAsk Historical...
Collapse
X
-
Hi,
Is there a way to access historical bid/ask data ? It doesn't seem possible in either indicators or bartypes ??
Comment
-
Ok that works, but then there is no way to link the bid/ask values to the price values. They are just other charts. So in that case I suppose there would be no way to compute the historical delta volume....
Comment
-
Dirk, if bid/ask data is stored as chart data is recorded..Originally posted by NinjaTrader_Dierk View PostIf by "remember" you mean that bid/ask data would be stored as you record historical chart data, then yes.
does this mean that VolumeProfile is wiped clean because of the way it was written and not upgraded for 7 or that we simply can not backfill stuff made using onmarketdata() in 7 like we could not in 6.5?
Comment
-
I tried to reconstruct historical data using on chart by adding tick data bars.
But the fact is that it uses a lot of time and memory, because the bid/ask bar array is very large, even for a 5 days history. So I don't think it will be easily usable , except maybe for intraday memory.Code:protected override void Initialize() { Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "P1")); Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "P2")); Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "P3")); Add(Instrument.FullName,PeriodType.Tick,1,MarketDataType.Last); Add(Instrument.FullName,PeriodType.Tick,1,MarketDataType.Ask); Add(Instrument.FullName,PeriodType.Tick,1,MarketDataType.Bid); } protected override void OnBarUpdate() { P1.Set(Closes[0][0]); P2.Set(Closes[1][0]); P3.Set(Closes[2][0]); }
Comment
-
What would be cool would be to publish the spec of the ntd files.... Then we could read them by custom programming...
Comment
-
I don't have the beta to mess around with yet but doesn't this depend on how these are updating:Originally posted by gomifromparis View PostOk that works, but then there is no way to link the bid/ask values to the price values. They are just other charts. So in that case I suppose there would be no way to compute the historical delta volume....
Add(Instrument.FullName,PeriodType.Tick,1,MarketDa taType.Ask);
Add(Instrument.FullName,PeriodType.Tick,1,MarketDa taType.Bid);
I take it since you mentioned that the bid/ask bar array is very large, these update on each change of the bid/ask and are not just a snapshot of what the bid/ask was when last goes off...
Wouldn't a way to get historic delta volume then be to compare the timestamp of last with the timestamp of the bid and ask and see if its at/above/below/between?
I soppose I was expecting 7 to have a historic version of onmarketdata(), but with storing bid/ask this seems even more thorough, more a question of filtering out what we don't need.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
345 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