• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 cassiano_sanches, Today, 07:37 PM
                0 responses
                1 view
                0 likes
                Last Post cassiano_sanches  
                Started by terminatorT1000, Today, 06:40 PM
                0 responses
                5 views
                0 likes
                Last Post terminatorT1000  
                Started by Giudiver, Today, 04:29 PM
                0 responses
                7 views
                0 likes
                Last Post Giudiver  
                Started by mlarocco, 03-03-2018, 03:54 PM
                12 responses
                1,298 views
                0 likes
                Last Post SawDr
                by SawDr
                 
                Started by TakingStock12, Today, 04:05 PM
                2 responses
                15 views
                0 likes
                Last Post NinjaTrader_ShawnB  
                Working...
                X