Source: https://fxcodebase.com/code/viewtopic.php?f=38&t=63597
Forum: 38 · Topic 63597 · 1 post(s)
Apprentice · Sun Jun 12, 2016 12:24 pm

uptrend: 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