OPEN-SOURCE SCRIPT
Updated Auto S/R + MTF Bias

Auto S/R + MTF
perform a multi-timeframe analysis. Identify the dominant trend, key structure levels, any momentum shifts, and give me the highest-probability directional bias for a swing trade entry.
Scan the full price history and identify the 3 most significant resistance levels above and 3 support levels below the current price. Rank them by strength, explain why each matters, and tell me how to trade a reaction or breakout at each level.
perform a multi-timeframe analysis. Identify the dominant trend, key structure levels, any momentum shifts, and give me the highest-probability directional bias for a swing trade entry.
Scan the full price history and identify the 3 most significant resistance levels above and 3 support levels below the current price. Rank them by strength, explain why each matters, and tell me how to trade a reaction or breakout at each level.
Release Notes
update:added
SMA 10 (yellow), 20 (orange), 50 (aqua), 200 (fuchsia) — plotted on chart, lengths tunable in settings
TRAMA (white, thick) — Trend Regularity Adaptive MA; adapts smoothing to how clean the trend is
Golden/Death Cross markers — triangles plotted directly on chart when SMA50 crosses SMA200
Each MA can be toggled on/off in the indicator settings
on every new pivot confirmation (detection lags by pivotLen bars since a pivot needs confirmation from both sides):
Pattern engine looks at the last 3/4/5 pivots from a unified time-ordered pivot array
Checks each pattern definition with configurable tolerance
If match: draws lines + label + fires the series flag for alerts
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.