• 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 elizajohan, Today, 04:15 AM
    0 responses
    2 views
    0 likes
    Last Post elizajohan  
    Started by timcjpfx, Today, 03:52 AM
    0 responses
    1 view
    0 likes
    Last Post timcjpfx  
    Started by tonynt, Today, 01:42 AM
    0 responses
    7 views
    0 likes
    Last Post tonynt
    by tonynt
     
    Started by NT-Roland, Yesterday, 04:36 PM
    0 responses
    3 views
    0 likes
    Last Post NT-Roland  
    Started by Newtrader101, Yesterday, 03:40 PM
    2 responses
    13 views
    0 likes
    Last Post Newtrader101  
    Working...
    X