Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting Accuracy with Standard Fill vs High resolution fill

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

    Backtesting Accuracy with Standard Fill vs High resolution fill

    Hi,

    I am trying to implement and backtest multi-series strategy. But backtesting results are not showing accuracy e.g. EnterLongStopLimit order placed on a limit price are actually shown at different prices when i see the result in summary/trade analysis.
    I suspect that It might be due to Standard fill. Is there a way to do high res fill for my orders?

    Thanks
    G

    #2
    Hi G, thanks for posting.

    The standard fill mode in Historical Fill Processing is for single time frame scripts only. For multi series scripts you can add a 1 tick series and submit the orders on that series. I linked an example below.

    https://ninjatrader.com/support/help...ipt_strate.htm

    Best regards,
    -ChrisL

    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chris,

      My primary bar is Day but place order on 1 tick as suggested. I have added a 1 tick data series.
      I want to place an order when price touches a mark.
      I have imported this file, not sure where to configure though.

      Is there a code example where buy order is placed when price touches a mark on 1 Tick series (a kind stop order or limit order).


      Thanks
      G

      Comment


        #4
        Hi G, thanks for your reply.

        The example I gave calculates trades on whatever the primary data series will be on the chart and submits the order to the 1 tick series for better fill estimation. To calculate the entry on the 1 tick series you would do your indicator/price calculations in the 1 tick series

        if (BarsInProgress == 0)
        {
        //primary bars logic
        }
        if (BarsInProgress == 1) //runs on every tick
        {
        //tick bars logic e.g.
        if(SMA(BarsArray[1], 20)[0] < Closes[1][0])
        EnterLong(1, 1, "Long1");
        }


        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by lismartin, Yesterday, 03:30 PM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by RT001, Yesterday, 03:47 PM
        3 responses
        26 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by johnMoss, Yesterday, 10:40 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by torch2k, Today, 06:24 AM
        2 responses
        9 views
        0 likes
        Last Post torch2k
        by torch2k
         
        Started by WalterSkinner, Yesterday, 02:37 PM
        4 responses
        25 views
        0 likes
        Last Post WalterSkinner  
        Working...
        X