Arcata, CA
Experience: Intermediate
Platform: NinjaTrader
Trading: index futures, oil
Posts: 485 since Jun 2009
Thanks Given: 232
Thanks Received: 415
|
Can someone please tell me how to set the thickness on the line? I've tried following NT "help" documentation with no luck.
Add(new Line(Color.Red, 200, "Upper Extreme"));
Add(new Line(Color.Black, 100, "Up Trend"));
Add(new Line(Color.Gray, 0, "Zero Line"));
Add(new Line(Color.Black, -100, "Dn Trend"));
Add(new Line(Color.Lime, -200, "Lower Extreme"));
One thought I have is that even though lines are not defined in the Properties region, maybe the following approach works:
Lines[0].Pen.Width = 3; // sets the "Upper Extreme" line width to 3
Lines[1].Pen.Width = 2; // sets the "Up Trend" line width to 2
Lines[2].Pen.Width = 1; // sets the "Zero Line" line width to 1
Lines[3].Pen.Width = 2; // sets the "Dn Trend" line width to 2
Lines[4].Pen.Width = 3; // sets the "Lower Extreme" line width to 3
Is that it? But these aren't a dataseries are they?
or maybe:
Add(new Line(new Pen(Color.Red, 3), 200, "Upper Extreme"));
Add(new Line(new Pen(Color.Black, 2), 100, "Up Trend"));
Add(new Line(new Pen(Color.Gray, 1), 0, "Zero Line"));
Add(new Line(new Pen(Color.Black, 2), -100, "Dn Trend"));
Add(new Line(new Pen(Color.Lime, 3), -200, "Lower Extreme"));
|