Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy-Not Working anymore without changes

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

    Strategy-Not Working anymore without changes

    Hello There,

    I had a strategy that used to work fine on one of the first versions of NT 7.

    Now it is not working anymore, anybody could help? I ahev spent a lot of time on it but really cannot figure out what is causing the bug.

    Many Thanks
    Attached Files

    #2
    What exactly is not working? Is it no longer placing orders? Or does it not give you the results you expect?

    For strategies add TraceOrders = true to your Initialize() method and you can then view valuable output related to strategy submitted orders through Tools > Output window - TraceOrders

    You should also use Print() statements to verify values are what you expect - Debugging your NinjaScript code.

    It may also help to add drawing objects to your chart for signal and condition confirmation - Drawing Objects.

    If you would prefer the debug assist of a professional NinjaScript consultant, please check into the following listings - Click here for a list of certified NinjaScript Consultants
    MatthewNinjaTrader Product Management

    Comment


      #3
      Hello,

      I used to run backtests with this startegy ...... now the backtests return a 0 $ all the time on any instruments, or time frame .......

      I have tried to use the Print statemennt, but it is simply just never called !!!!!! So I presume something crashes ....... would you have any idea what might have changed since couple of versions?

      Comment


        #4
        There have not been any changes that would affect your strategy

        I ran a quick test on the ES 12-12 with GOOG as the ticker and received trades.

        What are the exact settings you're using? What symbols?

        Can you run a backtest using the SampleMACrossOver strategy?
        MatthewNinjaTrader Product Management

        Comment


          #5
          I ran this on ticker AAPL , with time periods of both 1 Day ...nothing .....happens

          My data comes from Google /YAhoo

          Comment


            #6
            parameters
            Attached Files

            Comment


              #7
              Can you please post the exact input parameters for your strategy?
              MatthewNinjaTrader Product Management

              Comment


                #8
                Thanks - you have the Data Series set to 1 minute - if you're using the Google/Yahoo connection, only daily data will be available for you.

                Please run this test again with the Type set to Day and try again
                MatthewNinjaTrader Product Management

                Comment


                  #9
                  Originally posted by NinjaTrader_Matthew View Post
                  Thanks - you have the Data Series set to 1 minute - if you're using the Google/Yahoo connection, only daily data will be available for you.

                  Please run this test again with the Type set to Day and try again

                  Thank you but as stated I tried both with daily and minute data .....nothing works ....could you try the startegy with same settings and data daily , does it work with you ?

                  Comment


                    #10
                    Your strategy has an added minute period type. Since you do not have access to minute data, the test will not run.

                    You will need to change this to a Day period type and you should b able to run the backtest:

                    Add(ticker, PeriodType.Day, period );
                    MatthewNinjaTrader Product Management

                    Comment


                      #11
                      Same as strategy below but with daily paramter

                      Comment


                        #12
                        See the screenshot below

                        Comment


                          #13
                          Can you try re-uploading the screen shot?
                          MatthewNinjaTrader Product Management

                          Comment


                            #14
                            Here enclosed ....I have ran this on the entire NASDAQ .... nothing happens ......I do not have any errors in the output box ..... this was working before .....


                            I have other strategies that work fine on the exact same data
                            Attached Files

                            Comment


                              #15
                              Hello gabga100,
                              I tried backtesting the strategy and I could get the trades.

                              If you use the Kinetick End of the Day connection to backtest the strategy then are you getting any results.
                              JoydeepNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              88 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              48 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              30 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              33 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              68 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X