FWIW, I do not intend to remain incompetent. I have begun studying C# and hope eventually to be capable of offering advice, rather than asking for it.
Here is what I have bungled so far.
The original section of code reads:
AddPlot(new Stroke(Brushes.OrangeRed, 2), PlotStyle.Bar, "BarTime");
AddLine(new Stroke(Brushes.Gray, 1f), 0.0,"zeroLine");
I have replaced it with this:
{
if (Close > Open)
{
AddPlot(new Stroke(Brushes.Green, 2), PlotStyle.Bar, "BarTime");
}
else
{
AddPlot(new Stroke(Brushes.Red, 2), PlotStyle.Bar, "BarTime");
}
}
This throws the following compiler error:
"operator '>' cannot be applied to operands of type '|Series <double>' and |Series <double>'
What am I doing wrong, please, and how do I fix it? Oh, and are there any other obvious errors in my attempt at coding?
Many thanks for any help.

Comment