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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        163 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X