Variable:
privateDoubleCollectionDashTestValues = newDoubleCollection() { 7, 3, 7, 3 };
protectedoverridevoidOnStateChange()
{
if (State == State.SetDefaults) {
AddPlot(Brushes.RoyalBlue, "Line1"); //Value[0]
PencustPen1 = newPen(Brushes.Black, 1); //create a custom Pen
//Define own DashStyle object for custPen passing a collection of double that defines the dash pattern //(DashTestValues)
custPen1.DashStyle = newDashStyle(DashTestValues,0);
Plots[0].Pen = custPen1; //set plot[0] Pen
Plots[0].PlotStyle = PlotStyle.Hash;
}
}
//Plot value is updated in OnBarUpdate
protectedoverridevoidOnBarUpdate()
{
Value[0] = PriceL+ARge/2; //Plot Line1
}
I only get a plot in the style defined by PlotStyle but I don't see the custom dash pattern. What is wrong? Any snippet code to get on track?
Also for this custom brush do we need to do something State == State.Terminated to free memory, what is the code for this?
Comment