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

MultiTimeFrame Strategy getting odd fill during backtest

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

    MultiTimeFrame Strategy getting odd fill during backtest

    Hi Everyone,

    Just trying to clean up a multitime frame strategy. I`m using two indicators, one on underlying chart price data and the other indicator on a 60 min time frame. When I do a backtest, I see I get odd fills on my underlying price data. (Please see attached image). How can I correct this? Any help much appreciated!
    Attached Files

    #2
    I think i have seen this before.
    In fact i am sure,

    Are you using the strategy analyzer?

    Originally posted by djoyce854 View Post
    Hi Everyone,

    Just trying to clean up a multitime frame strategy. I`m using two indicators, one on underlying chart price data and the other indicator on a 60 min time frame. When I do a backtest, I see I get odd fills on my underlying price data. (Please see attached image). How can I correct this? Any help much appreciated!

    Comment


      #3
      djoyce854, to which series are you submitting for the fills here?
      BertrandNinjaTrader Customer Service

      Comment


        #4
        Hi Guys,

        I am not using the Strategy Analyzer and i'm gonna try and answer you question Bertrand as I'm quite new to programming. I basically have an if statement with:

        if( Close[0] > yadda yadda && BarsArray[1] > yadda yadda) then execute.

        I am using an underlying 9min chart with the BarsArray[1] fetching a indicator value on a 60 min chart to use on the underlying 9 min chart. Hope that makes sense.

        Any help much appreciated!

        Thanks.

        Comment


          #5
          Thanks djoyce854, but in which BarsInProgress do you take action with your condition?

          BertrandNinjaTrader Customer Service

          Comment


            #6
            Yup that was it. Didn't have BarsInProgress set correctly. Thanks!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by mmenigma, Today, 02:22 PM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by frankthearm, Today, 09:08 AM
            9 responses
            35 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by NRITV, Today, 01:15 PM
            2 responses
            9 views
            0 likes
            Last Post NRITV
            by NRITV
             
            Started by maybeimnotrader, Yesterday, 05:46 PM
            5 responses
            26 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by quantismo, Yesterday, 05:13 PM
            2 responses
            21 views
            0 likes
            Last Post quantismo  
            Working...
            X