This indicator adapts the HalfTrend algorithm to plot a dynamic trend baseline with ATR-based upper and lower channel bands directly on the price chart.
When trend direction flips, it plots long or short entry signals accompanied by visual stop-loss and three tiered take-profit zones, while tracking simulated outcomes across up to five configurable symbols in an on-chart dashboard. Main settings adjust the highest-high and lowest-low amplitude lookback, the ATR channel deviation multiplier, a base risk multiplier for stop and target distances, and scanner symbols. As an indicator rather than a strategy, it provides visual trade levels without executing automated orders.
HalfTrend baseline with ATR deviation channels
Visual entry, stop-loss, and three take-profit levels
Multi-asset scanner dashboard for up to five symbols
Customizable lookback amplitude and base risk multiplier
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Amplitude
int
20
amplitude
Channel Deviation
float
2.0
channelDeviation
Base Risk
float
3
baseRiskMult
Symbol 1
symbol
BINANCE:BTCUSD
sym1
Symbol 2
symbol
BINANCE:ETHUSD
sym2
Symbol 3
symbol
BINANCE:SOLUSD
sym3
Symbol 4
symbol
OANDA:EURUSD
sym4
Symbol 5
symbol
OANDA:XAUUSD
sym5
Channel Deviation Transparency
int
70
channelDeviationUp
Bullish
color
color.lime
colorBull
Bearish
color
color.red
colorBear
Entry
color
color.white
colorEntry
Show all 21 settings
Setting
Type
Default
Variable
Take Profit
color
color.teal
colorTP
Stop Loss
color
color.red
colorSL
TP Fill
color
color.new(color.teal, 80)
colorFillTP
SL Fill
color
color.new(color.red, 60)
colorFillSL
Text Color
color
color.white
colorText
Dashboard Background
color
color.new(color.black, 20)
colorDashBg
Dashboard Header
color
color.new(color.gray, 40)
colorDashHd
Win Rate High Color
color
color.green
colorWin
Win Rate Low Color
color
color.orange
colorLoss
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
AI Agent Lens is an overlay indicator designed to package chart data into structured JSON context packets for external AI trading agents via webhooks. It evaluates multiple technical factors including EMA trends, HTF context, RSI, ADX, ATR volatility percentil
This indicator classifies the market into gamma regime types (negative gamma trend, positive gamma mean-reversion, or transition) by calculating a composite score based on daily ATR ratios, session VWAP crossover frequencies, and opening range displacement. It
This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e
This indicator calculates standardized trend strength and historical volatility to estimate position sizes. It computes the differences between three user-defined EMAs standardized by price using MACD logic, while historical volatility is derived from the stan
This overlay indicator plots a SuperTrend-style band on the price chart using ATR length, a selectable source, and a base factor. Optional settings enable an adaptive factor driven by rate of change, a volatility filter, K-means clustering, and an LSTM layer w
Calculates an Average True Range (ATR) trailing stop that trails price by a configurable distance multiplier. It draws the trailing stop line on the price chart and marks flip points when price crosses the line. The indicator allows confirmation of flips on ba