whitmark
03-29-2007, 03:21 AM
I am trying to plot an indicator with acontinuous line that changes toan upcolor when the currentindicator value is above the previousindicator valueand conversely for the down color. So I haveadded two plots and use the plot values in a dataseries toset the two plots as follows:
// Determine Color forPlotLine
if (Plot_Value[0] >= Plot_Value[1])
{
Plot_Line_Up.Set(Plot_Value[0]);
}
else if (Plot_Value[0] < Plot_Value[1])
{
Plot_Line_Dn.Set(Plot_Value[0]);
}
However, when I examine the plots on the chart, I see the colors change but there is agap in the line plot where the plot changes color.I see there is aBarColor and BackColor methods for this purpose but anything forplots?
Is there a straighforward way to accommodate dynamic color modificationstoa line plotstyle without the need to mind the gap? :)
Regards,
Whitmark
// Determine Color forPlotLine
if (Plot_Value[0] >= Plot_Value[1])
{
Plot_Line_Up.Set(Plot_Value[0]);
}
else if (Plot_Value[0] < Plot_Value[1])
{
Plot_Line_Dn.Set(Plot_Value[0]);
}
However, when I examine the plots on the chart, I see the colors change but there is agap in the line plot where the plot changes color.I see there is aBarColor and BackColor methods for this purpose but anything forplots?
Is there a straighforward way to accommodate dynamic color modificationstoa line plotstyle without the need to mind the gap? :)
Regards,
Whitmark