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 Stanfillirenfro, Today, 07:23 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    2 responses
    22 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by olisav57, Yesterday, 07:39 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by cocoescala, 10-12-2018, 11:02 PM
    7 responses
    944 views
    0 likes
    Last Post Jquiroz1975  
    Started by oviejo, Today, 12:28 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X