Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 agclub, 04-21-2024, 08:57 PM
    4 responses
    18 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Irukandji, Today, 04:58 AM
    0 responses
    3 views
    0 likes
    Last Post Irukandji  
    Started by fitspressoburnfat, Today, 04:25 AM
    0 responses
    2 views
    0 likes
    Last Post fitspressoburnfat  
    Started by Skifree, Today, 03:41 AM
    1 response
    4 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by usazencort, Today, 01:16 AM
    0 responses
    4 views
    0 likes
    Last Post usazencort  
    Working...
    X