All scripts
Pro · Invite-only on TradingView
Free · Open source
Key Level Confluence
Instead of twenty lines, only the few prices where several important levels meet.
- Type
- Level zones (confluence)
- Replaces
- Pivot Points · Fibonacci
- Recommended
- 5-minute to 1-hour chart
- Price
- Free, open source
Previous day high, weekly low, pivot points, Fibonacci – each level is quick to draw, and before you know it the chart is full of lines. Key Level Confluence collects these levels automatically and highlights only the prices where several independent sources come together. A single line stays quietly in the background; two or three sources at the same price become a zone. The free, open-source script also shows you how far away the next zone above and below price is. This page explains what you do with it and why.
Overview
At a glance
What does it do?
It collects the levels many traders watch and draws zones only where at least two different sources sit at the same price.
What do I do with it?
You plan your trading day around a few zones: where do you look closely, where is a possible target, where does it get tight for your trade? Long and short alike.
Why?
When several levels sit at the same price, more participants watch it for different reasons. Orders cluster there – reactions are more likely than at any random line.
What do I get?
A clean chart, a clear plan for the day and targets that don’t come from your gut.
On your chart in 2 minutes
Quickstart
- 01
Open the script page
The button at the top of this page takes you to the script page on TradingView. The script is free and open source – no access request needed.
- 02
Add it to your favorites
On the script page, click Add to favorites (the star).
- 03
Add it to your chart
At the top of the chart, click Indicators, choose Favorites on the left and click Key Level Confluence.
- 04
Pick a market and timeframe
Start with a liquid market, for example the DAX or EUR/USD, on the 5- or 15-minute chart. The default settings are fine to begin with.
The chart explained
What you see on the chart
- 1Confluence zone Gradient from a light edge to a strong core, with a centre line.
- 2Zone label One dot per source, plus the names of all levels in the zone.
- 3Zone at price Four levels, but only two sources – hence two dots.
- 4Single levels Dotted lines with their name, here R1 and PDH above it.
- 5Table The nearest zone above and below price, with its distance.
Element 4
The levels: what the zones are made of
The script uses the levels that are already drawn on many charts anyway. Every level belongs to one of five sources.
| Source | Levels on the chart | When active |
|---|---|---|
| Previous day | PDH, PDL, PDC – previous day high, low and close | On by default, intraday charts only |
| Previous week | PWH, PWL – previous week high and low | On by default, on charts below the weekly chart |
| Previous month | PMH, PML – previous month high and low | Off by default, on charts below the monthly chart |
| Daily pivots | Classic and Fibonacci: P, R1, S1, R2, S2. Camarilla: R3, S3, R4, S4 | Classic by default, calculated from the previous day |
| Auto Fibonacci | Fib 38.2, Fib 50, Fib 61.8 of the last confirmed swing | On by default |
What does it do?
It calculates all levels from the bars on your chart – as soon as a new day, week or month begins.
What do I do with it?
Nothing by hand. No more drawing lines and no more looking up pivot tables.
Why?
These levels are public and the same for everyone. That’s exactly why many participants react to them – with profit-taking, stops and new orders.
What do I get?
The same objective levels every day, with no time spent and no drawing errors.
Elements 1 to 3
How levels become zones
The core of the script: when levels from different sources lie close together, it merges them into one zone.
- Close together means: within 12 % of the average daily range of the last 14 days (on the daily chart and above: the average bar range, ATR). That way, a zone is just as wide on the 1-minute chart as on the 4-hour chart.
- Only different sources count. Three Fibonacci levels close together aren’t confluence – they’re just a tight swing. Only when a second source joins in – such as a pivot or a previous day level – does a zone form.
- Dots in the label: one dot per source, so two to five. More dots means more independent reasons to watch this price. Strong zones are also drawn more intensely.
- Colour: red for zones whose middle is above price, green for zones whose middle is below. The centre line marks the core of the zone.
- Width: from the lowest to the highest level in the zone, with a small margin so that very thin zones stay visible.
What does it do?
It reduces many lines to a few areas where reasons for a reaction overlap.
What do I do with it?
You watch these zones closely for a reaction – for entries, partial profits or a tighter stop.
Why?
One trader watches the previous day low, another the pivot, a third the weekly high. When they all sit at the same price, their orders meet there.
What do I get?
Fewer but better places to trade – and a chart on which you see what matters right away.
Element 5
The nearest zones table
| Column | What it tells you |
|---|---|
| Above / Below | The nearest zone entirely above or entirely below the current price. “none in range” means there is no zone on that side right now. |
| Range | Lower and upper boundary of the zone. |
| Sources | How many different sources are in the zone (2 to 5). |
| Distance | The distance from price to the near edge of the zone, measured in average daily ranges (ADR); on the daily chart and above, in ATR. |
In practice
How to work with it
Key Level Confluence is a planning tool. It works best as a fixed routine at the start of the session – for example before the Xetra open at 9:00 CET on the DAX, or before 9:30 New York time on US indices.
- 01
Look at the zones
Which zones are above and below price, how many sources do they have, how far away are they? Note down the two or three most important ones.
- 02
Scenarios for both sides
For every zone, two questions: what do I do if price bounces there? And what if it runs through? A break often makes the next zone the target.
- 03
Wait for the reaction
Only take a trade once price shows a reaction in the zone – with your own trigger, such as a reversal candle or a structure break on a lower timeframe. The “Any zone touched” alert brings you back to the chart.
- 04
Set stop and target
Stop behind the whole zone. The target is the next zone or a single level along the way. If the target is closer than the stop, skip the trade.
- 05
Review after the session
Where did price react, where did it run through? After a few weeks, you’ll know which kinds of zones matter on your market.
- Red zone above price: a possible place to take profits on longs or for short ideas.
- Green zone below price: a possible place to take profits on shorts or for long ideas.
- Price is inside a zone: the market is negotiating right now. Wait to see which side it leaves the zone on.
Recommendations
Which markets fit – and which don’t
Confluence zones work best where many participants watch the same levels: liquid markets with clear trading hours and a real previous day. The assessments below are based on the characteristics of each market, not on a backtest.
Good example: DAX
DAX (index and future)
5 to 15 minutes
- A clear open at 9:00 CET (Xetra): many day traders start with the same levels from yesterday – previous day high, low, close and the pivots.
- Pivot points are widely used in DAX trading and are shown by many traders and platforms. That strengthens zones that contain them.
- Mind the session: on the future, overnight trading is part of the day. If you want the levels of the cash session, use the index itself (Xetra 9:00 to 17:30 CET).
US indices, EUR/USD, gold
5 minutes to 1 hour
- Very liquid – many participants, tight spreads, levels are widely watched.
- Previous day and week levels are standard in almost every daily plan on these markets.
- But: US data at 8:30 New York time and central bank dates run through any zone. No zone trades ahead of such dates.
Use with care
Bitcoin and crypto
15 minutes to 1 hour
- Trades around the clock: the “previous day” ends at midnight UTC – a convention, not an exchange close. Not all participants use the same day boundaries.
- Thin weekends produce highs and lows that carry less weight on Monday.
- Liquidity grabs above and below obvious levels are common – place stops especially generously behind the zone.
Bad example: illiquid markets
Small caps and exotic currency pairs
all timeframes
- Few participants: a level only works if many people watch it. In illiquid markets, that crowd is missing.
- Gaps and jumps: price jumps over zones instead of reacting at them.
- Wide spreads: the zone is often not much wider than the spread itself – a clean stop behind the zone gets expensive.
Which timeframe?
- 5 and 15 minutes: the core use. All sources are active, and the zones are fine enough for entries and stops.
- 1 hour: good for planning the day and for swing traders working intraday. The zones stay the same width because they’re measured against the daily range.
- 1 minute: works, and the zones are the same. But lots of noise for entries – better to plan on the 5-minute chart and only look for the trigger on the 1-minute chart.
- Daily chart: previous day levels drop out; weekly, monthly, pivot and Fibonacci levels remain. The width is then measured against the ATR.
The part that makes the difference
Practical tips for the trade
Before the entry
- Check the economic calendar. If an important number is due within the next hour, every zone is just a snapshot.
- Check intermarket. For the DAX, the US futures and the euro; for gold, the dollar and yields; for Bitcoin, risk sentiment. If they clearly move against your idea, even a strong zone holds less often.
- Respect the trend. A zone against a strong intraday trend is more a place for partial profits than for a counter-trade.
- Size your position from the stop. Stop behind the zone, a fixed risk per trade, and the size follows from that.
While the trade is running
- Take partial profits before the next zone. Price often reacts at the edge of the zone, not only at the core.
- Take breaks seriously. If price closes clearly beyond the zone, the idea is wrong. Get out instead of hoping.
- Watch broken zones. A zone that has been broken is often retested from the other side on the pullback.
Don’t miss a thing
Setting up alerts
- 01
Open the alert window
At the top of the chart, click Alert or press
Alt + A. - 02
Choose the condition
Under Condition, select Key Level Confluence and below it the alert you want.
- 03
Trigger
“Once per bar” notifies you as soon as price touches the zone. “Once per bar close” waits for the bar to close.
- 04
Notification
Choose app, email or webhook and save.
| Alert | When it fires |
|---|---|
| Zone above touched | Price comes from below and reaches a zone. |
| Zone below touched | Price comes from above and reaches a zone. |
| Any zone touched | Both in one alert. |
Reference
All settings
Double-click the name “Level Confluence [Indicatr]” at the top left of the chart to open the settings. They’re split into three groups: Levels, Confluence and Display.
1 · Levels
- Previous day high / low / closeDefault: on
- PDH, PDL and PDC. Intraday charts only.
- Previous week high / lowDefault: on
- PWH and PWL.
- Previous month high / lowDefault: off
- PMH and PML. Useful on the 1-hour chart and above, or in phases when price trades close to a monthly level.
- Daily pivot pointsDefault: Classic
- Classic and Fibonacci give P, R1, S1, R2, S2. Camarilla gives R3, S3, R4, S4 – tighter levels close to the previous close. Off switches the pivots off.
- Auto Fibonacci of the last swing (38.2 / 50 / 61.8)Default: on
- Fibonacci levels of the last confirmed swing.
- Swing detection lengthDefault: 20
- How many bars to the left and right confirm a high or low. Higher: bigger swings that are recognised later. Lower: smaller swings, and the Fibonacci levels change more often.
2 · Confluence and Display
- Reference length (days / bars)Default: 14
- Over how many days the average daily range (ADR) is measured. On the daily chart and above: the ATR length in bars.
- Levels form one zone within (x reference)Default: 0.12
- How close levels have to be to each other. Higher: more and wider zones, but also more random matches. Lower: only very tight matches.
- Minimum different sources per zoneDefault: 2
- How many different sources a zone needs (2 to 5). With 3, only the strongest zones remain.
- Draw zones within (x reference) of priceDefault: 1.5
- Only zones and single levels within 1.5 daily ranges of price are drawn. The table and the alerts take all zones into account.
- Show single levels (thin lines)Default: on
- Levels that don’t belong to a zone, shown as a dotted line with their name.
- Show nearest zones tableDefault: on
- The table at the top right.
- Zones above price: core / EdgeDefault: red / orange
- Colours for the core and the edge of zones above price.
- Zones below price: core / EdgeDefault: dark teal / turquoise
- Colours for the core and the edge of zones below price.
- Gradient stepsDefault: 6
- How fine the gradient from edge to core is (1 to 10). 1 draws a single-colour area.
From practice
Common mistakes
- Entering blindly at the zone. The zone is the place, not the trigger. Wait for a reaction.
- Putting the stop inside the zone. Price often moves through the whole zone before it turns. The stop belongs behind it.
- Ignoring scheduled events. On a central bank decision, no zone counts.
- Turning up the tolerance until there are zones everywhere. Then every price is “confluence” – and none is special any more.
- Trading every zone against a strong trend. On a trend day, zones are more like stopovers than turning points.
- Forgetting the session. On the future, overnight trading is part of the day – so the previous day levels differ from those of the cash index.
FAQ
Does Key Level Confluence repaint?
The levels come from completed periods of your chart’s bars, with no look into the future. The zones are drawn for the current day and recalculated with every new day. The Fibonacci levels change as soon as a new swing is confirmed. Past zones don’t stay on the chart.
Why does a zone with four levels only have two dots?
Sources are counted, not levels. Three Fibonacci levels and a pivot are two sources: Fibonacci and pivots. The previous day low and close together count as one source (previous day).
Why is a zone green even though price is right in the middle of it?
The colour depends on the middle of the zone: if it’s below price, the zone is green; if it’s above, red. In the table, a zone that price is currently inside appears neither as “Above” nor as “Below”.
Why are the previous day levels missing on the daily chart?
On the daily chart, the previous day level would simply be the last bar. So the previous day levels are only active on intraday charts. Weekly, monthly, pivot and Fibonacci levels remain.
Which pivot type should I use?
Classic is the most widely used and therefore a good default. Fibonacci pivots sit somewhat tighter, Camarilla much tighter around the previous close – which suits quiet markets with small daily ranges better.
Can I trade it automatically?
The alerts can be forwarded via webhook. But a zone isn’t an entry signal – without your own trigger and stop, the most important part is missing.
How do you like Key Level Confluence?
Your vote tells us what to work on next.
Support
Report a problem or share feedback
Something off with the script, unclear in the docs, or you have an idea? Write to us. We reply by email.
Key Level Confluence
Collects the levels most traders watch and highlights only the prices where several independent sources meet.
For educational and analytical purposes only. Not financial advice. Zones and levels are not recommendations to buy or sell. Past behaviour at levels is no guarantee of future results. Trading involves a risk of loss.