# Golden Cross

Golden Cross is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Tracks the classic 50/200 moving average pair, grading every golden cross by the slow MA's slope: bullish when flat or rising, caution when still falling. Invalidation marks, whipsaw flags and a regime fill between the averages complete the picture, while a dashboard reports slope, separation and the advance already consumed at the cross. Defaults to 50/200 SMAs on close.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 8, 2026.
- Access: free.
- Concepts: [Golden Cross](https://www.luxalgo.com/library/concept/golden-cross/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=jw2kvrzh3m5jht0qcdudbfgo
- Page: https://www.luxalgo.com/library/indicator/golden-cross/

**Golden Cross** is the definitive clean build of the [golden cross](https://www.luxalgo.com/library/concept/golden-cross/) regime event: it plots fast and slow moving averages (50/200 SMAs by default), marks where the fast one closes above the slow one, and grades each cross by the slow MA's slope over 20 bars. A flat or rising slow average prints the bullish color, a still-falling one the caution color. An x-cross marks the re-cross that ends a standing golden cross, and a fill between the averages shades the regime.

## How to Trade the Golden Cross?

- **Bullish-graded cross**: the slow MA is flat or rising at the cross, the cleaner regime statement, covered by the Clean Golden Cross alert.
- **Caution-graded cross**: the slow MA is still falling; treat the read as weaker until the slope turns.
- **Invalidation Mark**: the fast MA closed back under the slow one, ending the standing cross; within the whipsaw window this is the classic failure mode.
- **Dashboard separation**: widening says the regime is strengthening; narrowing warns of braiding.

Each cross label's tooltip reports the slow MA slope and the advance from the preceding regime low. This is a lagging regime statement, not a timing entry.

## Golden Cross Settings

- **Fast Length** (default 50): the shorter average of the pair.
- **Slow Length** (default 200): the long-term base.
- **MA Type** (default SMA): or EMA; exponential weighting can shift cross dates.
- **Source** (default close): price series both averages use.
- **Slow MA Slope Lookback** (default 20): bars used to grade the slope.
- **Whipsaw Window** (default 20): a re-cross within this many bars is flagged as a whipsaw.
- **Show Dashboard** (default enabled): pair, regime, slope, separation and last-cross context.
- **Style toggles**: cross markers, invalidation marks and the regime fill, all on by default.

## Frequently Asked Questions

### What is the difference between the Golden Cross and the Death Cross?
Mirror events on the same pair: this build fires when the fast average crosses above the slow one, while the [Death Cross](https://www.luxalgo.com/library/indicator/death-cross/) tracks the downward cross arguing the long-term regime has turned bearish. Grading and alerts here center on the bullish event.

### Should I change the 50/200 defaults?
The defaults are the canonical pair, and the dashboard tags any other lengths, an EMA, or a chart other than the 1-day as nonstandard. Shorter lengths or EMAs fire earlier but reverse more often: speed traded against the weight the widely watched pair carries.

### Why does the signal arrive after price has already moved?
Both averages look far back, so a cross confirms a turn only after a substantial advance; the Advance at Cross row quantifies how much move preceded each signal. Treat the cross as regime context, not the entry itself.

## Related indicators

- [Signal Forge](https://www.luxalgo.com/library/indicator/signal-forge/) (Moving Average Crossovers): markdown at https://www.luxalgo.com/library/indicator/signal-forge.md
- [LuxAlgo - Screener (S&O)](https://www.luxalgo.com/library/indicator/luxalgo-screener-s-o/) (Moving Average Crossovers): markdown at https://www.luxalgo.com/library/indicator/luxalgo-screener-s-o.md
- [Signal Moving Average](https://www.luxalgo.com/library/indicator/signal-moving-average/) (Moving Average Crossovers): markdown at https://www.luxalgo.com/library/indicator/signal-moving-average.md
- [MA of MA](https://www.luxalgo.com/library/indicator/ma-of-ma/) (Trend): markdown at https://www.luxalgo.com/library/indicator/ma-of-ma.md
- [Moving Averages Proximity Oscillator](https://www.luxalgo.com/library/indicator/moving-averages-proximity-oscillator/) (MA Ribbon): markdown at https://www.luxalgo.com/library/indicator/moving-averages-proximity-oscillator.md
- [FVG Positioning Average](https://www.luxalgo.com/library/indicator/fvg-positioning-average/) (Dynamic S/R Via MA): markdown at https://www.luxalgo.com/library/indicator/fvg-positioning-average.md
- [Expanded Cloud](https://www.luxalgo.com/library/indicator/expanded-cloud/) (Dynamic S/R Via MA): markdown at https://www.luxalgo.com/library/indicator/expanded-cloud.md
- [MA Sabres](https://www.luxalgo.com/library/indicator/ma-sabres/) (MA Slope Filter): markdown at https://www.luxalgo.com/library/indicator/ma-sabres.md

---

Source: https://www.luxalgo.com/library/indicator/golden-cross/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
