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.
Skrip open-source
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Pernyataan Penyangkalan
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Skrip open-source
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Pernyataan Penyangkalan
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.