PDA

View Full Version : coloration trouble


serval
12-06-2009, 10:55 AM
hello,

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:

http://cjoint.com/?mgsZZTd2b5

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

NinjaTrader_Ben
12-06-2009, 12:17 PM
Hello,

The picture looks correct to me. Where is it wrong?

eDanny
12-06-2009, 12:48 PM
You have run into the ever present multicolor line coloring bug. Hopefully NT7 will fix this although it requires rewriting the code.

serval
12-06-2009, 03:31 PM
Hello,

The picture looks correct to me. Where is it wrong?


It's wrong where i put elipse for example my indicator is rising and the color is red like if it was falling.

serval
12-06-2009, 03:53 PM
You have run into the ever present multicolor line coloring bug. Hopefully NT7 will fix this although it requires rewriting the code.

So, with NT6 I can do nothing to resolve my problème of coloration?

Thanks for the answer.

NinjaTrader_Ben
12-06-2009, 07:52 PM
Hello,

I will have someone reply to you on Monday. Thank you for your patience.

NinjaTrader_Josh
12-07-2009, 07:51 AM
Unless you want to override the Plot() method and completely draw your own via C#, it is what it is. Unfortunately we do not support overriding the Plot() method.