Skip to content
All library documents

SuperTrend Direction-Flip Strategy for Long and Short Entries

Article TradingView scripts

Summary

This strategy uses TradingView’s SuperTrend calculation, based on an ATR length and multiplier, to identify bullish and bearish states. It generates a long entry when direction flips from bearish to bullish and a short entry when it flips back. With pyramiding disabled, the entries function as reversals rather than repeated additions. The script also plots the trend line, colors bars by state, and optionally marks signals.

The code specifies default indicator settings, fixed contract quantity, commission, and initial capital, and includes an alert message intended for an exchange webhook. It does not include a stop-loss rule beyond the SuperTrend flip logic, nor does the document provide a strategy report, test period, or results. Performance therefore cannot be inferred from the source alone; results would depend on the market, timeframe, execution, and chosen settings. The webhook format and contract assumptions also need to match the actual exchange integration.

Key ideas

  • The strategy treats SuperTrend direction changes as entry signals in both directions.
  • A bullish flip opens a long position, while a bearish flip opens a short position.
  • The ATR length and multiplier determine the SuperTrend calculation and can affect signal frequency.
  • The source shows order and alert mechanics but provides no backtest evidence or risk-adjusted results.

Tags

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