Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Best way to create a highly responsive strategy

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

    Best way to create a highly responsive strategy

    I am working on a strategy that uses tick-based futures data (e.g. for the ESZ23 contract) to make decisions. Currently, it uses bid price, ask price, bid volume, ask volume, and timestamp.

    The volumes should be actual trade volumes, and not just market depth levels.

    I want to enter the trade as soon as the condition is met. It seems sometimes there is a delay before OnBarUpdate is called. I don't want to wait... time is money.

    OnMarketData (data type "Last") seems to have the info I need to make the decision. Can I make the trade there? Is that advisable? If not, where can I make the trade as responsively as possible, with access to bid/ask trade volumes?

    #2
    Yes, you can make a trade there. You also could change your Calculate mode to OnEachTick and OnBarUpdate would run on each tick instead of once per bar.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello brach,

      Bruce is providing good information.

      An order can be sent from just about any method (except for certain states in OnStateChange()), including OnMarketData().

      The ask and bid may update without there being a last transaction, however a last transaction will result in a tick that would update OnBarUpdate when Calculate is set to OnEachTick.

      In historical this would also require enabling TickReplay.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X