ADXSignal
- 지표
- Stanislav Korotky
- 버전: 1.1
- 활성화: 5
Classical ADX revamped to provide faster and more solid trading signals.
This indicator calculates ADX values using standard formulae, but excludes operation of taking the module of ADX values, which is forcedly added into ADX for some reason. In other words, the indicator preserves natural signs of ADX values, which makes it more consistent, easy to use, and gives signals earlier than standard ADX. Strictly speaking, any conversion to an absolute value destroys a part of information, and it makes sense to skip the operation. In addition, the indicator provides additional buffers for your convenience.
The indicator displays 4 lines:
- ADX with sign - thick light-blue line;
- +(-DI) negative directional index - dash-dotted light brown line (always positive);
- -(+DI) inverted positive directional index - dash-dotted light-green line (always negative);
- (+DI)-(-DI) difference between 2 indices - thick gray line.
Whereas traditional ADX is always positive, ADXSignal may be both positive and negative. The signals of ADXSignal are similar to ADX, but more clear:
- When ADXSignal goes up (no matter - above or below 0), trend up is active. When ADXSignal goes down (no matter - above or below 0), trend down is active.
- The moment when you should open a position in the trend direction is when the directional indices difference has a sign corresponding to the trend. Normally, ADX rules imply you go buy when +DI crosses -DI up, and go short when +DI crosses -DI down, but ADXSignal provides a single convenient buffer for this - the 4-th buffer: if it's > 0, it's OK to buy, when it's < 0, it's OK to sell.
- You may also notice that +(-DI) and -(+DI) form now a channel, which gives you additional signals and can be treated as a confirmation - for example, when the difference goes outside the channel, the signal becomes more strong than when the difference crosses 0, suitable for position enlarging.
Screenshots below demonstrate how ADXSignal behaves in comparison with conventional ADX. It can be noted that ADXSignal gives signals earlier than ADX. On bars marked by vertical lines ADXSignal produces signals for new trends, but ADX is still falling down and misses optimal entry points.
Parameters are ADX period (default - 14) and alert settings (AlertType - built-in alert, e-mail, push-notification, AlertCondition - formula, AlertName - signal name). The formula can use the following variables for 4 buffers on the last 3 bars:
- Buffer 0: ADXS - ADX0, ADX1, ADX2 [signed]
- Buffer 1: -(+DI) - PDI0, PDI1, PDI2 or DN0, DN1, DN2 [always negative]
- Buffer 2: +(-DI) - NDI0, NDI1, NDI2 or UP0, UP1, UP2 [always positive]
- Buffer 3: (+DI)-(-DI) - SUM0, SUM1, SUM2 [signed]
Example of the formula with 2 signals (buys: +1, +2, sells: -1, -2):
ADX2>DN2&&ADX1<=DN1?-1:ADX2<UP2&&ADX1>=UP1?+1:(SUM2*SUM1<0?(SUM1>0?+2:-2):0)