Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
ask/ bid series
Collapse
X
-
ask/ bid series
For a given bar (eg, 1 minute), should the volume of the ask series plus the volume of the bid series equal the volume of the last series? -
-
This is because the historical bid/ask series holds all bid/ask events sent out by the exchange. This would not be equivalent to the bid/ask at a specific time a trade went off. The reason bid/ask events do not necessarily correspond to trades is because the bid or ask can change without a trade taking place (e.g. in case the best bid or ask withdrew their order or changed the quantity and then the next best bid or ask is selected and an event is fired off for that)
The reason you see that bid and/or ask volume can be bigger than last volume is for two reasons:- Volume on the bid/ask series represents the volume of orders resting at that price, not the volume of orders which were filled at that price.
- Because the bid/ask series added by the script are not 1 tick series, they are accumulating the resting volume-at-price for the whole period (in this case 1 minute).
Help Guide- OnMarketData()
Let me know if you have any further questions.Last edited by NinjaTrader_JoshG; 10-12-2018, 09:45 AM.Josh G.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johnMoss, 03-04-2024, 01:53 PM
|
3 responses
44 views
0 likes
|
Last Post
by AndyM
Today, 06:13 PM
|
||
Started by algospoke, Today, 06:01 PM
|
0 responses
6 views
0 likes
|
Last Post
by algospoke
Today, 06:01 PM
|
||
Started by cre8able, Today, 05:53 PM
|
0 responses
7 views
0 likes
|
Last Post
by cre8able
Today, 05:53 PM
|
||
Started by Wessel, 03-23-2024, 02:37 PM
|
3 responses
23 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
32 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
Comment