Supertrend Fakeout
Dec 5, 2024

The Supertrend Fakeout indicator is an enhanced trend-following tool that filters out false trend reversals using a dedicated index limit and ATR-based distance checks. By requiring price action to sustain a breach of the Supertrend line or reach a specific volatility threshold, it aims to provide more reliable signals during market noise and short-term fluctuations.
Usage
The Supertrend Fakeout can be used to identify trend direction and potential reversal points with higher conviction than the standard Supertrend. When the price is above the green line, the trend is considered bullish; when below the red line, it is bearish.
The "Fakeout" logic acts as a buffer. If price crosses the Supertrend line, the indicator does not immediately flip. Instead, it enters a "Fakeout" state. A full trend reversal is only confirmed if:
- The price moves a significant distance away from the original Supertrend line (defined by the Fakeout ATR Mult).
- The price remains on the opposite side of the line for a specific duration (defined by the Fakeout Index Limit).
This is particularly useful for traders who want to avoid "whipsaws" in sideways or choppy markets.
Details
The script calculates the standard Supertrend using the Average True Range (ATR). However, unlike the classic version which flips trend direction the moment a breach occurs, this script stores a "Fakeout Control" state.
During this state, the script monitors two conditions:
- Time-based: If the bar index since the initial breach exceeds the "Fakeout Index Limit", the trend reverses.
- Volatility-based: If the difference between the price and the Supertrend line exceeds the "Fakeout ATR Mult" multiplied by the current ATR, the trend reverses immediately.
If the price returns to the original side of the trend before either condition is met, the fakeout is canceled, and the original trend direction is maintained.
Settings
- Supertrend ATR Length: The lookback period used for the ATR calculation.
- Supertrend ATR Mult: The multiplier applied to the ATR to set the distance of the Supertrend line from the price.
- Fakeout Index Limit: The number of bars the price must stay beyond the Supertrend line before a reversal is confirmed.
- Fakeout ATR Mult: The additional ATR distance required for an immediate trend reversal.
- Fakeout Type: Determines whether the high/low or the close price is used to trigger fakeout checks.
FAQ
How do I access Supertrend Fakeout?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
How does this differ from the standard Supertrend?
Standard Supertrend reverses as soon as the price touches the line. This version waits for confirmation through time or price distance to reduce false signals.
Can I use this for intraday trading?
Yes, the indicator is adaptable to any timeframe. Users should adjust the ATR multipliers and Index Limit based on the volatility and timeframe of the asset being traded.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.