OPEN-SOURCE SCRIPT

Multi-Feature Indicator

The Multi-Feature Indicator combines three popular technical analysis tools — RSI, Moving Averages (MA), and MACD — into a single indicator to provide unified buy and sell signals. This script is designed for traders who want to filter out noise and focus on signals confirmed by multiple criteria.

Features:
RSI (Relative Strength Index):

Measures momentum and identifies overbought (70) and oversold (30) conditions.
A signal is triggered when RSI crosses these thresholds.
Moving Averages (MA):

Uses a short-term moving average (default: 9 periods) and a long-term moving average (default: 21 periods).
Buy signals occur when the short-term MA crosses above the long-term MA, indicating an uptrend.
Sell signals occur when the short-term MA crosses below the long-term MA, indicating a downtrend.
MACD (Moving Average Convergence Divergence):

A trend-following momentum indicator that shows the relationship between two moving averages of an asset's price.
Signals are based on the crossover of the MACD line and its signal line.
Unified Buy and Sell Signals:

Buy Signal: Triggered when:
RSI crosses above 30 (leaving oversold territory).
Short-term MA crosses above the long-term MA.
MACD line crosses above the signal line.
Sell Signal: Triggered when:
RSI crosses below 70 (leaving overbought territory).
Short-term MA crosses below the long-term MA.
MACD line crosses below the signal line.
Visualization:
The indicator plots the short-term and long-term moving averages on the price chart.
Green "BUY" labels appear below price bars when all buy conditions are met.
Red "SELL" labels appear above price bars when all sell conditions are met.
Parameters:
RSI Length: Default is 14. This controls the sensitivity of the RSI.
Short MA Length: Default is 9. This determines the short-term trend.
Long MA Length: Default is 21. This determines the long-term trend.
Use Case:
The Multi-Feature Indicator is ideal for traders seeking higher confirmation before entering or exiting trades. By combining momentum (RSI), trend (MA), and momentum shifts (MACD), it reduces false signals and enhances decision-making.

How to Use:
Apply the indicator to your chart in TradingView.
Look for "BUY" or "SELL" signals, which appear when all conditions align.
Use this tool in conjunction with other analysis techniques for best results.
Note:
The default settings are suitable for many assets, but you may need to adjust them for different timeframes or market conditions.
This indicator is meant to assist in trading decisions and should not be used as the sole basis for trading.
Moving Average Convergence / Divergence (MACD)momentumstrategymultiindicatorRelative Strength Index (RSI)rsistrategyTrend Analysistrendlineanalysis

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明