Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

see market orders

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

    see market orders

    hello
    is it possible to create an indicator that shows the quantity of orders entering the market but only a "market order"(no limit orders)??

    thank you

    #2
    Hello Simon Investimens,

    Thank you for your post.

    Yes, this is possible. You could track Buys and Sells with Level 1 market data by using OnMarketData(). Resting limit orders would be held in Level 2 market data. Market orders would not be resting and stop market orders would be at the order routing server, not the exchange.

    To track Buys and Sells using OnMarketData(), you would first create a double variable for buys and sells. Then, in OnMarketData() you would create a condition checking if e.MarketDataType == MarketDataType.Last. Within that condition you could track buys by creating a condition that checks if e.Price >= e.Ask and increments your buys variable. To track sells you would create a condition that checks if e.Price <= e.Bid and increment your sells variable.

    An example of this is seen in the BuySellVolume indicator that comes default with NinjaTrader. To view the code for the BuySellVolume indicator, open a New > NinjaScript Editor window, open the Indicators folder, and select the BuySellVolume indicator.

    See the help guide documentation for more information.
    OnMarketData() - https://ninjatrader.com/support/help...marketdata.htm
    MarketDataEventArgs - https://ninjatrader.com/support/help...aeventargs.htm

    Let us know if we may assist further
    <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
    57 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    78 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    41 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    101 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    61 views
    0 likes
    Last Post PaulMohn  
    Working...
    X