# McDonald's Pattern

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

A tongue-in-cheek detector that fits cubic Bezier curves through recent tops and bottoms in search of the meme-famous golden-arches 'M'. A live score rates the resemblance, with a red or green shaded area showing whether the latest curves form a standard or inverted 'M'. Strictly entertainment: for traders whose charts could use a laugh between real setups.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Feb 3, 2022.
- Access: free.
- Concepts: [Double Top/bottom](https://www.luxalgo.com/library/concept/double-top-bottom/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn3o5n0054vhsgh01zsq42
- Page: https://www.luxalgo.com/library/indicator/mcdonalds-pattern/

The **McDonald's Pattern** is the LuxAlgo catalog's official joke, and it commits to the bit. Using detected tops and bottoms as control points, it fits cubic Bezier curves through price in search of the meme-famous golden-arches 'M': a crypto-community cousin of the [double top](https://www.luxalgo.com/library/concept/double-top-bottom/) distinguished by a deep retracement, generally beyond 50%. A live score keeps track of how close your chart gets to fast-food perfection.

## How to Trade the McDonald's Pattern?

You don't. The indicator is upfront that it exists for entertainment, not live trades or market predictions. Reading it, however, goes like this:

- **Score (top right)**: rates how closely the plotted curves resemble the logo; matches register best when tops and bottoms sit near each other in value.
- **Red shaded area**: the latest curves trace a standard 'M' (the newest point sits below the one before it). The area is drawn whether or not the curves resemble the logo, so its color shows orientation, not a confirmed match.
- **Green shaded area**: the latest curves trace the inverted version.

Detection runs on rolling maximums and minimums rather than pivot points, which keeps the curves fluid as new bars arrive.

## McDonald's Pattern Settings

- **Length**: sensitivity of top and bottom detection via the rolling maximums and minimums.
- **Use First Bar As Vertex**: starts the pattern from the last bar's price and bar index, making it the vertex of the Bezier curves.

## Frequently Asked Questions

### Can I use the McDonald's Pattern for real trading?

No. It is built for laughs, and the build itself says so. Keep it around for levity and lean on the library's analytical tools when actual decisions are on the line.

### Are there other meme patterns in the library?

Yes. The [Bart Pattern](https://www.luxalgo.com/library/indicator/bart-pattern/) chases crypto's other famous silhouette. Between the two, your chart memes are covered; the serious pattern detectors live elsewhere in the catalog.

### What does the McDonald's Pattern cost?

Nothing. It's free, as a joke this good should be. Get it from the LuxAlgo Library page, where you can even load it into Quant, our coding agent, if you insist on backtesting a meme. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [N Bar Reversal Detector](https://www.luxalgo.com/library/indicator/n-bar-reversal-detector/) (Key Reversal): markdown at https://www.luxalgo.com/library/indicator/n-bar-reversal-detector.md
- [Bart Pattern](https://www.luxalgo.com/library/indicator/bart-pattern/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/bart-pattern.md
- [Head & Shoulders](https://www.luxalgo.com/library/indicator/head-and-shoulders/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/head-and-shoulders.md
- [Wolfe Wave Detector](https://www.luxalgo.com/library/indicator/wolfe-wave-detector/) (Wolfe Waves): markdown at https://www.luxalgo.com/library/indicator/wolfe-wave-detector.md
- [Island Reversal](https://www.luxalgo.com/library/indicator/island-reversal/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/island-reversal.md
- [Diamond Top/bottom](https://www.luxalgo.com/library/indicator/diamond-top-bottom/) (Chart & Candlestick Patterns): markdown at https://www.luxalgo.com/library/indicator/diamond-top-bottom.md
- [Horns Pattern Identifier](https://www.luxalgo.com/library/indicator/horns-pattern-identifier/) (Rare Reversal Patterns): markdown at https://www.luxalgo.com/library/indicator/horns-pattern-identifier.md
- [Half Cup](https://www.luxalgo.com/library/indicator/half-cup/) (Rounding Top/bottom): markdown at https://www.luxalgo.com/library/indicator/half-cup.md

---

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