Code Snippets
SOFLMARKET Divergence Scanner
Divergence scanner for TradingView: regular and hidden RSI/MACD divergences with strength labels, alerts and clean chart lines.
What you get: 3 files · 18.01 KB · TXT
See purchase optionsProduct description
What it is
SOFLMARKET Divergence Scanner is a Pine Script v6 indicator for TradingView. It finds regular and hidden divergences between price and RSI or MACD, then draws the divergence line and a short label on the chart.
It is built for traders who want to see where price and momentum disagree, without covering the chart with text.
What is inside
Two oscillators
- RSI (default, length 14).
- MACD (12, 26, 9, MACD line).
Four divergence types
- REG+ : price lower low, oscillator higher low.
- REG- : price higher high, oscillator lower high.
- HID+ : price higher low, oscillator lower low.
- HID- : price lower high, oscillator higher high.
Filters
- Min pivot gap (bars).
- Min price separation (ATR).
- Min oscillator separation.
- Max age of the previous pivot.
- Max 20 signals on the chart.
Significant pivots only
- A new pivot is accepted only if it passes the gap, price and oscillator filters. Minor pivots are ignored, so they cannot walk the comparison.
Visuals
- Regular divergences: solid lines.
- Hidden divergences: dotted lines.
- REG+ / HID+ : mint / cyan.
- REG- / HID- : coral / amber.
- Labels show the strength, for example "REG- 4.2".
What you get
- SOFLMARKET Divergence Scanner.txt - Pine Script v6 source code (v1.2.0)
- README.txt - installation, every input with defaults, calculations, alerts and FAQ
- LICENSE.txt - SOFLMARKET Commercial Licence v1.0
Requirements
- A TradingView account with Pine Script v6 support.
- No external libraries: the script is fully self-contained.
Installation
- Download the product files.
- In TradingView open the Pine Editor.
- Paste the supplied source into a new script.
- Save it and click "Add to chart".
- Choose RSI or MACD and adjust the filters.
Alerts
- Regular bearish divergence
- Regular bullish divergence
- Hidden bearish divergence
- Hidden bullish divergence
Notes
- Pivots are confirmed, so the indicator does not repaint. The current unconfirmed bar can still change.
- A pivot needs Pivot Length bars on each side. Lower Pivot Length for earlier signals, but expect more noise.
- The indicator visualises price data. It does not predict prices and does not promise results. Trading leveraged instruments carries a high risk of loss. This is not financial advice.
What you get
3 files · 18.01 KB
- LICENSE.txtTXT · 4.16 KB
- README.txtTXT · 6.8 KB
- SOFLMARKET Divergence Scanner.txtTXT · 7.05 KB
Code Snippets
SOFLMARKET Divergence Scanner
Divergence scanner for TradingView: regular and hidden RSI/MACD divergences with strength labels, alerts and clean chart lines.
Tags
Frequently asked questions
Do I get access instantly?
Yes. This is a digital product - you can download it right after checkout, straight from your library.
Can I use it for commercial projects?
Personal use only. Use it for yourself - not in work you sell or hand to a client - and do not resell or redistribute the file.
What's your refund policy?
You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.
What file formats and sizes will I get?
You'll download 3 files - TXT - 18.01 KB in total.
Do I get free updates?
Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.
Price
$49.00



