Quote from spike500:
Is this what you mean?
Depending on conditions one line can have various colors? In this example 4 different ones.
the code:
Input: Price(Close), Length1(9), Length2(18), Displace(0);
If Displace >= 0 OR CurrentBar > AbsValue(Displace) Then Begin
Plot1[Displace](AverageFC(Price, Length1), "SimpAvg1");
Plot2[Displace](AverageFC(Price, Length2), "SimpAvg2");
Inputs: BZColor(DarkRed), BBZColor(Red), SZColor(Green), SSZColor(DarkGreen);
If Plot1 > Plot2 And Plot1 > Plot1[1] then Begin
SetPlotColor(1, SZColor);
End
Else
If Plot1 > Plot2 And Plot1 < Plot1[1] then Begin
SetPlotColor(1, SSZColor);
End
Else
If Plot1 < Plot2 And Plot1 < Plot1[1] then Begin
SetPlotColor(1, BZColor);
End
Else
If Plot1 < Plot2 And Plot1 > Plot1[1] then Begin
SetPlotColor(1, BBZColor);
end;
end