INVITE-ONLY SCRIPT

Trend Signal with Alert

48
📌The Trend Signal Indicator is based on Smooth Hiken Asia, a trend-following direction indicator that removes noise through continuity of candle body and tail structure and momentum, reveals inverse correlations in upward and downward directions, and more intuitively identifies different trends that strengthen, persist and weaken.

snapshot

■ Display Settings

Simple View: Enables a minimal visual mode using a global transparency value.
Simple View Transparency: Controls opacity when Simple View is active.

snapshot

■ Theme Settings

Theme: Selects one of six predefined color themes (BASIC, CYBER_PINK, FUTURE_MINT, MODERN_MINIMAL, OCEAN_WAVE, GOLD_LUXURY).
Each theme automatically sets up-trend main/glow colors and down-trend main/glow colors.

snapshot

■ Custom Color Settings

Use Custom Colors: Overrides theme colors with user-defined colors.
Down Main / Down Glow: Colors applied when open > close.
Up Main / Up Glow: Colors applied when close ≥ open.

■ Line Settings

Line Width: Thickness of the main trend lines.
Glow Width: Thickness of glow lines.
Main Line Transparency: Opacity for main lines.
Glow Transparency: Opacity for glow layers.
Fill Transparency: Opacity for the area-fill between open and close plots.

■ Heiken Ashi Calculation

The script uses TAExt.heiken_ashi to generate smoothed Heiken Ashi values with:

Pre-HA smoothing (length + selectable MA type),

Post-HA smoothing (length + selectable MA type),
resulting in cleaner, noise-reduced trend representation.

snapshot

■ Trend Color Logic

The indicator determines trend direction as:

Down Trend: open > close → applies MAIN_UP / GLOW_UP colors.

Up Trend: close ≥ open → applies MAIN_DOWN / GLOW_DOWN colors.
Colors adapt automatically to theme, Simple View, or custom settings, with dynamic transparency adjustments.

■ Plotting Structure

The script plots four main components:

1. Main Trend Lines

Two primary lines (open and close HA values) using main_color and user-selected line width.

2. Area Fill

A fill between the open and close plots using fill_color, providing visual body thickness.

3. Glow Layer

Multiple glow lines around the HA structure (o and c) using glow_color and reduced opacity for a layered halo effect.

4. Simplified Mode Support

When Simple View is enabled, all colors dynamically shift to a unified transparency for a softer minimal look.

■ Core Behavior

The indicator does not generate signals or predictions; it purely visualizes trend conditions using smoothed Heiken Ashi values enriched by color styling, glow layers, and theme customization.

■ Purpose

Provide a visually enhanced smoothed trend indicator.

Improve trend recognition through glow effects and area fills.

Offer flexible visual themes and full customization.

Support clean minimal mode for distraction-free charting.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.