OPEN-SOURCE SCRIPT

[EmreKb] Supertrend Fakeout

Supertrend Fakeout

This script is an enhanced version of the classic Supertrend indicator. It incorporates an additional feature that ensures trend reversals are more reliable by introducing a Fakeout Index Limit and a Fakeout ATR Mult. This helps avoid false trend changes that could occur due to short-term price fluctuations or market noise.

How It Works:

  • The Supertrend indicator uses Average True Range (ATR) and a multiplier to determine the direction of the trend. When the price is above the Supertrend line, it indicates an uptrend; when the price is below the Supertrend line, it signals a downtrend.
  • This version goes a step further by adding the following checks before confirming a trend reversal:
    • The script will monitor if the price moves "Fakeout ATR Mult" ATR away from the Supertrend line after a potential breach. This distance helps ensure that the trend change is significant and not just a minor fluctuation.
    • In addition, the script checks the price action for a specific number of bars, which is controlled by the Fakeout Index Limit. This limit determines how many bars the price must remain below (for a downtrend) or above (for an uptrend) the Supertrend line before the trend is officially reversed.
fakeoutsupertrendTrend Analysis

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal