Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why is only one of the Lines showing?

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

    Why is only one of the Lines showing?

    What do I need to change so that all of the Lines are painted in panel 4?


    ===================
    protected override void Initialize()
    {
    AutoScale = true;
    CalculateOnBarClose = true;
    DisplayInDataBox = false;
    DrawOnPricePanel = false;
    LinesConfigurable = false;
    Overlay = false;
    PaintPriceMarkers = true;
    //PlotsConfigurable = false;
    PriceTypeSupported = false;

    Add(new Plot(new Pen(Color.Black, 5), PlotStyle.Line, "PctB540"));
    Add(new Plot(new Pen(Color.Red, 4), PlotStyle.Line, "PctB180"));
    Add(new Plot(new Pen(Color.Blue, 3), PlotStyle.Line, "PctB60"));
    Add(new Plot(new Pen(Color.Green, 2), PlotStyle.Line, "PctB20"));
    Add(new Plot(new Pen(Color.Gold, 1), PlotStyle.Line, "PctB8"));
    Add(new Plot(new Pen(Color.Purple, 6), PlotStyle.Line, "Try"));

    Add(new Line(Color.FromKnownColor(KnownColor.Red), 100, "100"));
    Add(new Line(Color.FromKnownColor(KnownColor.Black), 50, "50"));
    Add(new Line(Color.FromKnownColor(KnownColor.Blue), 25, "25"));
    Add(new Line(Color.FromKnownColor(KnownColor.White), 0, "Zero"));
    Add(new Line(Color.FromKnownColor(KnownColor.Black), -50, "-50"));
    Add(new Line(Color.FromKnownColor(KnownColor.Blue), -25, "-25"));
    Add(new Line(Color.FromKnownColor(KnownColor.Green), -100, "-100"));
    =================
    Attached Files

    #2
    Saroj,

    I believe your other lines are simply not in the visible y-axis range being displayed at the moment.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Follow-up question

      Originally posted by NinjaTrader_Josh View Post
      Saroj,

      I believe your other lines are simply not in the visible y-axis range being displayed at the moment.
      Yep... that was it... sorry to trouble you with it. Although it confuses me that when I change these lines (later I added one and removed one), I had to remove the indicator entirely and then add it back in for the changes to be reflected on the chart.

      Why is that?

      Comment


        #4
        You would have to do that because you would have to refresh the instance of the indicator with the new lines.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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