Skip to content
All library documents

Trading SuperTrend Direction Changes with Fixed-Quantity Reversals

Article TradingView scripts

Summary

This strategy uses the SuperTrend indicator, calculated from ATR length and multiplier inputs, to classify the market as bullish or bearish. It generates a long entry when direction flips from bearish to bullish and a short entry when it flips the other way. The chart displays the active SuperTrend line, colors bars by direction, and can show labels at signal bars. Orders use a configurable fixed contract quantity, and the strategy declaration specifies commission and initial capital assumptions.

A combined alert is formatted for a Delta Exchange webhook and carries symbol, side, quantity, and trigger time fields. The document describes the script as being in initial testing and provides no reported backtest performance, out-of-sample evidence, stop-loss logic, or risk-based sizing. The indicator settings and order assumptions therefore do not establish profitability, and exchange integration details would need validation before live use.

Key ideas

  • The strategy defines bullish and bearish states from the SuperTrend direction output.
  • Entries occur only on bars where the SuperTrend direction changes, with opposite entries reversing exposure.
  • ATR length and multiplier determine the SuperTrend calculation, while contract quantity is configurable.
  • Plots, bar colors, labels, and a combined webhook alert provide visual and operational signals.
  • The source describes initial testing but offers no performance evidence or dedicated loss-control method.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.