PROTECTED SOURCE SCRIPT

SCREENER Excess Combo — First-Hour Excess + MTF Candles + GOLD

30
What it does

This study hunts for excess (failed pushes that leave long wicks) and higher-quality reversal bars, then rolls them into two compact states you can scan for on the Pine Screener:

Screener — 15m Bull Excess State → 1 when the rolling 15-minute streak condition for bull excess is met

Screener — 15m Bear Excess State → 1 when the rolling 15-minute streak condition for bear excess is met

Everything else in the script builds those states:

Module A — First-Hour Excess: Looks only inside a configurable first-hour session (default 09:30–10:30). Optional gap filter (by % or Daily ATR). Detects excess low (bullish) and excess high (bearish) probes using ATR-scaled range/wick/close placement thresholds + cooldown.

Module B — MTF Candles: Three pattern families with ATR floors: Pin/Excess tail, Engulfing, Outside. Priority is Engulf → Outside → Pin. Optional RTH gating and early-bar ignore.

GOLD consensus: If ≥2 out of 4 “bull forms” (A/B: Pin/Engulf/Outside) fire on a bar → GOLD Bull. Same for bears. Ties are broken using wick dominance.

Module D — 15m Streak States: Creates the two screener outputs by counting 15m events (A and/or B patterns, optionally including GOLD). Opposite-side event resets the active streak. Streaks persist across days (no daily reset) so you can require multiple consecutive events across sessions.

How to use it in the Pine Screener

Add this indicator to your chart once (no special timeframe required).

Open Pine Screener → choose this study.

Add these two columns (they’re included as hidden plot() series):

Screener — 15m Bull Excess State

Screener — 15m Bear Excess State

Filter for = 1 on either column to get candidates that currently meet your streak target.

(Optional) Turn on “Use in Pine Screener” toggle inside the script if you don’t want any drawings/tables on charts while scanning.

Key Inputs (quick guide)

Streak Target (15m): How many counted events in a row are required for state = 1. Increase to demand more confirmation across sessions.

Count GOLD as ‘excess’: If on, GOLD bars also contribute to the streak.

Module A thresholds: ATR-scaled Min range, Min wick, and Close in fraction set how strict first-hour probes must be; optional Gap filter (by % or Daily ATR).

Module B thresholds: Separate ATR floors for intraday/D/W/M; wick:body ratio for Pins; min body ATR for Engulf/Outside; optional RTH session and “ignore first N” bars.

Tip: If you get too many signals, raise ATR floors or the streak target. If you get too few, lower them or allow GOLD to count.

On-chart visuals (optional)

Bar color merges A + B, with GOLD shown in gold.

Small arrows show which module fired (15m).

A compact badge can display the live streak count (when not in Screener mode).

Turn these off with “Use in Pine Screener” to keep scans lightweight.

Logic Notes

All sizing is normalized by ATR so the behavior is comparable across symbols.

First-hour gap logic can be % or Daily ATR based.

When both sides fire on the same 15m bar (rare), the streaks neutralize for that bar.

Streak counters do not reset at the next trading day—they carry across sessions.

Disclaimers

This tool is for research and education. It does not constitute financial advice. Always validate signals in context (trend, liquidity, news) and manage risk. Settings that work on one asset may not generalize—tune thresholds and the streak target to your universe.

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.