Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
BidAsk Historical...
Collapse
X
-
I always see a sequence of 2 OnMarketData events (identical) and 1 OnBarUpdate event which is expected since both series subscribe to the same instrument. There is no filter on "bid" or "ask" or "last", only on instrument.
Note: BarsInProgress always is 0, since NT finds the first series matching an instrument (which is BIP=0).
Note: ignore the "*****" lines since they rather confuse the image.
Comment
-
Hey Dierk,
Yes, I see two now as well.
I think I see what you're saying.
So now, for example, lets say I'm running on a 1 minute chart with CalculateOnbarClose = false. In the Initialize() function I do the following
In OnBarUpdate(), to differentiate between the primary data series, Ask, and Bid is the following true?Code:Add(Instrument.FullName,PeriodType.Tick,1,MarketDataType.Ask); Add(Instrument.FullName,PeriodType.Tick,1,MarketDataType.Bid);
Primary data Series BarsInProgress = 0, ref Price = Closes[0][0]
Ask data Series BarsInProgress = 1, ref Price = Closes[1][0]
Bid data Series BarsInProgress = 2, ref Price = Closes[2][0]
And, how could I filter on a particular instrument then in the OnMarketData function, to differentiate between instruments?
Thanks again.
Comment
-
Historical Volume Profile
Hello all:
I'm new to NT (using NT7) and am currently migrating from TradeStation. Forgive me if I'm off on this but don't at least some data services provide historical volume profile for each bar (ie, up trade volume/down trade volume and upticks/downticks)? I know that in TS I get up/down volume and up/dn ticks for each bar (equities, options and futes). Since Reuters provides this data, isn't the fix for this as easy as NT7 supporting Reuters QuoteCenter?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
78 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment