Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest strategy with current tickprice rathen than the next tick price

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

    Backtest strategy with current tickprice rathen than the next tick price

    I am using NinjaTrader 8 and optimized tick data to keep my backtests fast.

    However, when during the backtest, when entering a position, its using the price of the next tick.

    I thought about having each tick twice in the data series but this would break indicators using the tick data.

    Is there any workaround to use the tick price of the current bar for the backtest rather than the next tick?

    #2
    Hello connex,

    When using Strategy Analyzer, backtesting the strategy will run exactly the same as if CalculateOnBarClose is set to true.

    High Fill Resolution would allow executions to be intra-bar, but not calculations. Because you are looking to calculate intra-bar in the backtest, you need to use TickReplay. When you enable tick replay the strategy will be executed on each tick and at that point would evaluate any conditions, then orders would be placed.

    Currently Tick Replay and Order Fill Resolution set to high, do not work together. This is a bug expected to be resolved in a future release of NinjaTrader.

    An alternative would be to run your strategy in replay, using replay data.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X