Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer chart indicator on wrong pane

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

    Strategy Analyzer chart indicator on wrong pane

    Using NT 7.0.0.19

    Conditions:
    In Strategy Analyzer
    First backtest after starting NT
    Chart will display RSI indicator in the price pane.
    This is wrong. The strategy calls for the indicator to be in its own pane.
    Click on and remove the indicator.
    Backtest
    Now the indicator shows correctly in it own pane.

    This happens erratically. Not every new session will do it.
    Once corrected, it seems to work okay even after changing strategies.

    Click image for larger version

Name:	100728-2.jpg
Views:	1
Size:	237.7 KB
ID:	894690

    #2
    Hello Camdo,

    Thank you for this report. Can you please share the snippet you're using for this? Be sure to include the code for the Initialize() method.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      I will email you the strategy.

      Comment


        #4
        Thanks for the strategy, Camdo. Strategy plots need to be assigned a panel in the code or else they will go in Panel 1. Below is the line that would place your RSI in panel 2. This line belongs in your strategy's Initialize() method.

        RSI(rsiPeriod, rsiSmooth).PanelUI = 2;

        More information on strategy plotting is available in this reference sample.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          The following code was generated by the strategy wizard.
          It does not explicitly specify a pane for the RSI indicator.
          Perhaps "pane" is an incorrect choice of words.
          The problem is the indicator does not appear under the price graph as it normally would.


          protectedoverridevoid Initialize()
          {
          Add(RSI(
          14, 3));
          CalculateOnBarClose =
          true;
          }
          ///<summary>
          /// Called on each bar update event (incoming tick)
          ///</summary>
          protectedoverridevoid OnBarUpdate()
          {
          // Condition set 1
          if (CrossAbove(RSI(14, 3), 50, 1))
          {
          EnterLong(DefaultQuantity,
          "");
          }
          // Condition set 2
          if (CrossBelow(RSI(14, 3), 50, 1))
          {
          ExitLong(
          "", "");
          }
          }

          Comment


            #6
            If you want to place indicators in their own panels, you can use the code supplied in my previous post.

            Example:
            RSI(14, 3).PanelUI = 2;

            Are you looking for something else?
            Last edited by NinjaTrader_RyanM1; 07-28-2010, 01:08 PM.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              I guess you are missing the point that I am reporting a bug in NT 7.0.0.19
              Pease refer back to the first post.

              Comment


                #8
                Thank you for your report, Camdo. I will forward to our development team.
                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                596 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                343 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                556 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                554 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X