Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to select the next available chart panel

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

    How to select the next available chart panel

    I notice that your system indicators will always suggest the next available/blank chart panel for display

    However, mine always default to panel 1.

    How do I make them auto select like yours?

    #2
    imported post

    You likely have
    Code:
    PriceTypeSupported = true;
    in your Initialize method. Please remove that and you should be good (compare e.g. SMA and ADX implementation).
    DierkNinjaTrader Customer Service

    Comment


      #3
      imported post

      Thanks Dierk

      I just tried that, and it still defaults to panel 1

      protected override void Initialize()
      {
      Add(new Plot(Color.OrangeRed, PlotStyle.Bar, "Angle"));
      Add(new Line(Color.DarkOliveGreen, 0, "Zero"));
      Period = 9;
      Volatility = 5;
      CalculateOnBarClose = false;
      Overlay = true;
      // PriceTypeSupported = true;
      }

      Comment


        #4
        imported post

        Hmm I was mistaken. Please remove this line:
        Code:
        Overlay = true
        Sorry.
        DierkNinjaTrader Customer Service

        Comment


          #5
          imported post

          Bingo ! That got it.

          I verified that the wizard sets overlay=true when the 'plot on chart' tick box is selected on the 2nd page of the wizard.

          I just assumed that this meant that the indicator would show up on the chart someplace, vs being a background function.

          But it really means plot on the the price panel vs it's own panel

          Maybe the wording in the wizard could be updated to better reflect what it does.

          Thanks again for such prompt response!!


          Comment


            #6
            imported post

            Good point, thanks for your suggestion.

            Ray
            RayNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by kuxosude, Today, 02:17 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Jason  
            Started by PanicTrades, 05-10-2020, 08:45 AM
            6 responses
            71 views
            0 likes
            Last Post damon_achey  
            Started by soon123, Yesterday, 11:44 PM
            0 responses
            9 views
            0 likes
            Last Post soon123
            by soon123
             
            Started by Hyper, Yesterday, 11:10 PM
            0 responses
            5 views
            0 likes
            Last Post Hyper
            by Hyper
             
            Started by soon123, Yesterday, 10:20 PM
            0 responses
            5 views
            0 likes
            Last Post soon123
            by soon123
             
            Working...
            X