Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting with indicators

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

    Backtesting with indicators

    Hello!

    I just have a quick question, when I'm running backtesting on my strategy I like to see the indicators that I used in the strategy to see if there is any optimization I could be making based on the values.

    My strategy already plots my two Moving Averages and Volume. I wanted to add a volume SMA to the volume panel, but it always plots it with the price instead of the volume, how do I make it plot in panel 2 with the volume?

    Thanks!

    #2
    Hi B-Rex,

    What code are you using to add this indicator?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Right now it's just :

      Add(SMA(Volume, 50));

      Comment


        #4
        Hi B-Rex,

        I am unable to reproduce the issue.

        I've made a strategy you can test that adds the sma volume with a 50 bar period.
        This plot will be in the second panel and will be blue.

        I've also added the sma with price data with a 50 bar period.
        This plot is in the primary panel and is orange. This is just for you to compare with.

        I am finding that they are not the same.
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank a lot!!

          This was the part of the code that I couldn't figure out:

          SMA(Volume, 50).PanelUI = 2;

          Comment


            #6
            Okay, so I must be blind because I cannot see the "Combined Results Tab" anywhere when running a backtest on the S&P 500 Instrument. I can only see the results for each stock individually... What am I missing here?

            Comment


              #7
              Hi B-Rex,

              If you are backtesting over an instrument list, then the COMBINE results will be the last row in the results.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                well that explains why I didn't see a tab. Thanks!

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by algospoke, Yesterday, 06:40 PM
                2 responses
                19 views
                0 likes
                Last Post algospoke  
                Started by ghoul, Today, 06:02 PM
                3 responses
                14 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by jeronymite, 04-12-2024, 04:26 PM
                3 responses
                45 views
                0 likes
                Last Post jeronymite  
                Started by Barry Milan, Yesterday, 10:35 PM
                7 responses
                20 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by AttiM, 02-14-2024, 05:20 PM
                10 responses
                180 views
                0 likes
                Last Post jeronymite  
                Working...
                X