Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The Effects of Minute granularity vs Tick granularity on Live Results

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

    The Effects of Minute granularity vs Tick granularity on Live Results

    In our in-house developed automated trading strategy, we make a once / day calculation to create and send orders for the following day looking at daily charts only for each instrument. Even then I have found out that there is a tremendous difference in live order vs backtest order levels if we keep CalculateOnBarUpdate false, so we have changed it to true to have the same exact calculations in real life as the ones in backtesting.

    Now the only difference remaining is the "Period Type of Non Day Series" which is set to "minute" in backtesting by default and is set to "tick" for live trading. My question is, if, to get a better representation of backtest in real life, we put the period type to minute for live trading as well, would this cause some weird effects like the profit target order being sent only after the minute bar closes, or the stop loss only activating at the close of a bar (instead of as soon as the tick level is reached).

    What would you recommend to make sure backtest calculations of our algo are most accurately reflected in real life algo calculations as well ? Please note that I don't need tick granularity for this automated strategy, so I don't want to make the algo more cumbersome by introducing secondary time series etc... I just would like to make sure that our calculations on live data will be 100 % equivalent to the logic of the backtest.

    I would be totally satisfied, if for example the initial calculations at the beginning of the day are made on minute granularity for real life, but then the profit target and stop loss behave on a tick basis (as we use tick based parameters for them in the strategy).

    #2
    Hello Visplilo,

    Thank you for your note.

    As, for your profit and stop orders, how are they being submitted and under what method?

    To match a backtest to live trading you would need to have the same settings across the board for both, however you will get close but not exact. It is expected to have different results between a backtest and your live trading.

    Secondly, anything being ran in OnBarUpdate() will be limited to the CalculateOnBarClose setting. If this is set to false then the logic is ran with each tick, if this is set to true then your logic will only be ran when a bar has closed.

    http://www.ninjatrader.com/support/h...ime_vs_bac.htm

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    63 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    40 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X