Skip to content
All library documents

HalfTrend Strategy with Session Filters and Carried Signals

Article TradingView scripts

Summary

This strategy adapts HalfTrend, which tracks swing highs and lows over a configurable amplitude and uses ATR-based channel bands. Changes in the internal trend state produce buy and sell signals; the strategy enters in the signal direction and can flip an existing position when the opposite signal occurs. Its central practical additions are a configurable trading session, a latch that carries the most recent pre-session signal to the first session bar, and a forced close after the session window.

The script defaults to an India-market timezone and an intraday window, and its description presents the forced close as an end-of-day risk measure. It also provides visual channels, labels, arrows, and alerts. No backtest results, market sample, or validation of the claimed noise filtering are supplied. Signal timing and behavior depend on chart timeframe, session configuration, and available data; the carried-signal rule may act on a signal formed outside regular hours rather than on a fresh in-session confirmation.

Key ideas

  • HalfTrend tracks local price extremes and uses ATR-based bands to represent the active trend.
  • A change in trend state creates a directional signal and may flip an open position.
  • The session filter restricts entries to a configured intraday window and closes open positions after it.
  • The most recent signal formed before the session can be carried to the first session bar.
  • The document describes the logic and interface but provides no empirical performance results.

Tags

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