Last updated
Last updated
The Average Directional Index (ADX) is a moving average of the price range expansion or contraction over a given period. It quantifies the strength and momentum of a trend but does not directly measure trend direction. Trend direction is deduced dynamically by comparing the current price range with historical values.
ADX ranges from 0 to 100. Values below 20 signify a weak or non-trending market, while those above 25 suggest a strong trend. A rising ADX denotes a strengthening trend, while a falling value implies a weakening trend.
The Average Directional Index (ADX) is a moving average of the price range expansion or contraction over a given period. This setting specifies the number of lookback periods used to calculate ADX on the current timeframe.
Typically, ADX Period is set to 14. Lower values make Spartans more sensitive to volatility generating more frequent signals. Higher values decrease sensitivity to volatility making signals less frequent but more reliable.
This setting should be optimized for each asset and interval combination until the buy, sell, and ranging colors align with trends in the chart.
Sets the threshold for a trend to switch from bearish to bullish. Higher values mean more momentum is required to trigger a buy signal and vice versa.
Typically a trend of >25 is strong, whereas a trend between 20-25 is weak. However, this should be optimized for each asset and interval combination until the buy, sell, and ranging colors align with trends in the chart.
This setting can bias signals in the macro trend direction. Lower values generate more buy signals which may prove beneficial in a macro bull trend. Higher values generate fewer buy signals which may prove beneficial in a macro bear trend.
Sets the threshold for a trend to switch from bullish to bearish. Higher values mean more momentum is required to trigger a sell signal and vice versa.
Typically a trend of >25 is strong, whereas a trend between 20-25 is weak. However, this should be optimized for each asset and interval combination until the buy, sell, and ranging colors align with trends in the chart.
This setting can bias signals in the macro trend direction. Lower values generate more sell signals which may prove beneficial in a macro bear trend. Higher values generate fewer sell signals which may prove beneficial in a macro bull trend.
Sets the gap between strong bullish and bearish trends that must be overcome to reverse a trend signal. Higher settings will decrease sensitivity to changes in trend direction. Settings should be adjusted based on market volatility.
Specifies if Volatility Period and Volatility Deviation will be adjusted manually or set to a short, medium, or long-term preset.
Specifies the lookback period used to calculate volatility.
Specifies the minimum volatility required for Spartans to fire signals. Higher values will reduce the sensitivity of the algorithm to price fluctuations making signals less frequent, but more reliable. This may prove useful in choppy market conditions.
Specifies the higher timeframe on which ADX is calculated. If a value other than ‘chart’ is set, this will override the setting in the section.
The Higher Timeframe trailer analyzes macro trends over 1000 candles at the resolution of the current timeframe in TradingView. The maximum lookback period must be considered when selecting a Higher Timeframe. See the section for details.
If the trend threshold is not met, the system will enter . Trend-based technical ranging can be turned off in settings if desired.
Bullish Strong Trend is a to consider during .
If the trend threshold is not met, the system will enter . Trend-based technical ranging can be turned off in settings if desired.
Bearish Strong Trend is a to consider during .
Sets the upper threshold to breakout from the .
Sets the lower threshold to breakout from the .
Sets the standard deviation used to calculate volatility. Generally, Volatility Deviation (sd) should be increased as (p) is increased. e.g. p = 10, sd = 1.9; p = 20, sd = 2; p = 50, sd = 2.1. However, these settings may not suit some assets.
Volatility detection based on the width of the Bollinger Band technical indicator can also be activated as a global function in the section. Global volatility detection operates independently of volatility settings within individual factions.
The Spartans algorithm determines trend strength and momentum based on the Average Direction Index (ADX) technical indicator.