Relative Strength Overlay [BackQuant]Relative Strength Overlay
Relative Strength Overlay is a new innovative proprietary adaptive calculation to get an assets relative strength. To ensure this is well put together and easy for traders to use we have made it into an overlay. Allowing traders and investors to spot clear trends in both the up and down directions. Providing clear signals, and an option for a gradient to allow users to screen assets with strong relative strength and potentially define a trading period.
Please take the time to read the following.
Importance and Concepts
1. Adaptive Relative Strength Calculation:
At the heart of this indicator lies an adaptive relative strength calculation, a pivotal concept that goes beyond the traditional RSI (Relative Strength Index) by dynamically adjusting its sensitivity based on recent price action. This adaptability ensures that the indicator is more responsive to current market conditions, enhancing its effectiveness in signaling potential reversals or continuations.
2. Volatility and Price Action Adaptivity:
Incorporating an adaptive approach to both volatility and price action, the indicator refines its signals to reflect the current market environment more accurately. This adaptability is achieved through a custom calculation that considers the volatility (using ATR - Average True Range) and price action (through DEMA - Double Exponential Moving Average), ensuring that the indicator remains sensitive to sudden changes in market dynamics.
3. DEMA Utilization:
The use of DEMA provides a price-adaptive mechanism that smoothens the indicator's output, making it more reliable during volatile periods. DEMA helps in reducing the lag associated with traditional moving averages, offering a quicker response to price changes and enhancing the adaptive nature of the relative strength calculation.
Main Features and Trading Applications
Comprehensive UI Settings:
The indicator comes with extensive user interface settings, allowing traders to customize various parameters according to their trading preferences. These settings include adjustment options for calculation periods, standard deviation factors, and the ability to toggle features like volatility bands and signal lines on or off.
Volatility-Adjusted Bands:
Utilizing a custom ATR calculation, the indicator plots volatility bands that adjust according to current market volatility. These bands serve as dynamic support and resistance levels, providing traders with potential entry and exit points based on the confluence of relative strength signals and band breaches.
Calibrated Trading Conditions:
The indicator features pre-modeled long and short conditions that have been backtested to ensure robustness. These conditions help in identifying high-probability trading setups, making the indicator a valuable tool for both discretionary and systematic traders, mainly looking to either define a trading period, or capture clear trends in confluence with other metrics.
Trading Range Identification:
By filtering assets based on their relative strength, traders can use the indicator to identify securities with strong momentum. This feature is particularly useful for portfolio selection and asset screening, allowing traders to focus on the most promising opportunities.
Gradient Background Hue:
The indicator offers a unique visual aid in the form of a gradient background hue, which assists in quickly screening assets based on their relative strength. This color-coding feature aids in identifying potential reversals as it highlights changes in the strength's direction.
Adaptive Volatility Bands with Standard Deviations:
The inclusion of three sets of volatility bands, each corresponding to different standard deviations, provides a probabilistic view of price movements. These bands adapt to current market volatility, offering traders insights into the likelihood of price staying within certain ranges. This goes up to +-3 Standard Deviations.
Alert Conditions and Signal Visualization:
With built-in alert conditions for long and short signals, along with the ability to paint candles according to the prevailing trend, traders can stay informed about significant market movements. This feature enhances the decision-making process by visually representing the strength and direction of the trend.
alertcondition(ta.crossover(BackQuant, 0), title="Positive RS", message="Positive RS {{exchange}}:{{ticker}}")
alertcondition(ta.crossunder(BackQuant, 0), title="Negative RS", message="Negative RS {{exchange}}:{{ticker}}")
Concluding Remarks.
In conclusion our Relative Strength Overlay indicator is a comprehensive tool that leverages adaptive calculations and volatility adjustments to provide traders with nuanced insights into market conditions. By combining traditional concepts with innovative features, this indicator offers a versatile solution for traders seeking to enhance their market analysis and identify high-probability trading opportunities.
Thus following all of the key points here are some sample backtests on the 1D Chart
Disclaimer: Backtests are based off past results, and are not indicative of the future.
INDEX:BTCUSD
INDEX:ETHUSD
BINANCE:SOLUSD
Cleartrends
DEMA Adjusted Average True Range [BackQuant]The use of the Double Exponential Moving Average (DEMA) within your Adjusted Average True Range (ATR) calculation serves as a cornerstone for enhancing the indicator's responsiveness to market changes. To delve deeper into why DEMA is employed specifically in the context of your ATR calculation, let's explore the inherent qualities of DEMA and its impact on the ATR's performance.
DEMA and Its Advantages
As previously mentioned, DEMA was designed to offer a more responsive alternative to the traditional Exponential Moving Average (EMA). By giving more weight to recent price data, DEMA reduces the lag typically associated with moving averages. This reduction in lag is especially beneficial for short-term traders looking to capitalize on trend reversals and other market movements as swiftly as possible.
The calculation of DEMA involves the following steps:
Calculate EMA1: This is the Exponential Moving Average of the price.
Calculate EMA2: This is the Exponential Moving Average of EMA1, thus it is a smoothing of a smoothing, leading to a greater lag.
Formulate DEMA: The formula
EMA1 = EMA of price
EMA2 = EMA of EMA1
DEMA = (2 x EMA1) - EMA2
effectively doubles the weighting of the most recent data points by subtracting the lagged, double-smoothed EMA2 from twice the single-smoothed EMA1.
This process enhances the moving average's sensitivity to recent price movements, allowing the DEMA to adhere more closely to the price bars than either EMA1 or EMA2 alone.
Integration with ATR
In the context of your ATR calculation, the integration of DEMA plays a crucial role in defining the indicator's core functionality. Here's a detailed explanation of how DEMA affects the ATR calculation:
Initial Determination of DEMA : By applying the DEMA formula to the chosen source data (which can be adjusted to use Heikin Ashi candle close prices for an even smoother analysis), you set a foundation for a more reactive trend-following mechanism within the ATR framework.
Application to ATR Bands : The calculated DEMA serves as the central line from which the ATR bands are derived. The ATR value, multiplied by a user-defined factor, is added to and subtracted from the DEMA to form the upper and lower bands, respectively. This dynamic adjustment not only reflects the volatility based on the ATR but does so in a way that is closely aligned with the most recent price action, thanks to the utilization of DEMA.
Enhanced Signal Quality : The responsiveness of DEMA ensures that the ATR bands adjust more promptly to changes in market conditions. This quality is vital for traders who rely on the ATR bands to identify potential entry and exit points, trend reversals, or to assess market volatility.
By employing DEMA as the core component in calculating the Adjusted Average True Range, your indicator leverages DEMA's reduced lag and increased weight on recent data to provide a more timely and accurate measure of market volatility. This innovative approach enhances the utility of the ATR by making it not only a tool for assessing volatility but also a more reactive indicator for trend analysis and trading signal generation.
The main concept of combining these is to reduce lag, get a more robust signal and still capture clear trends over medium time horizons.
For me, this is best used in confluence with other indicators, it can be made faster in order to get fasters response time, or slower. This is all depending on the needs of you as a trader.
User Inputs:
The script offers several user-configurable inputs, such as the period lengths for DEMA and ATR calculations, the multiplication factor for the ATR, and options to use Heikin Ashi candles or standard price data. Additionally, it allows for the toggling of visual features, like the plotting of the DEMA ATR and its moving average, and the application of color-coded trends on price bars.
Additional Features:
Moving Average Confluence: Traders can opt to display a moving average of the DEMA ATR, choosing from various types (e.g., SMA, EMA, HMA). This feature provides a layer of confluence, aiding in the identification of trend direction and strength.
Trend Identification :
The script employs logical conditions to ascertain the trend direction based on the movement of the DEMA ATR. It assigns colors to represent bullish or bearish trends, which are reflected in the plotted lines and the coloring of price bars.
Alerts :
Customizable alert conditions for trend reversals enhance the utility of the indicator for active trading, notifying users of significant changes in trend direction.
1D Backtests
We include these backtests as a general proxy for how they work.
Please do your own calibrating to suit it to your own needs and backtest.
Past results don't = future results but they can help you understand how it functions.
INDEX:BTCUSD
INDEX:ETHUSD
BINANCE:SOLUSD