vladikislav

RSI and MACD Composite Score

vladikislav 已更新   
Components of the Indicator

RSI Settings:
The RSI is set with a length parameter, which can be adjusted by the user but defaults to 14. This measures the speed and change of price movements.
MACD Settings:
The MACD is composed of two lines: the MACD line and the signal line, which are calculated from exponential moving averages (EMAs) of different lengths (fast and slow). The default settings are 9 for the fast length, 26 for the slow length, and 3 for the signal length.
The MACD histogram, which is the difference between the MACD line and the signal line, is also calculated.

Normalization and Combination

RSI Normalization: The RSI values are normalized around 0 by subtracting 50 from the RSI and then dividing by 50. This scaling adjusts the RSI to fluctuate around 0, where positive values indicate strength and negative values indicate weakness relative to the median RSI value of 50.
MACD Normalization: The MACD histogram is normalized by dividing it by the highest absolute value of the histogram over the slow length period. This adjustment scales the MACD histogram to fall between -1 and 1, making it comparable in magnitude to the normalized RSI.
Composite Score Calculation

The composite score is simply the sum of the normalized RSI and the normalized MACD histogram. This results in a combined score that reflects both momentum (from RSI) and trend (from MACD), providing a multifaceted view of market dynamics.

Visualization
The composite score is plotted as an oscillator, with a horizontal zero line that helps identify when the score shifts from positive to negative or vice versa.
The background color changes based on the trend: green if the composite score is above zero (bullish trend) and red if below zero (bearish trend).
發布通知:
Components of the Indicator

RSI Settings:
The RSI is set with a length parameter, which can be adjusted by the user but defaults to 14. This measures the speed and change of price movements.
MACD Settings:
The MACD is composed of two lines: the MACD line and the signal line, which are calculated from exponential moving averages (EMAs) of different lengths (fast and slow). The default settings are 9 for the fast length, 26 for the slow length, and 3 for the signal length.
The MACD histogram, which is the difference between the MACD line and the signal line, is also calculated.

Normalization and Combination

RSI Normalization: The RSI values are normalized around 0 by subtracting 50 from the RSI and then dividing by 50. This scaling adjusts the RSI to fluctuate around 0, where positive values indicate strength and negative values indicate weakness relative to the median RSI value of 50.
MACD Normalization: The MACD histogram is normalized by dividing it by the highest absolute value of the histogram over the slow length period. This adjustment scales the MACD histogram to fall between -1 and 1, making it comparable in magnitude to the normalized RSI.
Composite Score Calculation

The composite score is simply the sum of the normalized RSI and the normalized MACD histogram. This results in a combined score that reflects both momentum (from RSI) and trend (from MACD), providing a multifaceted view of market dynamics.

Visualization
The composite score is plotted as an oscillator, with a horizontal zero line that helps identify when the score shifts from positive to negative or vice versa.
The background color changes based on the trend: green if the composite score is above zero (bullish trend) and red if below zero (bearish trend).
發布通知:
Components of the Indicator

RSI Settings:
The RSI is set with a length parameter, which can be adjusted by the user but defaults to 14. This measures the speed and change of price movements.
MACD Settings:
The MACD is composed of two lines: the MACD line and the signal line, which are calculated from exponential moving averages (EMAs) of different lengths (fast and slow). The default settings are 9 for the fast length, 26 for the slow length, and 3 for the signal length.
The MACD histogram, which is the difference between the MACD line and the signal line, is also calculated.

Normalization and Combination

RSI Normalization: The RSI values are normalized around 0 by subtracting 50 from the RSI and then dividing by 50. This scaling adjusts the RSI to fluctuate around 0, where positive values indicate strength and negative values indicate weakness relative to the median RSI value of 50.
MACD Normalization: The MACD histogram is normalized by dividing it by the highest absolute value of the histogram over the slow length period. This adjustment scales the MACD histogram to fall between -1 and 1, making it comparable in magnitude to the normalized RSI.
Composite Score Calculation

The composite score is simply the sum of the normalized RSI and the normalized MACD histogram. This results in a combined score that reflects both momentum (from RSI) and trend (from MACD), providing a multifaceted view of market dynamics.

Visualization
The composite score is plotted as an oscillator, with a horizontal zero line that helps identify when the score shifts from positive to negative or vice versa.
The background color changes based on the trend: green if the composite score is above zero (bullish trend) and red if below zero (bearish trend).
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?