Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnBarUpdate + OnMarketData

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

    OnBarUpdate + OnMarketData

    Say I am writing a custom strategy with a 1-min primary TimePeriod.
    If I use the OnMarketData() method, and add within it some conditional logic that uses the SubmitOrder() method, when will the order be placed once the conditional logic is satisfied?
    On the next OnBarUpdate event (which could be up to 1-minute later), or immediately the OnMarketData event occurs that triggers the conditional logic?
    Thanks.
    Last edited by AnotherTrader; 01-23-2013, 11:18 AM. Reason: clarification/re-wording

    #2
    Hello AnotherTrader,

    The order will be placed when you logic is true and called inside the OnMarketData() method. It does not have to wait until OnBarUpdate() to be submitted.

    Let us know if we can be of further assistance.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    156 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    76 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X