OPEN-SOURCE SCRIPT
Cập nhật Timbuktu V - Black hole

Timbuktu V - Black Hole is a momentum and trend-following technical indicator designed to identify high-volatility breakout phases and FOMO-driven moves. The algorithm pinpoints the exact moments when price breaks out of historical ranges with a drastic spike in volume and strong RSI backing, capturing high-velocity market expansions (the "Black Hole" effect).
The indicator highlights bars and plots visual signals directly on your chart when extreme market conditions are met. This is ideal for breakout traders, momentum scalpers, and those trading highly volatile assets (Crypto, Forex, or Equities).
How It Works (Quantitative Logic)
To filter out market noise and false breakouts, the script combines 4 key confirmation factors before triggering a signal:
Trend Context: It uses an EMA (21-period by default) to determine the macro direction. Long signals are only triggered above it, and Short signals below it.
Range Breakout: Price must break the highest high or lowest low of the last 100 periods (Lookback input). It does not trade ranges; it trades explosive expansions.
Volume Confirmation (Smart Money): It requires the breakout bar's volume to exceed its short-term volume moving average (2-period SMA) by at least 30% (x1.3).
Momentum Strength (RSI): The RSI must be in the overbought zone (>65) for Longs or oversold zone (<35) for Shorts, validating genuine aggressive buying/selling pressure.
Key Features
Dynamic FOMO Candles: Candles that trigger the signal change color (yellow by default) to visually alert you to the volatility explosion.
Net Percentage Calculation: The indicator automatically measures the percentage range of the breakout candle, subtracts a custom operational fee (Cost input), and projects the net percentage directly on the chart using dynamic labels.
Clean Visual Signals (plotshape): Sleek diamond icons plotted above/below the candles for quick execution and backtesting visualization.
Native Alerts Ready: Includes 3 built-in alert conditions (Black Hole Long, Black Hole Short, and a combined alert) so you can easily automate your strategy or receive instant mobile/webhook notifications.
Customizable Settings
EMA Trend (21): Adjusts the core trend-filtering line.
RSI (14): Changes the sensitivity of the strength oscillator.
Volume MA (2): The moving average period used to detect the volume spike (tweak it to look for sustained volume or pure immediate bursts).
Lookback HH/LL (100): The lookback window used to define what qualifies as a major historical high or low.
Cost (0.04): A percentage offset to simulate fees or slippage, providing a more realistic net movement display.
Trading Tips
Timeframes: Highly effective on 5m, 15m, and 1h charts to catch intra-day breakout continuations.
Risk Management: Because this strategy capitalizes on FOMO/Volatility, consider placing your Stop Loss just below the EMA 21 or at the low/high of the breakout candle itself.
The indicator highlights bars and plots visual signals directly on your chart when extreme market conditions are met. This is ideal for breakout traders, momentum scalpers, and those trading highly volatile assets (Crypto, Forex, or Equities).
How It Works (Quantitative Logic)
To filter out market noise and false breakouts, the script combines 4 key confirmation factors before triggering a signal:
Trend Context: It uses an EMA (21-period by default) to determine the macro direction. Long signals are only triggered above it, and Short signals below it.
Range Breakout: Price must break the highest high or lowest low of the last 100 periods (Lookback input). It does not trade ranges; it trades explosive expansions.
Volume Confirmation (Smart Money): It requires the breakout bar's volume to exceed its short-term volume moving average (2-period SMA) by at least 30% (x1.3).
Momentum Strength (RSI): The RSI must be in the overbought zone (>65) for Longs or oversold zone (<35) for Shorts, validating genuine aggressive buying/selling pressure.
Key Features
Dynamic FOMO Candles: Candles that trigger the signal change color (yellow by default) to visually alert you to the volatility explosion.
Net Percentage Calculation: The indicator automatically measures the percentage range of the breakout candle, subtracts a custom operational fee (Cost input), and projects the net percentage directly on the chart using dynamic labels.
Clean Visual Signals (plotshape): Sleek diamond icons plotted above/below the candles for quick execution and backtesting visualization.
Native Alerts Ready: Includes 3 built-in alert conditions (Black Hole Long, Black Hole Short, and a combined alert) so you can easily automate your strategy or receive instant mobile/webhook notifications.
Customizable Settings
EMA Trend (21): Adjusts the core trend-filtering line.
RSI (14): Changes the sensitivity of the strength oscillator.
Volume MA (2): The moving average period used to detect the volume spike (tweak it to look for sustained volume or pure immediate bursts).
Lookback HH/LL (100): The lookback window used to define what qualifies as a major historical high or low.
Cost (0.04): A percentage offset to simulate fees or slippage, providing a more realistic net movement display.
Trading Tips
Timeframes: Highly effective on 5m, 15m, and 1h charts to catch intra-day breakout continuations.
Risk Management: Because this strategy capitalizes on FOMO/Volatility, consider placing your Stop Loss just below the EMA 21 or at the low/high of the breakout candle itself.
Phát hành các Ghi chú
Cost updatyewPhát hành các Ghi chú
Note: Candlesticks with the Black Hole signal act as magnets for the price.Phát hành các Ghi chú
Color differentiation is incorporated for negative profit signals.Phát hành các Ghi chú
Color differentiation is incorporated for negative profit signals. v2Phát hành các Ghi chú
Color differentiation is incorporated for negative profit signals. v3Phát hành các Ghi chú
Color differentiation is incorporated for negative profit signals. v4Phát hành các Ghi chú
Color differentiation is incorporated for negative profit signals. v6Phát hành các Ghi chú
lookback updateMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.