Im modding an indicator so it changes colour based on a variable.
The problem is that when i save as a template the colour change stops working
here is my plot
Add(new Plot(new Pen(Color.Black, 2), PlotStyle.Line, "DairyValue"));
if(Mom>Mom1)
{
PlotColors[4][0] = longColour1;
}
else {
PlotColors[4][0] = longColour2;
}
}
If i save this indicator as a template then it changes the lines back to black and blue with no colour changing.
Any ideas.


Comment