Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting vs attaching a strategy to a chart

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

    Backtesting vs attaching a strategy to a chart

    I am having a problem with backtesting a multi-timeframe strategy. (3, 6, 15 minutes)

    I can see results on a 3 minute chart when I attach a strategy to said chart, but when I backtest on the same instrument, date, and time frame my results are all **zeros**.

    Is there a way to remedy this?

    NT8 - 8.0.0.11 (Beta) - 64 bit
    Last edited by ArmKnuckle; 06-29-2016, 12:49 PM.

    #2
    Hi ArmKnuckle,

    For future reference, below is a link to the NinjaTrader 8 Beta section of the NinjaTrader forums.
    http://ninjatrader.com/support/forum...splay.php?f=59

    Are you able to reproduce this behavior using the SampleMACrossOver script?

    May I have screenshots of the parameters in the Strategy Analyzer and a screenshot of the parameters used for the script on the chart (from the Strategy Window and the Data Series window)?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      The backtesting results of the SampleMACrossOver do not match what appears on the chart.

      X - 3 minutes - June 24, 2016

      At least I see some results on the Backtest with SampleMACrossOver.


      Attached are the images you requested.
      Attached Files

      Comment


        #4
        Hello ArmKnuckle,

        The settings are not the same in the screenshots.

        The amount of data being tested on the chart is 30 days.
        (June 1st through June 30th)

        The amount of data being tested in the Strategy Analyzer is 1 day.
        (June 24th)

        The session template of the chart is US Equities RTH.

        The session template of the Strategy Analyzer is <use instrument settings>.
        (Since you must have made this instrument yourself in the Instrument window (or by loading on a chart which automatically creates a new instrument in the Instrument window with blank and default settings), its very possible this is using the Default 24 / 7 template)

        For any trades made in real-time the Chart has the strategy running OnEachTick (meaning that OnBarUpdate is triggering in real time on each time).

        The Strategy Analyzer is running OnBarClose (meaning that OnBarUpdate is triggering once on every 3 minute bar).


        No, the results will not be the same when you are testing over completely different data, with different session templates.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Such a quick response.

          You have inspired me to attack this situation with all the ferocity that my mind/body can endure.

          Thanks for the info!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by RookieTrader, Today, 09:37 AM
          2 responses
          10 views
          0 likes
          Last Post RookieTrader  
          Started by alifarahani, Today, 09:40 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by Gerik, Today, 09:40 AM
          2 responses
          6 views
          0 likes
          Last Post Gerik
          by Gerik
           
          Started by KennyK, 05-29-2017, 02:02 AM
          3 responses
          1,285 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by AttiM, 02-14-2024, 05:20 PM
          11 responses
          186 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X