OPEN-SOURCE SCRIPT
Fibonacci Singularity

Fibonacci singularity is an advanced fibonacci confluence engine designed to find the price zones where multiple fibonacci levels from confirmed market legs collapse into the same area.
instead of drawing one simple fibonacci retracement, the script analyzes several confirmed swing legs, calculates multiple fibonacci retracement and extension levels, then groups the strongest overlapping levels into institutional confluence zones.
the goal is to give the trader a clean map of high-interest price areas where the market may react, reject, pause, break, or build a new directional move.
this tool is not a buy or sell signal system. it is a market structure and confluence map. it should be used with price action, trend context, volume, risk management, and personal confirmation.
main features
confirmed pivot-based fibonacci engine
clean zigzag swing logic
multi-leg fibonacci confluence
non-overlapping confluence zones
automatic merge of zones that touch or overlap
minimum block gap between zones
s-tier, a-tier, b-tier, and c-tier zone classification
walk-forward respect percentage
real volume micro profile inside each zone
right-side density micro profile
volume, touch density, reaction pressure, or composite profile source
volume delta in labels
zone pressure reading
dominant reference fibonacci
fibonacci time zones
magnet targets above and below price
institutional-style dashboard
sober visual style
price-in-zone alerts
upside magnet alerts
downside magnet alerts
how the script works
the script first detects confirmed pivots.
a confirmed pivot high or pivot low appears only after enough bars have closed on both sides of the pivot. this makes the structure cleaner and avoids using unconfirmed swing points.
after pivots are confirmed, the script builds several market legs from the most recent valid zigzag swings.
for each leg, the script calculates important fibonacci levels such as retracements and extensions.
then it groups nearby fibonacci levels into confluence zones.
when several fibonacci levels fall inside the same price area, the zone becomes stronger.
if two zones touch or overlap, the script merges them instead of stacking blocks on top of each other.
each final zone is displayed as a clean block with a center line, optional label, internal profile, and right-side density profile.
the strongest zones are ranked by overlap, strength, and tier.
important concept
a zone is not a guaranteed reversal point.
a zone means that several fibonacci levels are concentrated in the same price area.
the more confluence a zone has, the more important it can become as a decision area.
a trader can use these zones to prepare possible reactions, breakouts, retests, or profit-taking areas.
input guide
pivot strength
this controls how strong a pivot must be before it is accepted.
a higher value creates fewer but stronger swing points.
a lower value creates more swings and makes the engine more reactive.
for beginners:
use a higher value for cleaner zones.
use a lower value only if you want more sensitivity.
active legs
this controls how many confirmed swing legs are used by the confluence engine.
more legs create more historical fibonacci levels and more possible confluence.
fewer legs focus only on recent market structure.
for beginners:
use 4 to 6 legs for a balanced view.
use more legs if you want a wider historical confluence map.
min leg range
this filters out small swing legs.
the value is based on atr.
if a leg is too small, the script ignores it because small legs can create weak or noisy fibonacci levels.
for beginners:
increase this value if the chart has too much noise.
decrease it if the script finds too few zones.
zone width
this controls the width of each fibonacci confluence zone.
the value is based on atr.
a higher value creates wider zones and groups more levels together.
a lower value creates tighter zones and separates levels more aggressively.
for beginners:
use a moderate value to avoid zones that are too wide or too fragmented.
minimum block gap
this controls the minimum space between displayed blocks.
if two zones touch, overlap, or become too close, they are merged so the chart remains clean.
this is important because zones should not stack on top of each other.
for beginners:
increase this value if the zones look too close.
decrease it if you want more detailed separation.
max confluence zones
this controls how many confluence zones can be displayed.
a lower value gives a cleaner chart.
a higher value shows more market structure.
for beginners:
start with 4 to 6 zones.
increase only if you need more context.
min overlap to qualify
this defines how many fibonacci levels must overlap before a zone becomes valid.
a higher value makes zones more selective.
a lower value allows more zones to appear.
for beginners:
use a higher value for stronger zones.
use a lower value only if the market has too few visible zones.
atr length
this controls the atr calculation used for zone width, minimum range, and spacing.
a higher value makes the system smoother.
a lower value makes it react faster to recent volatility.
for beginners:
use 50 for stable behavior.
lower it if you want faster adaptation.
s-tier overlap
this defines the minimum overlap needed for a zone to become s-tier.
s-tier is the strongest classification.
these zones represent the highest fibonacci concentration.
a-tier overlap
this defines the minimum overlap needed for a zone to become a-tier.
a-tier zones are strong but not as extreme as s-tier zones.
b-tier overlap
this defines the minimum overlap needed for a zone to become b-tier.
b-tier zones are medium confluence areas.
c-tier zones
c-tier is used when a zone qualifies but does not reach b-tier, a-tier, or s-tier strength.
enable walk-forward respect percent
this enables the respect percentage calculation.
the script checks how price reacts after a zone exists.
this is cleaner than testing a current zone on old data before the zone was created.
respect window
this controls how many bars are used to measure zone respect.
a larger window gives more historical reaction data.
a smaller window focuses on recent behavior.
for beginners:
use 300 bars for a balanced reading.
min touches to score
this defines the minimum number of touches needed before the respect percentage is considered valid.
if a zone has too few touches, the statistic is not reliable.
for beginners:
keep this at 2 or higher.
show real volume micro profile
this displays a micro profile inside each zone.
the profile uses the real volume available from the chart and distributes it across the zone according to the candle overlap with the zone.
this is not tick-by-tick volume at price. it is the most realistic stable approximation available from regular candle volume in pine.
show right density micro profile
this displays a technical density profile on the right side of each zone.
it helps visualize which parts of the zone had more interaction, pressure, or volume.
right density source
this selects what the right-side density profile is based on.
volume:
uses chart volume.
touch density:
counts how often price interacts with each part of the zone.
reaction pressure:
measures candle reaction strength around the zone.
composite:
combines volume when available with interaction and reaction pressure.
for beginners:
use composite for the most balanced profile.
profile window
this controls how many bars are scanned to build the internal and right-side profiles.
a larger value gives more historical context.
a smaller value focuses on recent market behavior.
for beginners:
use 300 bars as a balanced default.
micro profile rows
this controls how many rows are displayed inside each zone.
more rows give more detail but use more drawing objects.
fewer rows are cleaner and lighter.
for beginners:
use 6 to 8 rows.
max internal profile length
this controls the maximum length of the internal micro profile bars inside each zone.
a higher value makes profile bars longer and more visible.
a lower value keeps the blocks cleaner.
minimum cell width
this ensures every profile row remains visible even when volume or density is low.
this helps every zone keep a technical structure instead of appearing empty.
show volume delta in labels
this adds bull and bear volume difference information into the zone label.
a positive delta means more bullish volume pressure.
a negative delta means more bearish volume pressure.
show confluence zones
this turns the main fibonacci confluence blocks on or off.
when disabled, the engine still calculates data, but the blocks are hidden.
zone history length
this controls how far the zone blocks extend into the past.
a higher value makes zones longer.
a lower value keeps the chart more compact.
show density profile right
this displays the right-side profile structure.
this is useful for quickly comparing zone strength and internal distribution.
profile max length
this controls the maximum visual length of the right-side density profile.
higher values make strong profiles longer.
lower values keep the profile compact.
show zone labels
this shows or hides zone labels.
labels can display the tier, overlap count, price level, respect percentage, delta, and pressure information.
show dominant reference fib
this displays the dominant reference fibonacci from the most important recent leg.
this helps the trader understand which recent swing is guiding the current fibonacci map.
show fibonacci time zones
this displays vertical fibonacci time projections from the latest confirmed pivot.
these are not price signals.
they are timing reference points where the trader can watch for possible market reaction.
show dashboard
this shows the institutional dashboard.
the dashboard summarizes bias, active legs, zones found, top zone, magnets, price position, respect information, and engine status.
dashboard position
this controls where the dashboard appears on the chart.
available positions:
top right
top left
bottom right
bottom left
middle right
bull / b-tier color
this controls the color used for bullish or b-tier visual elements.
bear / a-tier color
this controls the color used for bearish or a-tier visual elements.
singularity / s color
this controls the color used for the strongest s-tier zones.
neutral / c color
this controls the color used for lower-tier or neutral elements.
panel background
this controls the dashboard background color.
panel border
this controls the dashboard border color.
mini tutorial for beginners
step 1: start with clean settings
keep the default settings first.
do not change everything immediately.
the script is designed to find fibonacci confluence zones from confirmed swing legs, so you should first observe how the zones behave on your market and timeframe.
step 2: understand the zones
a zone is an area where several fibonacci levels overlap.
if a zone has a high tier, it means more fibonacci levels are concentrated there.
s-tier is the strongest.
a-tier is strong.
b-tier is medium.
c-tier is weaker but still qualified.
step 3: use zones as decision areas
do not buy or sell only because price touches a zone.
wait for confirmation.
possible confirmations:
wick rejection
strong candle close
breakout
retest
volume reaction
trend alignment
market structure shift
step 4: read the internal micro profile
inside each zone, the micro profile shows where volume or interaction is concentrated.
a larger internal bar means stronger activity in that part of the zone.
this can help identify whether price is reacting near the top, middle, or bottom of the zone.
step 5: read the right-side density profile
the right-side profile gives a fast technical view of the zone.
if the profile is strong and balanced, the zone has more structural importance.
if the profile is thin, the zone may be weaker or less tested.
step 6: use the respect percentage
respect percentage shows how often price reacted from a zone after the zone existed.
a high respect value can mean the zone has been historically reactive.
a low respect value can mean the zone has been ignored or broken often.
do not use respect percentage alone.
combine it with price action.
step 7: use the magnet targets
the up magnet is the nearest important zone above price.
the down magnet is the nearest important zone below price.
these can be used as possible target areas, resistance areas, support areas, or places where price may slow down.
step 8: use the dashboard
the dashboard gives a quick summary of the current state.
watch:
bias
active legs
zones found
top zone
up magnet
down magnet
price position
respect data
engine status
if the panel says waiting or no qualified zone, the script does not yet have enough valid confluence to display a strong zone.
step 9: choose the right timeframe
for intraday trading, use the script to locate major reaction areas.
for swing trading, use higher timeframes for stronger zones.
zones from higher timeframes often carry more weight than small lower timeframe zones.
step 10: build a simple trading plan
bullish example:
price pulls back into a strong confluence zone.
the zone has a good respect percentage.
the internal profile shows strong activity.
price prints a bullish rejection.
the trader can then watch for a possible long setup.
bearish example:
price rallies into a strong confluence zone.
the zone is a-tier or s-tier.
the right-side profile shows strong interaction.
price rejects with a bearish candle.
the trader can then watch for a possible short setup.
breakout example:
price reaches a strong zone but does not reject.
price closes strongly beyond the zone.
the trader can then watch for continuation or a retest.
best beginner settings
pivot strength:
8 to 12 for cleaner swings.
active legs:
4 to 6 for balanced confluence.
min leg range:
0.5 atr or higher to remove small noisy swings.
zone width:
0.5 to 0.8 atr for practical zone size.
minimum block gap:
increase if zones look too close.
micro profile rows:
6 to 8 for clean internal detail.
right density source:
composite for the most balanced view.
profile window:
300 bars for a balanced profile.
important note
this indicator does not guarantee profit.
fibonacci confluence zones can fail.
a strong zone can break.
a high respect percentage does not guarantee the next reaction.
always use stop loss, position sizing, risk management, and personal confirmation before entering a trade.
the best use of this script is as a technical map of high-interest fibonacci zones, not as an automatic trading system.
instead of drawing one simple fibonacci retracement, the script analyzes several confirmed swing legs, calculates multiple fibonacci retracement and extension levels, then groups the strongest overlapping levels into institutional confluence zones.
the goal is to give the trader a clean map of high-interest price areas where the market may react, reject, pause, break, or build a new directional move.
this tool is not a buy or sell signal system. it is a market structure and confluence map. it should be used with price action, trend context, volume, risk management, and personal confirmation.
main features
confirmed pivot-based fibonacci engine
clean zigzag swing logic
multi-leg fibonacci confluence
non-overlapping confluence zones
automatic merge of zones that touch or overlap
minimum block gap between zones
s-tier, a-tier, b-tier, and c-tier zone classification
walk-forward respect percentage
real volume micro profile inside each zone
right-side density micro profile
volume, touch density, reaction pressure, or composite profile source
volume delta in labels
zone pressure reading
dominant reference fibonacci
fibonacci time zones
magnet targets above and below price
institutional-style dashboard
sober visual style
price-in-zone alerts
upside magnet alerts
downside magnet alerts
how the script works
the script first detects confirmed pivots.
a confirmed pivot high or pivot low appears only after enough bars have closed on both sides of the pivot. this makes the structure cleaner and avoids using unconfirmed swing points.
after pivots are confirmed, the script builds several market legs from the most recent valid zigzag swings.
for each leg, the script calculates important fibonacci levels such as retracements and extensions.
then it groups nearby fibonacci levels into confluence zones.
when several fibonacci levels fall inside the same price area, the zone becomes stronger.
if two zones touch or overlap, the script merges them instead of stacking blocks on top of each other.
each final zone is displayed as a clean block with a center line, optional label, internal profile, and right-side density profile.
the strongest zones are ranked by overlap, strength, and tier.
important concept
a zone is not a guaranteed reversal point.
a zone means that several fibonacci levels are concentrated in the same price area.
the more confluence a zone has, the more important it can become as a decision area.
a trader can use these zones to prepare possible reactions, breakouts, retests, or profit-taking areas.
input guide
pivot strength
this controls how strong a pivot must be before it is accepted.
a higher value creates fewer but stronger swing points.
a lower value creates more swings and makes the engine more reactive.
for beginners:
use a higher value for cleaner zones.
use a lower value only if you want more sensitivity.
active legs
this controls how many confirmed swing legs are used by the confluence engine.
more legs create more historical fibonacci levels and more possible confluence.
fewer legs focus only on recent market structure.
for beginners:
use 4 to 6 legs for a balanced view.
use more legs if you want a wider historical confluence map.
min leg range
this filters out small swing legs.
the value is based on atr.
if a leg is too small, the script ignores it because small legs can create weak or noisy fibonacci levels.
for beginners:
increase this value if the chart has too much noise.
decrease it if the script finds too few zones.
zone width
this controls the width of each fibonacci confluence zone.
the value is based on atr.
a higher value creates wider zones and groups more levels together.
a lower value creates tighter zones and separates levels more aggressively.
for beginners:
use a moderate value to avoid zones that are too wide or too fragmented.
minimum block gap
this controls the minimum space between displayed blocks.
if two zones touch, overlap, or become too close, they are merged so the chart remains clean.
this is important because zones should not stack on top of each other.
for beginners:
increase this value if the zones look too close.
decrease it if you want more detailed separation.
max confluence zones
this controls how many confluence zones can be displayed.
a lower value gives a cleaner chart.
a higher value shows more market structure.
for beginners:
start with 4 to 6 zones.
increase only if you need more context.
min overlap to qualify
this defines how many fibonacci levels must overlap before a zone becomes valid.
a higher value makes zones more selective.
a lower value allows more zones to appear.
for beginners:
use a higher value for stronger zones.
use a lower value only if the market has too few visible zones.
atr length
this controls the atr calculation used for zone width, minimum range, and spacing.
a higher value makes the system smoother.
a lower value makes it react faster to recent volatility.
for beginners:
use 50 for stable behavior.
lower it if you want faster adaptation.
s-tier overlap
this defines the minimum overlap needed for a zone to become s-tier.
s-tier is the strongest classification.
these zones represent the highest fibonacci concentration.
a-tier overlap
this defines the minimum overlap needed for a zone to become a-tier.
a-tier zones are strong but not as extreme as s-tier zones.
b-tier overlap
this defines the minimum overlap needed for a zone to become b-tier.
b-tier zones are medium confluence areas.
c-tier zones
c-tier is used when a zone qualifies but does not reach b-tier, a-tier, or s-tier strength.
enable walk-forward respect percent
this enables the respect percentage calculation.
the script checks how price reacts after a zone exists.
this is cleaner than testing a current zone on old data before the zone was created.
respect window
this controls how many bars are used to measure zone respect.
a larger window gives more historical reaction data.
a smaller window focuses on recent behavior.
for beginners:
use 300 bars for a balanced reading.
min touches to score
this defines the minimum number of touches needed before the respect percentage is considered valid.
if a zone has too few touches, the statistic is not reliable.
for beginners:
keep this at 2 or higher.
show real volume micro profile
this displays a micro profile inside each zone.
the profile uses the real volume available from the chart and distributes it across the zone according to the candle overlap with the zone.
this is not tick-by-tick volume at price. it is the most realistic stable approximation available from regular candle volume in pine.
show right density micro profile
this displays a technical density profile on the right side of each zone.
it helps visualize which parts of the zone had more interaction, pressure, or volume.
right density source
this selects what the right-side density profile is based on.
volume:
uses chart volume.
touch density:
counts how often price interacts with each part of the zone.
reaction pressure:
measures candle reaction strength around the zone.
composite:
combines volume when available with interaction and reaction pressure.
for beginners:
use composite for the most balanced profile.
profile window
this controls how many bars are scanned to build the internal and right-side profiles.
a larger value gives more historical context.
a smaller value focuses on recent market behavior.
for beginners:
use 300 bars as a balanced default.
micro profile rows
this controls how many rows are displayed inside each zone.
more rows give more detail but use more drawing objects.
fewer rows are cleaner and lighter.
for beginners:
use 6 to 8 rows.
max internal profile length
this controls the maximum length of the internal micro profile bars inside each zone.
a higher value makes profile bars longer and more visible.
a lower value keeps the blocks cleaner.
minimum cell width
this ensures every profile row remains visible even when volume or density is low.
this helps every zone keep a technical structure instead of appearing empty.
show volume delta in labels
this adds bull and bear volume difference information into the zone label.
a positive delta means more bullish volume pressure.
a negative delta means more bearish volume pressure.
show confluence zones
this turns the main fibonacci confluence blocks on or off.
when disabled, the engine still calculates data, but the blocks are hidden.
zone history length
this controls how far the zone blocks extend into the past.
a higher value makes zones longer.
a lower value keeps the chart more compact.
show density profile right
this displays the right-side profile structure.
this is useful for quickly comparing zone strength and internal distribution.
profile max length
this controls the maximum visual length of the right-side density profile.
higher values make strong profiles longer.
lower values keep the profile compact.
show zone labels
this shows or hides zone labels.
labels can display the tier, overlap count, price level, respect percentage, delta, and pressure information.
show dominant reference fib
this displays the dominant reference fibonacci from the most important recent leg.
this helps the trader understand which recent swing is guiding the current fibonacci map.
show fibonacci time zones
this displays vertical fibonacci time projections from the latest confirmed pivot.
these are not price signals.
they are timing reference points where the trader can watch for possible market reaction.
show dashboard
this shows the institutional dashboard.
the dashboard summarizes bias, active legs, zones found, top zone, magnets, price position, respect information, and engine status.
dashboard position
this controls where the dashboard appears on the chart.
available positions:
top right
top left
bottom right
bottom left
middle right
bull / b-tier color
this controls the color used for bullish or b-tier visual elements.
bear / a-tier color
this controls the color used for bearish or a-tier visual elements.
singularity / s color
this controls the color used for the strongest s-tier zones.
neutral / c color
this controls the color used for lower-tier or neutral elements.
panel background
this controls the dashboard background color.
panel border
this controls the dashboard border color.
mini tutorial for beginners
step 1: start with clean settings
keep the default settings first.
do not change everything immediately.
the script is designed to find fibonacci confluence zones from confirmed swing legs, so you should first observe how the zones behave on your market and timeframe.
step 2: understand the zones
a zone is an area where several fibonacci levels overlap.
if a zone has a high tier, it means more fibonacci levels are concentrated there.
s-tier is the strongest.
a-tier is strong.
b-tier is medium.
c-tier is weaker but still qualified.
step 3: use zones as decision areas
do not buy or sell only because price touches a zone.
wait for confirmation.
possible confirmations:
wick rejection
strong candle close
breakout
retest
volume reaction
trend alignment
market structure shift
step 4: read the internal micro profile
inside each zone, the micro profile shows where volume or interaction is concentrated.
a larger internal bar means stronger activity in that part of the zone.
this can help identify whether price is reacting near the top, middle, or bottom of the zone.
step 5: read the right-side density profile
the right-side profile gives a fast technical view of the zone.
if the profile is strong and balanced, the zone has more structural importance.
if the profile is thin, the zone may be weaker or less tested.
step 6: use the respect percentage
respect percentage shows how often price reacted from a zone after the zone existed.
a high respect value can mean the zone has been historically reactive.
a low respect value can mean the zone has been ignored or broken often.
do not use respect percentage alone.
combine it with price action.
step 7: use the magnet targets
the up magnet is the nearest important zone above price.
the down magnet is the nearest important zone below price.
these can be used as possible target areas, resistance areas, support areas, or places where price may slow down.
step 8: use the dashboard
the dashboard gives a quick summary of the current state.
watch:
bias
active legs
zones found
top zone
up magnet
down magnet
price position
respect data
engine status
if the panel says waiting or no qualified zone, the script does not yet have enough valid confluence to display a strong zone.
step 9: choose the right timeframe
for intraday trading, use the script to locate major reaction areas.
for swing trading, use higher timeframes for stronger zones.
zones from higher timeframes often carry more weight than small lower timeframe zones.
step 10: build a simple trading plan
bullish example:
price pulls back into a strong confluence zone.
the zone has a good respect percentage.
the internal profile shows strong activity.
price prints a bullish rejection.
the trader can then watch for a possible long setup.
bearish example:
price rallies into a strong confluence zone.
the zone is a-tier or s-tier.
the right-side profile shows strong interaction.
price rejects with a bearish candle.
the trader can then watch for a possible short setup.
breakout example:
price reaches a strong zone but does not reject.
price closes strongly beyond the zone.
the trader can then watch for continuation or a retest.
best beginner settings
pivot strength:
8 to 12 for cleaner swings.
active legs:
4 to 6 for balanced confluence.
min leg range:
0.5 atr or higher to remove small noisy swings.
zone width:
0.5 to 0.8 atr for practical zone size.
minimum block gap:
increase if zones look too close.
micro profile rows:
6 to 8 for clean internal detail.
right density source:
composite for the most balanced view.
profile window:
300 bars for a balanced profile.
important note
this indicator does not guarantee profit.
fibonacci confluence zones can fail.
a strong zone can break.
a high respect percentage does not guarantee the next reaction.
always use stop loss, position sizing, risk management, and personal confirmation before entering a trade.
the best use of this script is as a technical map of high-interest fibonacci zones, not as an automatic trading system.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Light the candle that sleeps within you.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Light the candle that sleeps within you.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.