> 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="https://2914866832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fhl8rNNc8ITxkCK2Qbq4R%2Fuploads%2F0fymsTJ9v7LlAvOiw12C%2Fimage.png?alt=media&amp;token=472bec0a-be40-4e41-8fb2-77f58d689da5" alt=""><figcaption><p>​</p></figcaption></figure>

**In a downtrend ;**

<figure><img src="https://2914866832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fhl8rNNc8ITxkCK2Qbq4R%2Fuploads%2FgzQjMw7p4RPCleuDM6pL%2Fimage.png?alt=media&amp;token=a5e14b0b-5d82-4953-8f56-a04a31eabb30" 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="https://2914866832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fhl8rNNc8ITxkCK2Qbq4R%2Fuploads%2F8clBO9iXOOzttgfJz2jH%2Fimage.png?alt=media&amp;token=65b9437f-f057-48bc-b139-bc75bb0382c0" 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 %}
