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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X