Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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).

    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.

        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 RookieTrader, Today, 09:37 AM
            3 responses
            15 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by kulwinder73, Today, 10:31 AM
            0 responses
            5 views
            0 likes
            Last Post kulwinder73  
            Started by terofs, Yesterday, 04:18 PM
            1 response
            23 views
            0 likes
            Last Post terofs
            by terofs
             
            Started by CommonWhale, Today, 09:55 AM
            1 response
            4 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by Gerik, Today, 09:40 AM
            2 responses
            7 views
            0 likes
            Last Post Gerik
            by Gerik
             
            Working...
            X