Skip to content
All library documents

Solana Trend Entries with Supertrend, ADX, and Heikin-Ashi

Article Strategy library · Author: hgservices5674

Summary

This script outlines a trend-following strategy for Solana that combines Supertrend direction, an ADX threshold, and Heikin-Ashi candle direction. It opens a long position when Supertrend indicates an uptrend, ADX exceeds its configured minimum, and the Heikin-Ashi candle is bullish. The short setup applies the corresponding bearish conditions. New entries are restricted to times when the strategy is flat, and active positions are managed with percentage-based trailing stops translated into ticks.

The code includes configurable ATR and ADX lengths, a Supertrend factor, and trailing-stop activation and offset values. It also calculates Heikin-Ashi data while retaining a normal chart for execution. The supplied document is truncated before the chart visuals and provides no explanatory analysis, backtest settings, or performance results. The ADX filter is intended to avoid weak or sideways conditions, but the script alone does not establish that it does so reliably. Trailing stops and indicator signals can behave differently across volatility regimes, and transaction costs and execution assumptions matter when evaluating the approach.

Key ideas

  • Long and short entries require agreement among Supertrend direction, an ADX threshold, and Heikin-Ashi candle direction.
  • The script only opens a new position when the strategy is flat.
  • Active positions use trailing stops whose activation and offset are set as percentages of price.
  • Heikin-Ashi values inform signal direction while the main chart remains based on ordinary prices.
  • The document provides no backtest results or evidence of profitability.

Tags

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