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 rhyminkevin, Today, 04:58 PM
|
3 responses
47 views
0 likes
|
Last Post
by Anfedport
Today, 05:24 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
5 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
7 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
50 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
Comment