OPEN-SOURCE SCRIPT
Auto Support and Resistance [3Commas]

Auto Support and Resistance [3Commas]
This indicator maps market structure automatically. Instead of drawing levels by hand, it derives them from recent price action and volatility, then presents a single, consistent read of where price is trading, the zones around it, and the two most likely paths from here.
How it works (the method):
- Macro ceiling & floor — the highest high and lowest low over a configurable lookback window define the outer boundary of the current regime (Macro Resistance / Macro Support).
- Local decision levels — the indicator tracks confirmed swing pivots (a high or low with a set number of bars on each side) and selects the nearest significant pivot above and below price, ignoring any that hug the current price so the levels stay meaningful. These become the Local High / Decision and Local Low. Equilibrium marks the current price.
- Volatility-scaled zones — the Resistance, Support and Accumulation zones are sized from Average True Range (ATR), so they widen on volatile symbols and tighten on calm ones, staying meaningful across different assets and timeframes.
- Two scenario paths — from equilibrium the script projects a bullish and a bearish path as multi-leg zig-zags scaled to ATR, each ending at a target. You choose what the targets represent: an ATR-based measured move (default), the nearest local levels, or the macro boundary. Measured-move targets are capped to the macro range so they always stay on the chart.
How to use it:
1. Add it to any chart and timeframe. Levels, zones and paths populate automatically.
2. Tune detection in Settings: "Macro lookback" sets how far back the ceiling/floor is measured; "Swing sensitivity" controls how strong a pivot must be to count; "Min level distance", "Zone width" and "Scenario swing size" refine spacing; "Scenario target" picks what the arrows aim at.
3. Read it as a decision map: is price nearer the ceiling or the floor, which local level must break first, and which scenario path is in play.
Optional manual mode: turn "Auto-detect" off to enter your own levels, zones and targets — useful for presenting a pre-planned idea.
Colors: red = resistance/ceiling, blue = equilibrium/current price, green = support/floor. White = projected scenario paths.
This tool is for chart visualisation and educational purposes only and is not financial advice. It does not generate buy/sell signals.
This indicator maps market structure automatically. Instead of drawing levels by hand, it derives them from recent price action and volatility, then presents a single, consistent read of where price is trading, the zones around it, and the two most likely paths from here.
How it works (the method):
- Macro ceiling & floor — the highest high and lowest low over a configurable lookback window define the outer boundary of the current regime (Macro Resistance / Macro Support).
- Local decision levels — the indicator tracks confirmed swing pivots (a high or low with a set number of bars on each side) and selects the nearest significant pivot above and below price, ignoring any that hug the current price so the levels stay meaningful. These become the Local High / Decision and Local Low. Equilibrium marks the current price.
- Volatility-scaled zones — the Resistance, Support and Accumulation zones are sized from Average True Range (ATR), so they widen on volatile symbols and tighten on calm ones, staying meaningful across different assets and timeframes.
- Two scenario paths — from equilibrium the script projects a bullish and a bearish path as multi-leg zig-zags scaled to ATR, each ending at a target. You choose what the targets represent: an ATR-based measured move (default), the nearest local levels, or the macro boundary. Measured-move targets are capped to the macro range so they always stay on the chart.
How to use it:
1. Add it to any chart and timeframe. Levels, zones and paths populate automatically.
2. Tune detection in Settings: "Macro lookback" sets how far back the ceiling/floor is measured; "Swing sensitivity" controls how strong a pivot must be to count; "Min level distance", "Zone width" and "Scenario swing size" refine spacing; "Scenario target" picks what the arrows aim at.
3. Read it as a decision map: is price nearer the ceiling or the floor, which local level must break first, and which scenario path is in play.
Optional manual mode: turn "Auto-detect" off to enter your own levels, zones and targets — useful for presenting a pre-planned idea.
Colors: red = resistance/ceiling, blue = equilibrium/current price, green = support/floor. White = projected scenario paths.
This tool is for chart visualisation and educational purposes only and is not financial advice. It does not generate buy/sell signals.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
📈 Stop guessing your settings — backtest & optimize with QuantPilot
🎁 Free to start
🎁 Free to start
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
📈 Stop guessing your settings — backtest & optimize with QuantPilot
🎁 Free to start
🎁 Free to start
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.