OPEN-SOURCE SCRIPT
업데이트됨 Bottom and Top finder [theUltimator5]

🧭 Bottom and Top Finder [theUltimator5] — Multi-Symbol Momentum Divergence Detector
The Bottom and Top Finder by theUltimator5 is a highly configurable, momentum-based indicator designed to identify potential market reversal points using a multi-symbol relative strength comparison framework. It evaluates Directional Movement Index (DMI) values from up to three correlated or macro-influential assets to determine when the current instrument may be approaching a bottom (oversold exhaustion) or a top (overbought exhaustion).
🧠 How It Works
This script computes both the +DI (positive directional index) and -DI (negative directional index) for:
It uses a logarithmic percent-change approach to normalize all movement metrics, ensuring results are scale-invariant and price-neutral — meaning it works consistently whether a stock trades at $1 or $100,000. This makes the comparison between different assets meaningful, even if they trade on different scales or volatility levels.
The indicator then:
These comparisons are aggregated using a weighted average, where you control the influence (multiplier) of each reference symbol.
🔁 Trigger Logic
The indicator generates two dynamic lines:
If the Bot Line rises above the user-defined threshold, it may signal that capitulation or oversold conditions are developing. Similarly, if the Top Line rises above its threshold, it may indicate a blow-off top or overbought selling pressure.
To avoid false positives, a second smoothing-based condition must also be met:
The line must significantly exceed its moving average, confirming momentum divergence.
When both conditions are true, the indicator highlights the background in light red (bottom alert) or green (top alert) for easy visual scanning.
🔧 Key Inputs & Customization
You can fine-tune this tool using the following parameters:
Display Options:
📈 Visual Output
🛠 Best Use Cases
This tool is ideal for:
It complements other technical indicators like RSI, MACD, Bollinger Bands, or price structure patterns (double bottoms/tops, etc.)
The Bottom and Top Finder by theUltimator5 is a highly configurable, momentum-based indicator designed to identify potential market reversal points using a multi-symbol relative strength comparison framework. It evaluates Directional Movement Index (DMI) values from up to three correlated or macro-influential assets to determine when the current instrument may be approaching a bottom (oversold exhaustion) or a top (overbought exhaustion).
🧠 How It Works
This script computes both the +DI (positive directional index) and -DI (negative directional index) for:
- The currently selected chart symbol
- Up to three user-defined reference symbols (e.g., sector leaders, macro ETFs, currencies, volatility proxies)
It uses a logarithmic percent-change approach to normalize all movement metrics, ensuring results are scale-invariant and price-neutral — meaning it works consistently whether a stock trades at $1 or $100,000. This makes the comparison between different assets meaningful, even if they trade on different scales or volatility levels.
The indicator then:
- Compares the +DI values of the reference symbols to the current symbol’s +DI → seeking bottoming signals (suggesting the current symbol is unusually weak).
- Compares the -DI values of the reference symbols to the current symbol’s -DI → seeking topping signals (suggesting the current symbol is unusually strong on the downside).
These comparisons are aggregated using a weighted average, where you control the influence (multiplier) of each reference symbol.
🔁 Trigger Logic
The indicator generates two dynamic lines:
- Bot Line (Bottom Line): Based on reference +DI vs. current +DI
- Top Line: Based on reference -DI vs. current -DI
If the Bot Line rises above the user-defined threshold, it may signal that capitulation or oversold conditions are developing. Similarly, if the Top Line rises above its threshold, it may indicate a blow-off top or overbought selling pressure.
To avoid false positives, a second smoothing-based condition must also be met:
The line must significantly exceed its moving average, confirming momentum divergence.
When both conditions are true, the indicator highlights the background in light red (bottom alert) or green (top alert) for easy visual scanning.
🔧 Key Inputs & Customization
You can fine-tune this tool using the following parameters:
- Smoothing Length: Controls how smooth or sensitive the DI values are.
- Reference Symbols: Up to 3 assets (default: RSP, HYG, DXY) — customizable for sector, macro, or inverse relationships.
- Influence Multipliers: Adjust the weight each symbol has on the overall signal.
Display Options:
- Toggle to highlight the chart background during trigger conditions.
- Toggle to display a real-time table of reference symbols and their influence levels.
📈 Visual Output
- Two plotted lines: One for bottoms and one for tops
- Dynamically colored based on how far they exceed thresholds
- Background highlights to mark trigger zones
- Optional table displaying the current reference symbol setup and weights
🛠 Best Use Cases
This tool is ideal for:
- Identifying short-term tops or bottoms using momentum exhaustion
- Spotting divergences between an asset and broader market or sector health
- Macro analysis with assets like SPY, QQQ, GME, MSFT, BTC, etc...
- Pair trading signals or market breadth confirmation/disagreement
It complements other technical indicators like RSI, MACD, Bollinger Bands, or price structure patterns (double bottoms/tops, etc.)
릴리즈 노트
Added additional functionality based on recommendations:1) Added check box to toggle on or off each line individually. If you only want to find tops, you can turn off the bottom finding line. If you only want bottoms, you can turn off the top finding line.
2) Added separate smoothing lengths and separate trigger thresholds for both top and bottom lines. This enables bottom and top triggers to react differently if the target stock behaves differently for tops and bottoms.
릴리즈 노트
Added the option to add arrows to the chart when the indicator triggers. When there is a top trigger, ↓ appears just above the bar. When there is a bottom trigger, ↑ appears just below the bar.The overlay is defaulted to off, so there is no outwards change to the user interface unless the overlay is toggled on.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.