Trading Sessions [QuantAlgo]🟢 Overview
The Trading Sessions indicator tracks and displays the four major global trading sessions: Sydney, Tokyo, London, and New York. It provides session-based background highlighting, real-time price change tracking from session open, and a data table with session status. The script works across all markets (forex, equities, commodities, crypto) and helps traders identify when specific geographic markets are active, which directly correlates with changes in liquidity and volatility patterns. Default session times are set to major financial center hours in UTC but are fully adjustable to match your trading methodology.
🟢 Key Features
→ Session Background Color Coding
Each trading session gets a distinct background color on your chart:
1. Sydney Session - Default orange, 22:00-07:00 UTC
2. Tokyo Session - Default red, 00:00-09:00 UTC
3. London Session - Default green, 08:00-16:00 UTC
4. New York Session - Default blue, 13:00-22:00 UTC
When sessions overlap, the color priority is New York > London > Tokyo > Sydney. This means if London and New York are both active, the background shows New York's color. The priority matches typical liquidity and volatility patterns where later sessions generally show higher volume.
→ Color Customization
All session colors are configurable in the Color Settings panel:
1. Click any session color input to open the color picker
2. Select your preferred color for that session
3. Use the "Background Transparency" slider (0-100) to adjust opacity. Lower values = more visible, higher values = more subtle
4. Enable "Color Price Bars" to color candlesticks themselves according to the active session instead of just the background
The Color column in the info table shows a block (█) in each session's assigned color, matching what you see on the chart background.
→ Information Table Breakdown
→ Timeframe Warning
If you're viewing a timeframe of 12 hours or higher, a red warning label appears center-screen. Session boundaries don't render accurately on high timeframes because the time() function in Pine Script can't detect intra-bar session changes when each bar spans multiple sessions. The warning tells you to switch to sub-12H timeframes (e.g., 4H, 1H, 30m, 15m, etc.) for proper session detection. You can disable this warning in Color Settings if needed, but session highlighting can be unreliable on 12H+ charts regardless.
→ Time Range Configuration
Every session's time range is editable in Session Settings:
1. Click the time input field next to each session
2. Enter time as HHMM-HHMM in 24-hour format
3. All times are interpreted as UTC
4. Modify these to account for daylight saving shifts or to define custom session periods based on your backtested optimal trading windows
For example, if your strategy performs best during London/NY overlap specifically, you could set London to 08:00-17:00 and New York to 13:00-22:00 to ensure you see the full overlap highlighted.
→ Weekdays Filter
The "Weekdays Only (Mon-Fri)" toggle controls whether sessions display on weekends:
Enabled: Sessions only show Monday-Friday and hide on Saturday-Sunday. Use this for markets that close on weekends (most equities, forex).
Disabled: Sessions display 24/7 including weekends. Use this for markets that trade continuously (crypto).
→ Table Display Options
The info table has several configuration options in Table Settings:
Visibility: Toggle "Show Info Table" on/off to display or hide the entire table.
Position: Nine position options (Top/Middle/Bottom + Left/Center/Right) let you place the table wherever it doesn't block your price action or other indicators.
Text Size: Four size options (Tiny, Small, Normal, Large) to match your screen resolution and visual preferences.
→ Color Schemes:
Mono: Black background, gray header, white text
Light: White background, light gray header, black text
Blue: Dark blue background, medium blue header, white text
Custom: Manual selection of all five color components (table background, header background, header text, data text, borders)
→ Alert Functionality
The indicator includes ten alert conditions you can access via TradingView's alert system:
Session Opens:
1. Sydney Session Started
2. Tokyo Session Started
3. London Session Started
4. New York Session Started
5. Any Session Started
Session Closes:
6. Sydney Session Ended
7. Tokyo Session Ended
8. London Session Ended
9. New York Session Ended
10. Any Session Ended
These alerts fire when sessions transition based on your configured time ranges, letting you automate monitoring of session changes without watching the chart continuously. Useful for strategies that trade specific session opens/closes or need to adjust position sizing when volatility regime shifts between sessions.
Multitimeframe
Agressive Pricing Gaps (FVG/UPG,VI,OG) @MaxMaserati 3.0Aggressive Pricing Gaps (APGs 3.0)
The indicator specializes in identifying and managing price vacuums left behind when aggressive market participants rapidly move price, leaving areas that often serve as magnets for future mitigation.
1. Unfair Pricing Gaps (UPG) Analysis
The UPG logic is the indicator's main function, detecting a traditional three-candle price imbalance (FVG).
Detection Mechanism: A bullish UPG is identified when the high of candle 3 is below the low of candle 1 (with candle 2 being the expansive candle). A bearish UPG is identified when the low of candle 3 is above the high of candle 1.
Multi-Timeframe Support: UPG detection can be run on a Higher Timeframe (HTF), allowing traders to monitor significant weekly, daily, or H4 imbalances while viewing a lower execution timeframe.
Volume Filter: An optional Volume Filter based on EMA can be applied, restricting the plotting of UPGs only to those associated with volume exceeding the specified filter strength, thereby enhancing signal quality.
Sliced Mitigation: Each UPG is divided into multiple Box Slices (up to 20). This feature allows for detailed tracking of partial filling and precise visual confirmation as price moves through the gap.
2. Negative/Positive Candle Opening Gaps (OP+/-)
This logic focuses on the smaller, often immediate, gaps left between the closing price of one candle and the opening price of the next, representing minor immediate aggression or volatility.
Detection:
Positive Opening (OP+): Occurs when the current bar opens above the previous bar's close. When it happen we expect price to keep closing above it to maintain the bullish pressure.
Negative Opening (OP-): Occurs when the current bar opens below the previous bar's close. When it happen we expect price to keep closing below it to maintain the bearish pressure.
Timeframe Independence: OP Gaps can be displayed on a different timeframe from the UPG, or strictly on the chart's current timeframe.
MadblockUser Instructions for the "Madblock" Indicator (Pine Script v6 – TradingView)
This script creates a daily "Madblock" zone based on the high and low of the 15:30–15:45 NY time period (previous day’s final 15 minutes of regular trading hours for US equities/indices). It then generates optional entry signals the following trading day when price breaks this zone while respecting additional filters (EMAs, time window, signal spacing, and daily limit).
1. How to Add the Script to Your Chart
1. Open TradingView (tradingview.com).
2. Open any chart (preferably ES, NQ, SPX, SPY, or another instrument with US trading hours).
3. Click Pine Editor at the bottom.
4. Delete any existing code and paste the entire script provided.
5. Click Add to Chart (or Save → Add to Chart).
6. The indicator will appear as “Madblock”.
2. Input Settings (customizable in the indicator’s settings panel)
| Input | Default | Description |
|-----------------------|---------|-------------------------------------------------------------------------------------------------|
| Show Madblock Boxes | true | Displays the purple Madblock zones on the chart. Uncheck to hide boxes but keep signals. |
| Box Color | Purple | Color of the Madblock rectangle and background. |
| Transparency | 80 | Background transparency of the box (0 = opaque, 100 = fully transparent). |
| Enable Madblock Signals | true | Turns the long/short entry signals on or off. |
| Show 50 EMA (15m & 30m) | true | Displays the 50-period EMA from the 15-minute and 30-minute timeframes (yellow & orange lines). |
3. What the Indicator Does – Core Functionality
**A. Madblock Zone Creation (Previous Day)**
- Every day at 15:30 NY time → a new box is started using the high/low of that 15:30 candle.
- At 15:45 NY time → the box is finalized by taking the maximum high and minimum low of both the 15:30 and 15:45 candles.
- The box is drawn from 15:30 that day until 17:00 the next trading day (skips weekend automatically).
- This finalized zone becomes the reference levels for the next trading day’s signals.
**B. Signal Generation (Current Trading Day)**
Signals can only appear between 09:45 and 15:59 NY time (no signals in the first 15 minutes after 09:30 open).
Long Signal (green triangle below bar, text “MB”)
- Price closes above yesterday’s Madblock high
- Price is above both the 15-min 50 EMA and 30-min 50 EMA
- At least 4 bars have passed since the previous signal
- Maximum 3 signals per day (long + short combined)
Short Signal (orange triangle above bar, text “MB”)
- Price closes below yesterday’s Madblock low
- Price is below both the 15-min 50 EMA and 30-min 50 EMA
- Same spacing and daily limit rules as long signals
4. Recommended Chart Settings
- Timeframe: 15-minute charts work best.
- Session: Use “Extended Hours” turned OFF (regular trading hours only) for most accurate appearance.
- Time zone: Ensure your chart is set to New York time (or Exchange time for US instruments).
5. Important Notes & Limitations
- The script requires at least two full trading days of history to display boxes and generate signals correctly.
- On Mondays the box is created from the previous Friday’s 15:30–15:45 period.
- Boxes are capped at 500 (TradingView limit); old boxes automatically disappear as new ones are created.
- Signals are purely mechanical and for educational/informational purposes only. No guarantee of profitability.
6. Quick Checklist for Daily Use
1. Confirm chart time zone is America/New_York.
2. Verify yesterday’s purple Madblock zone is visible (15:30–17:00 stretch).
3. Look for “MB” triangles only after 09:45 and before 16:00.
4. Maximum of three signals (combined long + short) per session.
That is all you need to start using the Madblock indicator effectively. Adjust the input settings to match your preferred visual style or to disable elements you do not need.
Etherium CME gaps multi-timeframe auto finderThis indicator is a powerful tool that automatically detects and visualizes price gaps (Gaps) in the Ethereum CME futures market across multiple timeframes and also provides alert functionality. Price gaps occur when the futures market is inactive for a certain period, often acting as potential support or resistance zones.
What is an Ethereum CME Gap?
CME (Chicago Mercantile Exchange) is one of the largest derivatives exchanges globally. The Ethereum CME futures market is closed on weekends and certain holidays. When the market reopens, a price difference may occur between the previous closing price and the new opening price, referred to as a "CME Gap."
Key Features of the Indicator
Multi-timeframe gap detection: Detects and displays gaps across 5m, 15m, 30m, 1h, 4h, 1d timeframes simultaneously.
Customizable CME Symbol: You can specify Ethereum CME futures symbols, such as ETH1!.
Two gap price display methods:
CME_price: Displays the gap based on the actual price levels in the CME futures market.
Chart_price: Adjusts the gap to match the price levels on the chart being viewed (e.g., spot market). This helps visualize the impact of futures gaps on the spot market.
Visual customization:
Individual color settings for bullish/bearish gap boxes for each timeframe.
Adjust the extension (display length) of gap boxes in bars.
Configure label display, position, text size, background, and text color.
Highlight significant gaps: Emphasize gaps above a specified percentage with a unique color and border thickness.
Alert functionality: Receive notifications when a gap is detected, with options to enable alerts only for specific timeframes.
Why CME Gaps Matter
Traders often consider CME gaps as significant price zones.
Gap Fill: Historical data shows that many gaps tend to get "filled" over time, meaning the price returns to the gap area, reaching the start or end point of the gap.
Support/Resistance: Unfilled gaps can serve as potential support (Bullish Gap) or resistance (Bearish Gap) zones.
Bullish Gap: Occurs when the current opening price is higher than the previous closing price. Typically leaves an unfilled gap below (previous high), which can act as potential support.
Bearish Gap: Occurs when the current opening price is lower than the previous closing price. Typically leaves an unfilled gap above (previous low), which can act as potential resistance.
How to Use the Indicator
Add Indicator on TradingView: Click the "Indicators" button on the TradingView chart.
Find the indicator in "My Scripts" or "Invite-Only Scripts" and add it to the chart.
Adjust Settings: Once the indicator is added, click the settings (gear) icon to adjust inputs.
CME Symbol (ETH): ETH1! is typically the default symbol for Ethereum CME futures. Confirm based on your broker or data feed.
Min gap %: Set the minimum gap size in percentage; smaller gaps will not be displayed.
Select Exchanges to Display gap price: Choose between "CME_price" or "Chart_price." For viewing futures gaps on a spot chart, "Chart_price" is recommended.
Show Xm/h/d gap boxes: Select which timeframe gap boxes to display.
Color, Extension, Label settings: Customize the visual aspects of gap boxes and labels.
Highlight gap % (>=): Set the minimum percentage for highlighting significant gaps.
Enable Alerts: Choose whether to receive alerts when a gap is detected.
Alert Timeframe: Select whether alerts apply to all timeframes or specific ones only.
Chart Analysis
Once the indicator is applied, gap boxes for the selected timeframes appear on the chart.
Green shades indicate Bullish Gaps, and red shades indicate Bearish Gaps (default green can be customized, and bearish gap color can be set separately).
Highlighted gaps may carry higher significance and should be monitored carefully.
Potential trading opportunities can be explored when the price approaches or attempts to fill a gap.
Usage Strategies (Examples)
Support/Resistance Confirmation: The lower boundary of a bullish gap can act as potential support, while the upper boundary of a bearish gap can act as potential resistance. Observe for reversals or breakouts when price reaches these areas.
Retracement Trading: Trade when the price returns to fill a gap after leaving it through a sharp move up or down.
Multi-timeframe Analysis: Gaps overlapping across multiple timeframes can form stronger support/resistance zones.
Considerations
* "Gap Filled" Condition: The indicator does not draw a gap if it determines that the gap has already been filled by the current bar’s low (bullish gap) or high (bearish gap).
* Tool Only: This indicator is a gap detection tool and should not be used alone for trading decisions. Always combine with other technical analysis tools and your trading strategy.
* Past Data ≠ Future Guarantee: Historical gap fill trends do not guarantee future occurrences.
This indicator allows effective tracking of Ethereum CME futures gaps and provides valuable insights for enhancing your trading strategy.
Candle 2 Closure📌 Indicator Presentation – Candle 2 Closure
" Candle 2 Closure "s is an indicator designed to identify three types of price–action-based signals in real time: Long, Short, and Generic.
The goal is to visually highlight moments when the market breaks a key level of the previous candle but rejects that break, closing on the opposite side.
The idea was inspired by the study of pure price action and specifically by the following video:
👉 www.youtube.com
🎯 How the Indicator Works
The indicator generates signals on bar close (barstate.isconfirmed), making them reliable and free from repainting.
🔵 LONG Signal
A long signal is triggered when:
The current candle breaks the low of the previous candle
But then closes back above that low
→ This is often a sign of a bear trap or a liquidity rejection to the downside.
🔴 SHORT Signal
A short signal is triggered when:
The current candle breaks the high of the previous candle
But then closes back below that high
→ This may indicate a bull trap or a liquidity rejection to the upside.
⚪ GENERIC Signal
A generic signal is triggered when:
A high or low is broken,
But neither the long nor short conditions are met,
Resulting in a simple unconfirmed break.
📍 Operational Advantages
Highlights liquidity absorption zones
Works on all timeframes (1m → 1D)
Useful for scalping, intraday, or swing trading
Clear and immediate visual signals on the chart
Zero repainting
✨ Visual Style
LONG displayed below the candle, white color
SHORT displayed above the candle, white color
Generic signal shown with a neutral label
SMT Pro — Multi-Timeframe Divergence (MD)# SMT Pro - Multi-Timeframe Divergence
## What You Get
SMT Pro automatically identifies Smart Money Technique (SMT) divergences across multiple correlated markets, giving you high-probability reversal signals that institutional traders watch.
**Key Benefits:**
- **Automatic Market Correlation** - The indicator intelligently selects correlated pairs (ES/YM, NQ/ES, GC/XAUUSD) based on your chart symbol, or you can specify custom pairs
- **Clean, Actionable Signals** - Only the most relevant divergences are displayed, eliminating noise through intelligent priority filtering
- **Multi-Timeframe Coverage** - From 1-minute scalping to monthly swing trading, all major timeframes are covered
- **Higher Timeframe Priority** - Advanced algorithm ensures higher timeframe signals always take precedence, preventing conflicting signals
- **Professional Visualization** - Clear color-coded lines and labels show exact divergence levels and timeframes
## What Is SMT?
Smart Money Technique (SMT) occurs when two correlated markets move in opposite directions at key turning points. When one market makes a new high/low while its correlated pair fails to confirm, it signals institutional repositioning and potential reversals.
**Example:**
- ES makes a new higher high
- YM makes a lower high (fails to confirm)
- Result: Bearish SMT divergence = potential reversal down
## Features
- **10 Timeframe Controls**: Monthly, Weekly, Daily, 12H, 4H, 1H, 30min, 15min, 5min, 1min
- **Direction Filter**: Choose Bullish, Bearish, or Both signals
- **Symbol Modes**: Automatic correlation detection or manual pair selection
- **Customizable Colors**: Match your chart theme with adjustable bullish/bearish colors
- **Smart Display**: Labels show the timeframe of each divergence
- **Optimized Performance**: Advanced algorithms ensure fast, reliable signal detection
## How To Use
1. **Add to Chart**: Apply SMT Pro to your primary market chart (e.g., ES, NQ, BTC, EUR)
2. **Configure Symbols**:
- **Automatic Mode** (Recommended): The indicator auto-selects correlated pairs
- **Manual Mode**: Specify custom symbol pairs for analysis
3. **Select Timeframes**: Enable/disable timeframes based on your trading style:
- Scalpers: 1min, 5min, 15min
- Day Traders: 15min, 30min, 1H, 4H
- Swing Traders: 4H, 12H, Daily, Weekly
- Position Traders: Daily, Weekly, Monthly
4. **Interpret Signals**:
- **Blue Lines** = Bullish SMT (potential reversal up)
- **Red Lines** = Bearish SMT (potential reversal down)
- **Labels** = Show timeframe and which correlated symbol triggered the divergence
5. **Trade Confirmation**: Use SMT signals with your existing strategy for entry confirmation, stop placement, and profit targets
## Best Practices
- **Higher Timeframes = Higher Probability**: Weekly and Daily SMTs carry more weight than minute-based signals
- **Confluence Is Key**: Multiple timeframe SMTs at the same level increase trade probability
- **HTF Priority System**: The indicator automatically prioritizes higher timeframe signals, reducing visual clutter
- **Wait for Confirmation**: Let price action confirm the divergence before entering
- **Combine With Price Action**: Use SMT with support/resistance, order blocks, and liquidity concepts
## Performance Notes
- **Optimized for Speed**: Proprietary algorithms ensure real-time signal detection without lag
- **Replay Mode Compatible**: Works perfectly with TradingView's bar replay feature
- **Chart Timeframe Adaptive**: Automatically adjusts internal processing based on your chart's timeframe
## Recommended Settings
**For Scalping (1-5min charts):**
- Enable: 1min, 5min, 15min, 30min
- Disable: Higher timeframes
**For Day Trading (15min-1H charts):**
- Enable: 15min, 30min, 1H, 4H
- Disable: 1min, 5min, Monthly
**For Swing Trading (4H-Daily charts):**
- Enable: 4H, 12H, Daily, Weekly
- Disable: Minute-based timeframes
**For Position Trading (Daily+ charts):**
- Enable: Daily, Weekly, Monthly
- Disable: All intraday timeframes
## Symbol Compatibility
**Automatic Mode Supports:**
- **E-mini Futures**: NQ, ES, YM (automatically paired)
- **Micro E-mini Futures**: MNQ, MES, MYM (automatically paired)
- **Gold Markets**: GC, XAUUSD, XAUGBP (automatically paired)
**Manual Mode:**
- Works with any two correlated instruments
- Supports futures, crypto, forex, stocks, indices
- You specify both symbols manually
## Support
For questions or feedback, contact the author through TradingView.
---
**Version**: 6.0.0 PUBLIC
**Release Date**: November 18, 2025
**Author**: Md Modasshir (MD)
*This indicator implements proprietary algorithms for institutional-grade divergence detection. All signal generation logic is optimized for professional trading environments.*
vertical marker (latest)//@version=6
indicator("Latest Vertical Line Infinite", overlay=true, scale=scale.none)
// Session input
sess1 = input.float(9.0, "Session Time", minval=0.0, maxval=23.59)
// Color + opacity input
lineColor = input.color(color.new(color.black, 0), "Line Color")
// Fractional minutes
min1 = sess1 - math.floor(sess1)
// Trigger condition
cond1 = (hour == math.floor(sess1)) and (minute == int(min1 * 100))
// Store latest line
var line latestLine = na
// Create new infinite vertical line at the latest session
if cond1
if not na(latestLine)
line.delete(latestLine)
latestLine := line.new(x1=bar_index, y1=0, x2=bar_index, y2=1, xloc=xloc.bar_index, extend=extend.both, color=lineColor, width=1)
Relative Strength TableRelative Strength Table
1. Overview and Key Features
The Relative Strength Table is an indicator that compares multiple tickers against a benchmark (default: SPY) and displays their relative strength.
It is designed to help analyze stock leadership, sector trends, and portfolio performance in one consolidated table.
You can freely input up to 20 tickers from the Inputs panel, allowing flexible comparisons.
(If 20 tickers feel too limited, let me know in the comments — I’ll expand it.)
2. How the RS Percentile Is Calculated and What It Means
The RS Percentile shows how strong the current price ratio is compared to past data, expressed as a percentile rank.
First, the indicator calculates the price ratio by dividing the ticker’s close by the benchmark’s close.
Then, it compares the latest ratio with historical ratio data and determines its percentile value.
Examples:
・80% or higher → relatively strong
・Around 50% → neutral
・40% or below → relatively weak
3. Indicator Features and Customization
3-1. RS Lookback Settings
You can set up to four lookback periods for RS calculation and customize the bar count for each.
Default values are 5, 21, 63, and 126 bars.
You can choose which column to sort by, and the selected column is marked with an asterisk.
Each RS column can be shown or hidden individually via checkboxes.
3-2. Visual Highlight Settings
Relative strength can be color-coded for clarity.
You can freely customize:
・Highlight colors
・Threshold values
・On/off toggles for each highlight layer
3-3. Default Tickers and Reset Function
These 16 sector ETFs are included as the default ticker set:
QQQ, QQQE, RSP, DIA, IWM, XLV, XLE, XLF, XLRE, XLB, XLP, XLU, XLY, XLK, XLC, XLI
You can return to the default list anytime by pressing the refresh button next to the ticker fields.
4. Use Cases and Analysis Examples
4-1. Sector Rotation Analysis
By comparing RS across multiple periods, you can easily identify:
・Sectors gaining short-term strength
・Sectors with steady long-term inflows
A sharp rise in short-term RS may signal the early stages of a rotation.
4-2. Identifying Leaders Within a Sector
You can compare up to 20 tickers at once, making it easy to spot true sector leaders.
4-3. Objective Evaluation of Portfolio Holdings
By entering your portfolio tickers, you can instantly see:
・Whether each name is outperforming or underperforming
・Which timeframes show strength
・How each ticker compares to the benchmark
Multi-Timeframe Trend MA&BB Suite: 6x Moving Averages by Jenn.ioMulti-Timeframe Trend MA & BB Suite: 6x Moving Averages + 5x MTF View by Jenn.io
Indicator Overview
This indicator is a comprehensive, all-in-one trend and volatility tool designed for traders who rely on Moving Averages (MAs) and Bollinger Bands (BBs). It stands out by allowing users to plot up to six fully customized MAs on the current chart, while simultaneously projecting the values of those same MAs from up to five higher timeframes (MTF).
It's the essential tool for top-down analysis and identifying high-probability confluence zones.
Key Features and Customization
1. The Core: 6x MAs and Bollinger Bands: six Independent MAs: Plot up to six separate Moving Averages on your current chart. Each MA is fully customizable in terms of:
Type: Choose from SMA, EMA, SMMA (RMA), WMA, or VWMA.
Source and Length: Set the calculation source (Close, Open, etc.) and the lookback period.
Style: Customize color, thickness, and line style (Solid, Dashed, Dotted).
Integrated Bollinger Bands (BB): Includes standard Bollinger Bands with customization for length, standard deviation, MA type, and the option to enable or disable the band fill color.
2. Advanced: Multi-Timeframe (MTF) Projection
a. 5x MTF Timeframes: The user can enable and fully customize up to five distinct higher timeframes (e.g., Daily, Weekly, Monthly, 4H, 15m).
b. Dynamic MTF Visualization: The indicator fetches the value of the 6 MAs from these higher timeframes and displays them on the current chart using one of three customizable modes:
Extended Mode: Projects the MTF MA value as a continuous line extending to the right, simulating where the MA is moving on the higher chart.
Floating Segment: Draws a short, visible line segment near the current price action, showing the MA value without cluttering the whole chart.
Floating Label: Displays the MA value as a text label anchored to the right of the current bar, providing clean, non-obtrusive data.
Recommended Usage
1. MTF Confluence: Look for instances where the MTF MA lines align closely with the MAs or BBs of your current timeframe. These areas represent strong support/resistance zones.
2. Trend Filter: Use the Extended Mode MTF lines to quickly determine the higher-timeframe trend without changing your chart. For example, if the Daily 200 EMA is above the current price, the bias is bearish.
3. Precision Entries: Use the Floating Label Mode to see the precise MA value from a higher timeframe. This is useful for placing limit orders near key structural levels.
FVG HTF# FVG HTF — Higher‑Timeframe Fair Value Gaps
## Summary
- Plots higher‑timeframe Fair Value Gap (FVG) zones directly on your current chart.
- Tracks fill progress using four methods: Any Touch, Midpoint Reached, Wick Sweep, Body Beyond.
- Shows optional labels with timeframe source and live fill percentage; label text color is configurable.
- Designed for clean overlays and efficient rendering with limits on graphics and bars processed.
## What It Does
- Detects bullish and bearish FVGs from a chosen timeframe (or the chart timeframe) and renders:
- Zone Top/Bottom lines and a dotted midpoint line
- Semi‑transparent area fill between the edges
- Optional label at the midpoint with a tooltip showing zone prices
- Continuously updates zones forward and removes them when the selected fill condition is met.
## Inputs
- `Enable FVG` (`fvgSH2`): Toggle detection/plotting on/off.
- `Timeframe` (`fvgTF2`): Choose `Chart` or HTFs (`5 Minutes`, `15 Minutes`, `1 Hour`, `4 Hours`, `1 Day`, `1 Week`, `1 Month`).
- `Fill Method` (`fvgFill2`):
- Any Touch — wick or body touches any part of the zone
- Midpoint Reached — price reaches at least the 50% of the zone
- Wick Sweep — wick fully travels past the far edge and back inside (conceptually stricter than touch)
- Body Beyond — candle body closes beyond the opposite edge (strong confirmation)
- `Zones` colors (`fvgCb2`, `fvgCs2`): Bullish/Bearish zone colors.
- `Labels` (`fvgLB2`): Show/Hide on‑chart labels.
- `Label Color` (`fvgLBc2`): Color picker for label text (default: white).
- `Max Bars Back` (`maxBars2`): Limits processing to recent bars for performance.
## Timeframe Rules
- The helper `htfTF` prevents selecting a timeframe lower than the chart. If an invalid lower TF is chosen, it falls back to `timeframe.period`.
- Supports minute, daily, weekly, and monthly aggregations that are safe for intraday/daily/weekly charts.
## Detection Logic
- Uses rolling higher‑timeframe bars constructed on the fly and checks 3‑bar displacement patterns:
- Bullish FVG: current HTF low above the high two bars ago AND previous HTF close above that high, with no direct gap condition.
- Bearish FVG: current HTF high below the low two bars ago AND previous HTF close below that low, with no direct gap condition.
- On detection, the script creates an FVG object with:
- Top/Bottom lines (`lnTop`, `lnBtm`) and midpoint line (`lnAvg`)
- Midpoint label (`lbTxt`) showing source timeframe and updating fill percentage
- Semi‑transparent fill (`linefill`) for visual clarity
## Fill Tracking
- Fill threshold depends on selected method:
- Any Touch: opposite edge
- Midpoint Reached: zone’s midpoint
- Wick Sweep: stricter condition conceptually (implemented as an opposite‑edge threshold)
- Body Beyond: requires close beyond the opposite edge
- Each bar updates label x‑position and line endpoints forward; the label text shows the best fill ratio achieved.
- When the threshold is reached, the FVG (label, lines, fill) is removed from the chart.
## Best Practices
- Start with `Any Touch` to visualize broad repairs; switch to `Body Beyond` for conservative confirmations.
- Use `1 Hour` or `4 Hours` overlays on 5m–15m charts for context; `1 Day` on 1H charts; `1 Week` on daily charts.
- Keep labels on when monitoring fills intraday; hide labels for clean higher‑level context.
- Adjust `Max Bars Back` if performance is impacted by many zones.
## Repainting Notes
- HTF zones are computed on `timeframe.change(tf)` and therefore confirm on HTF bar closes.
- Label endpoints extend each bar; detection itself avoids lookahead bias. For strict confirmation, align entries with HTF closes.
## Limitations
- “Wick Sweep” is treated as a stricter touch to the far edge; it does not enforce a separate “return inside” bar state.
- Label text color applies uniformly to bull/bear labels. If you need separate colors per side, contact the author.
## Credits & Version
- Pine Script v6; © rithsilanew2020
## Quick Start
1. Enable FVG and choose your HTF (e.g., `1 Hour`).
2. Pick a Fill Method (start with `Any Touch`).
3. Select zone colors and label text color.
4. Set `Max Bars Back` as needed for performance.
5. Use labels/tooltip values (Top/Mid/Bottom) to plan entries and manage risk.
WeAxes SMC Pro - Complete Trading SystemOverview
WeAxes SMC Pro is a comprehensive trading indicator that combines Smart Money Concepts (SMC) with multi-timeframe trend analysis. This powerful tool helps traders identify high-probability setups by aligning price action, market structure, and momentum across different timeframes.
Key Features
1. Multi-Timeframe Trend Alignment
Dual EMA System: Tracks EMA 5/10 on both current and H1 timeframes
Trend Confirmation: Requires alignment between current TF and H1 TF for optimal setups
Visual Band Display: Colored H1 EMA band (green for bullish, red for bearish)
2. Smart Money Concepts Integration
Support/Resistance Detection: Automatically identifies key H1 swing levels
Break & Retest Logic: Detects institutional order block patterns
Market Structure Analysis: Identifies recent highs/lows for momentum confirmation
3. Advanced Confluence Scoring System
The indicator calculates a comprehensive score (0-12 points) based on:
Trend Alignment (0-4 points): Multi-timeframe EMA alignment
S/R Analysis (0-4 points): Support/resistance breakouts and retests
Volume Confirmation (0-2 points): Volume spike analysis
RSI Momentum(0-2 points): Momentum filter customization
Price Action (0-2 points): Candlestick pattern strength
4. Visual Enhancements
Color-Coded Candles: Automatic candle coloring based on trend alignment
Dynamic S/R Lines**: Recent support/resistance levels plotted on chart
- **Background Highlights**: Visual alerts for strong alignment conditions
Setup & Configuration
Basic Settings (WeAxes SMC Settings)
Show Score Table: Toggle the confluence scoring table
Min Confluence Score: Set minimum score for high-probability alerts (3-10)
Volume Confirmation: Enable/disable volume analysis
RSI Filter: Add momentum confirmation with RSI
Trend Following Settings
H1 EMA Band: Show/hide the H1 trend band
Candle Coloring: Automatic candle coloring based on alignment
RSI Filter Settings: Customize RSI thresholds for bullish/bearish conditions
Smoothing Options: Choose smoothing method for H1 EMAs
How to Use
Step 1: Identify Trend Direction
Look for BULLISH ALIGN or BEARISH ALIGN in the score table
Confirm H1 EMA band color matches your bias (green = bullish, red = bearish)
Step 2: Check Confluence Score
8-12 Points: Perfect setup - strong trend + S/R confluence
5-7 Points: Good setup - moderate confluence
3-4 Points: Weak setup - proceed with caution
0-2 Points: Avoid trade - no clear edge
Step 3: Analyze Market Structure
Support/Resistance Levels: Check plotted S/R lines
Break & Retest: Look for recent breakouts with retest confirmation
Price Action: Strong bullish/bearish candles near key levels
*Step 4: Entry Confirmation
LONG SETUPS:
- Bullish alignment (current + H1)
- Price above key EMA levels
- Support hold or resistance break
- High confluence score (5+)
- Green candle coloring
**SHORT SETUPS:**
- Bearish alignment (current + H1)
- Price below key EMA levels
- Resistance hold or support break
- High confluence score (5+)
- Red candle coloring
Trade Management
Entry Signals
Perfect Setup: Score 8+ with all components aligned
Good Setup: Score 5-7 with strong trend + S/R confluence
Avoid: Near opposite S/R levels or low scores
Risk Management
- Use detected S/R levels for stop loss placement
- Position size based on confluence score strength
- Avoid trades when score table shows "NEAR RES - AVOID" or "NEAR SUP - AVOID"
Exit Strategy
- Monitor for trend alignment changes
- Watch for candle color shifts
- Use subsequent S/R levels for profit targets
Pro Tips**
1. Combine Timeframes: Use H4 for direction, H1 for structure, current TF for entries
2. Volume Matters: High volume on breakouts increases setup validity
3. Patience Pays: Wait for full alignment rather than forcing marginal setups
4. Score First: Let the confluence score guide your trade decisions
5. Practice: Backtest to understand how different score combinations perform
Customization
The indicator is highly customizable:
- Adjust RSI thresholds for different market conditions
- Modify score thresholds based on your risk tolerance
- Toggle visual elements to reduce chart clutter
- Customize colors to match your trading style
⚠️ Disclaimer
This tool is designed to assist with analysis, not replace it. Always combine with proper risk management and market context. Past performance doesn't guarantee future results.
All-in-One RSI & StochRSI: 4x MTF View Matrix by Jenn.ioAll-in-One RSI & StochRSI: 4x MTF View Matrix (Momentum Dashboard) by Jenn.io
Indicator Overview
This indicator is a complete momentum tool that combines the Relative Strength Index (RSI) and the Stochastic RSI (StochRSI) into a single pane, complemented by a powerful Multi-Timeframe (MTF) Table of up to 4 timeframes for a comprehensive market view.
It is ideal for traders looking to confirm overbought/oversold conditions across multiple timeframes before making a trading decision.
Key Features and Logic:
Dual Oscillator Display: It plots the RSI (to measure the speed and change of price movements) and the %K and %D lines of the StochRSI (to measure the RSI relative to its range).
Visual Signaling: Background Shading: The RSI area is shaded in Red or Green (overbought or oversold) for quick identification of extreme zones.
Optional Labels: Displays clear labels like "OB" (Overbought) or "OS" (Oversold) when the oscillators cross critical levels.
Multi-Timeframe Table (MTF 4): The core feature. It displays the values of the RSI and the StochRSI Average ((K + D) / 2) across four different timeframes fully customizable by the user (e.g., 15m, 1h, 4h, Daily).
Heatmap Matrix: The MTF table values are dynamically colored:Red or Green: If the value is in the Overbought zone ($\geq 70$ by default) or Oversold zone ($\leq 30$ by default).
Recommended Usage:
Signal Confluence: Use the primary oscillators to identify an entry signal on your operating timeframe.
MTF Confirmation: Check the MTF table to confirm that momentum on higher timeframes (e.g., 4H or Daily) is moving in the same direction (e.g., if the current timeframe oscillator is oversold, look for higher TFs to show a neutral or low value to confirm exhaustion).
Risk Management: Avoid taking buy signals if the higher TFs are already showing a strong overbought condition (Red or Green).
EMA 50/200 Pullback + RSI (BTC/USDT 15m - 2 Bar Logic)I recognize that combining indicators requires clear justification on how the components interact Therefore the new scripts description will explicitly detail the strategys operational logic
Objective The strategy is a Trend Following Pullback System designed for high frequency time frames 15m
Synergy The EMA50 EMA200 defines the primary Trend Direction Trend Filter It then utilizes a 2 Bar Pullback Logic to find an entry point where the price has momentarily reversed against the trendline and the RSI 14 serves as a Momentum Filter RSI greater than 50 for Long RSI less than 50 for Short to minimize false signals
Ichimoku Multi-Timeframe Status (IMTF – VFG)-----------------------------
Overview
-----------------------------
This tool displays the status of key Ichimoku components (Tenkan, Kijun, and the Cloud) across multiple timeframes in a compact color-coded table. It helps traders quickly assess trend alignment and market structure without plotting the full Ichimoku on the chart.
👉 How to Read
✔ TK row:
Green = price above Tenkan
Red = price below Tenkan
✔ KJ row:
Green = price above Kijun
Red = price below Kijun
✔ KU row (Cloud):
Green = above the cloud
Red = below the cloud
Blue = inside the cloud
The KU row is highlighted for visibility.
👉 Usage
This indicator does not generate signals.
It simply summarizes Ichimoku conditions on several timeframes to help identify:
1️⃣ multi-timeframe trend alignment,
2️⃣ momentum vs. structure (TK vs. KJ),
3️⃣l cloud context for trend-following or structural analysis.
IMS 4H Structural Framework (MA / Pivot / MTF Levels)IMS 4H Structural Framework (MA / Pivot / MTF Levels)
✅ SHORT, COMPLIANT DESCRIPTION (Invite-Only Safe)
Description:
This tool visualizes a 4H Institutional Market Structure (IMS) framework by combining three workflow components into a single structural map—MA-based bias shifts, pivot-derived 4H trendlines, and multi-timeframe (1H/45m) structural levels.
It does not generate signals or performance claims.
The framework is designed purely for visual, discretionary analysis of structural flow, risk context, and higher-timeframe alignment.
Core Components:
• 4H Bias Shift (MA): Highlights directional bias transitions.
• 4H Trendlines (Pivot-Based): Shows structural slopes and reaction zones.
• MTF Levels (1H & 45m): Adds micro-structure inside the 4H box for refinement.
• Caution Zones: Marks potential reaction areas near support/resistance or trendlines.
• Dashboard: Displays bias context and educational guidance only.
Intended Use:
For traders who analyze 4H structural flow and wish to visualize bias, context, and multi-timeframe alignment—not for automation or signals.
________________________________________
✅ SHORT, SAFE DISCLAIMER (Invite-Only Approved)
Disclaimer:
This tool is for educational and informational purposes only.
It does not provide trading signals, financial advice, or performance guarantees.
All decisions remain solely with the user.
7 EMA Cross StrategyKhanaal Traders.7 EMA Cross Strategy is a visual tool designed to display a structured group of seven Exponential Moving Averages (EMAs) and highlight moments when these averages form specific alignment conditions. The script supports two optional interpretation modes:
• A sequential alignment mode, where EMAs arrange themselves in order relative to one another.
• A multi-step pattern mode, where the chart price interacts with all EMAs while alignment is present.
The script includes adjustable periods for each EMA, customizable colors, and optional multi-timeframe filtering, allowing users to compare alignment conditions between a higher timeframe and the chart’s timeframe. It also provides optional markers that appear when alignment begins, when alignment is lost and regained, or when repetitive markers are allowed.
Additional features include:
• Individual EMA visibility toggles
• Background highlighting based on alignment conditions
• Optional retest-based marker behavior
• Optional alert conditions tied to alignment events
This tool is intended to help users observe EMA structure, visualize trend organization, and study how multiple EMAs behave together across different timeframes.
Range Oscillator with Alerts (Anson)Range Oscillator with Alerts (Anson)
From Range Oscillator (Zeiierman)
I made a little change and added an alert function.
The oscillator maps market movement as a heat zone, highlighting when the price approaches the upper or lower range boundaries and signaling potential breakout or mean-reversion conditions. Instead of relying on traditional overbought/oversold thresholds, it uses adaptive range detection and heatmap coloring to reveal where price is trading within a volatility-adjusted band.
Liquidity & inducementsHi all!
This indicator will show liquidity and inducements.
I will continue to try to add different types of liquidity and inducements, at this moment it contains 6 kinds of liquidity/inducement, they are:
• Grabs
• Big grabs
• Sweeps
• Turtle soups
• Equal highs/lows (liquidity and inducement)
• BSL & SSL
And 1 type of inducement:
• Retracement
This description will contain indicator examples of each individual liquidity and inducement. They will all be with the default settings.
Settings
First you will find settings for the market structure (BOS/CHoCH/CHoCH+). Select left and right pivot lengths and if the pivots should have a label or not.
This is the base foundation of this indicator and is possible with my library 'PriceAction' ().
You will see solid lines for break of structures (BOS), change of characters (CHoCH) and change of character plus (CHoCH+).
The pivots found will be the core of this indicator and will show you when the closing price breaks it. When that happens a break of structure (BOS) or a change of character (CHoCH or CHoCH+) will be created. The latest 5 pivots found within the current trend will be kept to take action on.
A break of structure is removed if an earlier pivot within the same trend is broken and the pivot's high price for a bullish trend or low price for a bearish trend is more extreme than the BOS pivot's price.
You are able to show the pivots that are used. "HH" (higher high), "HL" (higher low), "LH" (lower high), "LL" (lower low) and "H"/"L" (for pivots (high/low) when the trend has changed) are the labels used.
In the next section ('Liquidity ($$$)') you can select which types of liquidity you want to see. Note that 'Equal highs/lows' can also show inducement (more on that later).
In the section afterwards ('Inducement (IDM)') you can select if you want retracement inducements to be visible or not. More information on what they are later on.
The section for each individual liquidity and/or inducement can first contain a line named 'Pivot', where you can set the pivot lengths (first left, then right). Then you can set the 'Lookback', which means that the 'Lookback' number of past pivots is to take action on. After that you set the 'Timeframe' for the pivots used. That means that all available liquidity/inducements will be from your desired timeframe. Lastly you set the color of the liquidity/inducement (either a single color or bullish followed by bearish colors).
Lastly in the settings you can select the font sizes for the market structure and liquidity/inducements and what style liquidity/inducements lines will have. The sizes defaults to 7 and has a dotted line look.
Grabs
Liquidity grabs and liquidity sweeps are very similar. It all depends on if the current bar closed above/below the liquidity pivot and on if its a continuation or reversal. In a liquidity grab the bar that's above or below the liquidity pivot was not closed above or below it. Like this:
Or
The visual feedback will be a dotted line between the liquidity pivot and liquidity grab bar and a linefill between the high of the liquidity grab bar and the liquidity pivot.
Indicator example:
Big grabs
This is another 'grabs' option. You can show an additional grab if you want to. I suggest having this grab from a higher timeframe or with larger pivot lengths than the other grab.
The default is with the chart timeframe and 10/10 as pivot lengths.
Indicator example:
Sweeps
A liquidity sweep is like a liquidity grab but with the difference that price closes above/below and has a continuation instead of a reversal. If the liquidity pivot was at the same bar as a BOS/CHoCH/CHoCH+ it will not be a liquidity grab but a structural break instead.
They can look like this:
Indicator example;
Turtle soups
If only one candle is beyond the pivot it could be a liquidity grab. It's a grab if price didn't close beyond the liquidity pivot, if so it's invaliditet. Turtle soups are basically false breakouts that takes liquidity (is a false breakout from a pivot with the lengths and timeframe from the settings).
The turtle soup can have a confirmation in the terms of a change of character (CHoCH). You can enable this in the settings section for 'Turtle soups' through the 'Confirmation' checkbox (enabled by default). The turtle soup strategy usually comes with some sort of confirmation, in this case a CHoCH, but it can also be a market structure shift (MSS) or a change in state of delivery (CISD).
The addition of turtle soups is possible through my script 'Turtle soup' ().
The drawing will be a dotted line between the liquidity pivot and the last bar of the false breakout and a box from the start of the false breakout to the end of it.
Indicator example:
Equal highs/lows
Equal highs/lows will always show liquidity, but might also show inducement. Inducement will be shown on equal lows if the trend is bullish and on equal highs if it's bearish, like this:
Or
Equal highs can only be created if the second pivot is lower than the first one. Equal lows can only be created if the second pivot is higher than the first one. If that is not the case it could be a liquidity grab.
When equal highs or equal lows are find that produces inducement (equal lows in a bullish trend and equal highs in a bearish trend), the indicator will first display inducement and will show liquidity once traders are induced to enter the security. Stop loss placement, for liquidity, is 0.1 * the average true range (ATR, of length 14). They will look like this:
Only inducement:
Inducement and liquidity:
Indicator example:
Equal highs/lows inducements can not be triggered after a BOS/CHoCH/CHoCH+. They are cleared upon a structural break.
BSL & SSL
Buyside liquidity (BSL) and sellside liquidity (SSL) will be shown. A pivot that's been mitigated (touched by price) can never be BSL or SSL. The BSL/SSL available will be dynamic while price moves (work in Replay and lower timeframes that moves fast) and pick the latest pivot/s (with left and right lengths from the 'Market structure' section). You can define how many BSL/SSL you want to see with a default value of 1, meaning only 1 BSL and 1 SSL can be shown. If there is no unmitigated high (BSL) or low (SSL), no BSL/SSL will be available to show. If there are BSL/SSL available they're very useful to use as targets for entering a trade.
The will look like this when available;
And without BSL available:
Or
And without SSL available:
Note that the examples without BSL/SSL available could have liquidity available from previous price legs.
This can be an example of a BSL/SSL sequence:
First both buyside and sellside liquidity is available:
Then a new low appears and new sellside liquidity is available:
Then buyside liquidity is mitigated, so only sellside liquidity is available:
A new high pivot appears and buyside liquidity is available again:
Lastly a bearish CHoCH happens and sellside liquidity is mitigated, only buyside liquidity is available:
Retracement
The first retracement after a BOS/CHoCH/CHoCH+ is considered an inducement with the mission to get traders into a trade prematurely to get stopped out. This level is shown and look like this:
Or
A retracement inducement is removed when a new BOS/CHoCH/CHoCH+ appears and it's not triggered.
---------------------------
As of now there aren't any alerts available. You cannot use the Pine Screener from Tradingview either to see new liquidity/inducement events. I have this planned for future updates though.
I hope that this long description makes sense, let me know otherwise! Also let me know if you experience any bugs or have a feature request or just want to share good settings to use.
Best of trading luck!
Custom MTF VWAP 4x with IBI put this indicator together to have my main VWAP levels displayed on the chart easily with shaded areas when price is over extended. The IB I added to have the option to change futures based on an initial balance strategy combined with the daily and NY VWAP.
W%R Cycle Swings - MTF Trend📄 English Description
Overview
The W%R Cycle Swings – MTF Trend indicator is a market-structure tool built on top of Williams %R cycle logic. It detects meaningful swing highs and lows from W%R behavior, then uses those swings to locate the first Market Structure Shift (MSS-first) and track multi-timeframe trend bias + cancel levels.
This is not a random mashup of indicators: all components are derived from one core concept—W%R cycles—and are combined into a single, coherent framework for reading structure and trend across timeframes.
Core Concepts
1. Williams %R Cycle Swings (Current Timeframe)
Instead of using price swings based only on highs/lows, this script uses Williams %R behavior to define swing points:
Swing High pattern: OS → OB → OS
Swing Low pattern: OB → OS → OB
The script:
Tracks overbought/oversold states using user-defined levels.
Builds a zone for each potential swing (accumulating the extremums during the OB/OS phase).
Confirms a swing only when the opposite state appears again.
Plots labels on the chart:
Swing High label above price
Swing Low label below price
Optional price display on the label (toggle in settings).
This makes the swing points cycle-based rather than purely bar-based.
2. MSS-first (Market Structure Shift on Current TF)
Once swings are defined, the script looks for the first break of the most recent swing:
Bullish MSS-first: price breaks above the last confirmed swing high.
Bearish MSS-first: price breaks below the last confirmed swing low.
You can choose whether to confirm by close or by wick (mssByClose input).
When an MSS-first is detected:
A colored label (bullish/bearish) is drawn at the relevant swing level.
A horizontal line is drawn from the swing bar to the MSS bar to visually connect the structure break.
Internal trendBias is updated to Up or Down, preventing duplicate MSS labels in the same direction.
This gives a clear, visual definition of when the structure actually shifted based on W%R-driven swings.
3. MTF MSS-first Trend & Cancel Logic
The same MSS-first concept is applied inside a function and called via request.security() on multiple timeframes (5m, 15m, 30m, 1h, 4h).
For each timeframe, the function:
Recalculates W%R swings with the same parameters.
Detects MSS-first events (bullish or bearish).
Tracks a trend state:
1 → Up trend
-1 → Down trend
0 → Unknown / Neutral
Maintains a cancel level, which represents the price that would invalidate the current trend:
In an uptrend, cancel is typically the last relevant swing low.
In a downtrend, cancel is typically the last relevant swing high.
This provides:
Trend direction per TF (Up / Down / -)
A concrete price level that acts as a structural “stop” or invalidation level.
4. MTF Trend Table (Visual Overview)
If enabled, a compact table is displayed on the chart (position configurable):
Columns: 5m, 15m, 30m, 1h, 4h
Rows:
Trend → shows Up, Down or -, with color-coded background.
Cancel → shows the current cancel price for that timeframe.
This creates a multi-timeframe structure dashboard that tells you:
Which timeframes are currently in an Up or Down MSS-based trend.
At which price the current structural view would be canceled.
5. Alert Conditions
The script includes alert conditions for:
Current timeframe MSS-first:
Bullish MSS-first (structure break up).
Bearish MSS-first (structure break down).
MTF MSS-first events for:
5m, 15m, 30m, 1h, 4h (Bullish & Bearish separately).
This allows you to receive notifications when a fresh structural shift happens on any of the tracked timeframes.
How to Use
Use Swing High / Swing Low labels to understand the current W%R cycle structure on your main timeframe.
Watch for MSS-first labels to catch the first break of structure after a swing completes.
Use the MTF Trend table:
Trade in the direction of higher-timeframe trends.
Use cancel levels as logical invalidation areas or structural stop guides.
Combine the current timeframe swings with MTF bias:
Example: look for long setups when H1/H4 show Up trend and price forms new bullish MSS on lower TF.
The tool is suitable for both intraday and swing trading, on any symbol and timeframe.
Why This Script Is Original
It links cycle-based swings from Williams %R directly to MSS-first detection, rather than using generic pivot logic.
It combines:
W%R-driven swing definition,
MSS-first structural breaks,
Multi-timeframe trend state,
Cancel (invalidation) levels,
Alerts for MSS events on multiple TFs,
into a single, coherent market-structure framework.
The MTF table is not a generic dashboard: it is specifically built around this W%R-MSS-first structural model, which gives traders both trend context and exact invalidation prices.
🇹🇭 Thai Description — คำอธิบายภาษาไทย
ภาพรวม
อินดิเคเตอร์ W%R Cycle Swings – MTF Trend เป็นเครื่องมืออ่านโครงสร้างราคา โดยใช้ “วงจรของ Williams %R” เป็นหลักในการหา Swing High / Swing Low แล้วใช้จุด Swing เหล่านั้นมาหา MSS-first (จุดเปลี่ยนโครงสร้างครั้งแรก) จากนั้นต่อยอดไปสู่ การดูแนวโน้มหลายกรอบเวลา + ระดับ Cancel (จุดที่โครงสร้างจะถูกมองว่าพัง)
แนวคิดหลัก
Swing จาก Williams %R (TF ปัจจุบัน)
ใช้รูปแบบ OS → OB → OS เพื่อยืนยัน Swing High
และ OB → OS → OB เพื่อยืนยัน Swing Low
เมื่อยืนยันแล้วจะสร้าง Label “Swing High / Swing Low” บนกราฟ และสามารถแสดงราคาบนป้ายได้
ทำให้จุด Swing มีพื้นฐานจาก “Cycle ของ W%R” ไม่ใช่แค่ high/low เฉย ๆ
MSS-first บน TF ปัจจุบัน
ถ้าราคาทะลุ Swing High ล่าสุด → มองเป็น Bullish MSS-first
ถ้าราคาทะลุ Swing Low ล่าสุด → มองเป็น Bearish MSS-first
เลือกได้ว่าจะยืนยันจาก Close หรือจาก ไส้แท่งเทียน
วาดป้าย MSS + เส้นเชื่อมจาก Swing ไปยังจุดที่เกิด MSS
มีตัวแปร trendBias ป้องกันไม่ให้ยิง MSS ซ้ำในทิศทางเดิมจนรก
MTF MSS-first + Cancel Logic
นำ Logic เดียวกันไปใช้กับ TF: 5m, 15m, 30m, 1h, 4h
สำหรับแต่ละ TF จะได้:
สถานะแนวโน้ม: Up / Down / Unknown
ระดับ Cancel: ราคาที่ถ้าหลุดจะถือว่าโครงสร้างเทรนด์นั้นถูก “ยกเลิก”
เช่น ในเทรนด์ขาขึ้น ระดับ Cancel มักมาจาก Swing Low ล่าสุด ฯลฯ
MTF Table บนกราฟ
แสดง Trend + Cancel ของ 5 TF ในรูปแบบตาราง
อ่านง่าย: แถว Trend เป็น Up/Down พร้อมสีพื้น, แถว Cancel เป็นตัวเลขราคา
ใช้ดูภาพรวมโครงสร้างหลาย TF ในมุมมองเดียว
Alert Conditions
แจ้งเตือน MSS-first ของ TF ปัจจุบัน
แจ้งเตือน MSS-first ของ TF 5m / 15m / 30m / 1h / 4h แยก Bull / Bear
วิธีใช้งาน
ใช้ Swing High / Swing Low เพื่อดูว่าโครงสร้าง cycle ปัจจุบันอยู่ตรงไหน
รอให้เกิด MSS-first เพื่อมองว่า “โครงสร้างราคาเริ่มกลับตัวแล้ว”
ใช้ Table MTF:
ดูว่า TF ไหนเป็น Up / Down
ใช้ราคาบรรทัด Cancel เป็นแนว “จุดตัดขาดทุนเชิงโครงสร้าง” หรือจุดเปลี่ยนมุมมอง
เทรดตามทิศทาง TF ใหญ่ แล้วหา Entry จาก MSS ของ TF เล็ก
จุดเด่น / ความเป็น Original
ใช้ Williams %R เป็นฐานในการสร้าง Swing Pattern แทนการใช้ Pivot ธรรมดา
เชื่อม W%R Swing เข้ากับแนวคิด MSS-first อย่างเป็นระบบ
มีทั้ง:
ป้าย Swing
ป้าย MSS + เส้นเชื่อม
MTF Trend + Cancel
Alert เตือน MSS ในหลาย TF
อยู่ในสคริปต์เดียว
เหมาะกับคนที่ต้องการอ่านโครงสร้างราคาแบบมีที่มาที่ไป ไม่ใช่แค่ตามอินดี้ตัวเดียวครับ ✅
CG Momentum - Table✅ 📄 English Description
Overview
The CG Momentum – Table indicator is a multi-timeframe momentum dashboard designed to help traders quickly evaluate market conditions across eight key timeframes. Instead of combining indicators arbitrarily, this script integrates four different momentum components—Williams %R, Stochastic %K, MACD slope, and RSI vs RSI-SMA trend state—into one unified framework. Each element contributes a unique perspective on momentum behavior, allowing traders to see alignment or divergence across all timeframes in a single glance.
Concept & Logic
1. Williams %R Cycle Position (Overbought/Oversold)
Uses a custom calculation instead of built-in W%R to ensure consistent values across security() calls.
Highlights overbought/oversold cycles using user-defined threshold levels.
Helps identify cycle turning points across higher and lower timeframes.
2. Stochastic %K Momentum (9-3-3 Model)
Computes raw %K manually, then applies smoothing to maintain accuracy in lower timeframes.
Evaluates overbought/oversold states based on traditional Stoch thresholds.
Color-coded for quick visual confirmation.
3. MACD Slope State (+ / –)
Instead of using MACD crossovers, this script analyzes MACD momentum direction by detecting 2-bar slope patterns.
A positive state means MACD is accelerating upward; negative means it is decelerating downward.
Ideal for spotting early trend acceleration.
4. RSI Trend State (RSI vs RSI-SMA)
Compares RSI(14) to its SMA(14).
Produces a + (bullish) or – (bearish) state.
A clean method to detect underlying trend bias in any timeframe.
How the Dashboard Works
The script displays a clean table in the bottom-right corner of the chart with the following columns:
TF | W%R | Stoch K | MACD | RSI
For each timeframe (5m → 1M):
W%R and Stoch cells are color-coded:
Green = Overbought (cycle top)
Red = Oversold (cycle bottom)
Gray = Neutral
MACD shows + or – with a trend-colored background.
RSI shows + or – depending on whether RSI is above/below its moving average.
This provides a compact yet powerful view of multi-timeframe momentum consensus.
How to Use
Look for alignment across timeframes (e.g., several timeframes showing bullish momentum).
Confirm entries by checking whether short-term momentum aligns with higher-timeframe structure.
Use W%R and Stoch colors to identify cycle extremes.
Use MACD/RSI states to confirm whether momentum is strengthening or weakening.
Ideal for intraday, swing, or position trading.
Why This Script Is Unique
Uses custom implementations for W%R, Stoch, RSI-MA state, and MACD slope instead of built-ins, ensuring consistent behavior across multi-timeframe security() calls.
Provides four distinct momentum perspectives in one unified visual tool.
Designed for clarity, reducing chart noise by consolidating indicators into one panel.
Suitable for all assets and timeframes.
🇹🇭 คำอธิบายภาษาไทย (สำหรับผู้ใช้ไทย)
ภาพรวม
อินดิเคเตอร์ CG Momentum – Table เป็นแดชบอร์ดวัดโมเมนตัมแบบหลายกรอบเวลา ที่รวมสัญญาณสำคัญ 4 ประเภท ได้แก่ Williams %R, Stochastic %K, MACD slope และสถานะ RSI เทียบ SMA ไว้ในตารางเดียว เพื่อช่วยให้เทรดเดอร์มองเห็นภาพรวมของโมเมนตัมในทุกไทม์เฟรมได้อย่างชัดเจนและอ่านง่าย
แนวคิดและหลักการทำงาน
1. Williams %R (วงจรราคาซื้อเกิน/ขายเกิน)
คำนวณด้วยสูตรเองเพื่อความแม่นยำในทุก TF
เน้นการหา cycle top/bottom
2. Stochastic %K (โมเมนตัมระยะสั้น)
ใช้สูตร 9-3-3 พร้อม smoothing
ช่วยหาจุดเร่งหรืออ่อนแรงของราคาในช่วงสั้น
3. MACD Slope State
ไม่ใช้สัญญาณ cross
ใช้การตรวจ “ความชันของ MACD” ว่ากำลังเร่งขึ้นหรือเร่งลง
เหมาะกับการจับสัญญาณเร่งตัวของแนวโน้ม
4. RSI Trend State
เปรียบเทียบ RSI กับค่าเฉลี่ยของมันเอง
ถ้า RSI > SMA → ขาขึ้น
ถ้า RSI < SMA → ขาลง
วิธีใช้งาน
ดูความสอดคล้องของโมเมนตัมระหว่างหลาย ๆ TF
ถ้าหลายกรอบเวลาชี้ไปทางเดียวกัน → ความน่าเชื่อถือสูง
ใช้สีของ W%R / Stoch เพื่อดู cycle
ใช้ MACD / RSI เพื่อยืนยันทิศทางแรงซื้อหรือแรงขาย
จุดเด่นของสคริปต์นี้
เป็นการรวม Momentum Indicators แบบมีเหตุผล ไม่ใช่การนำอินดี้หลายตัวมายำ
แสดงข้อมูลสำคัญทั้ง 4 ด้านในตารางเดียว
ออกแบบให้ “อ่านง่าย”, “ไม่รก chart”, “เข้าใจเร็ว”
เหมาะทั้ง Day trade, Swing และ Long-term
Multi-Timeframe Pivot ZonesThis indicator plots dynamic support and resistance levels from higher timeframes onto your current chart. It calculates the high, low, midpoint, and quartile (25%, 75%) levels from up to four different higher timeframes, projecting them forward as potential reaction zones.
🔍 **KEY FEATURES:**
• **Multi-Timeframe Analysis:** View key levels from 4 different timeframes simultaneously
• **Smart Visibility:** Levels only appear on timeframes equal to or lower than their source
• **Customizable Styles:** Choose colors, line widths, and styles (solid, dashed, dotted) for each timeframe
• **Projected Zones:** Levels extend into the future to show potential support/resistance areas
⚙ **HOW TO USE:**
1. Enable/disable timeframes in the settings
2. Set each timeframe to match your trading strategy (e.g., 1H, 4H, D, W)
3. Watch for price reactions at these levels for entry/exit signals
4. Use the quartile levels (25%, 75%) as secondary support/resistance areas
The indicator helps traders identify confluence areas where multiple timeframes align, increasing the significance of potential reversal or breakout points.
Multitime ATRMulti-Timeframe Supertrend (Multitime ATR) Indicator Description
This indicator, written in Pine Script v5, is a Multi-Timeframe (MTF) Supertrend tool. It provides a multi-faceted market analysis by simultaneously displaying the Supertrend lines from the current chart timeframe and three higher timeframes: the 1-Hour (1H), 4-Hour (4H), and 1-Day (1D).
📌 Key Features and Characteristics
Multi-Timeframe Display:
It overlays the Supertrend lines from the current timeframe, 1H, 4H, and 1D onto a single chart, totaling four timeframes.
By visualizing the higher timeframe trend lines (uptrends as support, downtrends as resistance), traders can determine where the price action on the current chart stands within the context of the larger, dominant trends.
Supertrend Logic:
The Supertrend calculation utilizes the Average True Range (ATR), based on a user-specified ATR Period and ATR Multiplier.
The Change ATR Calculation Method? input allows switching the ATR calculation between the standard ta.atr (EMA-based/smoothed) and ta.sma(ta.tr, Periods) (SMA-based) methods.
Visual Aids:
Trend Lines: Uptrend lines (support) and downtrend lines (resistance) for each timeframe are plotted with different colors and line weights (e.g., Main: Green/Red, 1H: Blue tones, 4H: Purple tones, 1D: Green/Dark Red tones).
Highlighter: A background coloring feature visually highlights the area between the price and the Supertrend lines according to the trend direction for each timeframe, making the trend immediately obvious. This can be controlled collectively by the Master Highlighter setting.
Trend Change Marks: Small circle plots (●) indicate the exact points of trend reversal for each higher timeframe, clearly signaling a shift.
Warning and Break Signals:
The indicator plots signal labels on the chart when the current price breaks (or nearly breaks) a higher timeframe trend line.
Warning (⚠️): Plotted when the price closes below an uptrend line.
Break (⚡): Plotted when the price closes above a downtrend line.
These signals are designed to reset after a certain period (coded as 3,600,000 milliseconds = 1 hour) to prevent continuous noise from repetitive breaks.
Alert Functionality:
In addition to the current timeframe's Buy/Sell signals, the indicator features robust alerts for the Warning/Break signals across the 1H, 4H, and 1D timeframes, ensuring that critical trend changes are not missed.
🛠️ Customization Options
The indicator's settings allow for detailed customization of the following parameters for each timeframe (Main, 1H, 4H, 1D) individually:
ATR Period (ATR Period)
ATR Multiplier (ATR Multiplier)
Visibility toggles for trend lines, signals, and highlighters.
Furthermore, the Master Control section enables simultaneous control over the display of the Highlighter, Signals, Up Trend Lines, and Down Trend Lines across all timeframes.
This indicator serves as a powerful tool for finding more reliable entry and exit points by integrating multi-timeframe trend analysis, which helps reduce false signals often encountered in single-timeframe trading.
Would you like me to elaborate on a specific section of the code, such as the request.security function or the signal logic?






















