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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.