McDonald's Pattern

February 3, 2022

TradingView asked, we delivered. This script fits a cubic Bezier curve using tops/bottoms in order to approximate a McDonald's pattern, a popular meme pattern in the crypto trading community.

TradingView asked, we delivered. This script fits a cubic Bezier curve using tops/bottoms in order to approximate a McDonald's pattern, a popular meme pattern in the crypto trading community.

Traditionally the McDonald's pattern is described by an M pattern with deep retracement (> 50%), forming a McDonald's logo.

Settings

Length: Sensitivity of tops/bottoms detection. The method does not make use of pivot points , using rolling maximums/minimums instead.

Use First Bar As Vertex: Use the price and bar index of the last bar as vertex .

Usage

The script fits Bezier curves using specific tops/bottoms as control points. When the distance between tops and bottoms values is relatively small, the user can more easily identify the pattern.

A score is shown on the top right of the chart, aiming to return how close the returned pattern is to the original logo.

A regular Mcdonald's pattern would return a red background, while an inverted pattern would return a green one.

Other Stories

A Deep Dive Into Moving Averages

5/13/2022
New Feature
Indicator
Educational

Moving averages are inherent in the world of technical analysis and are present in the core calculations of many technical indicators. In this post, we take a deep dive into 3 types of moving averages used every day by traders: the Simple Moving Average ( SMA ), Exponential Moving Average ( EMA ) and the Weighted Moving Average ( WMA ).

HOW-TO: Automatic Pattern Detection in TradingView

5/13/2022
New Feature
Indicator
Educational

Chart patterns are governed by precise identification guidelines and it is important to effectively recognize the presence of a specific pattern. Since this recognition process can be subjective, we designed a robust and efficient algorithm for the detection of traditional chart patterns, saving users valuable time.