Announcement
Collapse
No announcement yet.
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.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
80 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