For example:
{
Add(new Plot(Color.Green, "Plot1"));
Add(new Plot(Color.Red, "Plot2"));
}
The example code belowswitches the entire "Plot1" color betweengreen and red depending on the SMA values:
{
if (SMA(5)[0] > SMA(15)[0])
Plots[0].Pen.Color = Color.Green;
else
Plots[0].Pen.Color = Color.Red;
}
Comment