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
Most Accurate Bid and Ask Volume
Collapse
X
-
Hello goodknight777,
GetCurrentAsk(), GetCurrentBid() will always provide the most up-to-date values of the ask and bid at the exact moment out of queue, directly from incoming source. However, calling this enough times per second to see a change is resource intensive. For useful real-time reaction updates, OnMarketData() will be updating (in a subscription thread) for the queued ask and bid, in the order they are received. OnBarUpdate() will be updating when the bar updates, based on the Calculate setting.
-
NinjaTrader_Jim posted a very good related sample app here.
https://ninjatrader.com/support/foru...24#post1139724
HedgePlay
Leave a comment:
-
Hi Goodknight777,
I had the same question and tried a few variants (except 1) ) and 2) gives pretty accurate values which got confirmed by manually calculating from Volume and the BuySellVolume indicator.
If there is another most accurate answer please correct me support.
Leave a comment:
-
Most Accurate Bid and Ask Volume
I am considering a new indicator and would like to determine how I can obtain the most accurate data for aggressive buying on the Ask, and also aggressive selling on the Bid (a.k.a Bid & Ask Volume).
Is the most accurate and up-to-date data provided by:
(1) BarsArray[0].GetBid and BarsArray[0].GetAsk
(2) OnMarketData, similar to the "Buy sell volume" indicator
(3) some other meansTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by quantismo, Yesterday, 05:13 PM
|
2 responses
15 views
0 likes
|
Last Post
by quantismo
Today, 01:07 PM
|
||
Started by maybeimnotrader, Yesterday, 05:46 PM
|
4 responses
23 views
0 likes
|
Last Post Today, 01:01 PM | ||
Started by frankthearm, Today, 09:08 AM
|
6 responses
25 views
0 likes
|
Last Post
by frankthearm
Today, 12:57 PM
|
||
Started by adeelshahzad, Today, 03:54 AM
|
5 responses
33 views
0 likes
|
Last Post Today, 11:29 AM | ||
Started by stafe, 04-15-2024, 08:34 PM
|
7 responses
32 views
0 likes
|
Last Post Today, 11:19 AM |
Leave a comment: