JSS Table - RSI, DI+, DI-, ADXSimple table to show the values for indicators which can be used to initiate trades:
RSI: Long above 55 // Short below 45 // Choppy between 45-55
DI+: Long above 25
DI-: Short above 25
Note when to avoid trend trades:
- If DI+ and DI- are both below 25 then market is choppy
- If RSI is between 45-55 then market is choppy
ADX-DI
adx: Configurable ADX (library) Library "adx"
Calculate ADX (and its constituent parts +DI, -DI, ATR),
using different moving averages and periods.
adx(atrMA, diMA, adxMA, atrLen, diLen, adxLen, h, l, c)
Parameters:
atrMA : Moving Average used for calculating the Average True Range.
Traditionally RMA, but using SMA here and in adxMA gives good results too.
diMA : Moving Average used for calculating the Directional Index.
Traditionally, RMA.
adxMA : Moving Average used for calculating the Average Directional
Index. Traditionally RMA, but using SMA here and in atrMA gives good results
too.
atrLen : Length of the Average True Range.
diLen : Length of the Directional Index.
adxLen : Length (smoothing) of the Average Directional Index.
h : Candle's high.
l : Candle's low.
c : Candle's close.
Returns:
ADX and DI With Coloured Histogram BUY/SELLWe display here the ADX has a colored histogram, which is
- green when ADX and DI+ are higher then DI-, while the ADX is increasing, meaning that we are in a potential uptrend--> we should rather be long (only buy if you have other concordant signals !)
- red when ADX and DI- are higher then DI+, while the ADX is increasing, meaning that we are in a potential downtrend --> we should rather be short (only sell if you have other concordant signals !)
- not visible if none of these conditions are met, meaning that the indicator do not show a potential trend --> don't use this indicator to buy or sell at this stage
ADX coded with DIAn easier to read implementation of ADX and DI, with colour indicating direction of trend, oscillator indicating strength of trend, and below threshold shown with a lack of colour (black).