ZynAlgo S&R Pro

Important: This is a visual analysis tool. It does not open, manage, or close positions. It is provided for educational and informational purposes only.
How it works (under the hood)
Swing detection (confirmed):
The script uses ta.pivothigh/ta.pivotlow with symmetric left/right bars defined by Left bar & Right bar. A swing is considered only after the bar is confirmed.
Swing markers:
When enabled, confirmed swing highs/lows are marked with small circles above/below bars. The offset equals the left/right length to align with the confirmed pivot location.
Liquidity lines:
On each swing high, the script ends (anchors) the previous buy-side line at the pivot’s bar, then creates a new dotted/dashed/solid horizontal line at that swing price and extends it forward.
On each swing low, it does the same for sell-side lines.
Between swing events, the most recent buy-side and sell-side lines continue extending to the current bar.
Alerts:
Swing High / Swing Low Created — fires on confirmation of a new swing.
Buy Side Liquidity Raid — when price crosses over the most recent swing-high line.
Sell Side Liquidity Raid — when price crosses under the most recent swing-low line.
Optional candle coloring:
If enabled, candles can be recolored by comparing current close to the previous close, with independent toggles for body, borders, and wicks.
Inputs & recommended tooltips (copy-friendly)
Swing High/Low Setting
Left bar & Right bar (len_l)
Tooltip: “Bars to the left/right required to confirm a pivot. Larger values = fewer but stronger swing points (default: 20).”
Show Swing High Swing Low (flg_shsl)
Tooltip: “Plot small circles at confirmed swing highs (red) and swing lows (blue).”
(Note: i_labelcolor_price is present but unused in visible drawings—safe to ignore or reserve for future use.)
Liquidity Pools Settings
Show Liquidity Pools (flg_lq)
Tooltip: “Draw a horizontal line at each confirmed swing. The line extends forward until the next swing of the same type appears.”
Line Width (i_width)
Tooltip: “Thickness of liquidity lines (1–6).”
Line Style (i_linestyle)
Tooltip: “Choose solid, dashed, or dotted style for liquidity lines.”
Buy Side Liquidity Color (i_linecolor_bs)
Tooltip: “Color for swing-high liquidity lines (default: red).”
Sell Side Liquidity Color (i_linecolor_ss)
Tooltip: “Color for swing-low liquidity lines (default: blue).”
Candles
Color bars based on previous close (use_prev_close)
Tooltip: “If enabled, candle colors are based on whether close > previous close (Up) or not (Down).”
Up Color / Down Color
Tooltip: “Colors used for up vs. down determination.”
Body / Borders / Wick (apply toggles)
Tooltip: “Choose which candle parts to recolor.”
Alerts available (names as shown in the Create Alert dialog)
Swing High
Triggers when a new swing high is confirmed. Select this condition to be notified about newly formed swing highs.
Swing Low
Triggers when a new swing low is confirmed.
Buy Side Liquidity Raid
Triggers when price crosses above the most recent swing-high liquidity line (crossover(high, LSH)).
Sell Side Liquidity Raid
Triggers when price crosses below the most recent swing-low liquidity line (crossunder(low, LSL)).
Quick start (suggested workflow)
Add to chart: Apply ZynAlgo S&R Pro to your symbol and timeframe.
Choose sensitivity: Adjust Left bar & Right bar. Higher values focus on more significant swing points; lower values react faster.
Toggle visuals:
Enable Show Swing High Swing Low to see swing markers.
Enable Show Liquidity Pools to draw/extend liquidity lines. Pick the line style, width, and colors you prefer.
(Optional) Candle colors: Turn on Color bars based on previous close and choose which parts to color.
Set alerts:
Open Create Alert → Condition: ZynAlgo S&R Pro → choose Swing High, Swing Low, Buy Side Liquidity Raid, or Sell Side Liquidity Raid as needed.
Practical notes & limitations
Confirmed swings only: Pivots are plotted after confirmation (i.e., once the required left/right bars are complete). This avoids repainting the pivot location.
One active line per side: Only the most recent buy-side and sell-side liquidity lines extend to the right; prior lines are ended when a new swing of the same side appears.
Timeframes & instruments: Parameter sensitivity can vary across markets/timeframes. Consider tuning Left bar & Right bar to match volatility.
No orders are placed: This indicator does not execute trades or manage positions.
Compliance & fair-use guidance
No performance promises: This tool does not guarantee profitable results and should not be described as “signals,” “guaranteed,” “best,” or similar claims. It is an analysis aid that visualizes historical swing points, liquidity levels, and optional candle coloring.
Educational intent: Use it to support your chart review and alerting workflow; combine with your own judgment and risk controls.
Alerts are informational: Alerts reflect the conditions described above and do not constitute financial advice.
Change log (summary of core features)
Swing detection with configurable left/right bars; optional swing markers.
Auto-extending buy-side/sell-side liquidity lines with customizable style/width/colors.
Four alert conditions (new swing highs/lows and liquidity raids).
Optional candle recoloring with separate toggles for body/borders/wicks.
Dynamic Line Management
Unlike static support/resistance tools, ZynAlgo S&R Pro automatically manages the lifecycle of each liquidity line — removing outdated levels the moment new structure forms.
This ensures the chart always reflects the most relevant active zones.
Structure + Liquidity Integration
By combining price structure (swing points) with liquidity visualization, it bridges the gap between classic S&R and modern liquidity-based interpretation — a fusion rarely found in lightweight indicators.
Noise-Free Design
The script plots only the most essential elements: confirmed swings, active liquidity lines, and optional candle color context.
It avoids overlapping labels, text clutter, or unnecessary metrics — ideal for traders who prefer clarity and precision.
Non-Repainting Logic
All pivots are confirmed only after the required right-side bars are closed, ensuring all swing points and lines remain fixed once plotted.
This gives confidence in backtesting and visual analysis without misleading signals.
Lightweight & Efficient
Despite tracking multiple dynamic lines, the algorithm is optimized for performance (using arrays and efficient bar updates), making it suitable for both high- and low-timeframe analysis.
Adaptable Across Market Types
Equally applicable to forex, crypto, indices, and commodities, the algorithm’s sensitivity parameter lets users adjust to volatility differences between instruments.
Purely Analytical
The tool does not provide trade signals or predictions.
Its design supports price-action interpretation, liquidity mapping, and structure confirmation — helping traders read context rather than react to noise.
🔶 RISK DISCLAIMER
Trading is risky & most day traders lose money. All content, tools, scripts, articles, & education provided by ZynAlgo are purely for informational & educational purposes only. Past performance does not guarantee future results.
Yalnızca davetli komut dosyası
Bu komut dosyasına yalnızca yazar tarafından onaylanan kullanıcılar erişebilir. Kullanmak için izin istemeniz ve almanız gerekir. Bu genellikle ödeme yapıldıktan sonra verilir. Daha fazla ayrıntı için aşağıdaki yazarın talimatlarını izleyin veya doğrudan ZynAlgo ile iletişime geçin.
TradingView, yazarına tamamen güvenmediğiniz ve nasıl çalıştığını anlamadığınız sürece bir komut dosyası için ödeme yapmanızı veya kullanmanızı TAVSİYE ETMEZ. Ayrıca topluluk komut dosyalarımızda ücretsiz, açık kaynaklı alternatifler bulabilirsiniz.
Yazarın talimatları
Feragatname
Yalnızca davetli komut dosyası
Bu komut dosyasına yalnızca yazar tarafından onaylanan kullanıcılar erişebilir. Kullanmak için izin istemeniz ve almanız gerekir. Bu genellikle ödeme yapıldıktan sonra verilir. Daha fazla ayrıntı için aşağıdaki yazarın talimatlarını izleyin veya doğrudan ZynAlgo ile iletişime geçin.
TradingView, yazarına tamamen güvenmediğiniz ve nasıl çalıştığını anlamadığınız sürece bir komut dosyası için ödeme yapmanızı veya kullanmanızı TAVSİYE ETMEZ. Ayrıca topluluk komut dosyalarımızda ücretsiz, açık kaynaklı alternatifler bulabilirsiniz.