Initialize:
(i have tried solid, dash, and dot, this is just my last at bat)
pen = new Pen(Color.Black, 5);
pen.DashStyle = DashStyle.Custom;
Add(new Plot(pen, PlotStyle.Line, "Indicator"));
--------------------------------------------------------------------
switch (selector) {
case 1:
Plots[5].Pen.DashStyle = DashStyle.Solid;
PlotColors[5][0] = Color.FromArgb(0,192,0);
//Plots[5].Pen.DashStyle = DashStyle.Solid;
break;
case 0:
Plots[5].Pen.DashStyle = DashStyle.Dot;
PlotColors[5][0] = Color.Yellow;
//Plots[5].Pen.DashStyle = DashStyle.Dot;
break;
case -1:
Plots[5].Pen.DashStyle = DashStyle.Dash;
PlotColors[5][0] = Color.FromArgb(192,0,0);
//Plots[5].Pen.DashStyle = DashStyle.Dash;
break;
}
the issue is that the first plot change is the only plot change,
the colours change just fine but the plot only makes the very first
change and then that is it. how do i get the plot ot change with the
colour? i found the nt help on line and plots see below, but not
dashstyle.
neither above or below the plotcolors line of code effect the dashstyle
any ideas or thoughts?
no worries i already went thur the NT help
=====Lines======================================== ==========================================
// Dynamically change the upper line's color and thickness based on the indicator value
protected override void OnBarUpdate()
{
if (Value[0] > 70)
Lines[1].Pen = new Pen(Color.Blue, 3);
else
Lines[1].Pen = new Pen(Color.Gray, 1);
}
=====PLOTS======================================== ==========================================
// Dynamically change the primary plot's color based on the indicator value
protected override void OnBarUpdate()
{
if (Value[0] > 70)
Plots[0].Pen = new Pen(Color.Blue);
else
Plots[0].Pen = new Pen(Color.Red);
}
Comment