The XTL command function has the three states ie UP_TREND, DOWN_TREND and then NEITRAL, hmmm fingers drumming on table, should this not be NEUTRAL
if (n_xtl == UP_TREND) setPriceBarColor(Color.RGB(0x00,0x91,0xFF));
if (n_xtl == DOWN_TREND) setPriceBarColor(Color.RGB(0xFF,0x00,0x00));
if (n_xtl == NEITRAL) setPriceBarColor(Color.RGB(0xA0,0xA0,0xA4));?
if (n_xtl == UP_TREND) setPriceBarColor(Color.RGB(0x00,0x91,0xFF));
if (n_xtl == DOWN_TREND) setPriceBarColor(Color.RGB(0xFF,0x00,0x00));
if (n_xtl == NEITRAL) setPriceBarColor(Color.RGB(0xA0,0xA0,0xA4));?
Comment