I've got a probleme with the indicator i just create. I use rising and faling fonction to have differents color but like this picture show it there is many mistakes:
So i try another way like this (trend is the name of my indicator):
if (Trend[0]>Trend[1])
{
// Connects the rising plot segment with the other plots
TrendUp.Set(1, Trend[1]);
// Adds the new rising plot line segment to the line
TrendUp.Set(Trend[0]);
}
else if (Trend[0]<Trend[1])
{
// Connects the new falling plot segment with the rest of the line
TrendDown.Set(1, Trend[1]);
// Adds the new falling plot line segment to the line
TrendDown.Set(Trend[0]);
}
else
{
// Connects the neutral plot segment with the rest of the line
TrendNeutral.Set(1, Trend[1]);
// Adds the new neutral plot line segment to the line
TrendNeutral.Set(Trend[0]);
}
But my probleme is the same.
Can someone give me the right way to solve my probleme?
Thanks a lot
Comment