MACDHistogram CrossoverScript Title:
MACD Histogram Zero-Cross with 9/20 EMA Overlay
Script Description:
This indicator is a combined trend and momentum tool designed to identify market shifts directly on the price chart. It tracks MACD Histogram crossovers while providing 9 and 20 Exponential Moving Average (EMA) filters for trend confirmation.
How it Works:
The script monitors the MACD Histogram (12, 26, 9) for "Zero-Cross" events and labels them for maximum clarity:
Green "L" (Long/Bullish): Appears below the candle when the Histogram moves from negative to positive. This indicates a shift toward bullish momentum.
Red "P" (Put/Bearish): Appears above the candle when the Histogram moves from positive to negative. This indicates a shift toward bearish momentum.
Trend Filter Integration:
To help filter out "fake" signals in choppy markets, the script includes two essential EMAs:
9 EMA (Blue): Fast-reacting line for short-term price action.
20 EMA (Orange): Medium-term trend line.
Trading Logic:
Bullish Setup: Look for the green "L" when price is trading above the 9 and 20 EMAs.
Bearish Setup: Look for the red "P" when price is trading below the 9 and 20 EMAs.
Exit/Caution: If an "L" or "P" appears against the EMA trend, it may signal a period of consolidation or a potential reversal.
Features:
Clean Visuals: Signal letters are sized small to avoid obstructing price action.
Real-time Overlay: Calculates MACD momentum in the background while keeping your main chart focused on price.
Versatile: Works on any timeframe (Intraday, Daily, or Weekly).
Disclaimer: This script is for educational purposes and should be used as part of a comprehensive trading strategy. Always practice proper risk management.
Candlestick analysis
Fibonacci Level-2 + Level-3 StrategyFibonacci Level-2 + Level-3 Strategy - Complete Guide
Winner from 1-Year Backtest: +5.09% Total PnL
📊 Strategy Overview
This is a SHORT-only Fibonacci projection breakdown strategy that combines two entry levels for optimal trade frequency and profitability.
Core Concept
Detect swing highs and lows
Calculate Fibonacci projections (0.618, fibb2, 1.272 extension)
Enter SHORT when price breaks key levels
Target the 1.272 Fibonacci extension
Use strict trend, volume, and delta filters
🎯 Entry Rules
Level-2 Entry (62% of trades)
Trigger: Price breaks below fibb2 (second Fibonacci projection)
Target: 1.272 extension
Win Rate: 51.0%
Avg Win: +2.13%
Contribution: +5.39% PnL
Level-3 Entry (38% of trades)
Trigger: Price breaks below swing low
Target: 1.272 extension
Win Rate: 74.2%
Avg Win: +0.44%
Contribution: -0.30% PnL
Stop Loss
Fixed: 2% above entry price
Hit rate: 36.6% of trades
🔍 Filters (Must Pass All)
Trend Filter: EMA50 < EMA200 (bearish trend required)
Volume Filter: Current volume > 1.0x 20-period average
Delta Filter: Swing delta < 30% bullish (not too much buy pressure)
📈 1-Year Backtest Results
Period: Dec 31, 2024 - Dec 31, 2025 (364 days) Data: BTC/USDT 15-minute candles from Binance
Overall Performance
Total Trades: 82 (6.8 per month)
Win Rate: 59.8%
Total PnL: +5.09%
Profit Factor: 1.08
Avg Win: +1.34%
Avg Loss: -1.83%
Largest Win: +6.33%
Largest Loss: -2.00%
Avg Trade Duration: 21.3 hours (0.9 days)
Monthly Breakdown
Month Trades L2 L3 Win% PnL Best Trade
Jan 2025 3 1 2 66.7% -1.43% +0.57%
Feb 2025 7 4 3 57.1% +6.21% ✅ +4.74%
Mar 2025 9 4 5 66.7% +7.47% ✅ +6.33%
Apr 2025 8 6 2 25.0% -10.20% ❌ +1.53%
May 2025 4 3 1 25.0% -5.54% ❌ +0.46%
Jun 2025 7 4 3 42.9% -3.41% +1.34%
Jul 2025 7 2 5 71.4% -1.08% +1.22%
Aug 2025 8 5 3 75.0% +1.31% +1.70%
Sep 2025 5 3 2 80.0% +0.63% +1.42%
Oct 2025 7 6 1 85.7% +7.48% ✅ +2.77%
Nov 2025 9 7 2 77.8% +10.60% ✅✅ +4.38%
Dec 2025 8 6 2 37.5% -6.95% ❌ +1.30%
Profitable Months: 6/12 (50%) Best Month: November (+10.60%) Worst Month: April (-10.20%)
🎲 Expected Performance
Conservative (50th Percentile)
Monthly trades: 6-7
Monthly PnL: +0.5% to +2%
Annual return: ~20-30%
Aggressive (75th Percentile - Good Months)
Monthly trades: 8-9
Monthly PnL: +5% to +10%
Annual return: ~80-200%
Reality Check
Expect 6 profitable and 6 unprofitable months
Worst months can be -10%
Best months can be +10%
Net annual: +5-15% with proper risk management
📋 Implementation Checklist
Setup
Use BTC/USDT on 15-minute timeframe
Set up swing detection (100-period rolling high/low)
Calculate EMAs (50 and 200)
Track volume MA (20-period)
Monitor taker buy/sell volume for delta
Entry Signals
Identify swing high and swing low
Calculate Fibonacci levels (0.618, fibb2, 1.272)
Watch for Level-2 breakdown (price < fibb2)
Watch for Level-3 breakdown (price < swing low)
Validate ALL filters before entry
Position Management
Enter SHORT at current price
Set stop loss at entry + 2%
Set take profit at 1.272 extension
Monitor position continuously
Close at TP, SL, or manually if needed
💰 Risk Management
Position Sizing
Account Size: $10,000
Risk per trade: 2% = $200
Entry: $90,000
Stop Loss: 2% = $91,800
Position Size: $200 / ($1,800 / $90,000) = $10,000
With 10x leverage: Use $1,000 margin
Rules
Never risk more than 2% per trade
Daily loss limit: -4% (stop trading for the day)
Weekly loss limit: -10% (review strategy)
Maximum 3 open positions at once
📊 Trade Log Template
Track every trade:
Date & Time
Level (Level-2 or Level-3)
Entry Price
Stop Loss Price
Target Price
Swing Range %
Filters Passed (trend, volume, delta)
Exit Price
PnL %
Exit Reason
Notes
🚀 Going Live
Week 1-2: Paper Trading
Set up alerts on TradingView
Track all signals
Don't take real trades
Verify strategy logic
Target: 6-8 paper trades
Week 3-4: Live (Small Size)
Start with $500-1000 positions
Risk only 1% per trade (not 2%)
Take 5-8 trades
Compare actual vs backtest
Month 2+: Scale Up
If win rate >55% and monthly PnL >0%:
Increase to 2% risk per trade
Use full position sizes
If win rate <50%:
Stay at 1% risk
Review and refine
📁 Files
Production Script
File: fibonacci_level2_level3_strategy.py
Run backtest:
python3 fibonacci_level2_level3_strategy.py
Output:
Comprehensive performance report
Monthly breakdown
Level-by-level analysis
Trade log CSV file
Trade Log
Latest: fibonacci_level2_level3_20251231_114019.csv
Contains all 82 trades with:
Entry/exit times and prices
PnL percentages
Level names (Level-2 or Level-3)
Swing characteristics
Exit reasons
Filter validations
🎯 Key Success Factors
What Makes This Work
Level-2 provides the profit (+5.39% contribution)
Decent win rate (51%)
Good avg wins (+2.13%)
Most trades come from Level-2
Level-3 adds volume (31 trades, 74% WR)
High win rate but small wins
Provides trading opportunities
Diversifies entry points
Combo smooths performance
6.8 trades/month (manageable)
Mix of consistent (L2) and high-WR (L3)
Better than either alone
What Can Go Wrong
Bad months happen (50% of months unprofitable)
April: -10.20%
May: -5.54%
Don't overtrade to recover
Small wins on Level-3
Avg +0.44% doesn't move the needle
Need Level-2 for profitability
Stop losses hit frequently (36.6%)
2% SL hits often
Must accept losses as part of strategy
🔬 Advanced Optimizations
Potential Improvements (Not Tested)
Add session filters
Only trade London (9AM-12PM Thailand)
Only trade NY AM (4:30PM-6PM Thailand)
May improve win rate
Add RSI filter
Only short when RSI < 40
Avoid shorting oversold conditions
Dynamic stop loss
Use ATR-based stops
May reduce SL hit rate
Partial exits
Close 50% at 1% profit
Let 50% run to target
Locks in some profit
⚠️ Test any changes thoroughly before going live!
📞 Support
Questions or issues? Review:
The backtest code in fibonacci_level2_level3_strategy.py
Trade logs in CSV files
Monthly breakdown for pattern analysis
✅ Final Checklist Before Live Trading
Understand both Level-2 and Level-3 entry logic
Can calculate Fibonacci levels manually
Verified all filters (trend, volume, delta)
Practiced paper trading for 2 weeks
Set up proper position sizing (2% risk max)
Defined daily/weekly loss limits
Ready to accept losses as part of trading
Won't revenge trade after losses
Will track every trade in journal
Strategy Proven: +5.09% on 1 year real data (82 trades) Ready to Trade: Yes, with proper risk management Recommended Capital: Minimum $5,000 Time Commitment: Check charts 2-3x per day
Good luck! 🚀
Geometric Cloud Bands═══════════════════════════════════════════════════════
☁️ GEOMETRIC CLOUD BANDS - Trading Guide
═══════════════════════════════════════════════════════
📌 WHAT IS IT?
The Geometric Cloud Bands indicator creates dynamic support/resistance zones using logarithmic price transformation. It helps identify trend direction and optimal entry points.
═══════════════════════════════════════════════════════
🟢 LONG ENTRY SETUP
═══════════════════════════════════════════════════════
✅ Entry Conditions:
▸ Price closes ABOVE the upper cloud band
▸ Cloud color changes to GREEN/TEAL
▸ Wait for pullback to cloud for better entry
🎯 Take Profit:
▸ Next resistance level
▸ Or use trailing stop
🛑 Stop Loss:
▸ Place below the lower cloud band
═══════════════════════════════════════════════════════
🔴 SHORT ENTRY SETUP
═══════════════════════════════════════════════════════
✅ Entry Conditions:
▸ Price closes BELOW the lower cloud band
▸ Cloud color changes to RED
▸ Wait for pullback to cloud for better entry
🎯 Take Profit:
▸ Next support level
▸ Or use trailing stop
🛑 Stop Loss:
▸ Place above the upper cloud band
═══════════════════════════════════════════════════════
📊 VISUAL GUIDE
═══════════════════════════════════════════════════════
│ 🟢 LONG ZONE (Price above cloud)
│ ↳ Look for BUY entries
─────┼─────────────────────────────
│ ☁️ CLOUD ZONE (Neutral)
│ ↳ Avoid trading here
─────┼─────────────────────────────
│ 🔴 SHORT ZONE (Price below cloud)
│ ↳ Look for SELL entries
═══════════════════════════════════════════════════════
💡 PRO TIPS
═══════════════════════════════════════════════════════
⏱️ TIMEFRAME
▸ Best on 1H, 4H, and Daily charts
▸ Higher timeframes = stronger signals
📈 TREND CONFIRMATION
▸ Thicker cloud = stronger trend
▸ Thin cloud = weak trend, be cautious
📊 VOLUME
▸ Confirm breakouts with volume spike
▸ Low volume breakout = possible fake out
⚠️ AVOID
▸ Trading when price is choppy inside cloud
▸ Ranging/sideways markets
▸ Trading against the higher timeframe trend
═══════════════════════════════════════════════════════
⚡ QUICK REFERENCE
═══════════════════════════════════════════════════════
Price > Cloud → 🟢 BULLISH → Look for LONG
Price < Cloud → 🔴 BEARISH → Look for SHORT
Price ≈ Cloud → ⚪ NEUTRAL → Wait for breakout
═══════════════════════════════════════════════════════
⭐ If you find this indicator helpful, please BOOST!
💬 Comment below with any questions
🔔 Follow for more trading tools
Bull Bear Candle Directional Pressure [FXSMARTLAB]Bull–Bear Candle Directional Pressure is a directional market analysis indicator designed to measure the effective pressure exerted by bullish and bearish candles over a given lookback period.
Rather than focusing on momentum, overbought/oversold conditions, or price velocity, it quantifies who is actually in control of price action: buyers or sellers.
🔹 Core Idea
Markets do not move solely because price changes, but because directional pressure is sustained over time.
This indicator evaluates the relative dominance of bullish versus bearish candles, while deliberately excluding neutral candles from the directional calculation.
By doing so, it isolates active participation from indecision and noise, providing a clearer picture of real directional commitment.
🔹 What the Indicator Measures
Bullish candle pressure → buying-side dominance
Bearish candle pressure → selling-side dominance
Neutral candle participation → indecision, balance, or compression
Bull and Bear percentages are normalized only on directional candles, ensuring that the resulting pressure reflects engaged market activity, not low-conviction movement.
🔹 Reading the Indicator
• Centered Histogram (Primary View)
Represents the Bull–Bear pressure balance
Positive values indicate bullish directional pressure
Negative values indicate bearish directional pressure
Greater amplitude reflects stronger dominance
This view is particularly useful for identifying:
Sustained directional control
Progressive shifts in pressure before price acceleration
Structural weakening of trends
• Alternative Views
Dual-line mode compares Bull and Bear pressure directly
Area mode visualizes dominance over time
An optional Neutral pressure line highlights periods where directional participation fades, often preceding consolidation, range expansion, or regime change.
DIVER V1**Regular Divergence Alert Indicator (RSI-based)**
This indicator detects **Regular Bullish and Regular Bearish divergence** between price and RSI to signal potential trend reversals.
It uses **pivot structure**, **minimum bar gap**, and optional **noise filters** (EMA trend context, ADX strength filter, volume weakening, and candle body filter) to reduce false signals.
Designed to be **simple, clean, and non-repainting**, it provides **clear alerts** and optional visual lines/labels for practical trading use.
Swing High Low Detector + 4 EMA (buy Coi)Indicator Name: Swing High-Low Detector (Close-Confirmed) & 4 EMA Cross
Key Features:
Confirmed Swing Points: Identifies technical Swing Highs and Lows based on a user-defined strength (default: 5 bars). Unlike standard indicators, it requires a "Close Confirmation":
Swing High: The 5th bar after the peak must close below the peak bar's close.
Swing Low: The 5th bar after the valley must close above the valley bar's close.
Dynamic Support/Resistance: Automatically draws horizontal lines from swing points. Current active levels are thick/solid, while historical levels are thin/dotted.
Liquidity Sweep Option: Optional setting to automatically delete past levels once price breaks through them (sweeping liquidity).
4-EMA Trend Filter: Includes 8, 13, 21, and 55 EMAs.
Crossover Signals: Generates "B" (Buy) and "S" (Sell) labels when the shorter EMAs (8, 13, 21) cross above or below the 55 EMA baseline.
777 confluencehi, very awsome very nice indicator for people who dont know how to trade like myself :)
Classic Chartism-Market Structure- Support.ResistanceClassic Chartism – Market Structure + Support & Resistance
This indicator is designed for traditional chart-based technical analysis, relying exclusively on price action and market structure, without the use of oscillators or lagging indicators.
The script automatically detects significant swing highs and swing lows using confirmed pivots and classifies price structure according to classic market structure notation:
HH (Higher High)
HL (Higher Low)
LH (Lower High)
LL (Lower Low)
Based on these swings, the indicator plots horizontal Support & Resistance (SR) levels, representing historically significant areas of supply and demand. These levels remain active until invalidated by price, providing a clear and objective market context.
The indicator does not repaint once a swing is confirmed, making it suitable for real-time analysis and discretionary trading decisions. It performs well across cryptocurrencies, futures, indices, and equities, and is particularly useful for trend identification, pullback entries, and structure-based risk management.
Bot Scalping XAUUSD(Volatilidad + TP Parcial + Modo Intermedio)Probar un nuevo bot.
En oro dando entradas para scalping con TP, SL Y BE
Gold Bullish Order Blocks - 3 Candle Confirmation after the OBBest Order blocks finder created by Marky using claude AI.
ICT IRON-CLAD: Fixed Sessionsall sessions and killzones marked out with colours and lables as used by all traders
ICT Visible Center-Label CISD & FVGsThis indicator provides a clean, institutional-grade view of market shifts and liquidity gaps, specifically optimized for ICT (Inner Circle Trader) concepts.
Core Components
CISD (+/-): Identifies a "Change in State of Delivery." A (+) indicates a bullish shift, while a (-) indicates a bearish shift. These appear as fixed black lines with labels that delete automatically once price breaches the level.
Multi-Timeframe FVGs: Automatically plots Fair Value Gaps from the 5m, 15m, 1H, and 4H timeframes simultaneously.
Center-Locked Labels: Timeframe labels (e.g., "1H") are centered within the gaps, making them easy to identify without scrolling back through price history.
Auto-Cleaning Logic: To keep your chart clutter-free, gaps and CISD levels are instantly removed from the screen the moment they are mitigated (filled) by price.
ICT Clean CISD & Mitigated MTF FVGs Clean CISD & MTF FVGs
Minimalist Institutional Order Flow Tool
Key Features:
CISD (Change in State of Delivery): Marks the first sign of an order flow shift. Displayed as a clean black line + label (no bulky boxes).
High-Probability FVGs: Scans 15m, 1h, and 4h timeframes for gaps.
Displacement Filter: Only shows "Crucial" gaps. Tiny, insignificant imbalances are automatically filtered out using an ATR threshold.
Auto-Cleaning Logic: Boxes are automatically deleted once price fills or closes through them, keeping your chart 100% clean.
Touch/Overlap Alert (12M/6M/3M/1M)Wick or price action connection...This indicator is to alert you when price action connects for an entry.
Wyckoff Map (TR + S/D + Springs/Upthrusts)Wyckoff Map is a context-aware market structure overlay that visualizes key Wyckoff concepts directly on the price chart — without repainting and without relying on black-box signals.
Instead of generating isolated buy/sell alerts, this tool maps the environment in which price is operating, helping traders understand where supply and demand are interacting, where liquidity is being swept, and which phase the market is likely in.
What the script shows
Trading Range (TR)
Automatically detects a recent trading range
Displays the range as a shaded box for immediate context
Supply & Demand Zones
Demand zone near the range low (buyers’ area)
Supply zone near the range high (sellers’ area)
Zones adapt dynamically as the range evolves
Wyckoff Events
Spring: downside liquidity sweep followed by a reclaim (potential accumulation behavior)
Upthrust: upside liquidity sweep followed by failure (potential distribution behavior)
Events are filtered by range context and optional volume confirmation
Market Phase (Heuristic)
Labels the current environment as:
Accumulation
Distribution
Neutral Trading Range
Markup / Markdown
Phase is inferred from price position within the range and moving-average slope
Legend & Visual Guidance
A floating legend explains all zones and events
Designed to remain readable during replay and live trading
How to use
This script is not a standalone trading strategy.
It is best used to:
Avoid chasing breakouts into supply
Identify failed breakdowns near demand
Recognize accumulation vs distribution behavior
Add context to lower-timeframe entries
Combine with your own execution model (structure, risk, or order flow)
Higher-timeframe context is strongly recommended.
⚙️ Customization
You can adjust:
Trading range length
Zone thickness (ATR-based)
Pivot sensitivity
Volume confirmation
Event confirmation strictness
Visibility of zones, events, phase labels, and legend
Disclaimer
Wyckoff analysis is contextual and probabilistic, not deterministic.
This tool visualizes structural behavior — it does not predict future price.
Use proper risk management.
TL;DR (Short Description)
A non-repainting Wyckoff market structure overlay that maps trading ranges, supply/demand zones, Springs, Upthrusts, and accumulation/distribution phases directly on the chart.
Multi-Time Period Charts 1W CustomThe Multi-Time Period Charts (MTPC) indicator displays data from higher-timeframe (HTF) bars directly on the chart. It draws color-coded boxes representing HTF ranges based on standard prices or Heikin Ashi values, enabling multi-timeframe bar analysis without the need to change the chart's timeframe or type.
Price-Time Confluence Engine
Price-Time Confluence Engine is a dual-layer market analysis indicator designed to synchronize price-based targets with time-based momentum projections, helping traders anticipate potential reaction points, reversals, and momentum shifts.
The indicator combines adaptive ATR price targets with deviation context on the chart, alongside a forward-projected Stochastic RSI structure in a dedicated pane.
🔹 Core Components
1️⃣ Adaptive Price Targets (Chart Overlay)
On every new candle, a new ATR-based price target is generated automatically.
The target updates dynamically with live price movement until the candle closes.
Targets are directionally aligned with the current candle’s momentum.
A HIT label is displayed when price reaches the active target during the candle.
Behavioral Insight
If a target fails to be hit and remains red after the next candle forms, this behavior has shown a tendency to correlate with short-term swing reversals, signaling potential exhaustion or loss of momentum.
2️⃣ Mean & Deviation Framework
A configurable mean (moving average) is plotted with up to four deviation bands.
Deviation bands provide contextual boundaries for price targets and help visually frame volatility expansion or compression.
An optional filter allows HIT labels to require alignment with the first deviation band.
3️⃣ Stochastic RSI Projection (Indicator Pane)
The lower pane displays live Stochastic RSI %K and %D values.
A historical Stoch RSI pattern is cloned and projected forward in time, creating a time-based momentum forecast.
The projection highlights anticipated crossing points between %K and %D before they occur.
A single dynamic “Projected Cross” label marks the next expected crossing location.
Vertical reference lines and directional arrows help visualize projected momentum shifts.
Important Note on Timeframes
The projection logic is optimized for the Daily timeframe.
Other timeframes may require different lookback settings for meaningful alignment.
Price-based targets and deviation logic function on any timeframe.
🔧 User Controls
ATR length and multiplier
Mean length and deviation depth
Number of deviation bands displayed
Label visibility and history limits
Projection visibility and forward shift
Optional normalization of projected momentum
Visual toggles for arrows, vertical lines, and labels
📈 How to Use
Observe the active price target forming with each new candle.
Watch whether price hits or fails to hit the target before the next candle.
Use deviation bands to contextualize where targets sit within volatility structure.
Reference the Projected Cross in the lower pane to anticipate potential momentum transitions.
Look for confluence between unhit targets and projected momentum shifts as potential inflection zones.
⚠️ Disclaimer
This indicator is a visual analysis and decision-support tool.
It does not generate trade signals and should be used in conjunction with proper risk management and additional market context.
Opening Range BoxOPENING RANGE BOX + LEVELS (RTH)
OVERVIEW
This indicator draws the Opening Range for the U.S. Regular Trading Hours session starting at 9:30 AM New York time. It plots the Opening Range High, Low, and Midpoint, and can extend those levels for the rest of the session. It also displays the Opening Range size in points and ticks.
WHAT IT DRAWS
• Opening Range box for the first N minutes of RTH (ex: 5, 10, 15)
• OR High (ORH)
• OR Low (ORL)
• OR Midline (midpoint of ORH/ORL)
• Opening Range value label (range in points + ticks)
KEY FEATURES
• Time-anchored drawings (bar_time) so levels stay accurate on any intraday timeframe
• Configurable Opening Range length in minutes
• Configurable box fill/border colors
• Independent styling for OR High / OR Low / Midline (color, width, line style)
• Line extension modes:
Line extension modes
- To RTH Close
- Right Forever
- For N Minutes
- None
Optional label placement to the LEFT of the Opening Range so it doesn’t block new candles
Option to keep previous sessions’ Opening Ranges visible for context
BEST FOR
• Futures: ES / NQ / MNQ (and other RTH-based products)
• Intraday stocks and ETFs
• OR breakout, rejection/fade, and mean reversion workflows
NOTES
• Intended for intraday charts
• Opening Range is calculated strictly inside the selected time window (no extra bars)
• Session is America/New_York, 09:30–16:00
Opens and RangesDisplays:
- Daily, Weekly, Monthly and Yearly opens
- High / Low / Midline(EQ) of previous day and previous week






















