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.
                              Download NinjaTrader FREE at http://ninjatrader.comLearn more about Kinetick http:///www.kinetick.comThis video demonstrates how to use the Kinetick - End Of...
                              JoydeepNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Pattontje, Yesterday, 02:10 PM
                              2 responses
                              14 views
                              0 likes
                              Last Post Pattontje  
                              Started by flybuzz, 04-21-2024, 04:07 PM
                              17 responses
                              229 views
                              0 likes
                              Last Post TradingLoss  
                              Started by agclub, 04-21-2024, 08:57 PM
                              3 responses
                              17 views
                              0 likes
                              Last Post TradingLoss  
                              Started by TradingLoss, 04-21-2024, 04:32 PM
                              4 responses
                              43 views
                              2 likes
                              Last Post TradingLoss  
                              Started by cre8able, 04-17-2024, 04:16 PM
                              6 responses
                              56 views
                              0 likes
                              Last Post cre8able  
                              Working...
                              X