GB-Swing by AlgoKingsGB-Swing by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT IS GB-SWING?
GB-Swing is a swing-structure analysis indicator that identifies 3-bar or 5-bar swing highs and swing lows and filters them using Goldbach / CE time-based calculations. The script highlights only those swing points that align with predefined mathematically significant time values, allowing focused study of price behavior around structurally and temporally aligned points.
This indicator does not generate trade signals. It is designed to assist in discretionary market analysis by visualizing swing structure in combination with time-based conditions.
UNDERLYING METHODOLOGY
This indicator combines three analytical layers:
SWING STRUCTURE DETECTION
GB-Swing identifies swing highs and swing lows using classic bar-based structure logic:
5-bar swings (default): A central bar is confirmed as a swing high or low only when surrounded by sufficient higher or lower bars, producing more selective swing points.
3-bar swings: A faster, less restrictive swing definition for users who prefer more frequent structure points.
Swing detection is based solely on price structure and does not rely on indicators, oscillators, or momentum calculations.
GOLDBACH / CE TIME MATCHING
Each detected swing is evaluated against a set of Goldbach / CE numbers using the candle timestamps surrounding the swing point.
Matching logic tests multiple time relationships:
-Candle minute
-Hour + minute
-Absolute difference between hour and minute
-Matches may be exact or approximate (±1 tolerance). Only swings with at least one valid match are displayed.
Users may select:
-A built-in master list of GB/CE numbers, or
-A custom comma-separated list, automatically filtered against the master list to prevent invalid values.
TIMEFRAME AND TIMEZONE CONTROL
Swing detection is performed on a user-defined Swing timeframe. The chart timeframe must be less than or equal to the selected Swing timeframe.
Goldbach calculations are performed using a dedicated timezone (New York or Zurich), independent of the chart’s display timezone. This allows consistent time-based analysis across different chart configurations.
OPTIONAL LIQUIDITY LEVEL TRACKING
When enabled, the indicator projects horizontal levels from qualifying swing highs or lows:
-Levels extend forward in time until price trades through them
-Once price interacts with a level, it is marked as taken
-Taken levels are visually differentiated using line style changes
-Separate history limits are maintained for swing points and liquidity levels
-This feature is optional and can be disabled entirely.
WHY CLOSED-SOURCE?
This script protects proprietary implementation details, including:
-Custom Goldbach / CE matching logic across multiple time relationships
-Multi-bar swing confirmation logic with edge-case handling
-Timezone-independent timestamp evaluation
-Efficient history management for swings and liquidity levels
-The indicator focuses on analytical behavior rather than exposing internal algorithms.
HOW TO USE
Setup:
-Apply GB-Swing to any supported market
-Select a Swing timeframe greater than or equal to your chart timeframe
-Choose 3-bar or 5-bar swing logic
-Enable either the full GB/CE list or a custom list
-Adjust visual and liquidity settings as desired
Interpretation:
-Swing highs and swing lows are displayed only when time conditions are met
-Upward swings are drawn below price, downward swings above price
-Displayed numbers represent matched GB/CE values
-Liquidity lines represent potential areas of interest, not trade levels
SETTINGS EXPLAINED
Swing:
-Timeframe: Timeframe used for swing detection
-Swing Type: 3-bar or 5-bar structure
-History: Number of swings retained on chart
Goldbach / CE:
-All GB/CE: Enables the built-in master list
-GB/CE List: Custom comma-separated values
-Timezone: Reference timezone for calculations
Display:
-Marker: Enable or disable swing markers
-Numbers: Show or hide GB/CE values
-Text Size: Label size
-Colors: Up and down swing colors
Liquidity:
-Liquidity: Enable or disable level projection
-Color: Liquidity line color
-History: Number of liquidity levels retained
UPDATES
This script is actively maintained. Updates are distributed through TradingView’s native update system. For questions or discussion, please use the comment section below.
チャートパターン
GB-Numbers by AlgoKingsGB-Numbers by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT IS GB-NUMBERS?
GB-Numbers displays Goldbach mathematical time windows directly on the chart, marking both historical bars and future time periods where time components align with selected Goldbach numbers. Unlike other Goldbach indicators that filter price patterns, this tool shows pure time analysis - when mathematical harmonics occur regardless of price action.
Example: If minute=23 at current bar, label displays "23". If next bar at 11:35 will have minute=35, indicator projects label 60 bars forward showing when this time window will occur.
UNDERLYING METHODOLOGY
This indicator combines three analytical layers:
1. GOLDBACH NUMBER MATCHING
Uses mathematical time component analysis based on Goldbach conjecture principles:
GOLDBACH NUMBER SET:
Master list of 23 key numbers: 0, 3, 11, 17, 29, 41, 47, 53, 59, 71, 83, 89, 97, 100, 7, 14, 23, 35, 44, 50, 56, 65, 77
These numbers represent temporal harmonics derived from number theory analysis. Users can select custom subset via comma-separated list for both Future and History modes.
TIME COMPONENT CALCULATION:
For any given bar timestamp, algorithm extracts four components in selected timezone (New York or Zurich):
- Minute (m): Minute of hour (0-59)
- Hour (h): Hour of day (0-23)
- Sum (h + m): Addition of hour and minute
- Difference (|h - m|): Absolute difference between hour and minute
Example timestamp 14:35:
- m = 35
- h = 14
- h + m = 49
- |h - m| = 21
MATCHING LOGIC:
Two matching modes available:
EXACT MODE:
Number matches if ANY time component exactly equals Goldbach number:
if (m == n) or (h == n) or (h+m == n) or (|h-m| == n)
→ Exact match, display number
ALL MODE (±1 tolerance):
Number matches if ANY time component equals Goldbach number ±1:
if (m == n±1) or (h == n±1) or (h+m == n±1) or (|h-m| == n±1)
→ Near match, display number
Technical implementation:
gbMatch() function tests single number against timestamp's four components. gbMatches() loops through number array, calls gbMatch() for each, returns three arrays: all matches, exact matches, approximate matches. Display uses exact or all based on mode setting.
2. FUTURE TIME PROJECTION
Projects Goldbach matches up to 60 bars into the future:
INITIALIZATION PHASE:
When reaching barstate.islastconfirmedhistory (end of historical data), algorithm performs forward scan:
- Loops from bars_back=-1 to bars_back=-60
- Calls time("", bars_back=idx) to get future timestamps
- Tests each timestamp against selected Goldbach numbers
- Creates labels at future bar positions showing matching numbers
REAL-TIME UPDATES:
On each new bar during live trading (barstate.islast):
- Tests single timestamp 60 bars ahead (time("", bars_back=-60))
- Creates new label if matches found
- Purges oldest future label if it reached current time (last.t <= time)
- Updates all future label y-coordinates to current high for visibility
Rolling window:
Maintains constant 60-bar forward projection. As chart progresses, oldest future label converts to current bar, new label added 60 bars ahead, creating rolling wave of future time windows.
Visual management:
Future labels positioned at high price for visibility. On each bar, all future labels updated to current high (set_y(high)) so they remain visible as price moves. When future bar becomes current, label deleted from nexts array.
3. HISTORICAL BAR MARKING
Marks past bars where Goldbach matches occurred:
DETECTION:
On each new bar (time != previous time):
- Tests current bar timestamp against historical Goldbach array
- If matches found, creates label at bar's high
- Label text contains matched numbers sorted descending, newline-separated
ARRAY MANAGEMENT:
Maintains rolling history array with configurable size (0-400 bars):
- Unshifts new Bar object (contains timestamp and label reference)
- When array exceeds history limit, pops oldest and deletes label
- Enables dynamic history depth adjustment without performance degradation
VERTICAL OFFSET:
Optional vertical offset parameter (0-9) adds newlines to label text, pushing numbers higher above bar. Each increment adds one newline, creating visual separation when multiple indicators overlap.
Difference from future:
Historical labels remain at creation coordinates. Future labels dynamically adjust to current high. Historical mode optional (can be disabled), future mode default enabled.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Goldbach number set: Proprietary selection of 23 specific numbers (0, 3, 11, 17, 29, 41, 47, 53, 59, 71, 83, 89, 97, 100, 7, 14, 23, 35, 44, 50, 56, 65, 77) derived from mathematical research
- Future projection engine: Rolling 60-bar forward scan using time("", bars_back=-idx) with dynamic label positioning (set_y updates), purge logic (last.t <= time), and initialization phase optimization (single loop on islastconfirmedhistory vs bar-by-bar processing)
- Dual-mode matching: Separate exact and approximate match arrays with user-selectable filtering, requiring complex conditional logic in gbMatch() that tests four time components with tolerance windows
- Label lifecycle management: Two independent Bar arrays (nexts for future, bars for history) with different update patterns - futures update y-coordinate every bar, history remains static, futures purge by timestamp comparison, history purges by array size
- Timezone abstraction: Single timezone parameter affects all time component calculations (minute, hour extraction) uniformly across historical and future projections
Standard time indicators show current time only. This script provides dual-timeline analysis with mathematically filtered time windows across past and future.
TECHNICAL COMPONENTS
Core structures:
- Bar Object: Container for timestamp (t) and label reference, used in both bars (history) and nexts (future) arrays
- Goldbach arrays: nextGbArray (user-selected for future), barGbArray (user-selected or all 23 for history)
Time component extraction:
- minute(time, timezone): Extracts minute component (0-59)
- hour(time, timezone): Extracts hour component (0-23)
- Arithmetic: h + m for sum, |h - m| for difference
Future projection:
- Initialization: for idx = -1 to -60: test time("", bars_back=idx)
- Live update: test time("", bars_back=-60) on each new bar
- Purge: if (nexts.last().t <= time) pop and delete
- Position update: for all nexts: set_y(high)
Historical marking:
- Detection: if (time != t0) test gbMatches(barGbArray, time, timezone)
- Creation: label.new(time, high, matches.join(" "))
- Purge: if (bars.size() > barHistory) pop and delete
HOW TO USE
Setup:
1. Apply to any chart (works on all symbols and timeframes)
2. Select Timezone (New York or Zurich) for Goldbach calculation
3. Configure Future section: Enable, select Exact/All mode, enter GB/CE numbers, choose color
4. Configure History section: Enable, select Exact/All mode, enter GB/CE numbers or enable "All GB/CE", set history depth, choose color
5. Adjust Text Size and Vertical Offset as needed
Chart Timeframe:
Works on any timeframe. Lower timeframes (1m-5m) show more frequent matches. Higher timeframes (1H-Daily) show fewer, potentially more significant time windows.
Interpretation:
FUTURE (Blue labels by default):
- Labels appear up to 60 bars ahead of current bar
- Numbers show which Goldbach numbers will match at that future time
- Labels move vertically with price to stay visible
- When future bar becomes current, label disappears
- Used for anticipating upcoming mathematical time windows
HISTORY (Gray labels by default):
- Labels appear on past bars where Goldbach matches occurred
- Numbers show which Goldbach numbers matched at that time
- Labels remain at bar's high price (static)
- Quantity controlled by History parameter (0-400 bars)
- Used for reviewing past mathematical time windows
Label content:
Single number (e.g., "23") = One time component matched one Goldbach number
Multiple numbers (e.g., "35 50") = Multiple time components matched different Goldbach numbers, displayed vertically stacked
No label = No Goldbach matches at that timestamp
SETTINGS EXPLAINED
Settings:
- Timezone: Choose New York or Zurich for time component calculation (chart timezone does not affect this)
- Text Size: Label text size for all numbers (Tiny, Small, Normal, Large)
Future:
- Enable: Show/hide future time projection (60 bars ahead)
- Exact: Enable for exact matches only, disable for ±1 tolerance
- GB/CE List: Comma-separated Goldbach numbers to test for future bars (e.g., "23,35")
- Color: Label color for future time windows
History:
- Enable: Show/hide historical bar marking
- Exact: Enable for exact matches only, disable for ±1 tolerance
- All GB/CE: Enable to test all 23 master Goldbach numbers
- GB/CE List: Disable "All GB/CE" to enter custom comma-separated list (e.g., "23,35")
- History: Number of past bars to show (0-400)
- Color: Label color for historical markings
- Vertical Offset: Adds newlines above numbers (0-9), pushes labels higher for multi-indicator setups
Timezone selection:
New York (America/New_York) = EST/EDT timezone
Zurich (Europe/Zurich) = CET/CEST timezone
Chart display timezone does not affect Goldbach calculations. You can view charts in any timezone while calculating Goldbach numbers in New York or Zurich time.
Exact vs All mode:
- Exact: Stricter, only shows exact matches (m=n, h=n, h+m=n, |h-m|=n)
- All: Looser, shows exact and near matches (±1 tolerance)
- Future and History have independent mode settings
Custom number selection:
Enter numbers separated by commas with no spaces: 23,35,50,77
Invalid numbers (not in master list of 23) automatically filtered out
Minimum: 1 number
Maximum: all 23 numbers (or enable "All GB/CE" for History)
Common Configurations:
- ICT Focus: Future enabled with "23,35", History disabled (clean chart, anticipatory)
- Full Analysis: Future enabled with "23,35", History enabled with "All GB/CE", History=60
- Research Mode: Future disabled, History enabled with custom numbers, History=400 (maximum lookback)
- Minimal: Both Future and History enabled with same short list like "35,65", History=20
Vertical offset usage:
If running multiple indicators that create labels at highs, use Vertical Offset to separate GB-Numbers labels. Each increment adds one newline, pushing labels progressively higher. Useful when combining with GB-Evolve or other label-based indicators.
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
GB-FVG by AlgoKingsGB-FVG by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT IS GB-FVG?
GB-FVG identifies Fair Value Gaps that form during Goldbach mathematical time windows. Unlike standard FVG indicators that display all price imbalances, this tool filters for gaps created at specific time harmonics based on Goldbach number theory, highlighting institutional order flow events that occur during mathematically significant moments.
Example: At 11:35 (minute=35, hour=11, sum=46, difference=24), if minute matches Goldbach number 35 AND a three-candle gap forms, the indicator displays this FVG. Standard gaps forming at non-Goldbach times are ignored.
UNDERLYING METHODOLOGY
This indicator combines three analytical layers:
1. THREE-CANDLE FVG DETECTION
Identifies price imbalances using precise gap analysis:
BULLISH FVG:
Candle 3 (two bars back) high < Candle 1 (current) low = Gap between bars that price never traded
BEARISH FVG:
Candle 3 (two bars back) low > Candle 1 (current) high = Gap between bars that price never traded
Technical implementation:
- Uses request.security with lookahead_on to access confirmed bar data (high , low , high , low )
- For bullish FVG: Gap top = low , Gap bottom = high
- For bearish FVG: Gap top = low , Gap bottom = high
- Detects new FVGs when time exceeds previous time (new bar completed on indicator timeframe)
Bar array management:
Maintains rolling array of 10 most recent bars from indicator timeframe. On each security.isNew event, unshifts new bar and pops oldest. Enables lookback for three-bar pattern comparison without repeated security calls.
Higher timeframe precision:
When indicator timeframe exceeds chart timeframe (e.g., 1H FVG on 5m chart), hCtf and lCtf methods search backward through chart bars to find exact bar that created gap extreme, providing precise visual placement.
2. GOLDBACH TIME FILTERING
Only displays FVGs that form during Goldbach number time windows:
GOLDBACH NUMBER SET:
Master list of 23 key numbers: 0, 3, 11, 17, 29, 41, 47, 53, 59, 71, 83, 89, 97, 100, 7, 14, 23, 35, 44, 50, 56, 65, 77
These numbers represent temporal harmonics derived from number theory. Users can select all numbers or specify custom subset.
TIME COMPONENT CALCULATION:
For middle bar of three-candle pattern (bar that created the gap), algorithm extracts four components in selected timezone:
- Minute (m): Minute of hour (0-59)
- Hour (h): Hour of day (0-23)
- Sum (h + m): Addition of hour and minute
- Difference (|h - m|): Absolute difference between hour and minute
MATCHING LOGIC:
FVG only drawn if middle bar timestamp matches ANY Goldbach number ±1:
if (m == n) or (h == n) or (h+m == n) or (|h-m| == n)
→ Exact match, FVG qualifies
if (m == n±1) or (h == n±1) or (h+m == n±1) or (|h-m| == n±1)
→ Near match, FVG qualifies
Example: At 14:35, if user selected Goldbach 35:
- m = 35 → Exact match → FVG qualifies
- Gap drawn with label "35"
Filter effectiveness:
Standard FVG indicator might show 50+ gaps on 5m chart. GB-FVG shows only 5-10 gaps that align with Goldbach timing, reducing noise and highlighting mathematically significant imbalances.
3. MITIGATION TRACKING
Monitors gap fill status with body-based or wick-based options:
MITIGATION TYPES:
- Body Close: FVG considered filled when candle closes inside gap
- Wick Touch: FVG extends until touched (when "Mitigate on body close" disabled)
STATE MANAGEMENT:
- Active: Gap unfilled, box extends to future (x2 = time + offset)
- Mitigated: Price closed inside gap, box stops at mitigation bar
Progressive tracking:
On each new bar from indicator timeframe, if "Mitigate on body close" enabled:
- Bullish FVG: if close <= gap.bottom, set isMit=true, x2=time
- Bearish FVG: if close >= gap.top, set isMit=true, x2=time
Visual consequences:
Active FVGs extend dynamically to future bars. Mitigated FVGs freeze at mitigation point. Unlike standard FVG indicators that show partial fills, GB-FVG uses binary state (active/mitigated).
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Goldbach filtering integration: Combines gbMatches() function with FVG detection, testing middle bar timestamp (s2.t) against user-selected Goldbach array, only creating Fvg object when matches found
- Multi-timeframe precision: hCtf and lCtf methods that search through chart bars using offset calculations (ctfBarCount * idx) and mintick rounding to locate exact bar that created higher timeframe gap extreme
- Bar array synchronization: Security object maintains rolling 10-bar array with isNew flag coordination, preventing duplicate processing while enabling three-bar lookback without repeated security calls
- Time component matching: gbMatch function implementing four-component test (m, h, h+m, |h-m|) with ±1 tolerance against each Goldbach number, returning match status and exact/approximate classification
- Mitigation state machine: isMit flag with body-close detection (close <= l for bullish, close >= h for bearish) that freezes box extension (x2) at mitigation timestamp rather than current time
Standard FVG indicators show all gaps. GB-FVG adds Goldbach timing layer requiring complex timestamp extraction, component arithmetic, and match filtering before gap visualization.
TECHNICAL COMPONENTS
Core structures:
- Bar Object: Stores OHLC and timestamp for single bar from indicator timeframe
- Security Object: Manages request.security calls, maintains Bar array (size=10), tracks isNew flag, provides hCtf/lCtf precision methods
- Fvg Object: Contains gap coordinates (x, h, x2, l), Goldbach numbers text, isMit state, box drawing object
- Option Object: Centralized settings for timezone, Goldbach array, history, colors, mitigation type
Goldbach matching:
- gbMatch(n, t, timezone): Tests single Goldbach number against single timestamp's four components with ±1 tolerance
- gbMatches(nArray, t, timezone): Tests array of Goldbach numbers against timestamp, returns arrays
FVG detection:
- Bullish: if (s3.h < s1.l and gbMatches(array, s2.t) has matches) create FVG
- Bearish: if (s3.l > s1.h and gbMatches(array, s2.t) has matches) create FVG
- Label: Goldbach numbers joined with commas (e.g., "23,35,65")
Mitigation:
- if (sBodyMit and close inside gap) set isMit=true, x2=close_time
- if (not sBodyMit) always extend to future: x2 = time("", bars_back = -4)
HOW TO USE
Setup:
1. Apply to any chart (works on all symbols and timeframes)
2. Select FVG Timeframe (must be >= chart timeframe)
3. Choose Timezone (New York or Zurich) for Goldbach calculation
4. Select "All GB/CE" to use all 23 numbers, or enter custom list
5. Enter custom numbers as comma-separated values (e.g., "23,35,65,77")
6. Enable/disable "Mitigate on body close" for mitigation behavior
Chart Timeframe Requirements:
Chart timeframe must be equal to or lower than FVG Timeframe setting. For 1H FVG analysis, use 1H or lower chart (5m, 15m, 30m, 1H all valid). Cannot use 4H chart for 1H FVG.
Interpretation:
- Green box = Bullish FVG at Goldbach time (gap up, unfilled)
- Red box = Bearish FVG at Goldbach time (gap down, unfilled)
- Numbers in box = Goldbach numbers that matched middle bar timestamp
- Box extends right = Active FVG (not yet mitigated)
- Box stops = Mitigated FVG (price closed inside gap)
- Multiple numbers = Multiple time components aligned with different Goldbach numbers
Visual placement:
Box spans from gap bottom to gap top vertically. Horizontally spans from gap formation bar to current time (active) or mitigation bar (filled). Numbers display at right edge of box.
SETTINGS EXPLAINED
Settings:
- Timeframe: Select FVG detection timeframe (any timeframe >= chart TF valid)
- Timezone: Choose New York or Zurich for Goldbach time component calculation
- All GB/CE: Enable to use all 23 master Goldbach numbers
- GB/CE List: Disable "All GB/CE" to enter custom comma-separated list (e.g., "23,35,65,77")
- History: Number of FVGs to display (default: 9)
- Text Size: Label text size for Goldbach numbers (Auto, Tiny, Small, Normal, Large)
- Text: Text color for Goldbach number labels
- Up: Box color for bullish FVGs
- Down: Box color for bearish FVGs
- Mitigate on body close: Enable to stop box extension when price closes inside gap, disable to extend until current time
Timeframe selection:
Must select timeframe equal to or higher than chart. Examples:
- Chart 5m, FVG 15m = Valid
- Chart 5m, FVG 1H = Valid
- Chart 1H, FVG 15m = Invalid (error message shown)
Timezone selection:
New York (America/New_York) = EST/EDT timezone
Zurich (Europe/Zurich) = CET/CEST timezone
Chart display timezone does not affect Goldbach calculations. You can view charts in Tokyo time while calculating Goldbach numbers in New York time.
Custom number selection:
Enter numbers separated by commas with no spaces: 23,35,65,77
Invalid numbers (not in master list of 23) automatically filtered out
Minimum: 1 number (or enable "All GB/CE")
Maximum: all 23 numbers
Mitigation behavior:
- Enabled: Boxes stop extending when price closes inside gap (recommended for cleaner chart)
- Disabled: Boxes extend to current time regardless of fills (shows all historical gaps)
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
Multi-Session H/L - Sweep & Grab v5# Multi-Session High/Low Levels with Liquidity Sweep & Grab Detection
## Overview
This indicator automatically identifies and plots the High and Low levels of key trading sessions (Asia, London, New York AM, New York PM) and Previous Day levels. It features advanced **Liquidity Sweep** and **Liquidity Grab** detection based on ICT/SMC methodology.
## Key Features
### 📊 Multi-Session Tracking
- **Asia Session** - Captures the Asian trading range
- **London Session** - Tracks the London open volatility
- **New York AM Session** - Monitors the NY morning session
- **New York PM Session** - Follows the afternoon price action
- **Previous Day High/Low** - Key daily reference levels
### 💧 Liquidity Detection (ICT/SMC Concepts)
**Liquidity Grab:**
- Detected when price **wicks through** a level but **closes back** inside
- Single candle event with rejection
- Often signals a potential reversal
- Label shows: `"Session H/L (Grab)"`
**Liquidity Sweep:**
- Detected when price **closes beyond** the level
- Indicates liquidity has been fully taken
- Label shows: `"Session H/L (Swept)"`
### 🎯 Visual Features
- Lines automatically **stop at the candle** where liquidity was grabbed or swept
- Different line styles for Active / Grabbed / Swept levels
- Customizable colors for each session
- Optional session background highlighting
- Information table showing all levels and their status
### ⚙️ Customization Options
- Adjustable session times for any timezone (GMT+0 to GMT+5)
- Calculation timeframe selection
- Line width and style settings
- Label size options
- Toggle each session on/off
- "Stop Line on Grab" option
### 🔔 Alerts
- Separate alerts for **Liquidity Grab** events
- Separate alerts for **Liquidity Sweep** events
- Available for all sessions and Previous Day levels
## How to Use
1. **Identify Key Levels:** The indicator automatically marks session highs and lows
2. **Watch for Liquidity Events:** Monitor when price approaches these levels
3. **Grab = Potential Reversal:** A liquidity grab (wick rejection) often signals smart money has collected orders and price may reverse
4. **Sweep = Liquidity Taken:** A sweep (close beyond level) confirms the liquidity pool has been cleared
5. **Plan Your Trades:** Use these levels in confluence with other SMC concepts like Fair Value Gaps (FVG) and Order Blocks (OB)
## Status Colors in Table
- 🟢 **Green (Active)** - Level has not been touched
- 🟠 **Orange (Grab)** - Wick touched the level, potential reversal zone
- 🔴 **Red (Swept)** - Close beyond level, liquidity fully taken
## Settings Explained
| Setting | Description |
|---------|-------------|
| Calculation Timeframe | Timeframe used for session calculations |
| Timezone | Your broker's timezone (GMT+0 to GMT+5) |
| Extend Lines | Extend active lines into the future |
| Stop Line on Grab | If enabled, lines stop when grabbed (not just swept) |
| Swept/Grab Line Style | Visual differentiation for liquidity events |
## Notes
- Works on all markets (Forex, Crypto, Stocks, Indices, Commodities)
- Best used on timeframes from 1min to 1H
- Session times are fully customizable to match your time zone
- The indicator respects the ICT/SMC definition where a **Grab** is a single-candle wick rejection and a **Sweep** involves price closing beyond the level
Cycles by AlgoKingsCycles by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT ARE CYCLES?
Cycles visualizes institutional time windows and key opening price levels. Instead of analyzing price patterns, this indicator segments the trading day into institutional order flow periods (90-minute, 30-minute, 10-minute cycles) and marks significant opening prices (session, daily, weekly, monthly, yearly) that often act as reference points for intraday price action.
Example: The 09:30 open price marks the start of regular US equity trading and often serves as a pivot level throughout the day. The London 1 (LN 1) 90-minute cycle from 02:30-04:00 EST represents the first institutional accumulation window.
UNDERLYING METHODOLOGY
This indicator combines three analytical layers:
1. INTRADAY CYCLE SEGMENTATION
Divides the trading day into institutional time windows:
ASIA SESSION:
18:00-02:30 EST (overnight session before London open)
90-MINUTE CYCLES:
Nine windows per trading day aligned with ICT methodology:
- LN 1, LN 2, LN 3: London session (02:30-04:00, 04:00-05:30, 05:30-07:00)
- AM 1, AM 2, AM 3: New York AM session (07:00-08:30, 08:30-10:00, 10:00-11:30)
- PM 1, PM 2, PM 3: New York PM session (11:30-13:00, 13:00-14:30, 14:30-16:00)
Technical implementation:
- 90m detection: Calculates ((hour * 60 + minute) - 150) % 90 == 0 to identify cycle boundaries from 02:30 EST baseline
- Session boundaries: Tracks inSession flag using time("", "0230-1600", gTimezone) to detect entry/exit from trading window
- Index tracking: Maintains counter (1-9) to assign sequential names (LN 1, AM 2, etc.) and color rotation (A/M/D pattern)
Color coding:
Each 90m cycle alternates three colors in A-M-D pattern (Accumulation-Manipulation-Distribution phases based on ICT concepts)
30-MINUTE CYCLES:
27 windows per trading day (2:30-16:00 EST), color-coded in A-M-D triplet pattern
10-MINUTE CYCLES:
81 windows per trading day (2:30-16:00 EST), single color for all
Cycle visualization:
- Box backgrounds highlight time ranges
- High/low tracked dynamically as cycle forms
- EQ (equilibrium) line at midpoint for 90m cycles
- Borders (optional) delineate cycle boundaries
2. OPENING PRICE TRACKING
Marks key opening levels that serve as institutional reference points:
SWING OPENS:
- Year Open: First price of calendar year
- Quarter Open: First price of Q1, Q2, Q3, Q4
- Month Open: First price of calendar month
- Week Open: First price of Sunday 18:00 EST (Monday for crypto)
INTRADAY OPENS:
- 00:00 Open: Midnight EST (new trading day for 24h markets)
- 09:30 Open: US equity market open
- Current Cycle Open (C.O): Opening price of most recent 90m cycle
Technical implementation:
- Period opens: Uses request.security to detect new bar on higher timeframe (time != previous time )
- Timed opens: Pattern matches hour/minute (e.g., hour==9 and minute==30 for 09:30)
- Line extension: Opens extend right dynamically (end = time + offset) to stay visible
History parameter controls how many previous opens to display per type.
3. OVERLAP CONSOLIDATION
When multiple opens share the same price level, consolidates into single visual:
ALGORITHM:
At barstate.islast, compares all active Level objects by price coordinate. When match found, merges labels into combined text with bullet separator (e.g., "M.O, W.O •" indicates Month Open and Week Open coincide). Lower precedence level undrawn, higher precedence level preserves visual with concatenated tooltip.
This prevents chart clutter when weekly, monthly, or quarterly opens align at same price.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- 90m cycle detection: Custom time arithmetic ((hour * 60 + minute) - 150) % 90 == 0 that calculates exact 90-minute boundaries from 02:30 baseline, with session boundary detection to exclude overnight periods
- Cycle index management: State machine that resets index to 1 on session start, increments through 1-9, applies modulo arithmetic for color rotation (index % 3), and assigns sequential names based on position
- Dynamic range tracking: Real-time high/low updating during cycle formation (h = math.max(h, high), l = math.min(l, low)) with isFinal flag transition when cycle completes
- Timed open detection: Pattern matching on hour/minute combinations with timezone conversion (gTimezone = "America/New_York") and proper handling of 24h markets vs traditional session starts
- Overlap consolidation: Price-based comparison of all Level objects at barstate.islast, string concatenation of names, selective undrawing to maintain single visual per price level
- Day of week positioning: Complex time offset calculations (newNoonTime = time - D/2, newMidTime for Sunday handling) to center labels at day midpoints considering crypto 24/7 vs traditional market schedules
Standard cycle indicators show fixed time periods. This script provides ICT-aligned institutional windows with smart label management and multi-timeframe open tracking.
TECHNICAL COMPONENTS
Core structures:
- Security Object: Stores timeframe data (open, time, time ) from request.security calls, maintains isNew flag for cycle detection
- Range Object: Represents cycle box with coordinates (start, end, h, l), isFinal state, drawing objects (box, label, eq line)
- Level Object: Represents open price line with coordinates (price, start, end, startCtf), isFinal state, drawing objects (line, label)
- Option Object: Centralized settings container with cycle-specific overrides for colors, styles, history counts
Cycle detection patterns:
- 90m: if (security.isNew and ((hour * 60 + minute) - 150) % 90 == 0 and inSession)
- 30m: if (security.isNew and inSession), index cycles 1-2-3 for color
- 10m: if (security.isNew and inSession)
- Period opens: if (security.isNew) on higher timeframe
- Timed opens: if (security.isNew and hour == h and minute == m)
Extension logic:
- Ranges: end = time, h = max(h, high), l = min(l, low) while not isFinal
- Levels: end = time + offset (offset = ctfSeconds * 12000 for far-right placement)
HOW TO USE
Setup:
1. Apply to intraday chart (works best on 1m-30m timeframes)
2. Enable/disable cycle types in Time Cycles section
3. Enable/disable open types in Opens section
4. Configure History to control how many days/periods to show
5. Adjust colors and line styles to preference
Chart Timeframe Requirements:
Designed for intraday charts (seconds to 30m). Higher timeframes (1H+) will show opens but cycles may not display properly.
Interpretation:
CYCLES (Box Backgrounds):
- ASIA = Gray box covering 18:00-02:30 EST
- LN 1/2/3 = Blue/Red/Green boxes (London 90m cycles)
- AM 1/2/3 = Blue/Red/Green boxes (NY morning 90m cycles)
- PM 1/2/3 = Blue/Red/Green boxes (NY afternoon 90m cycles)
- 30m/10m = Smaller nested cycles within 90m windows
- EQ line = 50% equilibrium level within 90m cycle range
OPENS (Horizontal Lines):
- C.O = Current 90m cycle open (most recent)
- 00:00 = Midnight EST open
- 09:30 = US equity market open
- W.O = Week open (Sunday 18:00)
- M.O = Month open
- Q.O = Quarter open
- Y.O = Year open
- Bullet (•) in label = Multiple opens at same price
DAY OF WEEK:
- Labels at chart bottom (Monday, Tuesday, etc.)
- Vertical dividers at midnight (optional)
SETTINGS EXPLAINED
Time Cycles:
- Asia: Enable/disable Asia session box (18:00-02:30 EST) with color picker
- 90m Cycle: Enable/disable 90m windows with three color pickers (A/M/D phases)
- 90m EQ: Show/hide equilibrium line at midpoint of 90m cycles
- 30m Cycle: Enable/disable 30m windows with three color pickers
- 10m Cycle: Enable/disable 10m windows with single color
- Label: Size for cycle names (LN 1, AM 2, etc.)
- Border: Show/hide cycle box outlines with style picker
- History (Days): Number of days to show cycles (0-4)
Opens:
- Label: Color and size for all open price labels
- Line Width: Thickness for all open price lines
- Current Cycle: Enable/disable C.O (current 90m cycle open)
- 00:00: Enable/disable midnight open with color and history count
- 09:30: Enable/disable equity market open with color and history count
- Week: Enable/disable weekly open with color and history count
- Month: Enable/disable monthly open with color and history count
- Quarter: Enable/disable quarterly open with color and history count
- Year: Enable/disable yearly open with color and history count
History count determines how many previous opens to display (e.g., History=2 for Weekly shows this week and last week's opens)
Day of Week:
- Day: Enable/disable day name labels at chart bottom
- Divider: Enable/disable vertical lines at midnight boundaries with style picker
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
Buyer-Only Breakout Scanner (India)Buyer-Only Breakout Scanner designed for Indian markets (NIFTY, BANKNIFTY, stocks).
This indicator focuses ONLY on option buyers and avoids seller-dominated and sideways markets.
Logic used:
• Volatility compression using ATR contraction + Bollinger Band squeeze
• Breakout confirmation with volume expansion
• VWAP directional filter (institutional bias)
• EMA 9 & EMA 20 for momentum and trend alignment
• False breakout protection using candle strength, follow-through, wick rejection
• Seller absorption filter to avoid premium decay zones
Signals:
• CALL BUY – only when bullish breakout is strong and buyer-friendly
• PUT BUY – only when bearish breakout is strong and buyer-friendly
• EXIT – early warning to protect option premium
Best used on:
• 5-minute chart
• Intraday trading
• Index options (ATM / ITM)
This is an indicator for manual trading with alerts, not an auto-trading strategy.
Asia range + liquidity and PDH/PDLThis comprehensive ICT indicator automatically plots a fully customizable Asian Range with 'smart' liquidity rails that terminate on wick contact, alongside Previous Day High/Low (PDH/PDL) levels featuring a unique 'body-break' stop logic, all while offering complete style control and a 'clean history' mode to display only the current session's key levels."
Buyer-Only Breakout Scanner (India)Buyer-Only Breakout Scanner designed for Indian markets (NIFTY, BANKNIFTY, stocks).
This indicator focuses ONLY on option buyers and avoids seller-dominated and sideways markets.
Logic used:
• Volatility compression using ATR contraction + Bollinger Band squeeze
• Breakout confirmation with volume expansion
• VWAP directional filter (institutional bias)
• EMA 9 & EMA 20 for momentum and trend alignment
• False breakout protection using candle strength, follow-through, wick rejection
• Seller absorption filter to avoid premium decay zones
Signals:
• CALL BUY – only when bullish breakout is strong and buyer-friendly
• PUT BUY – only when bearish breakout is strong and buyer-friendly
• EXIT – early warning to protect option premium
Best used on:
• 5-minute chart
• Intraday trading
• Index options (ATM / ITM)
This is an indicator for manual trading with alerts, not an auto-trading strategy.
open,high,close,lowthis indicator will mark the previous day, week ,monthly candle (open, high, close and low)
Advanced Trend finder by S B PrasadAdvanced Trend finder – by S B Prasad
A Professional Multi-Engine Trend, Breakout & Scalping System
Advanced Trend Navigator is a powerful all-in-one trading indicator that fuses smart EMA trend detection, adaptive multi-filters, ribbon trend analysis, automatic trend channels, divergence detection, and built-in SL/Target projection into a single, visually intuitive system.
It is engineered for both scalpers and swing traders, with special optimization for 1-minute and 5-minute charts, while remaining highly reliable on higher timeframes.
🔹 What Makes This Indicator Unique?
Unlike single-logic indicators, Advanced Trend Navigator uses a dual-engine + structure-based approach:
EMA Smart Signal Engine → detects trend, reversals, and momentum shifts
Ribbon + Trend Channel Engine → confirms structure, breakouts, and continuation
Adaptive Filters + Divergence → remove noise and boost confidence
Risk Engine (SL/TP) → projects structured trade exits
This confluence-based design dramatically reduces false signals.
🔹 Core Features
1️⃣ Smart EMA Trend Engine
Dual EMA crossover system (Fast & Slow)
Automatic optimization for 1-minute timeframe
Detects:
Trend direction
Trend reversals
Momentum shifts
2️⃣ Multi-Layer Signal Filters
Signals are validated using a powerful adaptive filter stack:
Volume Filter (above-average volume confirmation)
RSI Filter with dynamic buy/sell thresholds
Bollinger Bands (overbought / oversold zones)
Momentum Filter (ROC-based strength detection)
Volatility Adaptation (ATR-based regime detection)
These filters dramatically reduce noise and false entries.
3️⃣ RSI Divergence Detection (1-Minute Optimized)
Bullish and bearish divergence detection
Automatic confidence boost when divergence appears
Helps identify early reversals and exhaustion zones
4️⃣ Enhanced Signal Logic
Signals are generated using a confluence of:
EMA crossovers
Candle direction
Volume + RSI + BB + Momentum
Divergence + trend-change logic
Separate logic is used for:
1-minute scalping
Higher-timeframe trend trading
5️⃣ Ribbon Trend System (CoraWave + LazyLine)
Advanced smoothed ribbon using:
CoraWave (fast line)
LazyLine (slow line)
Dynamic color-changing trend visualization
Ribbon fill highlights:
Strong bullish zones
Strong bearish zones
Neutral / transition phases
6️⃣ Automatic Trend Channel
Pivot-based dynamic trend channels
ATR-adjusted channel width
Auto-extended support & resistance structure
Visual map of evolving trend direction
7️⃣ Buy / Sell Breakout Signals (No-Spam Logic)
Signals only when:
Ribbon trend agrees
Price breaks channel boundaries
Built-in cooldown filter to prevent over-trading
Separate engine from EMA signals for dual confirmation
8️⃣ Built-In SL / Target Projection
Automatic Stop-Loss based on channel boundary
Risk-based Target 1 and Target 2 (R-multiples)
Dynamic plotting of:
SL line
Target 1 line
Target 2 line
9️⃣ Smart Time & Profit Projection
ATR-based time-to-move estimation
Dynamic profit potential estimation
Displays:
Expected move duration (minutes)
Approximate profit projection
🔟 Confidence Scoring System
Dynamic confidence % for each signal
Automatically increases when:
Divergence is detected
Bollinger extremes are triggered
🎨 Visual & Usability Features
Color-coded:
EMA lines
Ribbon trend
Trend channels
Background trend bias
Dynamic:
LONG / SHORT arrows
Signal labels with confidence + projection
Current trend status box
🔔 Alerts Included
EMA-based LONG / SHORT alerts
Ribbon fast/slow trend change alerts
Channel breakout BUY / SELL alerts
Alert messages include:
Symbol
Confidence %
Time projection
⚡ Recommended Presets
🟢 1-Minute Scalping
Fast EMA: 3 | Slow EMA: 8
Volume Filter: ON (1.1)
RSI: ON
Bollinger Bands: ON
Momentum: ON
Volatility Adaptation: ON
Ribbon: 10 / 3 / 15
Channel: Pivot 5 | ATR 14 | Width 1.5
Cooldown: 20
Targets: 1R & 2R
🔵 5-Minute Scalping (Author Preset)
Fast EMA: 5 | Slow EMA: 13
Volume Filter: ON (1.2)
RSI: OFF
Bollinger Bands: ON
Momentum: OFF
Volatility Adaptation: OFF
Ribbon: 12 / 3 / 18
Channel: Pivot 7 | ATR 14 | Width 1.7
Cooldown: 25
Targets: 1R & 2.5R
🟣 Swing Trading (15m–1H)
Fast EMA: 9 | Slow EMA: 21
Filters: All OFF
Ribbon: 15 / 5 / 25
Channel: Pivot 10 | ATR 14 | Width 2.0
Cooldown: 40
Targets: 1.5R & 3R
🎯 How to Trade This Indicator
BUY Setup:
Fast EMA > Slow EMA
Ribbon is green and rising
Price breaks above upper channel
Volume filter passes
Buy arrow appears
SELL Setup:
Fast EMA < Slow EMA
Ribbon is red and falling
Price breaks below lower channel
Volume filter passes
Sell arrow appears
❌ Avoid Trades When
Ribbon is flat or mixed colors
Channel is very narrow
Price is inside the channel
Volume filter fails
Market is extremely choppy
⚠️ Disclaimer
This indicator is a technical analysis tool, not financial advice.
Always use proper risk management and confirm signals with market context.
Past performance does not guarantee future results.
ICC Market Structure and Phase TrackingICC Market Structure and Phase Tracker
ICC Market Structure and Phase Tracker is a visual market-structure indicator based on the Indication → Correction → Continuation (ICC) framework — a structured approach to analyzing break-of-structure, pullback, consolidation, and trend-continuation phases.
The script focuses on identifying structural phases, key levels, and phase transitions across multiple timeframes, providing clear contextual market structure information.
What the Indicator Identifies
The indicator tracks complete market-structure cycles by classifying price action into the following phases:
Indication — initial structural break or trend initiation
Correction — pullback, retracement, or consolidation following the break
Continuation — expansion or impulse in the direction of structure
Neutral / No Setup — periods without valid structural conditions Each phase is visually distinguished on the chart for fast, at-a-glance structural awareness.
CORE FEATURES
Market Structure & Phase Tracking
Automatic detection of structural breaks, corrections, consolidations, and continuations
Background shading to clearly distinguish phases
Invalidation logic to identify failed or broken structures Multi-Timeframe Context
Optional higher-timeframe (HTF) structure displayed on lower-timeframe charts
HTF indication levels shown as reference lines
HTF phase and context displayed in the information table Structure Event Visualization
Visual markers for continuation and optional reversal structures
Clear visual separation between trend-aligned and counter-structure events
Reversal structure visualization can be enabled or disabled in settings Volatility-Aware Structure Zones
Structure-based support and resistance zones
Optional ATR-based zone sizing that adapts to market volatility
Configurable historical zones (0–3) with visual hierarchy Information Table
Displays current ICC phase, indication level, consolidation status, and HTF context
Designed for quick reference without relying solely on chart visuals Alerts
Alerts trigger only when corresponding visual conditions appear on the chart
Includes alerts for ICC phases, continuation structures, and optional reversals Configuration Overview
Auto Profiles for different trading contexts (Scalping, Intraday, Swing, Entry)
Manual controls for swing length, consolidation behavior, and volatility settings
Higher-timeframe controls for filtering and visual alignment
Reversal toggle to enable or disable counter-structure visualization Default settings are intended as reasonable starting points and can be adjusted for different instruments and timeframes.
Intended Use
This script is designed as a market-structure and contextual analysis tool.
Users are expected to apply their own analysis, validation, and risk management when interpreting the displayed structure.
Feedback
Bug reports, edge cases, and constructive feedback are welcome.
The project is actively refined with a focus on structure clarity, phase accuracy, and multi-timeframe usability.
Buyer-Only Breakout Scanner (India)Buyer-Only Breakout Scanner designed for Indian markets (NIFTY, BANKNIFTY, stocks).
This indicator focuses ONLY on option buyers and avoids seller-dominated and sideways markets.
Logic used:
• Volatility compression using ATR contraction + Bollinger Band squeeze
• Breakout confirmation with volume expansion
• VWAP directional filter (institutional bias)
• EMA 9 & EMA 20 for momentum and trend alignment
• False breakout protection using candle strength, follow-through, wick rejection
• Seller absorption filter to avoid premium decay zones
Signals:
• CALL BUY – only when bullish breakout is strong and buyer-friendly
• PUT BUY – only when bearish breakout is strong and buyer-friendly
• EXIT – early warning to protect option premium
Best used on:
• 5-minute chart
• Intraday trading
• Index options (ATM / ITM)
This is an indicator for manual trading with alerts, not an auto-trading strategy.
Advanced Trend Navigator by S B PrasadAdvanced Trend Navigator – by S B Prasad
A Professional Multi-Engine Trend & Breakout Trading System
Advanced Trend Navigator is a powerful, all-in-one trading indicator that combines smart EMA trend detection, adaptive filters, ribbon trend analysis, automatic trend channels, divergence detection, and built-in SL/Target projection into a single, visually intuitive system.
It is designed for both scalpers and swing traders, with special optimization for 1-minute charts and robust performance on higher timeframes.
🔹 Core Features
1️⃣ Smart EMA Trend Engine
Dual EMA crossover system (Fast & Slow)
Automatic optimization for 1-minute timeframe
Detects:
Trend direction
Trend reversals
Momentum shifts
2️⃣ Multi-Layer Signal Filters
Signals are validated using a powerful filter stack:
Volume Filter (above-average volume confirmation)
RSI Filter with dynamic buy/sell thresholds
Bollinger Bands (overbought / oversold zones)
Momentum Filter (ROC-based strength detection)
Volatility Adaptation (ATR-based regime detection)
These filters dramatically reduce false signals and noise.
3️⃣ RSI Divergence Detection (1-Minute Optimized)
Bullish and bearish divergence detection
Automatic confidence boost when divergence appears
Helps identify early trend reversals and exhaustion zones
4️⃣ Enhanced Signal Logic
Signals are generated using a confluence of:
EMA crossovers
Candle direction
Volume + RSI + BB + Momentum
Divergence + trend-change logic
Separate logic is used for:
1-minute scalping
Higher-timeframe trend trading
5️⃣ Ribbon Trend System (CoraWave + LazyLine)
Advanced smoothed ribbon using:
CoraWave (fast line)
LazyLine (slow line)
Dynamic color-changing trend visualization
Ribbon fill highlights:
Strong bullish zones
Strong bearish zones
Neutral / transition phases
6️⃣ Automatic Trend Channel
Pivot-based dynamic trend channels
ATR-adjusted channel width
Auto-extended support & resistance structure
Visual map of evolving trend direction
7️⃣ Buy / Sell Breakout Signals (No-Spam Logic)
Signals only when:
Ribbon trend agrees
Price breaks channel boundaries
Built-in cooldown filter to prevent over-trading
Separate engine from EMA signals for dual confirmation
8️⃣ Built-In SL / Target Projection
Automatic Stop-Loss based on channel boundary
Risk-based Target 1 and Target 2 (R-multiples)
Dynamic plotting of:
SL line
Target 1 line
Target 2 line
9️⃣ Smart Time & Profit Projection
ATR-based time-to-move estimation
Dynamic profit potential estimation
Displays:
Expected move duration (minutes)
Approximate profit projection
🔟 Confidence Scoring System
Dynamic confidence % for each signal
Automatically increases when:
Divergence is detected
Bollinger extremes are triggered
🎨 Visual & Usability Features
Color-coded:
EMA lines
Ribbon trend
Trend channels
Background trend bias
Dynamic:
LONG / SHORT arrows
Signal labels with confidence + projection
Current trend status box
🔔 Alerts Included
EMA-based LONG / SHORT alerts
Ribbon fast/slow trend change alerts
Channel breakout BUY / SELL alerts
Alert messages include:
Symbol
Confidence %
Time projection
🛠 Recommended Usage
Scalping:
1-minute or 3-minute charts
Enable Volume, RSI, Momentum, and Volatility filters
Intraday / Swing Trading:
5-minute to Daily charts
Use EMA + Ribbon + Channel confluence
5-Minute Scalping Settings
(High-probability intraday trades)
🔹 EMA Settings
Fast EMA: 5
Slow EMA: 13
🔹 Filters
Volume Filter
Use Volume Filter: ✅ ON
Volume Threshold: 1.2
RSI Filter
Use RSI Filter: ❌ OFF
(Turn ON only in very choppy markets)
RSI Length: 14
RSI Buy Level: 30
RSI Sell Level: 70
Bollinger Bands
Use Bollinger Bands: ✅ ON
BB Length: 20
BB Multiplier: 2.0
Momentum Filter (ROC)
Use Momentum: ❌ OFF
(Turn ON only for breakout-only trading)
Momentum Length: 3
Momentum Threshold %: 0.10
Volatility Adaptation
Use Volatility Adaptation: ❌ OFF
(Enable only for highly volatile stocks / crypto)
Volatility Multiplier: 1.5
🔹 Ribbon Settings
Fast Length: 12
Fast Smooth: 3
Slow Length: 18
Show Ribbon Fill: ✅ ON
🔹 Trend Channel
Pivot Length: 7
ATR Length: 14
Channel Width (ATR): 1.7
🔹 Buy / Sell Signals
Show Buy / Sell Signals: ✅ ON
Signal Cooldown (Bars): 25
🔹 SL / Target Projection
Show SL / Target Projection: ✅ ON
Target 1 (R): 1.0
Target 2 (R): 2.5
🔹 Visual / Display (Optional)
Show BB on Chart: ❌ OFF (keep chart clean)
Background Transparency: 80
Value to Display: Time (recommended for scalping)
🎯 How to Trade (5-Minute Mode)
Take BUY when:
Fast EMA > Slow EMA
Ribbon is green + rising
Price breaks above upper channel
Volume filter passes
Buy arrow appears
Take SELL when:
Fast EMA < Slow EMA
Ribbon is red + falling
Price breaks below lower channel
Volume filter passes
Sell arrow appears
❌ Avoid Trades When
Ribbon is flat or mixed colors
Channel is very narrow
Price is inside the channel
Volume filter fails
⚠️ Disclaimer
This indicator is a technical analysis tool, not financial advice.
Always use proper risk management and confirm signals with market context.
Past performance does not guarantee future results.
Predictive Emini Dynamics] ENHANCED - Price Cascade Focus v2201A smart-money + market-dynamics Cascade trading system that predicts short-term direction, highlights high-probability zones, and filters bad trades.
Core functions
1. Market Structure (SMC)
Detects FVGs, Order Blocks, BOS, CHoCH
Shows where institutions likely buy/sell
Auto-removes zones when mitigated
2. Liquidity Logic
Tracks Asia / London / NY highs & lows
Detects liquidity sweeps
Identifies cascade sweeps (multi-session stop hunts → high conviction reversal)
Warns on fakeouts (both sides swept = stay out)
3. Direction Prediction Engine
Scores bullish vs bearish using:
Momentum
Volume pressure
Delta
Absorption
Sweeps
Structure breaks
Outputs:
Forecast: BULL / BEAR / NEUTRAL
Strength % (confidence)
4. Trade Signal System
Only triggers trades when:
Forecast strength is high
Volume confirms (RVOL)
EMA trend aligns
Candle confirms
Not in danger zone
Auto-sets:
Stop (ATR based)
Target (R multiple)
5. Danger Zone Filter (very important)
Blocks trading when:
Low volume
Low volatility
Tight range
Lunch hours
This prevents chop and overtrading.
6. Sessions & Context
Draws Asia, London, NY boxes
Helps you know when moves are likely to happen
7. Stats Table (decision panel)
One glance tells you:
Trade or wait
Direction & confidence
Trend, momentum, pressure
Session
Danger status
This indicator waits for smart money to grab liquidity, confirms direction with momentum + volume + structure, blocks bad conditions, then signals only high-probability trades.
Pair with my Pulse system for best results
SPY 5m Scalper + Auto Exit 3PM ET5m chart scalper for Spy/QQQ. It uses the 9,21,50 ema and the vwap to time puts and calls while trading options, you can also use it on other stocks.
[TehThomas] - Aligned Timeframe Liquidity Sweeps█ OVERVIEW
The Liquidity Sweeps ICT MTF indicator automatically detects and visualizes buyside and sellside liquidity levels based on higher timeframe (HTF) swing points. Designed specifically for traders using Smart Money Concepts and ICT (Inner Circle Trader) methodology, this tool helps identify where institutional players are likely hunting liquidity before making directional moves.
█ KEY FEATURES
✓ Automatic ICT-Aligned Timeframe Selection
• Intelligently selects the higher timeframe based on your current chart
• Follows ICT's recommended correlations (5min→1h, 15min→4h, 1h→Daily, etc.)
• No manual timeframe selection needed - adapts automatically
✓ Precise Liquidity Level Placement
• Lines start exactly at the LTF candle that created the HTF swing point
• Searches backwards through historical data to find exact placement
• Eliminates guesswork about where institutional orders cluster
✓ Real-Time Sweep Detection
• Solid lines indicate untouched liquidity (active levels)
• Lines automatically turn dotted when price sweeps through them
• Swept lines stop at the exact bar of the sweep (clean visualization)
• Both wicks and candle bodies trigger sweep detection
✓ Fully Customizable Per Timeframe
• Individual swing detection settings for each HTF (1m, 15m, 1h, 4h, D, W, M)
• Adjust sensitivity to show major levels only or capture granular liquidity pools
• Customizable colors and line width
• Organized settings groups for easy navigation
█ HOW IT WORKS
The indicator identifies swing highs and swing lows on a higher timeframe using pivot point detection. These swing points represent areas where stop-loss orders from retail traders concentrate, creating "liquidity pools" that smart money targets.
Timeframe Alignment (Automatic):
• 15s chart → 1min HTF
• 1min chart → 15min HTF
• 5min chart → 1hour HTF
• 15min chart → 4hour HTF
• 1hour chart → Daily HTF
• 4hour chart → Weekly HTF
• Daily chart → Monthly HTF
Swing Detection:
The indicator uses customizable left/right bar counts to identify valid swing points on the HTF. Default values are optimized per timeframe (e.g., 10 bars for 1h, 5 bars for Daily), but can be adjusted to your preference.
Visualization:
• Green lines = Buyside liquidity (swing highs where long stops sit)
• Red lines = Sellside liquidity (swing lows where short stops sit)
• Solid style = Untouched liquidity
• Dotted style = Swept liquidity
█ SETTINGS
Swing Detection Group:
• Swing Bars - 1 Minute: Default 5 bars
• Swing Bars - 15 Minutes: Default 8 bars
• Swing Bars - 1 Hour: Default 10 bars
• Swing Bars - 4 Hours: Default 6 bars
• Swing Bars - Daily: Default 5 bars
• Swing Bars - Weekly: Default 3 bars
• Swing Bars - Monthly: Default 2 bars
Tip: Increase values for cleaner charts with major levels only. Decrease for more sensitive detection.
Display Group:
• Buyside Liquidity Color: Default green
• Sellside Liquidity Color: Default red
• Line Width: Adjustable 1-5
█ HOW TO USE
Reading the liquidity levels:
🟢 Green solid line = Untouched buyside liquidity (potential magnet for price)
🔴 Red solid line = Untouched sellside liquidity (potential magnet for price)
🟢 Green dotted line = Swept buyside liquidity (bulls trapped)
🔴 Red dotted line = Swept sellside liquidity (bears trapped)
Trading Applications:
1. Liquidity Grab Reversals: Watch for sweeps followed by immediate reversals
2. Stop Hunt Detection: Multiple sweeps often precede strong counter-moves
3. Target Identification: Use untouched levels as potential price magnets
4. Market Structure Analysis: Understand institutional order flow
5. Confluence Zones: Combine with order blocks, FVGs, or other ICT concepts
Best Practices:
• Focus on liquid markets (major FX pairs, indices, large-cap stocks)
• Consider higher timeframe trend - sweeps against trend are higher probability
• Look for liquidity clusters (multiple levels close together)
• Wait for confirmation after sweeps before entering
• Not all sweeps result in reversals - context matters
█ TRADING STRATEGY EXAMPLES
Liquidity Sweep Reversal:
1. Identify untouched liquidity level
2. Wait for price to sweep through (line turns dotted)
3. Look for reversal price action (engulfing, rejection)
4. Enter in reversal direction with stop beyond the sweep
5. Target next liquidity level or structure
Liquidity-to-Liquidity:
1. Price sweeps sellside liquidity (red dotted)
2. Enter long positions
3. Target buyside liquidity above (green solid)
4. Exit when buyside liquidity is swept
█ IDEAL FOR
• ICT Methodology Traders
• Smart Money Concept Practitioners
• Liquidity-Based Strategies
• Multi-Timeframe Analysis
• Price Action Traders
• Stop Hunt Avoidance
█ TECHNICAL SPECIFICATIONS
• Maximum Lines: 500
• Lookback Range: Up to 1000 bars for precise placement
• Compatible: All markets and timeframes
• Data: Works on both real-time and historical bars
█ NOTES & DISCLAIMERS
• This indicator is a tool for analysis, not a standalone trading system
• Always use proper risk management and combine with other analysis
• Performance may vary across different markets and conditions
• Based on ICT concepts - familiarity with Smart Money trading is recommended
█ LIQUIDITY FOR SINGLETIMEFRAMES
If you prefer normal liquidity lines you can use my other free liquidity indicator
Ultimate Volume Dashboard & Signals V2📋 Clear Entry Criteria Summary
BUY Entry SELL Entry
✅ RVOL ≥ 1.5x ✅ RVOL ≥ 1.5x
✅ Green Candle ✅ Red Candle
✅ Strong Body (>50%) ✅ Strong Body (>50%)
✅ Price > VWAP ✅ Price < VWAP
✅ Price > EMA 50 ✅ Price < EMA 50
✅ RSI 50-80 ✅ RSI 20-50
⭐ Extreme Vol = Strong Signal ⭐ Extreme Vol = Strong Signal
🆕 Key Improvements
Cooldown Period - Prevents signal spam
EMA Filter - Additional trend confirmation
Candle Body Check - Filters weak/doji candles
Strong vs Regular Signals - Extreme volume = higher conviction
Entry/SL Levels - ATR-based levels displayed
Alert Conditions - Ready for notifications
Would you like me to add backtesting statistics or multi-timeframe confirmation?
//@version=5
indicator("Ultimate Volume Dashboard & Signals", overlay=true)
// ==========================================
// 1. SETTINGS & INPUTS
// ==========================================
// General Settings
lookback_len = input.int(20, "Volume Moving Average Length", group="Volume Settings")
rvol_thresh = input.float(1.5, "RVOL Threshold (Breakout Level)", step=0.1, group="Volume Settings")
// Trend Settings
use_vwap = input.bool(true, "Filter Signals using VWAP", group="Trend Filters")
rsi_len = input.int(14, "Momentum Length (RSI)", group="Trend Filters")
// Dashboard Settings
show_table = input.bool(true, "Show Dashboard", group="UI Settings")
table_size = input.string("Small", "Table Size", options= , group="UI Settings")
// ==========================================
// 2. CALCULATIONS
// ==========================================
// --- Volume Calculations ---
vol_ma = ta.sma(volume, lookback_len) // Average Volume
rvol = volume / vol_ma // Relative Volume (Current vs Average)
// --- Trend & Momentum Calculations ---
rsi_val = ta.rsi(close, rsi_len) // RSI Momentum
vwap_val = ta.vwap(close) // Volume Weighted Average Price
// Detect Volume Spikes (The "Upcoming" Momentum)
is_vol_spike = rvol >= rvol_thresh
// ==========================================
// 3. SIGNAL LOGIC
// ==========================================
// Bullish Signal Logic
// 1. Volume is significantly higher than average (Spike)
// 2. Candle is Green (Close > Open)
// 3. Price is above VWAP (Institutional Control)
// 4. RSI is rising but not completely maxed out (>50)
bull_trend = use_vwap ? (close > vwap_val) : true
buy_signal = is_vol_spike and close > open and bull_trend and rsi_val > 50 and rsi_val < 90
// Bearish Signal Logic
// 1. Volume Spike
// 2. Candle is Red (Close < Open)
// 3. Price is below VWAP
// 4. RSI is falling (<50)
bear_trend = use_vwap ? (close < vwap_val) : true
sell_signal = is_vol_spike and close < open and bear_trend and rsi_val < 50 and rsi_val > 10
// ==========================================
// 4. VISUALS ON CHART
// ==========================================
// Color Bars based on Volume Intensity
bar_color = is_vol_spike ? (close > open ? color.new(color.lime, 0) : color.new(color.red, 0)) : (close > open ? color.new(color.gray, 60) : color.new(color.gray, 60))
barcolor(bar_color)
// Plot Buy/Sell Labels
plotshape(buy_signal, title="BUY Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="VOL BUY", textcolor=color.white, size=size.small)
plotshape(sell_signal, title="SELL Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="VOL SELL", textcolor=color.white, size=size.small)
// Plot VWAP for reference
plot(use_vwap ? vwap_val : na, "VWAP", color=color.yellow, linewidth=1)
// ==========================================
// 5. DASHBOARD PANEL
// ==========================================
if show_table
// Define Table Size
t_size = table_size == "Tiny" ? size.tiny : table_size == "Small" ? size.small : table_size == "Normal" ? size.normal : size.large
text
// Create Table (Top Right)
var tbl = table.new(position.top_right, 2, 5, bgcolor=color.new(color.black, 50), border_color=color.gray, border_width=1, frame_color=color.gray, frame_width=1)
// --- Header ---
table.cell(tbl, 0, 0, "METRIC", text_color=color.white, bgcolor=color.new(color.blue, 20), text_size=t_size)
table.cell(tbl, 1, 0, "STATUS", text_color=color.white, bgcolor=color.new(color.blue, 20), text_size=t_size)
// --- Row 1: RVOL (Volume Strength) ---
rvol_color = rvol > 2.0 ? color.red : rvol > 1.0 ? color.green : color.gray
rvol_txt = rvol > 2.0 ? "EXTREME (" + str.tostring(rvol, "#.##") + "x)" : rvol > 1.0 ? "High (" + str.tostring(rvol, "#.##") + "x)" : "Low (" + str.tostring(rvol, "#.##") + "x)"
table.cell(tbl, 0, 1, "Rel Volume (RVOL)", text_color=color.white, text_size=t_size)
table.cell(tbl, 1, 1, rvol_txt, text_color=color.white, bgcolor=rvol_color, text_size=t_size)
// --- Row 2: Trend (VWAP) ---
trend_txt = close > vwap_val ? "BULLISH" : "BEARISH"
trend_col = close > vwap_val ? color.green : color.red
table.cell(tbl, 0, 2, "Trend (VWAP)", text_color=color.white, text_size=t_size)
table.cell(tbl, 1, 2, trend_txt, text_color=color.white, bgcolor=trend_col, text_size=t_size)
// --- Row 3: Momentum (RSI) ---
mom_txt = rsi_val > 50 ? "Positive" : "Negative"
mom_col = rsi_val > 50 ? color.green : color.red
table.cell(tbl, 0, 3, "Momentum", text_color=color.white, text_size=t_size)
table.cell(tbl, 1, 3, mom_txt, text_color=color.white, bgcolor=mom_col, text_size=t_size)
// --- Row 4: Signal Status ---
sig_txt = buy_signal ? "BUY NOW" : sell_signal ? "SELL NOW" : "WAIT"
sig_col = buy_signal ? color.lime : sell_signal ? color.red : color.gray
table.cell(tbl, 0, 4, "ACTION", text_color=color.white, bgcolor=color.new(color.white, 80), text_size=t_size)
table.cell(tbl, 1, 4, sig_txt, text_color=color.black, bgcolor=sig_col, text_size=t_size) clear entre based on code
Previous Daily Levels (PDH/PDL/PDO)A clean and precise indicator that plots the Previous Day's High, Low, and Open levels on your chart. These key reference points are essential for intraday traders and work seamlessly on any lower timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 KEY FEATURES
Accurate Origin Points – Lines start exactly where the high/low/open occurred, not from an arbitrary point
Multi-Timeframe Compatible – Works on any timeframe (1m, 5m, 15m, 1H, etc.)
Fully Customizable – Individual colors, styles, and visibility for each level
Smart Labels – Price labels positioned above/below lines to avoid overlap
Built-in Alerts – Get notified when price crosses any level
Optional Info Table – Quick reference panel showing all levels
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 LEVELS EXPLAINED
PDH (Previous Daily High) – The highest price reached during the previous trading day. Often acts as resistance.
PDL (Previous Daily Low) – The lowest price reached during the previous trading day. Often acts as support.
PDO (Previous Daily Open) – The opening price of the previous trading day. Key reference for bias direction.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
Previous Daily High (PDH)
Show/Hide PDH
Line Color
Line Style (Solid / Dashed / Dotted)
Line Width (1-4)
Extend Line (on/off)
Previous Daily Low (PDL)
Show/Hide PDL
Line Color
Line Style (Solid / Dashed / Dotted)
Line Width (1-4)
Extend Line (on/off)
Previous Daily Open (PDO)
Show/Hide PDO
Line Color
Line Style (Solid / Dashed / Dotted)
Line Width (1-4)
Extend Line (on/off)
Labels
Show/Hide Labels
Label Size (Tiny / Small / Normal / Large)
Label Offset – Horizontal distance from current bar
Label Y Offset – Vertical spacing from line (ATR-based)
Info Table
Show/Hide Table
Table Position (Top Left / Top Right / Bottom Left / Bottom Right)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS
Set alerts for any of the following conditions:
Price crosses above PDH
Price crosses below PDH
Price crosses above PDL
Price crosses below PDL
Price crosses above PDO
Price crosses below PDO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 HOW TO USE
Support & Resistance
PDH and PDL often act as significant support/resistance levels. Watch for rejections or breakouts at these levels.
Daily Bias
Compare current price to PDO:
Price > PDO → Bullish bias
Price < PDO → Bearish bias
Breakout Trading
A clean break above PDH or below PDL with volume can signal continuation moves.
Mean Reversion
Look for failed breakouts and sweeps of PDH/PDL as potential reversal zones.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 NOTES
Best used on intraday timeframes (1m to 4H)
Levels update automatically at the start of each new trading day
Combine with volume analysis and market structure for best results
FS instant (extremo 4H) - R.AlvaradoFS Instant (4H Extremes) – R. Alvarado automatically detects and marks Failure Swings (FS) at 4H highs and lows when they are formed during the final 15-minute candle (:45) of each 4-hour block, specifically at 00:45, 04:45, 08:45, 12:45, 16:45, and 20:45 New York time. The indicator runs exclusively on the 15-minute timeframe and evaluates whether that candle printed the high or low of the completed 4H candle using a configurable tick tolerance, instantly labeling the event at candle close. This tool is designed for traders who want to identify liquidity events and potential reversals (Failure Swings) in real time while aligning lower-timeframe execution with higher-timeframe structure, and should be used as a contextual aid rather than a standalone trading signal.
Pro Volume & Momentum Dashboard [CONFIRMED ENTRY v2.1]🎯 Key Upgrades in This Version:
1. 10-Point Confluence Scoring System
# Factor Description
1 Volume Spike RVOL ≥ threshold with directional candle
2 Volume Delta Buy vs Sell pressure analysis
3 VWAP Position Institutional fair value
4 200 EMA Macro trend alignment
5 EMA Stack 9 > 21 > 50 alignment
6 ADX Trend strength + direction
7 RSI Momentum confirmation
8 MACD Histogram momentum
9 HTF Trend Higher timeframe alignment
10 Candle Quality Strong body, minimal wicks
2. Confirmed Entry Logic
✅ Requires minimum 7/10 confluence score (adjustable)
✅ Waits for candle close to avoid fakeouts
✅ 5-bar cooldown prevents duplicate signals
✅ Potential setups warned when score is 5-6/10
3. Risk Management
Auto-calculated Stop Loss (ATR-based)
Two Take Profit levels (TP1 & TP2)
Visual risk zones on chart
Risk/Reward ratio displayed
4. Higher Timeframe Confirmation
Checks 1H (or custom) timeframe trend
Ensures trade aligns with bigger picture
📌 How to Use:
Wait for ◆ CONFIRMED BUY/SELL label (not triangles)
Check dashboard for 7+/10 score
Entry: On signal candle close
Stop Loss: Red line below/above
Take Profit: Green lines (scale out at TP1, full exit TP2)
🕯️ Candlestick Patterns Added
Bullish Patterns (11 Total)
Pattern Description Strength
Bullish Engulfing Green candle engulfs prior red ⭐⭐⭐ Strong
Hammer Long lower wick at bottom ⭐⭐ Medium
Morning Star 3-candle reversal pattern ⭐⭐⭐ Strong
Bullish Harami Small green inside large red ⭐⭐ Medium
Piercing Line Opens gap down, closes above mid ⭐⭐ Medium
Three White Soldiers 3 consecutive strong green candles ⭐⭐⭐ Strong
Dragonfly Doji Long lower wick, no body ⭐⭐ Medium
Tweezer Bottom Equal lows at support ⭐⭐ Medium
Bullish Marubozu Full body, no wicks ⭐⭐⭐ Strong
Rising Three Continuation after pullback ⭐⭐ Medium
Bearish Patterns (11 Total)
Pattern Description Strength
Bearish Engulfing Red candle engulfs prior green ⭐⭐⭐ Strong
Shooting Star Long upper wick at top ⭐⭐ Medium
Evening Star 3-candle reversal pattern ⭐⭐⭐ Strong
Bearish Harami Small red inside large green ⭐⭐ Medium
Dark Cloud Cover Opens gap up, closes below mid ⭐⭐ Medium
Three Black Crows 3 consecutive strong red candles ⭐⭐⭐ Strong
Gravestone Doji Long upper wick, no body ⭐⭐ Medium
Tweezer Top Equal highs at resistance ⭐⭐ Medium
Bearish Marubozu Full body, no wicks ⭐⭐⭐ Strong
Falling Three Continuation after pullback ⭐⭐ Medium
Hanging Man Long lower wick at top ⭐⭐ Medium






















