Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trying to backtest, all results are 0

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

    Trying to backtest, all results are 0

    I am trying to backtest, but all the results have a value of 0.
    1. I connected to Kinetick
    2. Opened strategy analyzer
    3. Tried to backtest AAPL
    4. Strategy: SampleMaCrossOver
    5. Parameters. Fast: 10 Slow: 25
    6. Data Series. Price based on: last, type: minute, value: 1
    7. Timeframe. From: 1/1/2015 To: 3/8/15 Session Template: Use instrument settings
    8. General. Include Commission: False Label: SampleMaCrossOver Maximum bars look back: TwoHundredFiftySix Min. bars required: 20
    9. Historical Fill Processing. Fill type: Default Slipage: 0
    10. Order Handling. Entries per direction: 1 Entry handling: AllEntries Exit on close: True
    11. Order Properties. Set order quantity: by strategy. Time in force: Gtc

    After I click "run backtest" nothing appears, all 0s.

    Ultimately I want to backtest my 2 day period RSI, but I included the MACrossOver because I know it would be easier for you to solve the problem.

    #2
    Hello NGorodzhiy,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    Are you connecting to Kinetick EOD Free?

    Comment


      #3
      Yes, end of day Kinetick.

      Comment


        #4
        Hello NGorodzhiy,

        Thank you for your response.

        The Kinetick EOD Free connection only provide Day, Week, Month and Year. So Minute data would not be available. You can find information on the data provided from your provider at the following link: http://www.ninjatrader.com/support/h...rical_data.htm

        Comment


          #5
          I changed the data series from minute to day and the values are still all 0.

          Comment


            #6
            Hello NGorodzhiy,

            Thank you for your response.

            Increase the range from the From and To dates and test again, also make sure you are connected to Kinetick EOD Free when running the test.

            Comment


              #7
              Ok it works now but why didn't it work before? Is there a minimum range? Also, how do I set how much money I put into each trade with my strategy?

              Comment


                #8
                Hello NGorodzhiy,

                Thank you for your response.

                Likely the range of data was not large enough to calculate a trade should be made by the strategy.

                To set the amount of cash per trade, set the 'Set order quantity' under Order Properties to 'by account size' and then set the 'Account size' - this will allow you to set a virtual account value that is used to determine maximum order size based on margin settings per instrument set in the Instrument Manager for the instrument you are trading: http://www.ninjatrader.com/support/h...nstruments.htm

                If you would prefer to calculate this on your own you can create internal logic that sets the quantity based off the desired cash value.

                Comment

                Latest Posts

                Collapse

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