Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Timing With Pairs Strategy

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

    Timing With Pairs Strategy

    I recently downloaded Perry Kaufman's "Timing With Pairs" strategy from the March 2014 issue of TASC from the NinjaTrader link file named March2014SC.

    When I try running it in Strategy Analyzer and select it in the backtest dropdown menu, none of the parameters populate. It just retains the parameters from the last strategy that was selected as if the Timing With Pairs strategy doesn't exist.

    I'm running NT on two separate machines and the same thing happens on both. I haven't come across this problem before. Any suggestions?

    Mike

    #2
    Hello Mike,

    Thank you for your note.

    I tested the strategy on my end and was able to get the parameters to show.

    Can you please go to (My) Documents -> NinjaTrader 7 -> Templates -> Strategy and delete and XML files that are in this folder and retest the Strategy Analyzer.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply, Cal.

      I don't have any XML files in that folder. Still no change.

      Comment


        #4
        Hello cems1,

        Thank you for your response.

        When this occurs in the Strategy Analyzer please check the Log tab of the NinjaTrader Control Center. Do you see any errors? If so, what do they report?

        Comment


          #5
          Hi Patrick,

          Here is my log...

          Thanks for your assistance.
          Attached Files

          Comment


            #6
            Hello cems1,

            Thank you for your response.

            This is a programming issue with the TimingWithPairs and StressFunction. I will need to implement a fix for this code and I will update the file sharing section and this thread when complete.

            Comment


              #7
              That's what I suspected, but why did it work for Cal if it's the same file?

              Anyway, thanks again for looking into this.

              Mike

              Comment


                #8
                Hello Mike,

                Thank you for your response.

                It is also works on my end, the reason it is malfunctioning is the call to BarsPeriod in the Initialize() method. The bars are not guaranteed to be loaded in Initialize() it is only afterwards. I am going to add in some additional parameters to alleviate this issue.

                Comment


                  #9
                  Hello Mike,

                  Thank you for your patience.

                  I have updated the TimingWithPairs and StressFunction at the following link: http://www.ninjatrader.com/support/f...d=5&linkid=609

                  Comment


                    #10
                    Excellent! Working fine now, just had to change the default instrument from "SPY" to "AAPL" in the strat code because I couldn't pull up SPY in Instrument Manager. I've since, however, figured out how to add new instruments and can now use SPY.

                    Thanks again to you and Cal for taking the time!

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    61 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    40 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    21 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    23 views
                    0 likes
                    Last Post TheRealMorford  
                    Started by Mindset, 02-28-2026, 06:16 AM
                    0 responses
                    51 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Working...
                    X