Example from help:
// Dynamically change the primary plot's color based on the indicator value
protected override void OnBarUpdate()
{
if (Values[0] > 100)
Plots[0].Pen = new Pen(Color.Blue);
else
Plots[0].Pen = new Pen(Color.Red);
}
My code:
if(piSignal[0] == 1)
{Plots[2].Pen = new Pen(Color.Green,3); else if (piSignal[0] == -1)
{Plots[2].Pen = new Pen(Color.Red,3);
else
{Plots[2].Pen = new Pen(Color.Yellow,3);
Comment