OPEN-SOURCE SCRIPT
Mis à jour Chan Lun Bi, Pivot & MACD Div - INVESTCHI

This indicator combines Chan Lun (Zen Theory) structure with MACD Divergence to help you spot trends and potential reversals easily.
Key Features
1. Auto Lines (Bi): Automatically connects highs and lows to visualize the market trend (Strokes).
2. Pivots (Blue Boxes): Automatically highlights consolidation zones (Zhong Shu). These areas act as key Support and Resistance.
3. Buy & Sell Signals (New!)
🟢 BUY Label: Appears when Bottom Divergence occurs (Price makes a lower low, but MACD momentum is stronger).
🔴 SELL Label: Appears when Top Divergence occurs (Price makes a higher high, but MACD momentum is weaker).
How to Use
- Trend Following: Use the connected lines to see the main direction.
- Reversals: Look for Green BUY labels at the bottom of a trend and Red SELL labels at the top.
- Breakouts: Watch how price reacts to the Blue Pivot Boxes.
Settings
- Fractal Length: Adjusts how sensitive the lines are (default is 5).
- Strict Filter: Keeps the chart clean by filtering out small noise.
Disclaimer: For educational purposes only.
Key Features
1. Auto Lines (Bi): Automatically connects highs and lows to visualize the market trend (Strokes).
2. Pivots (Blue Boxes): Automatically highlights consolidation zones (Zhong Shu). These areas act as key Support and Resistance.
3. Buy & Sell Signals (New!)
🟢 BUY Label: Appears when Bottom Divergence occurs (Price makes a lower low, but MACD momentum is stronger).
🔴 SELL Label: Appears when Top Divergence occurs (Price makes a higher high, but MACD momentum is weaker).
How to Use
- Trend Following: Use the connected lines to see the main direction.
- Reversals: Look for Green BUY labels at the bottom of a trend and Red SELL labels at the top.
- Breakouts: Watch how price reacts to the Blue Pivot Boxes.
Settings
- Fractal Length: Adjusts how sensitive the lines are (default is 5).
- Strict Filter: Keeps the chart clean by filtering out small noise.
Disclaimer: For educational purposes only.
Notes de version
Update: Auto-Colored PivotsWe made the Pivot Boxes smarter and cleaner!
Smart Colors:
- Up Trend Pivots: Now match your Up Line color (e.g., Red).
- Down Trend Pivots: Now match your Down Line color (e.g., Green).
- Why? This helps you see if the market structure is Bullish or Bearish instantly.
Cleaner Look:
- The boxes are now very transparent (only 4% visibility).
- This keeps your chart clean so you can see the candles clearly.
Notes de version
Update: English & Larger Labels- English Translation: All settings, menus, and code comments are now in English.
- Larger Signals: The font size for 1B/2S/3B buy and sell labels has been increased (to size.normal) for better readability.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.