Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Number of Buy Trades and Short Trades in Orderflow

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    58 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    35 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    59 views
    0 likes
    Last Post PaulMohn  
    Working...
    X