PROTECTED SOURCE SCRIPT
Updated

KING4R_swing

41
General

This script is called "KING4R_swing", designed to identify high-probability swing trading entries based on technical setups. It overlays the chart and uses conditions based on volume, EMAs, SPY index trend, and price structure.

Main Features

User Options:

Enable/disable SPY EMA conditions.

Show/hide checklist and final message.

Adjust label positions (vertical/horizontal).

Local EMAs:

Calculates 13-EMA and 48-EMA on the current symbol.

Flags whether EMA13 is above EMA48 and whether price is above EMA48.

Volume Spike Detection:

Searches for unusual volume spikes in the last 30 candles.

Then checks 60 candles after the spike for either:

Lateral movement (no new lows).

Higher lows (suggesting a change in structure).

Visual Tags:

When a volume spike is detected, it adds:

“📦 Post-volume Lateral” label if price goes sideways.

“📈 Structure Change” if higher lows are confirmed.

SPY Conditions:

Pulls EMAs from SPY on the daily timeframe.

Two optional conditions: EMA13 > EMA48 and EMA8 > EMA21.

Stopping Volume:

Checks if there's stopping volume in the last 30 candles (volume 1.5x above average).

Checklist + Scoring:

Assigns up to 6 points based on:

EMA13 > EMA48

Lateral structure after high volume

Price above EMA48

Stopping volume

SPY EMA13 > EMA48

SPY EMA8 > EMA21

Each condition adds 1 point.

Dynamic Labels:

Shows a red checklist, a final message with score, and a warning (“NO SETUP, NO TRADE”).

If score is 6/6, shows a 🚀 rocket icon above the bar.

Alert:

Triggers an alert when score = 6/6, indicating a possible high-probability entry.
Release Notes
General

This script is called "KING4R_swing", designed to identify high-probability swing trading entries based on technical setups. It overlays the chart and uses conditions based on volume, EMAs, SPY index trend, and price structure.

Main Features

User Options:

Enable/disable SPY EMA conditions.

Show/hide checklist and final message.

Adjust label positions (vertical/horizontal).

Local EMAs:

Calculates 13-EMA and 48-EMA on the current symbol.

Flags whether EMA13 is above EMA48 and whether price is above EMA48.

Volume Spike Detection:

Searches for unusual volume spikes in the last 30 candles.

Then checks 60 candles after the spike for either:

Lateral movement (no new lows).

Higher lows (suggesting a change in structure).

Visual Tags:

When a volume spike is detected, it adds:

“📦 Post-volume Lateral” label if price goes sideways.

“📈 Structure Change” if higher lows are confirmed.

SPY Conditions:

Pulls EMAs from SPY on the daily timeframe.

Two optional conditions: EMA13 > EMA48 and EMA8 > EMA21.

Stopping Volume:

Checks if there's stopping volume in the last 30 candles (volume 1.5x above average).

Checklist + Scoring:

Assigns up to 6 points based on:

EMA13 > EMA48

Lateral structure after high volume

Price above EMA48

Stopping volume

SPY EMA13 > EMA48

SPY EMA8 > EMA21

Each condition adds 1 point.

Dynamic Labels:

Shows a red checklist, a final message with score, and a warning (“NO SETUP, NO TRADE”).

If score is 6/6, shows a 🚀 rocket icon above the bar.

Alert:

Triggers an alert when score = 6/6, indicating a possible high-probability entry.

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.