> For the complete documentation index, see [llms.txt](https://academy.coinlegs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.coinlegs.com/patterns/failure-swing.md).

# Failure Swing

{% embed url="<https://www.youtube.com/watch?v=yyrOMmaHFfY>" %}

"Failure Swing" is a state that confirms that the trend will change direction.

If the current trend does not continue and broken, it is called "**Failure Swing**". The goal of investors who want to use this technical analysis algorithm is to try to make a profit by taking advantage of the price fluctuations and oscillations of a market. In a downtrend, each bottom is lower than the previous low. If there is a trough higher than the last trough formed by such oscillations in a falling trend and the subsequent trend is in the upward direction, this is explained as a "Failure Swing" in a falling trend.

In an uptrend, each peak is higher than the previous one. If there is a lower peak than the last peak formed by such oscillations in an ascending trend and the subsequent trend is in the downward direction, this is explained as a "Failure Swing" in an ascending trend.

<figure><img src="/files/GfxYQaOnmyMxUwaTdCQm" alt=""><figcaption><p>​</p></figcaption></figure>

**In a downtrend ;**

<figure><img src="/files/HGmOfU4jOOLSbiPavCjY" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
If the price breakout the last lower high (LH) the formation can be considered a buy signal.
{% endhint %}

**In an uptrend ;**

<figure><img src="/files/f4wAetSLWlfzCnrQmHt1" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
If the price breakdown the last swing low (SH) the formation can be considered a sell signal.
{% endhint %}

{% hint style="info" %}
​In order to easily obtain Failure Swing detections, you can create [<mark style="color:blue;">Alerts</mark> ](https://www.youtube.com/watch?v=-yS1Cv6PYm0\&t=42s)or [<mark style="color:blue;">Custom Signals</mark>](https://www.youtube.com/watch?v=sz_pwdSpZeg\&t=27s) through the Coinlegs system, and start autotrading bots on [<mark style="color:blue;">LegsBot</mark> ](https://www.legsbot.com)by using the alerts you create.
{% endhint %}
