All indicators

ANN RSI SUPER TREND

Oct 13, 2019

Static chart image
SignalsOscillatorsMachine LearningMoving AveragesVolatility

The ANN RSI SUPER TREND indicator combines an Artificial Neural Network (ANN) framework with a modified SuperTrend calculation to identify trend reversals and momentum shifts. By replacing the traditional Average True Range (ATR) with a processed RSI derived from ANN-evaluated market data, the tool aims to provide more responsive trend-following signals.

Usage

The Usage section describes how the script can be used to identify market trends. The indicator plots a dynamic stop line on the chart, which changes color and position based on the prevailing trend:

  • Bullish Trend: A green line appears below the price action. When the trend flips from bearish to bullish, a "Buy" label is displayed.
  • Bearish Trend: A red line appears above the price action. When the trend flips from bullish to bearish, a "Sell" label is displayed.

Traders can use these levels as trailing stop-losses or as entry signals when the price crosses and closes beyond the stop lines. The sensitivity of the trend detection can be adjusted via the SuperTrend RSI Multiplier and Period settings.

Details

The script operates by first passing several market variables—including volume, Bollinger Band boundaries, RSI, and MACD histograms—through a basic Artificial Neural Network (ANN) logic. This ANN uses a Tanh activation function to process the rate of change (tangent difference) of these inputs.

The output of the ANN is then used as a "seed" for an RSI calculation. Unlike a standard SuperTrend that uses price volatility (ATR) to determine the offset of the stop line, this indicator uses the ANN-derived RSI value multiplied by a user-defined factor. This allows the tool to account for complex relationships between volume and momentum that standard indicators might overlook.

Settings

  • RSI Length (for ANN): The lookback period used for the internal RSI component within the ANN processing.
  • MACD Settings: Includes Fast, Slow, and Signal lengths to determine the MACD histogram input for the neural network.
  • SuperTrend RSI Period: The period used for the final RSI calculation that determines the SuperTrend offset.
  • SuperTrend RSI Multiplier: Controls the distance of the stop line from the price; higher values result in a wider, more stable trend line.
  • Take Wicks into Account?: If enabled, the indicator uses high/low prices for trend crossover detection instead of just the closing price.
  • Show Buy/Sell Labels?: Toggles the visibility of the "Buy" and "Sell" annotations on the chart.

FAQ

How do I use the signals from this indicator?

The signals are generated when the price crosses the dynamic stop line. A "Buy" signal suggests the start of an uptrend, while a "Sell" signal suggests the start of a downtrend.

What makes this different from a normal SuperTrend?

Standard SuperTrend indicators use the Average True Range (ATR) to calculate distance. This version uses an Artificial Neural Network to evaluate multiple inputs and creates a custom RSI-based distance for the trend line.

How do I access this indicator?

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.