I am trying to set the line style to dash in this code and I keep getting the error "The name 'DashStyle' does not exist in the current context.
I have tried to copy code from other posts exactly and no matter how I set the pen style I get this error.
protected override void Initialize()
{
Pen MyPen1 = new Pen(Color.Blue);
MyPen1.DashStyle = DashStyle.Dash;
Add(new Plot(MyPen1, PlotStyle.Line,"Line"));
CalculateOnBarClose = true;
Overlay = true;
PriceTypeSupported = true;
MAHolder = new DataSeries(this);
}
I am sure it something obvious, but I am missing it.
Any help would be appreciated,
Ryan

Comment