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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X