OPEN-SOURCE SCRIPT

VWAP + Key Levels Signals

311
VWAP + Key Levels Signals

A multi-timeframe price-action signal tool for futures traders. It marks
BUY and SELL signals when price reacts at an institutional reference level
in agreement with VWAP bias and candle conviction.

WHAT IT PLOTS
The indicator auto-calculates and tracks the key levels that price tends to
react to:
- Daily, 4H and 1H 50/200 SMAs
- Prior Day High/Low (PDH/PDL)
- Prior Globex Session High/Low (PSH/PSL — default 18:00–08:00)
- 1H Fibonacci retracements (.382 / .50 / .618 / .786)
- Unmitigated 1H swing highs/lows formed on above-average volume
- Session VWAP — used as the directional bias filter, not as a tradeable level

HOW A SIGNAL IS FORMED
A signal only prints when ALL of the basic conditions line up on the same
1-minute candle:
1. Price is AT a key level (within the touch buffer).
2. The move is IN CONFORMITY WITH VWAP bias (price on the correct side of
VWAP and/or VWAP sloping the right way — selectable).
3. The candle reacts in the direction of the bias — a green candle closing
above the level for longs, a red candle closing below it for shorts.
4. The candle is decisive (optional strong-body / volume filters).

When that 1-minute candle CLOSES in the bias direction, the signal fires:
green triangle = BUY, red triangle = SELL. Signals are confirmed on bar
close — they do not repaint.

SUGGESTED RULES OF ENGAGEMENT
- Entry: on the close of the signal candle, in the direction of the signal.
- Stop loss: at the key level that triggered the signal (place it just
beyond — e.g. a few ticks past the level).
- Target: the next key level in the direction of the trade. Manage the
runner manually or trail behind structure.

A NOTE ON SIGNAL FREQUENCY
Because the tool watches many levels across several timeframes, it can
produce a high number of signals — this is by design. Each one simply marks
that the basic conditions were met at that moment. Use the VWAP bias mode,
the touch buffer, and the strong-candle/volume filters to tighten the feed
to only the highest-conviction reactions. Start loose to see everything,
then filter down to your taste.

PAIRS WITH "HTF Levels + Volume-Filtered Unmitigated Swings"
This signal tool is designed to be used alongside the companion indicator
"HTF Levels + Volume-Filtered Unmitigated Swings." Both calculate the same
reference levels with the same logic, so the lines on your chart will match
the levels the signals fire from. Run the HTF Levels indicator for the
visual map and this tool for the reactions — or hide this tool's lines
(Display → Plot KPL levels OFF) and let the HTF Levels indicator draw them.

SETTINGS TO START WITH
- KPL touch buffer: 0.5 points (loosen to 1.0 on volatile days)
- VWAP Bias Mode: "Price vs VWAP" to start; "Price + Slope" for the
strictest, cleanest setups
- Require strong candle: ON (min body 50%)
- Apply to a liquid futures contract on a 1m or 5m chart with enough
history loaded for the higher-timeframe SMAs to populate

ALERTS
Built-in BUY and SELL alert conditions — set them from the alert menu for
push/email notification on a fresh signal.

──────────────────────────────────────────
DISCLAIMER
This is a free, open-source educational tool. It is NOT financial, investment
or trading advice and makes no promise or guarantee of profit. Signals are
informational only and may produce losing trades. Trading futures involves
substantial risk of loss and is not suitable for every investor. Past
performance and historical signals are not indicative of future results.
Always backtest and forward-test on a demo account, and trade your own plan
with your own risk management. You are solely responsible for your trading
decisions.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.