OPEN-SOURCE SCRIPT
Gann Levels v6 - Signals Dashboard Full

This script gives you a daily trade map from yesterday’s price data, then projects today’s support and resistance on the chart, shows the prices on the right, and can print simple B/S/SL/TP labels. It is not a guaranteed entry system by itself; it is a level-based framework that helps you decide bias, entry zone, stop placement, and target ladder before taking a trade.
What the script shows
The script has two level engines. The first is Square Root, which starts from yesterday’s close and projects levels outward using square-root progression, a common Gann-style way to locate possible reaction zones from one anchor price. The second is Pivot Style, which uses yesterday’s high, low, and close to compute a central pivot plus R1-R3 and S1-S3 for the current session.
It also lets you:
Show one method only, or both together.
See price tags on the right side of the chart for each level.
Use a light dashboard with adjustable font size.
Change line thickness for R1/S1, R2/S2, and R3/S3.
Show simple B, S, SL, and TP labels.
How to read levels
In Square Root mode, the previous day close is the main anchor. If price stays above that base, the upper square-root levels R1, R2, and R3 become upside targets; if price stays below it, S1, S2, and S3 become downside targets.
In Pivot mode, the pivot base is the center line for the day. If price is above the pivot, the day is often treated as bullish-biased; if price is below it, bearish-biased, with R1-R3 and S1-S3 acting as likely reaction or target zones.
When both modes are close to each other, that is called confluence. Confluence matters because when a square-root level and a pivot level sit near the same price, traders often expect a stronger reaction there than from a single level alone.
How to take trades
The best way to use this script is to first decide the day bias, then use the nearest levels to plan a low-risk trade. A simple approach is to wait for price to come to the base or to a level, then watch whether price holds, rejects, or breaks and retests it before entering.
For a buy setup:
Prefer price above Pivot Base or above Square Root Base.
Wait for a pullback to base, S1, or a confluence zone.
Enter only after price holds that zone and closes back upward.
Keep SL below the support that justified the entry.
Take TP at the next resistance level, then the next one after that.For a sell setup:
Prefer price below Pivot Base or below Square Root Base.
Wait for a bounce into base, R1, or a confluence zone.
Enter only after price rejects that zone and closes back downward.
Keep SL above the resistance that justified the short.
Take TP at the next support level, then the next one after that.
Entry, SL, TP logic
A clean rule is: entry at reaction, SL beyond invalidation, TP at next level. This works because pivot and Gann-style levels are most useful as structured support/resistance ladders, so the next ladder step naturally becomes the next target while the opposite side of the setup becomes the invalidation area.
Example long trade:
Price opens above Pivot Base.
It pulls back to Pivot Base or Square Root Base.
A bullish candle closes back above the level.
Entry = above that candle high.
SL = below the level or below the candle low.
TP1 = nearest R1.
TP2 = R2.
TP3 = R3 if trend stays strong.
Example short trade:
Price is trading below the base.
It retraces into R1 or into a base-confluence zone.
A bearish candle rejects the level.
Entry = below that candle low.
SL = above the rejection high.
TP1 = nearest S1.
TP2 = S2.
TP3 = S3 if momentum continues.
What B and S mean
In your script, B and S are currently simple trigger markers, not a full institutional strategy. They are based on price crossing the active base line, so you should treat them as a first alert and then confirm with candle behavior, trend, and nearby levels before entering a real trade.
That means:
B is stronger when it appears above the base and near support or confluence.
S is stronger when it appears below the base and near resistance or confluence.
Ignore B/S signals that appear in the middle of a noisy range with no level context.
Best practical workflow
A practical daily routine with this script is:
Check whether price is above or below the Pivot Base at market open.
Mark where Square Root Base sits relative to Pivot Base.
Look for overlap between SQ and PV levels.
Trade only at or near those key zones.
Take partial profit at the next level, and trail the rest.
A simple rule to keep you safe is:
Trend day: use base pullbacks and aim for R1 to R2 to R3, or S1 to S2 to S3.
Range day: use outer levels like R2/R3 or S2/S3 for reversal attempts, but only with clear rejection candles. Pivot strategies commonly distinguish between breakout continuation and reversal behavior around outer levels, which is why the same script can help in both conditions.What not to do
Do not buy just because price touches S1, and do not short just because price touches R1. These levels are decision zones, not automatic entries, so you still need price confirmation such as rejection, break-retest, or momentum continuation.
Also, do not take every B/S signal blindly. The script maps structure well, but the signal logic is still simple and works best when combined with trend direction, candle confirmation, and confluence between the two methods.
Best settings
For cleaner use:
Keep showBoth = true to see confluence.
Use larger thickness for R3/S3 because outer levels are often more important reaction zones.
Keep dashboard small or normal so the chart remains readable.
Use right-side price tags on, especially for intraday work.
If you want, I can now make the next version smarter, with:
buy only on bullish candle confirmation,
sell only on bearish candle confirmation,
automatic SL below swing low / above swing high,
TP1, TP2, TP3 ladder in the dashboard.
What the script shows
The script has two level engines. The first is Square Root, which starts from yesterday’s close and projects levels outward using square-root progression, a common Gann-style way to locate possible reaction zones from one anchor price. The second is Pivot Style, which uses yesterday’s high, low, and close to compute a central pivot plus R1-R3 and S1-S3 for the current session.
It also lets you:
Show one method only, or both together.
See price tags on the right side of the chart for each level.
Use a light dashboard with adjustable font size.
Change line thickness for R1/S1, R2/S2, and R3/S3.
Show simple B, S, SL, and TP labels.
How to read levels
In Square Root mode, the previous day close is the main anchor. If price stays above that base, the upper square-root levels R1, R2, and R3 become upside targets; if price stays below it, S1, S2, and S3 become downside targets.
In Pivot mode, the pivot base is the center line for the day. If price is above the pivot, the day is often treated as bullish-biased; if price is below it, bearish-biased, with R1-R3 and S1-S3 acting as likely reaction or target zones.
When both modes are close to each other, that is called confluence. Confluence matters because when a square-root level and a pivot level sit near the same price, traders often expect a stronger reaction there than from a single level alone.
How to take trades
The best way to use this script is to first decide the day bias, then use the nearest levels to plan a low-risk trade. A simple approach is to wait for price to come to the base or to a level, then watch whether price holds, rejects, or breaks and retests it before entering.
For a buy setup:
Prefer price above Pivot Base or above Square Root Base.
Wait for a pullback to base, S1, or a confluence zone.
Enter only after price holds that zone and closes back upward.
Keep SL below the support that justified the entry.
Take TP at the next resistance level, then the next one after that.For a sell setup:
Prefer price below Pivot Base or below Square Root Base.
Wait for a bounce into base, R1, or a confluence zone.
Enter only after price rejects that zone and closes back downward.
Keep SL above the resistance that justified the short.
Take TP at the next support level, then the next one after that.
Entry, SL, TP logic
A clean rule is: entry at reaction, SL beyond invalidation, TP at next level. This works because pivot and Gann-style levels are most useful as structured support/resistance ladders, so the next ladder step naturally becomes the next target while the opposite side of the setup becomes the invalidation area.
Example long trade:
Price opens above Pivot Base.
It pulls back to Pivot Base or Square Root Base.
A bullish candle closes back above the level.
Entry = above that candle high.
SL = below the level or below the candle low.
TP1 = nearest R1.
TP2 = R2.
TP3 = R3 if trend stays strong.
Example short trade:
Price is trading below the base.
It retraces into R1 or into a base-confluence zone.
A bearish candle rejects the level.
Entry = below that candle low.
SL = above the rejection high.
TP1 = nearest S1.
TP2 = S2.
TP3 = S3 if momentum continues.
What B and S mean
In your script, B and S are currently simple trigger markers, not a full institutional strategy. They are based on price crossing the active base line, so you should treat them as a first alert and then confirm with candle behavior, trend, and nearby levels before entering a real trade.
That means:
B is stronger when it appears above the base and near support or confluence.
S is stronger when it appears below the base and near resistance or confluence.
Ignore B/S signals that appear in the middle of a noisy range with no level context.
Best practical workflow
A practical daily routine with this script is:
Check whether price is above or below the Pivot Base at market open.
Mark where Square Root Base sits relative to Pivot Base.
Look for overlap between SQ and PV levels.
Trade only at or near those key zones.
Take partial profit at the next level, and trail the rest.
A simple rule to keep you safe is:
Trend day: use base pullbacks and aim for R1 to R2 to R3, or S1 to S2 to S3.
Range day: use outer levels like R2/R3 or S2/S3 for reversal attempts, but only with clear rejection candles. Pivot strategies commonly distinguish between breakout continuation and reversal behavior around outer levels, which is why the same script can help in both conditions.What not to do
Do not buy just because price touches S1, and do not short just because price touches R1. These levels are decision zones, not automatic entries, so you still need price confirmation such as rejection, break-retest, or momentum continuation.
Also, do not take every B/S signal blindly. The script maps structure well, but the signal logic is still simple and works best when combined with trend direction, candle confirmation, and confluence between the two methods.
Best settings
For cleaner use:
Keep showBoth = true to see confluence.
Use larger thickness for R3/S3 because outer levels are often more important reaction zones.
Keep dashboard small or normal so the chart remains readable.
Use right-side price tags on, especially for intraday work.
If you want, I can now make the next version smarter, with:
buy only on bullish candle confirmation,
sell only on bearish candle confirmation,
automatic SL below swing low / above swing high,
TP1, TP2, TP3 ladder in the dashboard.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.