OPEN-SOURCE SCRIPT

U Table • LITE

101
A compact, educational version of my workflow that combines trend, momentum, trend strength, and a clean trigger:

Trend: EMA Fast vs EMA Slow (auto-lengths by chart TF)

Momentum: RSI > 50 for longs / < 50 for shorts

Strength: ADX above a user-set threshold (fallback implementation; can be replaced by ta.adx() when available)

Trigger: price crosses the Bollinger basis (center line)

Signals

LONG: crossover(close, BB basis) while EMA Fast > EMA Slow, RSI > 50, ADX > threshold

SHORT: crossunder(close, BB basis) while EMA Fast < EMA Slow, RSI < 50, ADX > threshold

Visuals

EMA Fast / EMA Slow / BB basis

Markers “L” / “S” on triggers

Latest confirmed pivot high/low (broken line style)

Small diagnostics table (ADX, EMA relation, RSI, last pivots) on the last bar

Inputs

Pivot length: pivot confirmation window (default 5)

ADX threshold: minimum trend strength to allow signals (default 20)

Notes

Signals are intended to be evaluated on bar close. Intrabar values may change until the bar closes.

Pivot lines appear after confirmation; they do not repaint once confirmed.

No external data or security() calls are used.

This LITE build focuses on clarity and speed (few calculations, overlay-friendly). It can be used as a stand-alone study or as a scaffold for your own research and risk management.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.