OPEN-SOURCE SCRIPT
5 MA Length Custom [wjdtks255]

Indicator Title: 5 MA Length Custom
This indicator is a minimalist tool designed for pure trend visualization across five user-defined periods using Simple Moving Averages (SMAs). It contains no built-in signals or dynamic features—it serves strictly as a trend filter and confirmation layer.
Key Features and Customization
The indicator plots five fixed-color, fixed-thickness moving average lines. Only the Length (period) of each MA can be changed in the settings, offering clean, focused market analysis.
MA 1 (Default 5): Immediate price action.
MA 2 (Default 20): Short-term momentum.
MA 3 (Default 60): Key Mid-term Trend Line.
MA 4 (Default 40): Proxy for the standard Bollinger Band Center Line.
MA 5 (Default 120): Major Long-term Trend.
🧭 Trading Strategy: MA Filtered Reversion
This strategy uses the MA hierarchy for trend filtering and bias confirmation when executing trades based on an external signal indicator (e.g., a volatility/reversal signal like BB OPT EN).
🟢 Long Bias Confirmation (Buy)
The short-term trend must support the mid-term trend. This is confirmed when MA 2 (20) is positioned above MA 3 (60). When this alignment occurs, you should only take external Buy signals (reversal signals) for higher probability trades.
🔴 Short Bias Confirmation (Sell)
The short-term trend must align with the bearish direction. This is confirmed when MA 2 (20) is positioned below MA 3 (60). When this alignment occurs, you should only take external Sell signals (reversal signals) for higher probability trades.
This indicator is a minimalist tool designed for pure trend visualization across five user-defined periods using Simple Moving Averages (SMAs). It contains no built-in signals or dynamic features—it serves strictly as a trend filter and confirmation layer.
Key Features and Customization
The indicator plots five fixed-color, fixed-thickness moving average lines. Only the Length (period) of each MA can be changed in the settings, offering clean, focused market analysis.
MA 1 (Default 5): Immediate price action.
MA 2 (Default 20): Short-term momentum.
MA 3 (Default 60): Key Mid-term Trend Line.
MA 4 (Default 40): Proxy for the standard Bollinger Band Center Line.
MA 5 (Default 120): Major Long-term Trend.
🧭 Trading Strategy: MA Filtered Reversion
This strategy uses the MA hierarchy for trend filtering and bias confirmation when executing trades based on an external signal indicator (e.g., a volatility/reversal signal like BB OPT EN).
🟢 Long Bias Confirmation (Buy)
The short-term trend must support the mid-term trend. This is confirmed when MA 2 (20) is positioned above MA 3 (60). When this alignment occurs, you should only take external Buy signals (reversal signals) for higher probability trades.
🔴 Short Bias Confirmation (Sell)
The short-term trend must align with the bearish direction. This is confirmed when MA 2 (20) is positioned below MA 3 (60). When this alignment occurs, you should only take external Sell signals (reversal signals) for higher probability trades.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。