• 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

Suggestion: OnBarUpdates with High Order Fill Resolution

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

    Suggestion: OnBarUpdates with High Order Fill Resolution

    When you run a daily strategy in real-time with Calculate set to OnPriceChange the OnBarUpdate gets called with every change and your indicators will be calculated so that the last daily bar, which is a partial bar (not closed bar) is included in the calculation.

    There is no easy way to simulate this in back-testing as the back-tester currently works. I would suggest that when back-testing a strategy with Calculate set to OnPriceChange with Order Fill Resolution set to High that the OnBarUpdates get called with Partial Bars according to the Order fill resolution.

    This would be a closer approximation to how NT8 operates when using real-time data with similar settings. This would also simplify the execution of OnClose orders for daily bars by a) having the same code for historical back-testing as live trading, b) not requiring a second dataseries to back-test these type of strategies, and c) not having to modify indicators to take into account partial bar calculations.

    #2
    Thank you for sharing your feedback. I can what you are getting at, and that is an insightful suggestion. My tests confirm that we are only processing OnBarUpdate() once per bar in this case, when the strategy itself is set to OnEachTick. I will log a feature request so that we can begin to track user demand for this change. (SFT-1096)
    Dave I.NinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Steve L, Today, 05:01 PM
    0 responses
    5 views
    0 likes
    Last Post Steve L
    by Steve L
     
    Started by Trader-Joe, Today, 04:06 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by vantojo, Today, 04:06 PM
    0 responses
    5 views
    0 likes
    Last Post vantojo
    by vantojo
     
    Started by tonynt, Today, 02:39 PM
    2 responses
    13 views
    0 likes
    Last Post tonynt
    by tonynt
     
    Started by StevenNelson, Today, 12:23 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X