OPEN-SOURCE SCRIPT

Price vs Moving Average Cross (Golden & Death Signals)

47
This indicator detects price crossings against multiple moving averages, not crossings between moving averages themselves.

๐Ÿ”น Core Concept

A Golden Signal occurs when the price (close) crosses above a selected moving average.

A Death Signal occurs when the price (close) crosses below a selected moving average.

โš ๏ธ This is NOT a moving-average-to-moving-average crossover indicator.
It is a price-to-moving-average crossover indicator.

๐Ÿ“ˆ Moving Average Settings

The indicator uses three independent moving averages, each configurable by the user:

1๏ธโƒฃ Moving Average 1 (Golden Signal)

Default: 20-period

Type: EMA or SMA

Signal:

Price crossing above MA โ†’ Golden Signal

2๏ธโƒฃ Moving Average 2 (Golden Signal)

Default: 50-period

Type: EMA or SMA

Signal:

Price crossing above MA โ†’ Golden Signal

3๏ธโƒฃ Moving Average 3 (Death Signal)

Default: 100-period

Type: EMA or SMA

Signal:

Price crossing below MA โ†’ Death Signal

๐Ÿ”” Signal Logic
Signal Type Condition
Golden Cross 1 Close price crosses above MA 1
Golden Cross 2 Close price crosses above MA 2
Death Cross Close price crosses below MA 3

Each signal is evaluated independently.

๐Ÿ“Š Visual Representation

Green Up Arrow โ†’ Price crosses above MA 1

Purple Up Arrow โ†’ Price crosses above MA 2

Red Down Arrow โ†’ Price crosses below MA 3

All moving averages are plotted directly on the price chart.

๐ŸŽฏ Practical Use Cases

Identifying trend initiation points

Confirming pullback breakouts

Acting as an entry timing assistant

Using MA 3 as a trend filter / exit warning

โš ๏ธ Important Notes

This indicator may generate false signals in sideways or ranging markets.

Best used in combination with:

Higher-timeframe trend confirmation

Volume indicators

Support & resistance levels

๐Ÿง  Summary

โœ”๏ธ Price โ†” Moving Average crossover
โŒ Moving Average โ†” Moving Average crossover

This indicator is designed for trend-following traders who want clear and simple price confirmation signals.

์›ํ•˜์‹œ๋ฉด

โ€œTrue MA Golden Cross versionโ€

Scalping-optimized version (3m / 5m)

Trend + Momentum filtered version

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.