I am sure it comes from somewhere from the lines below, anyone could hel me on this .
Thanks
// Plot green if the %D is rising
// Rising() returns true when the current value is greater than the value of the previous bar.
if (Rising(Stochastics(PeriodD, PeriodK, Smooth).D))
{
// Connects the rising plot segment with the other plots
RisingPlot.Set(1, Stochastics(PeriodD, PeriodK, Smooth).D[1]);
// Adds the new rising plot line segment to the line
RisingPlot.Set(Stochastics(PeriodD, PeriodK, Smooth).D[0]);
}
// Plot red if the %D is falling
// Falling() returns true when the current value is less than the value of the previous bar.
else if (Falling(Stochastics(PeriodD, PeriodK, Smooth).D))
{
// Connects the new falling plot segment with the rest of the line
FallingPlot.Set(1, Stochastics(PeriodD, PeriodK, Smooth).D[1]);
// Adds the new falling plot line segment to the line
FallingPlot.Set(Stochastics(PeriodD, PeriodK, Smooth).D[0]);
}
// Plot yellow if the %D is neutral
else
{
// Connects the neutral plot segment with the rest of the line
NeutralPlot.Set(1, Stochastics(PeriodD, PeriodK, Smooth).D[1]);
// Adds the new neutral plot line segment to the line
NeutralPlot.Set(Stochastics(PeriodD, PeriodK, Smooth).D[0]);
Comment