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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    104 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    52 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    34 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    38 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    74 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X