Spartans
The Spartans algorithm determines trend strength and momentum based on the Average Direction Index (ADX) technical indicator.
Last updated
The Spartans algorithm determines trend strength and momentum based on the Average Direction Index (ADX) technical indicator.
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.
Specifies the higher timeframe on which ADX is calculated. If a value other than ‘chart’ is set, this will override the Master Higher Timeframe setting in the Confirmation Control 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 Higher Timeframe Limitations section for details.
Higher Timeframe is a Key Setting to consider during Strategy Optimization.
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.
ADX Period is a Key Setting to consider during Strategy Optimization.
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.
If the trend threshold is not met, the system will enter Technical Ranging. Trend-based technical ranging can be turned off in Position settings if desired.
Bullish Strong Trend is a Key Setting to consider during Strategy Optimization.
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.
If the trend threshold is not met, the system will enter Technical Ranging. Trend-based technical ranging can be turned off in Position settings if desired.
Bearish Strong Trend is a Key Setting to consider during Strategy Optimization.
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.
Sets the upper threshold to breakout from the Super Trend.
Sets the lower threshold to breakout from the Super Trend.
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.
Sets the standard deviation used to calculate volatility. Generally, Volatility Deviation (sd) should be increased as Volatility Period (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.
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.
Volatility detection based on the width of the Bollinger Band technical indicator can also be activated as a global function in the Volatility section. Global volatility detection operates independently of volatility settings within individual factions.