• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnMarketData

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

    OnMarketData

    Hey guys, is this method executed on each tick? Also, if you have the strategy set to calculateonbarclose=true, would this method still execute?

    protected override void OnMarketData(MarketDataEventArgs e)

    #2
    Hello elitetradernyc,

    Thank you for your post.

    CalculateOnBarClose is only applied to the OnBarUpdate() method. OnMarketData() will be called on a change in market data no matter the COBC setting.
    Patrick H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bosajin, Today, 09:06 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Buterol, Today, 09:13 AM
    0 responses
    1 view
    0 likes
    Last Post Buterol
    by Buterol
     
    Started by billythekid72, Today, 09:08 AM
    0 responses
    0 views
    0 likes
    Last Post billythekid72  
    Started by joevieira, Today, 08:47 AM
    0 responses
    15 views
    0 likes
    Last Post joevieira  
    Started by Matts7, Today, 08:27 AM
    2 responses
    23 views
    0 likes
    Last Post Matts7
    by Matts7
     
    Working...
    X