OPEN-SOURCE SCRIPT
Aktualisiert Batoot Algo Pure

Batoot Algo (Pure Analysis Mode)
Indicator Overview
Batoot Algo is an advanced technical analysis indicator based on:
Price Action and geometric chart patterns
Higher Timeframe (HTF) trend filtering
Volume confirmation
Breakout & Retest logic
Head & Shoulders pattern detection
Analysis-only indicator. No Buy/Sell labels on the chart. Alerts and Dashboard only.
The goal is clean charts and smarter trading decisions.
---
Entry Modes
Aggressive (Breakout)
Immediate entry on breakout
Requires:
Confirmed breakout
High volume
Optional trend alignment
Conservative (Retest)
Breakout → Wait for retest → Confirmation candle
Reduces false signals
Suitable for patient trading
---
HTF Trend Filter
Uses EMA crossover on higher timeframe:
EMA 50
EMA 200
EMA50 > EMA200 → Bullish EMA50 < EMA200 → Bearish
Filter can be enabled or disabled in settings.
---
Price Patterns Detected
Automatically detects and draws:
Bullish / Bearish Flags
Channels
Triangles / Pennants
Rising Wedge (Bearish)
Falling Wedge (Bullish)
The area between support and resistance lines is dynamically filled based on the pattern.
---
Yellow Candle (High Volume)
Yellow candles indicate High Volume.
Triggered when:
Current candle volume >= Average volume of last 20 candles × volume multiplier
Default multiplier: 1.5
Confirms strong breakouts. Not a standalone entry signal.
---
Head & Shoulders Detection
Supports:
Head & Shoulders (Bearish)
Inverse Head & Shoulders (Bullish)
Neckline drawn automatically. Breakout validated with volume. Pattern status shown in Dashboard.
---
Dashboard
Displays:
Entry Mode (Aggressive / Conservative)
HTF Trend
Current Pattern
Head & Shoulders Status
Market Status: ENTRY BUY, ENTRY SELL, WAIT RETEST, SCANNING
---
Alerts
Alerts trigger only when:
Pattern confirmed
Breakout / Retest logic satisfied
High volume confirmed
Trend filter (if enabled) passes
No trade labels plotted on chart.
---
License & Attribution
Licensed under Creative Commons Attribution 4.0 (CC BY 4.0)
Free to use and modify. Attribution required. Removing or changing the author name is not allowed.
---
This indicator is for technical analysis purposes only and is not financial advice. Always use proper risk management.
---
Clean chart, smart analysis, better trading decisions.
Indicator Overview
Batoot Algo is an advanced technical analysis indicator based on:
Price Action and geometric chart patterns
Higher Timeframe (HTF) trend filtering
Volume confirmation
Breakout & Retest logic
Head & Shoulders pattern detection
Analysis-only indicator. No Buy/Sell labels on the chart. Alerts and Dashboard only.
The goal is clean charts and smarter trading decisions.
---
Entry Modes
Aggressive (Breakout)
Immediate entry on breakout
Requires:
Confirmed breakout
High volume
Optional trend alignment
Conservative (Retest)
Breakout → Wait for retest → Confirmation candle
Reduces false signals
Suitable for patient trading
---
HTF Trend Filter
Uses EMA crossover on higher timeframe:
EMA 50
EMA 200
EMA50 > EMA200 → Bullish EMA50 < EMA200 → Bearish
Filter can be enabled or disabled in settings.
---
Price Patterns Detected
Automatically detects and draws:
Bullish / Bearish Flags
Channels
Triangles / Pennants
Rising Wedge (Bearish)
Falling Wedge (Bullish)
The area between support and resistance lines is dynamically filled based on the pattern.
---
Yellow Candle (High Volume)
Yellow candles indicate High Volume.
Triggered when:
Current candle volume >= Average volume of last 20 candles × volume multiplier
Default multiplier: 1.5
Confirms strong breakouts. Not a standalone entry signal.
---
Head & Shoulders Detection
Supports:
Head & Shoulders (Bearish)
Inverse Head & Shoulders (Bullish)
Neckline drawn automatically. Breakout validated with volume. Pattern status shown in Dashboard.
---
Dashboard
Displays:
Entry Mode (Aggressive / Conservative)
HTF Trend
Current Pattern
Head & Shoulders Status
Market Status: ENTRY BUY, ENTRY SELL, WAIT RETEST, SCANNING
---
Alerts
Alerts trigger only when:
Pattern confirmed
Breakout / Retest logic satisfied
High volume confirmed
Trend filter (if enabled) passes
No trade labels plotted on chart.
---
License & Attribution
Licensed under Creative Commons Attribution 4.0 (CC BY 4.0)
Free to use and modify. Attribution required. Removing or changing the author name is not allowed.
---
This indicator is for technical analysis purposes only and is not financial advice. Always use proper risk management.
---
Clean chart, smart analysis, better trading decisions.
Versionshinweise
**Batoot Algo (Pure Analysis Mode)**Batoot Algo is a technical analysis indicator designed for educational and analytical purposes only. It does NOT provide financial advice.
The indicator focuses on clean charts and smart market analysis using:
• Price Action & geometric chart patterns
• Higher Timeframe (HTF) trend filtering
• Volume confirmation
• Breakout & Retest logic
• Head & Shoulders pattern detection
**Analysis-only indicator.**
No automatic trade execution.
No strategy backtesting.
No guaranteed signals.
---
**Entry Modes**
**Aggressive (Breakout)**
• Immediate breakout-based confirmation
• Requires high volume
• Optional HTF trend alignment
**Conservative (Retest)**
• Breakout → Retest → Confirmation candle
• Reduces false signals
• Suitable for patient traders
---
**HTF Trend Filter**
Uses EMA crossover on a higher timeframe:
• EMA 50
• EMA 200
* EMA50 > EMA200 → Bullish
* EMA50 < EMA200 → Bearish
The trend filter can be enabled or disabled from settings.
---
**Price Patterns Detected**
Automatically detects and draws:
• Bullish / Bearish Flags
• Channels
• Triangles / Pennants
• Rising Wedge (Bearish)
• Falling Wedge (Bullish)
The area between support and resistance lines is dynamically filled based on the detected pattern.
---
**High Volume Candles**
High volume candles are highlighted with directional colors for better visibility:
• **Bullish High Volume** → Walnut (Brown)
• **Bearish High Volume** → Yellow
A candle is considered High Volume when:
Current volume ≥ Average volume of last 20 candles × Volume Multiplier
(Default multiplier: 1.5)
*High volume is used for confirmation only and is NOT a standalone signal.*
---
**Head & Shoulders Detection**
Supports:
• Head & Shoulders (Bearish)
• Inverse Head & Shoulders (Bullish)
The neckline is drawn automatically. Breakouts are validated with volume. Pattern status is displayed in the Dashboard.
---
**Dashboard**
Displays:
• Entry Mode (Aggressive / Conservative)
• HTF Trend
• Current Pattern
• Head & Shoulders Status
• Market Status (ENTRY / WAIT RETEST / SCANNING)
All status information is shown in the dashboard to keep charts clean.
---
**Alerts**
Alerts trigger only when:
• A pattern is confirmed
• Breakout or Retest logic conditions are satisfied
• High volume is confirmed
• HTF trend filter (if enabled) passes
No Buy/Sell labels are plotted on the chart.
---
**⚠️ Note on Repainting**
Chart patterns (Geometry lines) are based on ZigZag pivots. These lines naturally adjust as new highs or lows are formed. However, all signals and alerts are generated based on confirmed logic and closed bars.
---
**License & Attribution**
Licensed under Creative Commons Attribution 4.0 (CC BY 4.0).
Free to use, modify, and share with proper credit to the original author.
---
*This indicator is for technical analysis purposes only. Always apply proper risk management.*
Versionshinweise
Major Update v2.0:1. Added Dynamic HTF Support & Resistance Zones (Box Style).
2. Added Supertrend Filter logic (Hides counter-trend S&R zones).
3. Added Master Switch to toggle Zones ON/OFF.
4. Merged with existing Pattern Detection for a complete trading system.
───────────────────────
**Batoot Algo v2.0: Geometry + Institutional HTF Zones**
We are proud to introduce the biggest update to Batoot Algo yet. Version 2.0 transforms this tool from a pure pattern scanner into a complete **Market Structure System**.
This update combines advanced Geometric Pattern Detection with Institutional Higher-Timeframe (HTF) Support & Resistance Zones, giving you the perfect confluence for high-probability trades.
---
### 🔥 NEW in v2.0: The "Smart Structure" Engine
We have added a completely independent engine that runs alongside the pattern detector:
**1. Dynamic HTF Zones (Support & Resistance)**
* The indicator now automatically calculates and draws major Support and Resistance zones based on a higher timeframe of your choice (e.g., viewing 4H zones while trading on a 15m chart).
* **Why?** To help you identify where the "Smart Money" is waiting.
* **Visuals:** Zones are drawn as shaded boxes (Red for Resistance, Blue for Support) to represent areas of interest rather than thin lines.
**2. Smart Trend Filter (Supertrend Integration)**
* We introduced a unique filtering logic for S&R zones based on the Supertrend.
* **Bullish Trend:** The script automatically *hides* Resistance zones. *Goal:* Focus on Blue Zones (Support) for buy entries and breakouts.
* **Bearish Trend:** The script *hides* Support zones. *Goal:* Focus on Red Zones (Resistance) for shorts.
* *Note:* This can be toggled ON/OFF in the settings.
**3. Master Control Switch**
* Want to keep it simple? A new "ON/OFF" switch allows you to instantly enable or disable the entire S&R system, returning to the classic clean Batoot view.
---
### 🚀 Core Features (Classic Batoot Logic)
**1. Geometric Pattern Recognition**
Automatically detects and draws valid price action patterns based on ZigZag pivots:
* 🚩 Bullish / Bearish Flags
* ⚌ Channels
* ▶ Triangles / Pennants
* ↗ Rising Wedge (Bearish)
* ↘ Falling Wedge (Bullish)
**2. Head & Shoulders Detection**
* **Regular:** Detects bearish tops with automatic neckline projection.
* **Inverse:** Detects bullish bottoms.
* *Logic:* Validates symmetry and shoulder tolerance percentages.
**3. Volume Confirmation (The "Walnut" & "Yellow" Candles)**
High volume candles are highlighted to confirm breakouts:
* 🟤 **Walnut (Brown):** Bullish High Volume (Buying Pressure).
* 🟡 **Yellow:** Bearish High Volume (Selling Pressure).
* *Calculation:* Volume > Average(20) * Multiplier (Default 1.5).
**4. Entry Modes (Strategy)**
* **🛡 Conservative (Retest):** Signals entry only after the price breaks out, waits, and retests the structure (Safest).
* **⚡ Aggressive (Breakout):** Signals immediately upon a confirmed breakout candle.
---
### ⚙️ How to Trade with v2.0
**The "Confluence" Setup:**
1. **Check the Zones:** Look for a **Blue HTF Support Zone** below the price.
2. **Wait for the Pattern:** Wait for Batoot to detect a **Bullish Flag** or **Falling Wedge** forming right above that support.
3. **Volume Spike:** Look for a **Walnut (Brown)** candle breaking the pattern roof.
4. **Trend Filter:** Ensure the HTF Trend (EMA/Supertrend) aligns with your direction.
---
### ⚠️ Disclaimer & License
* **Educational Use Only:** This indicator is designed for technical analysis assistance and does not constitute financial advice. Always use proper risk management.
* **Repainting:** Geometric lines (ZigZag based) naturally adjust as new highs/lows form. However, all **Signals** and **Alerts** are based on confirmed closed bars and strictly defined logic.
* **License:** CC BY 4.0. You are free to use and modify, provided credit is given to the original author.
---
*Clean Charts. Smart Analysis. Better Decisions.*
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.