Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Testing strategy performance on tick data

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

    Testing strategy performance on tick data

    Lets say I have a strategy that works well on 30 minute bars and I set CalculateOnBarClose = true..

    Im curious how it would perform when not waiting for the bar to close. My data feed includes 180 days of tick data is there a way to backtest and see how the system would preform on a tick by tick basis?

    basically can I set "calculateonbarclose = false" and backtest on the previous 180 days using the tick data from my provider? would that work?

    #2
    Hello,

    The answer is yes and no. In backtesting, all strategies are run as if CalculateOnBarClose = true, so setting it to false in your strategy will not accomplish the same thing in backtesting as it would live. That being said, there is a way to mimic the behavior of CalculateOnBarClose = false, by adding intra-bar granularity to your script. Essentially, you can add a 1-tick data series to the script, then perform your entries/exits based on that data series, which has a bar close every tick.

    For more information on adding intra-bar granularity to your code for backtesting, please see the link below:
    http://www.ninjatrader.com/support/f...ead.php?t=6652
    Dave I.NinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    61 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    39 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