I am using a TEMA to set the background color depending on whether rising or falling. I can get the rising and falling colors to work. But I cant seem to get it to work on the bars where the TEMA is same as previous bar.
Here is code:
if (TEMA(100)[0] < TEMA(100)[1])
{
BackColor = Color.MistyRose;
FlagTEMA.Set(-1);
}
if (TEMA(100)[0] > TEMA(100)[1])
{
BackColor = Color.MintCream;
FlagTEMA.Set(1);
}
if ( (TEMA(100)[0]) == (TEMA(100)[1]) )
{
BackColor = Color.White;
}
Any suggestions?
Comment