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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
637 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
572 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment