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 vantojo, Today, 01:39 PM
    0 responses
    16 views
    0 likes
    Last Post vantojo
    by vantojo
     
    Started by Rubens_2020, Today, 01:48 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by kempotrader, Today, 01:34 PM
    1 response
    23 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by bc24fl, Today, 01:50 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by bosajin, 01-21-2021, 09:15 AM
    7 responses
    61 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X