All indicators

Supertrend V1.0 - Buy or Sell Signal

Apr 11, 2019

Static chart image
Price Action BasedSignalsTrailing-StopVolatility

The Supertrend V1.0 - Buy or Sell Signal indicator provides a trend-following mechanism designed to identify potential trend reversals and entry points based on price action and volatility.

Usage

The Supertrend V1.0 - Buy or Sell Signal can be used to identify the current market direction and potential entry/exit zones. When the price closes above the Supertrend line, the indicator signals a bullish trend (green line), often accompanied by a buy arrow. Conversely, when the price closes below the line, it signals a bearish trend (red line) with a sell arrow.

Traders can use these signals to:

  • Trend Identification: Follow the color of the line to stay on the right side of the market momentum.
  • Entry Points: Utilize the plotshape arrows that appear during trend flips to time entries.
  • Exit Strategy: The script includes internal logic for profit targets and stop losses based on ATR multiples, which can be visualized through the strategy's backtesting results.

Details

The script calculates the Supertrend line using the Median Price (HL2) combined with a volatility offset derived from the Average True Range (ATR).

The core logic involves:

  1. Upper and Lower Bands: Calculated by adding or subtracting a factored ATR from the HL2.
  2. Trend Logic: The trend remains bullish if the price stays above the previous bullish band and bearish if it stays below the previous bearish band.
  3. Dynamic Trailing: The line acts as a trailing stop that only moves in the direction of the trend until a crossover occurs.
  4. Strategy Window: The script includes a specific time windowing feature, allowing users to backtest the signals within a defined date range.

Settings

Main Settings

  • Factor: The multiplier applied to the ATR to determine the distance of the Supertrend line from the price. Higher values result in a slower, more stable trend line.
  • Period: The lookback period used for the ATR calculation within the Supertrend logic.
  • ATR Multiple: A specific multiplier used to calculate the profit target and stop loss distances for the strategy component.

Backtest Window

  • From Month/Day/Year: Sets the starting date for the strategy backtest.
  • To Month/Day/Year: Sets the ending date for the strategy backtest.

FAQ

How do I use the Supertrend V1.0 - Buy or Sell Signal?

You can use it to identify trend direction; a green line indicates an uptrend, while a red line indicates a downtrend. Look for the arrow shapes for specific crossover signals.

Can I adjust the sensitivity of the signals?

Yes, by modifying the "Factor" and "Period" settings, you can make the indicator more responsive to short-term price movements or more filtered for long-term trends.

How can I access this tool?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.