Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Line Width

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

    Line Width

    Hi
    How do i change the width for a plot like this?

    Add(
    new Plot(Color.Red, PlotStyle.Line, "Line1"));

    I read the Help section and tutorial and tried this:

    Plots[0].Pen.DashStyle = DashStyle.Dash;

    Which changed the wodth of the line when I looked at the properties box when adding the indicator to the chart. BUT no line printed.

    So I changed the Add line to this and then it wouldn't compile:

    Plots.Add(new Plot(Color.Red, PlotStyle.Line, "Line2"));

    I have spent half a day ferriting round the site and help guide trying to find what is probably a simple error on my behalf - Honest

    #2
    Try this after the Add() method:

    Plots[0].Pen.Width = 2;
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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