i coded myIndicator.
there are the plot and four DrawHorizontalLines. everytime the plot enter one of the four zones there should be a different backgroundcolor within the indicator extra panel.
when i code this with a value then it works exact:
code:
{
BackColor = Color.White;
}
else if(value5 >= 1.56)
{
BackColor = Color.Blue;
}
else if(value5 >= 1.29)
{
BackColor = Color.Green;
}
else if(value5 < 1.29)
{
BackColor = Color.Yellow;
}
something from the code:
double value5 = myIndicator(Period)[0];
double high = value3 + (value4 * 3);
double medium = value3 + (value4 * 2);
double low = value3 + (value4 * 0.5 );
double verylow = value3 - (value4 * 2);
( if (value5 >= high)
{
BackColor = Color.White;
}
else if(value5 >= medium)
{
BackColor = Color.Blue;
}
else if(value5 >= low)
{
BackColor = Color.Green;
}
else if(value5 < verylow)
{
BackColor = Color.Yellow;
}
Comment