All indicators

AI Volume Supertrend - Strategy

Sep 18, 2023

Static chart image
Volume BasedSignalsMachine LearningMoving AveragesTrailing-StopVolatility

The AI Volume Supertrend - Strategy indicator is a hybrid trading tool that integrates the k-Nearest Neighbors (KNN) machine learning algorithm with the traditional SuperTrend indicator to produce more responsive and context-aware trading signals. This strategy aims to refine market entries and exits by analyzing historical data points to predict short-term price movements alongside trend-following logic.

Usage

The Usage section highlights how to interpret and interact with the strategy:

  • Trend Identification: The indicator plots a colored line on the chart. Green indicates a bullish trend, red indicates a bearish trend, and blue represents a neutral state.
  • Signal Generation: Circles on the chart mark the start of a new trend, while triangles indicate trend continuation signals based on KNN validation.
  • Directional Trading: Users can configure the strategy to execute "Long only", "Short only", or "Both" directions via the settings menu to suit current market conditions.
  • Risk Management: The strategy utilizes dynamic trailing stops derived from the SuperTrend upper and lower bands to manage trade exits.

Details

The strategy operates through four primary stages:

  1. SuperTrend Calculation: Uses a Volume-Weighted Moving Average (VWMA) as the baseline and an Average True Range (ATR) to establish volatility-adjusted bands.
  2. KNN Algorithm: Collects a user-defined number of recent SuperTrend values and price labels. It calculates the inverse distance between current data and historical points to classify the trend as bullish (1) or bearish (0).
  3. Signal Synergy: Signals are only generated when the traditional SuperTrend direction aligns with the KNN classification. This dual-verification process is designed to filter out market noise and reduce false signals.
  4. Execution Logic: Positions are entered upon trend confirmation and exited if the KNN prediction no longer supports the SuperTrend direction, ensuring a responsive exit strategy.

Settings

AI Settings

  • Neighbors (k): Number of nearest neighbors used in the KNN algorithm. Higher values smooth predictions, while lower values increase sensitivity.
  • Data (n): The size of the historical data array considered for classification.

AI Trend

  • Price Trend: Length of the WMA applied to price data for KNN labeling.
  • Prediction Trend: Length of the WMA applied to SuperTrend values for KNN labeling.
  • AI Trend Signals: Toggles the visibility of entry shapes on the chart.

Super Trend Settings

  • Length: The period used for calculating ATR and VWMA.
  • Multiplier (Factor): Multiplier for the ATR to determine the distance of the bands.
  • Moving Average Source: Selects the calculation method for the baseline (SMA, EMA, WMA, RMA, or VWMA).

FAQ

How do I use the AI Volume Supertrend - Strategy?

You can use it as a standalone strategy or as a confirmation tool. Simply apply it to your chart, adjust the AI and SuperTrend settings to your preferred asset and timeframe, and observe the visual signals for entries and exits.

Can I trade only one direction?

Yes, the "Select Trading Direction" input allows you to restrict the strategy to only Long positions, only Short positions, or allow both.

How can I get access to 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.