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
Number of Buy Trades and Short Trades in Orderflow
Collapse
X
-
Number of Buy Trades and Short Trades in Orderflow
Is it possible to access the number of Buy Trades and Sell Trades per bar (market orders). Please note that it's not the buy/sell volume I am asking. Volumetric Bars can track the number of trades but they can't track the number of buy/sell trades. -
Hello dwrety,
Thanks for your post.
Only volume information is accessible when using Order Flow Volumetric bars, not individual trades.
You could consider using OnMarketData() if you are wanting to get the volume of trades at the ask or bid. OnMarketData() is the point where contracts are bought and sold.
See this help guide page for more information about OnMarketData() and sample code: https://ninjatrader.com/support/help...marketdata.htm
MarketDataEventArgs: https://ninjatrader.com/support/help...aeventargs.htm
The code of the BuySellVolume indicator could also be used to see how to use OnMarketData() to get the volume of trades at the ask/bid. To view the code, open a New > NinjaScript Editor window, open the Indicators folder, and double-click on the BuySellVolume file.Brandon H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
Comment