Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can I move a plot parameter?

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

    Can I move a plot parameter?

    When I use a plot object/series in an indicator, its color/size/dashstyle get put into a "Plot" section on the indicator properties panel. Is there a way to move that to another section? I tried the "Category" property, but that didn't change anything.

    Thanks!
    Bryan

    #2
    Hi cassb,

    Thanks for your post and sorry for this late reply.

    Unfortunately this is not possible.

    Have a great weekend!

    Comment


      #3
      OK thanks, Bertrand.

      And I'm going to hijack my own thread here and ask another question about plots. I have a couple objects, lines and text, in my indicator that I want to be the same color as the plot. So I put the following code into the Initialize tag:

      Code:
                  Add(new Plot(new Pen(Color.FromKnownColor(KnownColor.Green), 2), PlotStyle.Dot, "Plot"));
      
                  lineColor = Plots[0].Pen.Color;    // Make the lines the same color as the plot
                  textColor = Plots[0].Pen.Color;   // Make the labels the same color as the plot
      This works fine if I keep the default color of Green. But if I change the plot color in the properties dialog to something else, the Line and Text color still stays green. How do I set the color of these objects to whatever the user selected for the plot color?

      Thanks!

      Comment


        #4
        Try moving the color assignment code into the top of the OnBarUpdate() method and see if that makes a difference.
        RayNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Ray View Post
          Try moving the color assignment code into the top of the OnBarUpdate() method and see if that makes a difference.
          Ha, I knew you'd say that, and it did not make a difference. Maybe I'm using the Plots[0].Pen.Color wrong or I should use some other property?

          Comment

          Latest Posts

          Collapse

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