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 sgordet, Today, 11:03 AM
    0 responses
    6 views
    0 likes
    Last Post sgordet
    by sgordet
     
    Started by trimpy, 03-11-2025, 10:21 AM
    7 responses
    41 views
    0 likes
    Last Post rockmanx00  
    Started by gbourque, Today, 08:52 AM
    0 responses
    18 views
    0 likes
    Last Post gbourque  
    Started by davydhnz, Today, 08:04 AM
    0 responses
    13 views
    0 likes
    Last Post davydhnz  
    Started by michelz, 02-18-2025, 08:30 AM
    18 responses
    407 views
    0 likes
    Last Post neveral0n3  
    Working...
    X