Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy analyzer chart tab loses the indicators when reloading backtest

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

    Strategy analyzer chart tab loses the indicators when reloading backtest

    Hi,

    I have an annoying problem, I'm running a backtests of my strategy and after backtests I'm trying to analyse the actual trades that it generated on the Chart tab within the Strategy Analyser window, of course I'm adding a indicators to the chart that I'm using within the scripting. However after every new run of the backtest the chart loses the indicators, can this be changed somehow, that the indicators stay within the chart so I don't need to add for example 5 indicators every time I ran the backtest ?

    PS. The "Save and Load" Template feature doesn't work, because after loading it there the trades from test are gone...


    Thanks for help!

    #2
    Hello tkaluzny,

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

    The Strategy Analyzer Chart tab should show all Indicators added in your strategy.

    Are you asking about 5 different indicators? Or 5 different instances (settings) of one indicator that is added from your strategy?

    I look forward to your response.

    Comment


      #3
      Hello,

      Thanks for quick response, maybe I'll show what is the problem, after running Backtest I'm adding some indicators to have a better view on the output chart:



      And when I click on a "Run Backtest" after some changes in the script in order to re-generate the results and to see a chart with new results the indicators are gone from the chart so I need to add these again and again after every change and when I change it often it's a real pain and even a showstopper I would say

      Comment


        #4
        Ok, now I think I understand what Im doing wrong and I should add an indicators within the strategy code like for example:

        protected override void Initialize()
        {

        this.Indicators.Add(this.VOLMA(15));
        }

        Am I right ?

        Comment


          #5
          Hello tkaluzny,

          Thank you for your response.

          This is expected behavior. The Chart tab only shows the indicators from the strategy's code or those that have been manually added. The moment you re-run the Backtest or another test the manually added indicators to the Chart tab will disappear.

          Please let me know if I may be of further assistance.

          Comment


            #6
            Thank you for help!

            The case can be closed.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by elirion, Today, 01:36 AM
            0 responses
            3 views
            0 likes
            Last Post elirion
            by elirion
             
            Started by gentlebenthebear, Today, 01:30 AM
            0 responses
            4 views
            0 likes
            Last Post gentlebenthebear  
            Started by samish18, Yesterday, 08:31 AM
            2 responses
            9 views
            0 likes
            Last Post elirion
            by elirion
             
            Started by Mestor, 03-10-2023, 01:50 AM
            16 responses
            389 views
            0 likes
            Last Post z.franck  
            Started by rtwave, 04-12-2024, 09:30 AM
            4 responses
            34 views
            0 likes
            Last Post rtwave
            by rtwave
             
            Working...
            X