Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change Line Category

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

    Change Line Category

    Is it possible that I can change the Line Category Name so the Line properties are listed with the Plots?




    #2
    Hello,

    Thank you for the question.

    The Lines and Plots groups are generated automatically when you add Plots or Lines so they would be seperate.

    You can create a public double property that can go in the Plots that sets or gets the Line value, here is a simple example:

    Code:
    protected override void Initialize()
    {
    	Add(new Plot(Color.Red, "PlotTest"));
    	Add(new Line(Color.Black, 0, "ZeroLine"));
    }
    
    [XmlIgnore()]
    [Category("Plots")]
    public double LineValue{
    get{
    return Lines[0].Value; 
    } 
    set{
    Lines[0].Value = value;
    }
    }
    This would place a new property in the Plots that references the value of the Line you add, while this still leaves the Lines listed it would allow you to place properties with the plots as you asked.

    I look forward to being of further assistance.

    Comment


      #3
      Thank-you Ninjatrader_Jesse.

      I'll just leave the original Line then as having duplicate Line parameters might cause confusion. I was hoping it's category could just be renamed to "Plots" and it would display with the Plots but that's not the case.

      Also an FYI the link at the bottom of the page " Parameter sequencing" goes to a blank page.
      http://ninjatrader.com/support/forum...15&postcount=1

      Link to blank page.
      For more information on how to arrange the indicator/strategy's chart label, please see this reference sample: http://www.ninjatrader-support.com/v...3814#post23814

      Comment


        #4
        Hello,

        Thank you for providing the link to the blank page, I will have to locate the post that refers to and update it.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        602 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        347 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
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        559 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X