OPEN-SOURCE SCRIPT

QQQ/SPY Regime v2 Clean

353
A real time intraday regime classifier-bull trend/drift, bear trend/drift, chop. Overlay of yes trade, wait, and no trade. Can be used together or separately. Inputs are:

TICK and ADD slopes (EMA-based)
TICK fast/slow EMA crossover
ADD fast/slow/trend EMA structure
Price vs VWAP
Price structure (close vs close[n], EMA 8 vs EMA 21)
ADD absolute level (bull/bear bias thresholds)

Useful in identifying regime shifts, comparing timeframes, avoiding counter-trend trades.

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.