Skip to content
All library documents

Heikin-Ashi Color Reversals for Long and Short Entries

Article TradingView scripts

Summary

This strategy derives Heikin-Ashi close as the average of the bar’s open, high, low, and close, and derives Heikin-Ashi open recursively from the prior Heikin-Ashi values. It colors bars by whether the derived close is above or at or below the derived open. A positive reading enters long; a negative reading enters short, so the strategy reverses direction as the color changes. User inputs restrict entries to a chosen date range.

The listing says the script may be useful for BTCUSD, but supplies no performance figures, test results, transaction costs, or comparison with another approach. The signals are based on smoothed Heikin-Ashi values while orders are placed through a TradingView strategy, so results depend on chart settings, market, timeframe, and execution assumptions. The source includes no explicit stop, profit target, or separate exit rule; an opposing entry is the apparent mechanism for changing exposure. The page’s comments indicate the author was still seeking feedback about crypto testing, so it should be treated as a simple strategy example rather than evidence of profitability.

Key ideas

  • The script computes Heikin-Ashi close from the current bar’s four OHLC prices and recursively calculates Heikin-Ashi open.
  • A close above the derived open triggers a long entry, while a close at or below it triggers a short entry.
  • The entry logic can be limited to user-selected start and end dates.
  • The listing provides no backtest results or trading-cost assumptions to establish performance.

Tags

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