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 love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        31 views
        0 likes
        Last Post love2code2trade  
        Started by cls71, Today, 04:45 AM
        2 responses
        10 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by proptrade13, Today, 11:06 AM
        0 responses
        5 views
        0 likes
        Last Post proptrade13  
        Started by kulwinder73, Today, 10:31 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by RookieTrader, Today, 09:37 AM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X