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 NinjaTrader_ChelseaB, 03-14-2017, 10:17 AM
            227 responses
            34,318 views
            7 likes
            Last Post rare312
            by rare312
             
            Started by f.saeidi, Today, 12:11 AM
            0 responses
            5 views
            0 likes
            Last Post f.saeidi  
            Started by Graci117, Yesterday, 11:40 PM
            0 responses
            6 views
            0 likes
            Last Post Graci117  
            Started by BIOK.NT, Yesterday, 01:56 PM
            2 responses
            11 views
            0 likes
            Last Post BIOK.NT
            by BIOK.NT
             
            Started by i2ogu3, Yesterday, 11:31 PM
            0 responses
            6 views
            0 likes
            Last Post i2ogu3
            by i2ogu3
             
            Working...
            X