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

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 rjbtrade1, 11-30-2023, 04:38 PM
        2 responses
        76 views
        0 likes
        Last Post DavidHP
        by DavidHP
         
        Started by Stanfillirenfro, Today, 07:23 AM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by FitSpressoHonest, Today, 09:14 AM
        0 responses
        4 views
        0 likes
        Last Post FitSpressoHonest  
        Started by Davide999, 05-18-2023, 03:55 AM
        4 responses
        557 views
        1 like
        Last Post kcwasher  
        Started by rexsole, Today, 08:39 AM
        2 responses
        8 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X