OPEN-SOURCE SCRIPT

U Table • LITE

88
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.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。