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!
See more
See less

Partner 728x90

Collapse

OnMarketDepth()

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

    OnMarketDepth()

    The eventArgs have e.Operation == Operation.Remove, Operation.Update, etc.
    Assuming the current price of a contract is 949.00 and the orderbook shows there is 400 offered at 950.25 and then all of sudden there's 300 offered at 950.25, does that mean that someone has cancelled 100 at 950.25? And is that what Operation.Remove would show? or Update?

    #2
    That would be an update. Operation.Remove is when you completely remove the price from the ladder. Update just updates something already on the ladder. Insert would be to add a price to the ladder. As far as why it would update the price, it could very well mean someone cancelled.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by funk101 View Post
      The eventArgs have e.Operation == Operation.Remove, Operation.Update, etc.
      Assuming the current price of a contract is 949.00 and the orderbook shows there is 400 offered at 950.25 and then all of sudden there's 300 offered at 950.25, does that mean that someone has cancelled 100 at 950.25? And is that what Operation.Remove would show? or Update?
      Getting more technically (as basically the support answer is short).

      * Change can mean:
      - someone cancelled.
      - someone added new orders
      - an order changed in size
      - a trade executed at that price (as: every fill not only fills the order, it also changes the outstanding amount still to be filled, which is shown in the ladder).

      * Remove means:
      - no more price at that point. THis can be because of a move of best bid/ask, as the ladders are not indefinite in depth. So, elements "falling off" the long side (like 11th element on CME, which publishes ticks deep) get removed when the price moves.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by maybeimnotrader, Yesterday, 05:46 PM
      4 responses
      23 views
      0 likes
      Last Post maybeimnotrader  
      Started by frankthearm, Today, 09:08 AM
      6 responses
      25 views
      0 likes
      Last Post frankthearm  
      Started by adeelshahzad, Today, 03:54 AM
      5 responses
      33 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by stafe, 04-15-2024, 08:34 PM
      7 responses
      32 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by merzo, 06-25-2023, 02:19 AM
      10 responses
      823 views
      1 like
      Last Post NinjaTrader_ChristopherJ  
      Working...
      X