I am able to Add() the indicator and have it plot to my chart. The problem is that I have been unable to find a way to change the plot attributes for the indicator. I would like to change the color and name associated with it.
Below is the Code that I am using.
protectedoverridevoid Initialize()
{
ParabolicSAR(0.02, 0.2, 0.02).Plots[0].Name = "ParSAR";
ParabolicSAR(0.02, 0.2, 0.02).Plots[0].Pen.Color = Color.Blue;
Add(ParabolicSAR(0.02, 0.2, 0.02));
CalculateOnBarClose = true;
}
protectedoverridevoid OnBarUpdate()
{
// Working Code
}
publicoverridestring ToString()
{
return" ";
}
Any assistance would be greatly appreciated.
Thanks.
Larry.
Comment