OPEN-SOURCE SCRIPT
Hidden Divergence PRO MAX v2 (Clean)

### **Hidden Divergence PRO MAX v2 (Clean)**
**Overview**
This is a high-performance, trend-following strategy designed specifically for the Crypto market (e.g., BTCUSDT.P). It utilizes **Hidden Divergence** between Price and RSI to identify trend continuation opportunities with institutional-grade risk management.
**Key Technical Features:**
* **Zero Repaint Logic:** Implements `lookahead=barmerge.lookahead_off` and HTF candle offsets to ensure backtesting results match real-time execution.
* **Multi-Layered Filtering:**
* **Trend Filter:** Uses a Higher Timeframe (HTF) EMA 200 to ensure trades are only taken in the direction of the macro trend.
* **Volume Exhaustion:** Compares current pivot volume against the previous pivot to confirm a lack of counter-trend pressure.
* **RSI Extremes:** Filters signals based on Overbought/Oversold thresholds to increase probability.
* **Candle Confirmation:** Includes toggleable modes for **Basic** (engulfing/color) or **Pinbar** (rejection) confirmation before entry.
* **Advanced Risk Management:**
* **Dynamic Position Sizing:** Automatically calculates quantity based on a fixed risk % of equity and ATR-based stop loss.
* **Position Capping:** Includes a safety "cap" to prevent over-leveraging when volatility is low.
* **Trailing Stop:** Optional ATR-based trailing exit to capture extended trend runs.
* **Cooldown System:** Prevents over-trading by locking execution for a set number of bars after a trade.
**Best Used On:**
* **Pairs:** BTCUSDT.P, ETHUSDT.P, and major Altcoins.
* **Timeframes:** 1H or 4H for optimal signal-to-noise ratio.
**Overview**
This is a high-performance, trend-following strategy designed specifically for the Crypto market (e.g., BTCUSDT.P). It utilizes **Hidden Divergence** between Price and RSI to identify trend continuation opportunities with institutional-grade risk management.
**Key Technical Features:**
* **Zero Repaint Logic:** Implements `lookahead=barmerge.lookahead_off` and HTF candle offsets to ensure backtesting results match real-time execution.
* **Multi-Layered Filtering:**
* **Trend Filter:** Uses a Higher Timeframe (HTF) EMA 200 to ensure trades are only taken in the direction of the macro trend.
* **Volume Exhaustion:** Compares current pivot volume against the previous pivot to confirm a lack of counter-trend pressure.
* **RSI Extremes:** Filters signals based on Overbought/Oversold thresholds to increase probability.
* **Candle Confirmation:** Includes toggleable modes for **Basic** (engulfing/color) or **Pinbar** (rejection) confirmation before entry.
* **Advanced Risk Management:**
* **Dynamic Position Sizing:** Automatically calculates quantity based on a fixed risk % of equity and ATR-based stop loss.
* **Position Capping:** Includes a safety "cap" to prevent over-leveraging when volatility is low.
* **Trailing Stop:** Optional ATR-based trailing exit to capture extended trend runs.
* **Cooldown System:** Prevents over-trading by locking execution for a set number of bars after a trade.
**Best Used On:**
* **Pairs:** BTCUSDT.P, ETHUSDT.P, and major Altcoins.
* **Timeframes:** 1H or 4H for optimal signal-to-noise ratio.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。