Overnight Gap Detector Overnight Gap Detector - 4H Body to Body
What it detects:
The indicator finds overnight gaps - i.e., gaps between trading days based on 4-hour (4H) candle data.
Gap Definition (Wick to Wick):
Gap UP: When yesterday's 4H candle's highest point (high) is BELOW today's 4H candle's lowest point (low) - there's "air" between them
Gap DOWN: When yesterday's 4H candle's lowest point (low) is ABOVE today's 4H candle's highest point (high)
Rectangle Drawing (Body to Body):
Although the gap is detected via wicks, the rectangle is only drawn between the bodies:
Gap UP: Draws from today's open to yesterday's body top (max of open/close)
Gap DOWN: Draws from yesterday's body bottom (min of open/close) to today's open
This means the rectangle does NOT cover the wicks, only the actual gap between bodies.
Midline:
50% line between top and bottom of the gap rectangle
Continues to the right along with the rectangle
Stops when the gap is filled
Gap Filled:
A gap is marked as "filled" when:
Gap UP: Price's close goes DOWN and reaches yesterday's body top
Gap DOWN: Price's close goes UP and reaches yesterday's body bottom
Important: Only close body counts, not wicks!
Visual Elements:
Green box: Gap Up (upward gap)
Red box: Gap Down (downward gap)
Yellow box: Filled gap
Labels: "GAP HOLE" when active, "FILLED gap" when filled
Midline: Dotted line through the middle of the gap
Features:
✅ Works on all timeframes (5min, 15min, 1H, 2H, 4H, etc.) - always uses 4H data
✅ Rectangles expand bar by bar until filled
✅ Customizable colors for gaps, borders, midlines, and labels
✅ Label position (inside or outside box)
✅ Toggle to show/hide labels and midlines
✅ Minimum gap size filter (%)
週期
Daily ±10% from last day close(Taiwan)A 10% price limit block is implemented based on Taiwan Stock Exchange rules to support trade planning.
Feature Description:
- During trading hours, displays the ±10% reference range
based on the current daily candlestick (supported on intraday timeframes).
- After market close, provides an option to display the
±10% reference range for the next trading day (daily timeframe only).
依據臺灣證券交易所之規定,設計採用10%漲跌幅區間,以利交易策略規劃與風險控管。
功能說明:
- 在交易時段內,顯示以當日參考價為基準的 ±10% 區間 (支援日K以下的時間週期)。
- 收盤後,可選擇顯示下一交易日的 ±10% 區間 (僅支援日K)。
Session Highs & Lows (Asian, London, NY) — CleanThis indicator automatically plots the highs and lows of the Asian, London, and New York trading sessions.
Each session is tracked in real time, and once a session closes, its high and low levels are drawn on the chart and can optionally be extended until the next session.
These levels are useful for identifying:
• Liquidity zones
• Session range breakouts
• Reversal points
• Intraday structure changes
Features:
• Marks Asian, London, and New York session highs/lows
• Optional line extension for clean market structure mapping
• Lightweight and clean (no background colors or clutter)
Works on all timeframes — best for 15m–1H intraday analysis.
Session Boxes (Asia, London, NY) - Live UpdatingSession Boxes that measures Asian, London and NY sessions for Futures!! makes your life much easier without measure lows and highs of every session! Yellow is Asian session , Blue is London Session and Green is NY Session, but you can adjust colors as you like! I hope you Enjoy!
Session Boxes (Asia, London, NY) - Live UpdatingFutures Sessions lows and highs including Asian London and NY blocks..Helps measure Sessions and makes your life easier
ADX34 IQ Option Globx O&FThis is the ADX indicator found on IQ OPTION. The idea is to simulate the same indicator, as it has shown good results on that platform.
ULTIMATE Smart Trading Pro 🔥
## 🇬🇧 ENGLISH
### 📊 The Most Complete All-in-One Trading Indicator
**ULTIMATE Smart Trading Pro** combines the best technical analysis tools and Smart Money Concepts into a single powerful and intelligent indicator. Designed for serious traders who want a real edge in the markets.
---
### ✨ KEY FEATURES
#### 💰 **SMART MONEY CONCEPTS**
- **Order Blocks**: Automatically detects institutional zones where "smart money" enters positions
- **Break of Structure (BOS)**: Identifies structure breaks to confirm trend changes
- **Liquidity Zones**: Spots equal highs/lows areas where institutions hunt stops
- **Market Structure**: Visually displays bullish (green background) or bearish (red background) structure
#### 📈 **ADVANCED TECHNICAL INDICATORS**
- **RSI with Auto Divergences**: Classic RSI + automatic detection of bullish and bearish divergences
- **MACD with Signals**: Identifies bullish and bearish crossovers in real-time
- **Dynamic Support & Resistance**: Adaptive zones with intelligent scoring based on volume, multiple touches, and ATR
- **Fair Value Gaps (FVG)**: Detects unfilled price gaps (imbalance zones)
#### 📐 **AUTOMATIC TOOLS**
- **Auto Fibonacci**: Automatically calculates Fibonacci retracement levels on the last major trend
- **Pivot Points**: Daily, Weekly, or Monthly pivot points (PP, R1, R2, S1, S2)
- **Pattern Finder**: Automatically detects candlestick patterns (Hammer, Shooting Star, Engulfing, Morning/Evening Star) and chart patterns (Double Top/Bottom)
---
### 🎯 HOW TO USE IT
#### Quick Setup:
1. **Add the indicator** to your chart
2. **Open Settings** and enable/disable modules as needed
3. **Adjust parameters** for your trading style (scalping, swing, day trading)
#### Optimal Trading Setup:
🔥 **ULTRA STRONG Signal** when you have:
- An institutional **Order Block**
- Aligned with a **Support/Resistance** tested 3+ times
- An unfilled **FVG** nearby
- An **RSI divergence** confirming the reversal
- On a key **Fibonacci** level (50%, 61.8%, or 78.6%)
- Favorable market structure (green background for buys, red for sells)
---
### 💡 UNIQUE ADVANTAGES
✅ **Adaptive Intelligence**: Automatically adjusts to market volatility (ATR)
✅ **Volume Filters**: Validates important levels with volume confirmation
✅ **Multi-Timeframe Ready**: Works on all timeframes (1m to 1M)
✅ **Complete Alerts**: Notifications for all important signals
✅ **Clear Interface**: Emojis and colored labels for quick identification
✅ **Intelligent Scoring**: Levels ranked by importance (🔴🔴🔴 = very strong)
✅ **100% Customizable**: Enable only what you need
---
### 🎨 SYMBOL LEGEND
**Smart Money:**
- 🟢 OB = Bullish Order Block
- 🔴 OB = Bearish Order Block
- BOS ↑/↓ = Break of Structure
- 💧 LIQ = Liquidity Zone
**Candlestick Patterns:**
- 🔨 = Hammer (bullish signal)
- ⭐ = Shooting Star (bearish signal)
- 📈 = Bullish Engulfing
- 📉 = Bearish Engulfing
- 🌅 = Morning Star (bullish reversal)
- 🌆 = Evening Star (bearish reversal)
**Indicators:**
- 🚀 MACD ↑ = Bullish crossover
- 📉 MACD ↓ = Bearish crossover
- ⚠️ DIV = Bearish RSI divergence
- ✅ DIV = Bullish RSI divergence
**Support & Resistance:**
- 🟢/🔴 S1, R1 = Support/Resistance
- 🟢🟢🟢/🔴🔴🔴 = VERY strong level (3+ touches)
- (×N) = Number of times touched
---
### ⚙️ RECOMMENDED SETTINGS
**For Scalping (1m - 5m):**
- SR Lookback: 15
- Structure Strength: 3
- RSI: 14
- Volume Filter: ON
**For Day Trading (15m - 1H):**
- SR Lookback: 20
- Structure Strength: 5
- RSI: 14
- All filters: ON
**For Swing Trading (4H - Daily):**
- SR Lookback: 30
- Structure Strength: 7
- Pattern Lookback: 100
- Fibonacci: ON
---
### 🚨 DISCLAIMER
This indicator is a decision support tool. It does not guarantee profits and does not constitute financial advice. Always test on a demo account before real use. Trading involves significant risks.
---
## 📞 SUPPORT & UPDATES
For questions, suggestions, or bug reports, please comment below or contact the author.
**Version:** 1.0
**Last Updated:** October 2025
**Compatible:** TradingView Pine Script v6
---
### 🌟 If you find this indicator useful, please give it a 👍 and share it with other traders!
**Happy Trading! 🚀📈**
XAUUSD/SPX with SMA(48)📊 Gold vs S&P 500 | XAUUSD/SPX Ratio with SMA (48) – Full Pine Script Breakdown
In this video, we build and explain a custom Pine Script that plots the Gold to S&P 500 ratio (XAUUSD/SPX) along with a 48-period Simple Moving Average (SMA).
This ratio helps us analyze how Gold is performing against equities and whether smart money is shifting from risk assets (stocks) to safe haven (gold).
🔧 What’s Included in the Script:
✅ Live ratio of XAUUSD (Gold) / SPX (S&P 500)
✅ 48-period SMA for trend analysis
✅ Clean visual chart in a separate pane
✅ Pine Script v5 compatible
🧠 Why This Matters:
Tracking the XAUUSD/SPX ratio gives deeper insight into macro trends, inflation hedge behavior, and market sentiment.
A rising ratio can signal weakness in equities and strength in precious metals — a key trend for long-term investors and macro traders.
FMA Pro v1.0Foxbrady Moving Average Pro - uses EMA for tick based charts and SMA for time based charts, automatically.
Boxes & Lines### Boxes & Lines Indicator
This indicator overlays horizontal lines, vertical lines, and boxes on the chart to highlight user-defined sessions, opening prices, and specific times. It supports up to 10 customizable instances each for opening prices, time markers, and session ranges. The source code is protected to preserve the implementation details, but the functionality is designed to provide flexible visual aids for intraday analysis on timeframe.isintraday charts.
#### Purpose
The script allows traders to mark key intraday periods with visual elements such as price lines from session opens, dotted vertical lines at specific times, and boxed ranges with optional projections, mid-levels, equilibrium lines, and point counts. It uses a selected timezone to align elements accurately across different symbols.
#### How It Works
- **Custom Opening Prices (COP)**: Draws horizontal lines at the opening price of specified sessions, extending to the session end or a custom point. Each can be enabled individually with a session time and color.
- **Custom Times (CT)**: Places dotted vertical lines at user-defined times, extending across the chart height. Supports up to 10 with unique colors.
- **Custom Sessions (CS)**: Creates boxes for session ranges, updating dynamically with high/low extremes. Options include:
- Background and border colors with adjustable border width.
- Projections: Extends levels beyond the box based on session range (e.g., full range or half for anchored modes).
- Mid-levels: Short horizontal lines at halfway points between projections.
- Equilibrium (EQ) Line: A dotted line at the session midpoint, optionally extended to a custom end time.
- Point Count: Labels the session range in points (using syminfo.mintick).
- Anchoring: Optionally bases projections on a separate anchor time's open instead of the session's range.
The script uses functions like request.security_lower_tf() for minute-level data and custom string handling for session parsing. It resets visuals at session starts and updates in real-time during active sessions.
#### How to Use
1. Add the indicator to your chart.
2. In the inputs:
- Select a **Timezone** from the dropdown (default: UTC-4) to match your market.
- For each **Custom Opening Price (1-10)**: Enable "Show Custom Opening Price X", set the session (e.g., '0900-1400'), and choose a color.
- For each **Custom Time (1-10)**: Enable "Mark Custom Time X with Vertical Line", set the time (e.g., '0900-0905'), and choose a color.
- For each **Custom Session (1-10)**: Enable "Plot Custom Session X", set the session time (e.g., '0900-1700'), and configure:
- Background and border colors, border size.
- Number of projections (default: 3).
- Toggles for projections, mid-levels, EQ line, point label, and EQ extension.
- Optional anchoring with a separate anchor time.
3. Apply changes; visuals appear on intraday timeframes during or after specified sessions.
This indicator is original and intended as a tool for visualizing time-based structures. It does not generate signals or provide trading advice. Test on historical data to understand behavior on your symbols. Updates may include release notes for any changes.
Triple Close Indicator (TCI)Triple Close Indicator (TCI)
Overview:
The Triple Close Indicator (TCI) is a trend-following and entry signal tool designed to simplify market decision-making. Using a 50-period moving average (MA) as the primary trend filter, TCI identifies consecutive close patterns to generate high-probability bullish and bearish entry signals. Its clean design ensures minimal chart clutter while highlighting actionable points.
How It Works:
Trend Identification
The 50 MA is the core trend filter:
Price above 50 MA → bullish trend
Price below 50 MA → bearish trend
Signal Lines (Green/Red Lines)
Green Line: Marks every 3rd consecutive higher close
Red Line: Marks every 3rd consecutive lower close
Signal lines extend 6 bars forward for reference
Users can customize line width, transparency, and style (solid/dotted)
Entry Signals (Triangles)
Bullish Entry:
Green line above 50 MA → look for a candle closing above this line within the next configurable lookback window (default 5 bars)
Red line above 50 MA → if a candle closes above this line within the lookback window, bullish entry is triggered
Bearish Entry:
Red line below 50 MA → look for a candle closing below this line within the lookback window
Green line below 50 MA → if a candle closes below this line within the lookback window, bearish entry is triggered
Visuals
50 MA line – yellow, main trend filter
Signal lines – green/red with customizable width, transparency, and style
Entry triangles – lime for bullish, red for bearish
Alerts are available for real-time notifications
How to Use Effectively:
Trend Confirmation
Only take long entries above 50 MA and short entries below 50 MA
Avoid counter-trend entries to reduce false signals
Signal Validation
Wait for a candle close beyond the signal line to confirm the entry
Use the configurable lookback window to capture the most recent valid candle
Combine with Other Filters (Optional)
Use volume, ATR, or RSI to filter low-probability setups
Multi-timeframe analysis can enhance signal reliability
Alerts
Use built-in TradingView alerts for real-time execution
Customize messages for notifications on mobile, email, or webhook
Inputs & Customization:
MA Type & Length: Choose SMA, EMA, WMA, or VWMA for 50 MA
Signal Line Colors: Green (bullish), Red (bearish)
Line Width & Transparency: Adjust visual clarity
Line Style: Solid or Dotted
Lookback Window: Number of bars to check for valid entry after a signal line
Best Practices:
Use higher timeframes (1H, 4H, daily) for more reliable signals
Avoid trading in tight consolidation zones; the indicator works best in trending markets
Combine with risk management: define stop-loss below/above signal lines or ATR multiples
Daily Pivot Points - Fixed Until Next Day(GeorgeFutures)We have a pivot point s1,s2,s3 and r1,r2,r3 base on calcul matematics
Bitcoin Cycle History Visualization [SwissAlgo]BTC 4-Year Cycle Tops & Bottoms
Historical visualization of Bitcoin's market cycles from 2010 to present, with projections based on weighted averages of past performance.
-----------------------------------------------------------------
CALCULATION METHODOLOGY
Why Bottom-to-Bottom Cycle Measurement?
This indicator defines cycles as bottom-to-bottom periods. This is one of several valid approaches to Bitcoin cycle analysis:
- Focuses on market behavior (price bottoms) rather than supply schedule events (halving-to-halving)
- Bottoms may offer good reference points for some analytical purposes
- Tops tend to be extended periods that are harder to define precisely
- Aligns with how some traditional asset cycles are measured and the timing observed in the broader "risk-on" assets category
- Halving events are shown separately (yellow backgrounds) for reference
- Neither halving-based nor bottom-based measurement is inherently superior
Different analysts prefer different cycle definitions based on their analytical goals. This approach prioritizes observable market turning points.
Cycle Date Definitions
- Approximate monthly ranges used for each event (e.g., Nov 2022 bottom = Nov 1-30, 2022)
- Cycle 1: Jul 2010 bottom → Jun 2011 top → Nov 2011 bottom
- Cycle 2: Nov 2011 bottom → Dec 2013 top → Jan 2015 bottom
- Cycle 3: Jan 2015 bottom → Dec 2017 top → Dec 2018 bottom
- Cycle 4: Dec 2018 bottom → Nov 2021 top → Nov 2022 bottom
- Future cycles will be added as new top/bottom dates become firm
Duration Calculations
- Days = timestamp difference converted to days (milliseconds ÷ 86,400,000)
- Bottom → Top: days from cycle bottom to peak
- Top → Bottom: days from peak to next cycle bottom
- Bottom → Bottom: full cycle duration (sum of above)
Price Change Calculations
- % Change = ((New Price - Old Price) / Old Price) × 100
- Example: $200 → $19,700 = ((19,700 - 200) / 200) × 100 = 9,750% gain
- Approximate historical prices used (rounded to significant figures)
Weighted Average Formula
Recent cycles weighted more heavily to reflect the evolved market structure:
- Cycle 1 (2010-2011): EXCLUDED (too early-stage, tiny market cap)
- Cycle 2 (2011-2015): Weight = 1x
- Cycle 3 (2015-2018): Weight = 3x
- Cycle 4 (2018-2022): Weight = 5x
Formula: Weighted Avg = (C2×1 + C3×3 + C4×5) / (1+3+5)
Example for Bottom→Top days: (761×1 + 1065×3 + 1066×5) / 9 = 1,032 days
Projection Method
- Projected Top Date = Nov 2022 bottom + weighted avg Bottom→Top days
- Projected Bottom Date = Nov 2022 bottom + weighted avg Bottom→Bottom days
- Current days elapsed compared to weighted averages
- Warning symbol (⚠) shown when the current cycle exceeds the historical average
Technical Implementation
- Historical cycle dates are hardcoded (not algorithmically detected)
- Dates represent approximate monthly ranges for each event
- The indicator will be updated as the Cycle 5 top and bottom dates become confirmed
- Updates require manual code maintenance - not automatic
- Users should verify they're using the latest version for current cycle data
-----------------------------------------------------------------
FEATURES
- Background highlights for historical tops (red), bottoms (green), and halving events (yellow)
- Data table showing cycle durations and price changes
- Visual cycle boundary boxes with subtle coloring
- Projected timeframes displayed as dashed vertical lines
- Toggle on/off for each visual element
- Customizable background colors
-----------------------------------------------------------------
DISPLAY SETTINGS
- Show/hide cycle tops, bottoms, halvings, data table, and cycle boxes
- Customizable background colors for each event type
- Clean, institutional-grade visual design suitable for analysis
UPDATES & MAINTENANCE
This indicator is maintained as new cycle events occur. When Cycle 5's top and bottom are confirmed with sufficient time elapsed, the code and projections will be updated accordingly. Check for the latest version periodically.
OPEN SOURCE
Code available for review, modification, and improvement. Educational transparency is prioritized.
-----------------------------------------------------------------
IMPORTANT LIMITATIONS
⚠ EXTREMELY SMALL SAMPLE SIZE
Based on only 4 complete cycles (2011-2022). In statistical analysis, this is insufficient for reliable predictions.
⚠ CHANGED MARKET STRUCTURE
Bitcoin's market has fundamentally evolved since early cycles:
- 2010-2015: Tiny market cap, retail-only, unregulated
- 2024-2025: Institutional adoption, spot ETFs, regulatory frameworks, macro correlation
The environment that created past patterns no longer exists in the same form.
⚠ NO PREDICTIVE GUARANTEE
Historical patterns can and do break. Market cycles are not laws of physics. Past performance does not guarantee future results. The next cycle may not follow historical averages.
⚠ LENGTHENING CYCLE THEORY
Some analysts believe cycles are extending over time (diminishing returns, maturing market). If true, simple averaging underestimates future cycle lengths.
⚠ SELF-FULFILLING PROPHECY RISK
The halving narrative may be partially circular - it works because people believe it works. Sufficient changes in market structure or participant behavior can invalidate the pattern.
⚠ APPROXIMATE DATA
Historical prices rounded to significant figures. Exact bottom/top dates vary by exchange. Month-long ranges are used for simplicity.
EDUCATIONAL USE ONLY
This indicator is designed for historical analysis and understanding Bitcoin's past behavior. It is NOT:
- Trading advice or financial recommendations
- A guarantee or prediction of future price movements
- Suitable as a sole basis for investment decisions
- A replacement for fundamental or technical analysis
The projections show "what if the pattern continues exactly" - not "what will happen."
Always conduct independent research, understand the risks, and consult qualified financial advisors before making investment decisions. Only invest what you can afford to lose.
BTC Cycle Halving Thirds NicoThe bold black vertical lines are the INDEX:BTCUSD halvings.
The background speak for itself.
Time to be bearish?
Pi Cycle PersonalizadoYou can adjust it for any crypto asset to help identify each cycle’s peaks.
Example:
Cardano → Fast SMA: 150 Slow SMA: 350
Ethereum → Fast SMA: 250 Slow SMA: 625
Fib Retrace + Extensions (v6– safe version) v 1🌀 Fib Extension Plus Retracement Strategy: Complete Overview
📊 Purpose and Core Idea
The Fib Extension Plus Retracement Strategy is a hybrid price-action methodology that blends Fibonacci Retracement and Fibonacci Extension tools to map high-probability entry, exit, and target zones within trending markets.
It is designed for precision timing, measured risk exposure, and trend-continuation trading.
By uniting both retracement and extension logic, traders can capture the entire lifecycle of a move — from the pullback phase to the breakout and projected expansion wave.
Europe & US Session Highlighter
Bitcoin trading volumes peak during the Europe-US session overlap (13:30–17:00 UTC), driven by institutional activity and market news. This indicator helps traders:
- Focus on high-liquidity periods for better trade execution.
- Avoid low-volume, high-volatility periods outside major sessions.
- Plan entries and exits during Bitcoin’s most active hours.
How to Use:
- Apply the indicator to any Bitcoin intraday chart (e.g., 1M, 5M, 15M).
- Look for blue (London), green (NY), or purple (overlap) backgrounds to identify active sessions.
Daily High/Low/Mid (Prev Day Mid-vs-Next-Mid BG)it gives background depending upon previous day and next day midline.
4H + 15m Sell Signals It shows sell positions on the 15 min based on 4 hour ,imbalance, order block and swing high and low frameworks.
BTC Time CycleThis indicator helps track Bitcoin's historical four-year cycles by dividing time from market bottoms into Fibonacci-based segments, providing clear visual cues for potential bullish and bearish phases.
How It Works: This indicator overlays repeating Fibonacci-based time cycles onto weekly BTC charts , plotting vertical lines at key Fib ratios (0, 0.25, 0.382, 0.5, 0.618, 0.75, 1.0) to track cycle progress. Each cycle concludes at 1.0 and seamlessly resets as the next cycle's 0, capturing historical trough-to-trough intervals like those observed from 2018 to 2022. The week preceding the 0.75 Fibonacci ratio typically signals the cycle peak and bear market onset, transitioning through the final phase until 1.0 initiates a new cycle.
Disclaimer: This pattern has consistently repeated in past cycles, but financial markets are inherently unpredictable—it is not guaranteed to persist and remains valid only until disproven. Treat it as an analytical aid, not a predictive certainty.
This is merely a curiosity and is: True until it isn't™
MTF TR HelperThe “MTF TR Helper” is a TradingView indicator that displays TC888’s Time Rotation (TR) slots for the London and New York sessions. It’s designed for intraday traders who want precise timing references based on TC888’s method.
It marks expert-level (orange) and sweetspot (green) TR timings directly on the chart using small visual cues. These slots help identify potential points of interest during active market hours. The script is optimized for lower timeframes and automatically filters out markers on higher timeframes to reduce clutter.
Key Features:
• 🔶 Orange lines = Expert TR slots (per TC888)
• 🟢 Green lines = Sweetspot TR slots (per TC888)
• ⚪ Dots = Hourly rotation points, including new 4-hour bars
• 📈 Works best on 1m and 5m charts; adapts visibility based on timeframe
• 🕒 Built on London and New York time zone references
This tool follows the timing logic of TC888, offering a clean and practical way to stay aligned with key session-based rotations.