Based on the request.
viewtopic.php?f=27&t=62464uptrend: color green
ADX(PERIOD)> ADX(PERIOD-1)
AND DMI[POSITIVE]> DMI[NEGATIVE]
AND MACD> 0
downtrend: color red
ADX(PERIOD)> ADX(PERIOD-1)
AND DMI[POSITIVE]< DMI[NEGATIVE]
AND MACD< 0
sideway: not uptrend, not downtrend, colorgrey