ShadowCorp Time Cycle'sThis indicator marks key intraday windows — 7:00–8:30, 8:30–10:00 (NYO), 10:00–11:30, 11:30–13:00, 13:00–14:30, 14:30–16:00, and 18:00–19:00 — and draws a true **price-range box** for each window.
Each box builds **in real time** from that window’s running **high/low**, then **persists on the chart** after the window ends for historical study. It’s **timezone-aware** (configurable) and gives you **per-window color** controls. Use it to visualize session volatility, ranges, and liquidity sweeps across the day on any intraday chart.
Chỉ báo và chiến lược
Multi-Timeframe mybullandbearThis Multi-Timeframe RSI + Ultimate MA System combines RSI and customizable moving averages (SMA, EMA, WMA, HullMA, VWMA, RMA, TEMA) to generate powerful buy/sell signals across 5m, 15m, 1h, and 4h timeframes. Visualize signals with clear chart labels (BUY/SELL) and a multi-timeframe table showing RSI status, MA trends, and signal strength. Ideal for traders seeking trend confirmation and reversal signals.
Enable/disable RSI, MA cross, or combined signals, and adjust MA types/lengths. Use aligned signals across timeframes for stronger entries. Best with backtesting for your asset.
Double Moving Average█ OVERVIEW
The Double Moving Average (DMA) smooths one moving average with a second moving average.
Includes moving average type, higher timeframe, offset, alerts, and style settings for all of the indicator's visual components. This indicator includes an optional line and label to indicate the latest value of the DMA that repaints.
█ CONCEPTS
Shorter term moving averages, especially in choppy markets, can rapidly increase and decrease their slope. Which could lead some traders into assuming that the series trend may continue at that steeper slope. By smoothing a moving average with another one, the magnitude of rapid choppy movements is mitigated.
█ FEATURES
DMA Customization
Most inputs have a tooltip that can be read by interacting with the information icon to guide users.
For both moving averages in the DMA, users can set the lookback length and moving average type independently. Available moving average types include:
Simple Moving Average
Exponential Moving Average
Hull Moving Average
Weighted Moving Average
Volume Weighted Moving Average
A bar offset setting is included for shifting the indicator's placement. Using different lookback combinations for both averages alongside an offset can create equivalent values of other types of moving averages not included in this indicator. For example, if the default lookback settings are offset by 1 bar, this duplicates a 4 period centered moving average.
Colors for the DMA's plot can toggle between a single "base" color, or using increasing and decreasing colors. Changing the plot's style, line style, and width is also supported.
Latest Value Line and Label
The latest value of the DMA plot is replaced by default with a feature called the Latest Value Line and Label: a stylized line and label to help indicate the part of the indicator that can repaint from the parts that don't repaint. Data used to draw this feature is calculated separately from the indicator's confirmed historical calculations.
A label is included to display the latest value of the DMA which includes complete style settings. The style of both the line and label are completely customizable; every style feature that can be included has a corresponding input you can set.
Toggling off the Latest Value Line and Label feature will cause all the respective style inputs to deactivate so that they're no longer in focus or editable until the feature is toggled on again.
Higher Timeframes
Users can plot the DMA from higher timeframes on their chart.
As new bars print, the non-repainting DMA historical plot uses the last confirmed higher timeframe value. The repainting Latest Value Line and Label will update with the most recent higher timeframe value only for the latest bar. If the Latest Value Line feature is toggled off, the last confirmed higher timeframe DMA value is plotted up to the latest bar.
The built-in Moving Average Simple (SMA) indicator includes several of the features in this indicator, like an option for using higher timeframe. However, by default, it plots no values except on bars with higher timeframe close updates. Disabling "Wait for timeframe closes" to get values between updates causes repainting in both replay mode and realtime bars.
Since the calculations that repaint are separate and optional in the DMA indicator, historical plotted values will not repaint in replay mode or on realtime bars while using higher timeframes.
Alerts
There are two DMA value options when creating an alert:
DMA Latest Value: Use the latest updating DMA Value. The same value as the Latest Value Line.
DMA Last Confirmed Value: Use the last historical closed DMA value.
The default alert option is DMA Latest because most users expect alerts when the price crosses the latest updating DMA value. The Last Confirmed Value alert option uses the DMA value from the latest confirmed historical bar.
When creating an alert you should see a "Caution!" warning saying, "This is due to calculations being based on an indicator or strategy that can get repainted." This warning is intentional because the DMA indicator's Latest Value Line and Label feature is supposed to repaint in order to display the latest value.
█ FOR Pine Script™ CODERS
StyleLibrary is used to create user-friendly plot, line, and label style enum type inputs. The library's functions then take those user inputs and convert them into the appropriate values/built-in constants to customize styles for plot, line, and label functions.
Titles for #region blocks are included after #endregion statements for clarity when multiple #endregion statements occur.
This indicator utilizes the new active parameter for style inputs of togglable features.
Previous Day Close LinesWhat does the script do?
--Draws a line on the current session from previous day close.
--Leaves previous day close lines behind, notice the reaction around them.
Amritsingh Pinbar Candle GhostTrade Criteria//@version=5
indicator("Custom Candle with Asymmetric Wicks", overlay=true)
// === User Inputs ===
// Body percent thresholds (as % of full candle)
bodyMin = input.float(72.0, "Minimum Body %", minval=0.0, maxval=100.0)
bodyMax = input.float(85.0, "Maximum Body %", minval=0.0, maxval=100.0)
// Wick ratio threshold (e.g., 2.0 means one wick must be at least 2x the other)
wickRatio = input.float(2.0, "Min Wick Asymmetry Ratio", minval=1.0, step=0.1)
// === Candle Calculations ===
bodySize = math.abs(close - open)
candleRange = high - low
// Avoid divide-by-zero
validCandle = candleRange > 0
// Body as % of full candle
bodyPercent = validCandle ? (bodySize / candleRange) * 100 : 0
// Wick sizes
upperWick = high - math.max(close, open)
lowerWick = math.min(close, open) - low
// Ensure both wicks are present (non-zero)
bothWicksPresent = (upperWick > 0) and (lowerWick > 0)
// Wick asymmetry condition (either wick must be ≥ wickRatio × the other)
wickAsymmetry = (upperWick >= lowerWick * wickRatio) or (lowerWick >= upperWick * wickRatio)
// Final condition: all must be true
signal = validCandle and bothWicksPresent and wickAsymmetry and (bodyPercent >= bodyMin and bodyPercent <= bodyMax)
// === Plotting ===
plotshape(signal, title="Candle Signal", location=location.belowbar, style=shape.labelup, color=color.orange, size=size.small, text="⚡")
barcolor(signal ? color.orange : na)
BR Cross Swing - MACD HistRawThis strategy looks at the MACD Relationship through the same logic but mainly focuses on breaking things down and the application on raw values.
1H Open Level System-Lomeli indicatorsThis level system is a objective way of getting precise levels! Used by some of the trading goats
AI Trading Alerts v6 — SL/TP + Confidence + Panel (Fixed)Overview
This Pine Script is designed to identify high-probability trading opportunities in Forex, commodities, and crypto markets. It combines EMA trend filters, RSI, and Stochastic RSI, with automatic stop-loss (SL) & take-profit (TP) suggestions, and provides a confidence panel to quickly assess the trade setup strength.
It also includes TradingView alert conditions so you can set up notifications for Long/Short setups and EMA crosses.
⚙️ Features
EMA Trend Filter
Uses EMA 50, 100, 200 for trend confirmation.
Bull trend = EMA50 > EMA100 > EMA200
Bear trend = EMA50 < EMA100 < EMA200
RSI Filter
Bullish trades require RSI > 50
Bearish trades require RSI < 50
Stochastic RSI Filter
Prevents entries during overbought/oversold extremes.
Bullish entry only if %K and %D < 80
Bearish entry only if %K and %D > 20
EMA Proximity Check
Price must be near EMA50 (within ATR × adjustable multiplier).
Signals
Continuation Signals:
Long if all bullish conditions align.
Short if all bearish conditions align.
Cross Events:
Long Cross when price crosses above EMA50 in bull trend.
Short Cross when price crosses below EMA50 in bear trend.
Automatic SL/TP Suggestions
SL size adjusts depending on asset:
Gold/Silver (XAU/XAG): 5 pts
Bitcoin/Ethereum: 100 pts
FX pairs (default): 20 pts
TP = SL × Risk:Reward ratio (default 1:2).
Confidence Score (0–4)
Based on conditions met (trend, RSI, Stoch, EMA proximity).
Labels:
Strongest (4/4)
Strong (3/4)
Medium (2/4)
Low (1/4)
Visual Panel on Chart
Shows ✅/❌ for each condition (trend, RSI, Stoch, EMA proximity, signal now).
Confidence row with color-coded strength.
Alerts
Long Setup
Short Setup
Long Cross
Short Cross
🖥️ How to Use
1. Add the Script
Open TradingView → Pine Editor.
Paste the full script.
Click Add to chart.
Save as "AI Trading Alerts v6 — SL/TP + Confidence + Panel".
2. Configure Inputs
EMA Lengths: Default 50/100/200 (works well for swing trading).
RSI Length: 14 (standard).
Stochastic Length/K/D: Default 14/3/3.
Risk:Reward Ratio: Default 2.0 (can change to 1.5, 3.0, etc.).
EMA Proximity Threshold: Default 0.20 × ATR (adjust to be stricter/looser).
3. Read the Panel
Top-right of chart, you’ll see ✅ or ❌ for:
Trend → Are EMAs aligned?
RSI → Above 50 (bull) or below 50 (bear)?
Stoch OK → Not extreme?
Near EMA50 → Close enough to EMA50?
Above/Below OK → Price position vs. EMA50 matches trend?
Signal Now → Entry triggered?
Confidence row:
🟢 Green = Strongest
🟩 Light green = Strong
🟧 Orange = Medium
🟨 Yellow = Low
⬜ Gray = None
4. Alerts Setup
Go to TradingView Alerts (⏰ icon).
Choose the script under “Condition”.
Select alert type:
Long Setup
Short Setup
Long Cross
Short Cross
Set notification method (popup, sound, email, mobile).
Click Create.
Now TradingView will notify you automatically when signals appear.
5. Example Workflow
Wait for Confidence = Strong/Strongest.
Check if market session supports volatility (e.g., XAU in London/NY).
Review SL/TP suggestions:
Long → Entry: current price, SL: close - risk_pts, TP: close + risk_pts × RR.
Short → Entry: current price, SL: close + risk_pts, TP: close - risk_pts × RR.
Adjust based on your own price action analysis.
📊 Best Practices
Use on H1 + D1 combo → align higher timeframe bias with intraday entries.
Risk only 1–2% of account per trade (position sizing required).
Filter with market sessions (Asia, Europe, US).
Strongest signals work best with trending pairs (e.g., XAUUSD, USDJPY, BTCUSD).
MA Pack + Cross Signals (Short vs Long)Overview
A flexible moving average pack that lets you switch between short-term trend detection and long-term trend confirmation .
Short-term mode: plots 5, 10, 20, and 50 MAs with early crossovers (10/50, 20/50).
Long-term mode: plots 50, 100, 200 MAs with Golden Cross and Death Cross signals.
Choice of SMA or EMA .
Alerts included for all crossovers.
Why Use It
Catch early trend shifts in short-term mode.
Confirm institutional trend levels in long-term mode.
Visual signals (triangles + labels) make spotting setups easy.
Alert-ready for automated trade monitoring.
Usage
Add to chart.
In settings, choose Short-term or Long-term .
Watch for markers:
Green triangles = bullish cross
Red triangles = bearish cross
Green label = Golden Cross
Red label = Death Cross
Optional: enable alerts for notifications.
Morning Peak FadeMorning Peak Fade is an intraday analysis tool that identifies and measures the probability of early session rallies turning into sharp pullbacks.
📊 Core Idea
• Many stocks surge after the open, reaching an intraday peak before fading lower.
• This script anchors at the first significant morning high and tracks the drawdowns that follow within a customizable time window.
• It provides:
• Probability of a fade after the peak
• Average and maximum drawdown statistics
• Event-day hit rate (how often such setups occur)
🎯 Use Cases
• Spot potential “fade setups” where early enthusiasm exhausts quickly.
• Quantify how often chasing the morning high turns into a losing trade.
• Backtest opening range failure or fade strategies with hard data.
⚙️ Features
• Customizable thresholds for the initial surge (relative to prior close).
• Marks the peak (max) and subsequent low (min) used in calculations.
• Draws a reference line at the surge threshold to visualize when the fade triggers.
• Outputs summary stats directly on the chart.
Premarket Power MovePremarket Power Move is an intraday research tool that tracks what happens after strong premarket or opening gaps.
📊 Core Idea
• When a stock opens +X% above the prior close, it often attracts momentum traders.
• This script measures whether the stock continues to follow through higher or instead fades back down within the first trading hour.
• It calculates:
• The probability of a post-gap rally vs. a drawdown
• Average and maximum retracements after the surge
• Event-day hit rate (how many days actually triggered the condition)
🎯 Use Cases
• Identify “gap-and-go” opportunities where strong premarket strength leads to further gains.
• Spot potential fade setups where early enthusiasm quickly reverses.
• Backtest your intraday strategies with objective statistics instead of gut feeling.
⚙️ Features
• Customizable thresholds for premarket/open surge (%) and follow-through window (minutes).
• Marks the chart with reference lines:
• Prior close
• Surge threshold (e.g. +6%)
• Intraday high/low used for probability calculations.
• Outputs summary statistics (probabilities, averages, counts) directly on the chart.
🔔 Note
This is not a buy/sell signal generator. It is a probability and behavior analysis tool that helps traders understand how often strong premarket gaps continue vs. fade.
Seasonality con números RAMÓN SEGOVIAMonthly Bands – Colored Monthly Stripes for Statistical Analysis
Short Description
This indicator paints vertical background stripes by calendar month on your chart, making it easy to run statistical/seasonality analysis, compare monthly performance, and visually identify recurring patterns across assets and timeframes.
How It Works
Detects each new month and applies a background band spanning from the first to the last candle of that month.
Alternates colors automatically so consecutive months are easy to distinguish, or use a single uniform color for a clean look.
Optional: add dotted lines at the start/end of each month for precise separation.
Inputs / Settings
Color mode: alternating (odd/even months) or single.
Colors & opacity of the bands.
Border style: none / solid / dotted.
Highlight specific months: e.g., “Jan, Apr, Oct” with a different color.
Labels option: show month & year abbreviations at the top/bottom of the chart.
Drawing zone: full background vs. price-only area (to avoid covering lower indicators).
Typical Use Cases
Seasonality studies: identify historically bullish/bearish months.
Visual backtesting: segment the chart by months to evaluate strategy performance.
Context tracking: quickly locate reports, monthly closes, or economic cycles.
Compatibility
Works on all timeframes, including intraday (each band covers the full calendar month).
Lightweight and visual-only; doesn’t interfere with price or indicators.
Pro Tips
Combine with monthly returns (%) or candle counters to quantify each stripe.
Use labels when preparing clean presentations or trade journal screenshots.
Notes
This is a visual tool only, not a buy/sell signal generator.
Default settings are optimized for clarity and minimal clutter.
Long-short energy ratio /多空能量比值This indicator calculates the relative strength of bulls and bears by measuring the average candle body movement within a user-defined window (default: 50 bars).
Bull Energy = average percentage change of all bullish candles in the lookback period
Bear Energy = average percentage change of all bearish candles in the lookback period
Energy Ratio = Bull Energy ÷ Bear Energy
The ratio is plotted as a curve around the baseline of 1:
Ratio > 1 → Bull side shows stronger momentum
Ratio < 1 → Bear side shows stronger momentum
Ratio ≈ 1 → Balanced market conditions
This tool helps visualize short-term shifts in buying and selling pressure, offering a simple mean-reversion perspective or a confirmation of trend strength depending on the context.
EMA 20/40 Crossover//@version=5
indicator(title="EMA 20/40 Crossover", shorttitle="EMA Cross", overlay=true)
// Calculate EMAs
ema20 = ta.ema(close, 20)
ema40 = ta.ema(close, 40)
// Detect crossovers
bullCross = ta.crossover(ema20, ema40) // EMA20 crosses above EMA40 (Buy signal)
bearCross = ta.crossunder(ema20, ema40) // EMA20 crosses below EMA40 (Sell signal)
// Plot EMA lines
plot(ema20, color=color.blue, title="EMA 20", linewidth=2)
plot(ema40, color=color.red, title="EMA 40", linewidth=2)
// Plot signals
plotshape(series=bullCross, title="Buy Signal", location=location.belowbar, style=shape.labelup, size=size.small, color=color.green, text="BUY")
plotshape(series=bearCross, title="Sell Signal", location=location.abovebar, style=shape.labeldown, size=size.small, color=color.red, text="SELL")
// Alert setup (optional)
alertcondition(bullCross, title="EMA Bullish Cross", message="EMA 20 crossed above EMA 40 - BUY!")
alertcondition(bearCross, title="EMA Bearish Cross", message="EMA 20 crossed below EMA 40 - SELL!")
HFT Jude FootprintThis script is designed to detect potential High-Frequency Trader (HFT) activity based on unusual volume spikes and candle behavior, in order to identify potential intraday breakout opportunities. It is best suited for 3-minute and 5-minute charts across NSE-listed stocks.
How It Works
The strategy combines three core conditions:
Volume Spike Multiplier: Detects when current volume is > X times the rolling average (e.g., 5× 20-bar average volume).
Breakout Confirmation: Entry is considered only if the close is:
Near the high (for longs) or low (for shorts) of the candle.
Higher than the previous high (for longs), or lower than previous low (for shorts).
Visual Signal: When all conditions align, a Buy or Sell label is plotted on the chart, right at the candle where the footprint is detected.
This script is tailored for scalpers, intraday traders, and HFT watchers. It is not a mash-up of generic indicators and based on my backtesting and observation of large HFT firms that operate in the indian equities market,
Elite Entries Range Setter Premium
Elite Entries Range Setter
**What it is**
Elite Entries Range Setter builds a simple but sturdy market map: a predictive range on a higher timeframe, mid-levels between those lines, and **filtered breakout signals** plus **auto-drawn support/resistance zones** (with optional retest tags). It’s designed for day traders who want structure without noise—and swing traders who like to anchor to a higher-timeframe heartbeat.
What it gives you
* **Predictive range grid** (R2 / R1 / AVG / S1 / S2) computed from your chosen TF with adaptive ATR logic.
* **MTF signal engine**: breakouts are detected on your selected *Signal TF* while ranges come from the range TF—clean separation of “map” vs “trigger.”
* **Mid-lines** between range levels for bounce/continuation context (visual only here).
* **Auto Zones**: when price crosses a key line (range or mid), a shaded support/resistance box is created. Zones extend until broken; they dim when invalidated.
* **Optional Retests**: label when price re-tests a fresh zone and rejects/holds (cooldowns included).
* **Stacked Filters**: RSI, Volume EMA, and MA direction—use one, some, or all to tighten signals.
* **Session awareness**: choose to limit signals/zone creation to New York hours.
* **Alerts**: one consolidated breakout alert + dedicated zone-retest alerts.
---
How to use (the 60-second setup)
1. **Pick your Range TF** (default 15m). This sets the “grid” (R2/R1/AVG/S1/S2).
2. **Choose your Signal TF** (can be same as chart or different). This is where breakouts are confirmed.
3. **Turn on filters** to taste:
* **RSI** for momentum extremes (OB/OS configurable)
* **Volume EMA** for participation (Above/Below)
* **MA direction** for trend alignment (EMA/SMA/HMA, configurable length)
4. **Zones**: leave enabled to auto-box supports/resistances when lines are crossed. Adjust size by **Ticks** or **ATR ×** for instrument sensitivity.
5. **Alerts**: add “**Grid Breakout (Filtered)**” for trade triggers, and “Zone Bullish/Bearish Retest” if you trade pullbacks.
---
Inputs that matter
* **Range Setter**
* *ATR Length / Factor*: controls how wide the predictive range breathes.
* *Timeframe*: TF used to compute the grid (e.g., 15m).
* *Candlestick Type*: Traditional or Heikin-Ashi source.
* **Filter Options**
* *RSI*: Period + OB/OS thresholds.
* *Volume EMA*: Period + Above/Below condition.
* *MA Filter*: EMA/SMA/HMA + length; must be above (long bias) or below (short bias).
* **Trading Grid**
* *Signal TF*: where breakouts are detected.
* *Use MTF Signals*: toggle to confirm on a different TF than your chart.
* *Session Filter (NY)*: gate signals to the cash session.
* **Zones**
* *Only Create During NY Session*: keep structures “day-true.”
* *Size Mode*: **Ticks** (precise) or **ATR ×** (adaptive).
* *Retests*: on/off, min bars between retests, label size, colors.
* *Avoid Dupes at Same Level*: keeps the chart tidy.
---
Signals & Alerts
* **Breakout UP / DN**: confirmed cross of a mid or range line **and** all active filters pass.
* *Create alert:* **Grid Breakout (Filtered)**
* **Zone Retests**: optional labels/alerts when price wicks into a fresh zone and closes back out in the expected direction.
* *Create alerts:* **Zone Bullish Retest**, **Zone Bearish Retest**
*Pro tip:* Because the range grid comes from a (possibly) higher TF and signals can be confirmed on a different TF, you avoid most LTF chop while still reacting quickly.
---
Good habits (a trader’s creed)
* **Trust, but verify.** Filters help, not save. Read the tape: wicks, spreads, and time-of-day matter.
* **Let sessions speak.** NY hours tend to carry the volume; gating to session can reduce false pops.
* **Adjust zone size to the instrument.** Use ATR × on volatile tickers/futures; use Ticks for clean FX/Index contracts.
* **Mind the load.** If you enable many zones on very low TFs, consider trimming history or increasing tick size for performance.
---
Repainting & behavior notes
* Range levels are computed with `request.security(..., lookahead=off)` and only update as the higher-timeframe bar evolves/finishes.
* Breakout checks also use `lookahead=off`. Signals confirm on the **close** of the chosen *Signal TF*.
* Zone creation happens on **confirmed bars** to reduce flicker.
* No backtest or strategy orders—this is an **indicator** for discretionary or rule-based trading with external execution.
---
Who it’s for
Day traders who want **clear structure + filtered triggers**. Swing traders who anchor to a higher-TF grid but demand timely confirmation. Anyone tired of random “buy/sell” confetti and ready for a **map, a method, and a mute button** for the noise.
---
Final word
Markets are poetry and math—this tool sketches the meter so you can hear the rhyme. Keep risk first, keep faith in your process, and let disciplined edges do the talking. ✨
*Educational use only. Not financial advice. Trade responsibly.*
Daily SMA Gate + IHS(15m RS) - Early SignalDescription
This script combines Daily SMA gating with a 15-minute Inverse Head & Shoulders (IHS) Right Shoulder (RS) detector to create a clean 0/1 signal for pullback opportunities.
How It Works
Daily SMA Gate (orange line)
Checks if price is trading above the 50-day SMA and within a set % of the 20-day SMA.
This creates a higher-timeframe bullish filter so signals only appear when price structure aligns with trend context.
15-Minute RS Detector (green line)
Scans intraday price action for an IHS-style Right Shoulder pivot (L1–L2–L3 pattern).
Fires the RS signal as soon as the pivot is confirmed, instead of waiting for extra bar delays.
Combined Signal (blue line)
Only turns 1 (ON) when both conditions are met:
✅ Daily SMA gate passes
✅ RS pattern detected on the 15-minute timeframe
This produces early, high-quality signals ideal for pullback screening.
Usefulness
Designed as a screener for pullback entries in trending markets.
Works well for traders who combine higher-timeframe trend filters with intraday pattern triggers.
Helps avoid chasing extended moves by highlighting RS pivots near key daily averages.
Settings
Daily SMA Gate
SMA(50) length and SMA(20) length can be adjusted.
Within % of SMA(20) lets you widen/narrow the proximity filter.
Option to toggle between using the live daily bar or confirmed daily closes only.
RS Detector
Pivot L / Pivot R control swing sensitivity.
De-dup window avoids duplicate signals (optional, not plotted here).
ATR-based vs %-based tolerance (Use ATR tol for L3~L1).
Min bars between pivots for pattern quality.
Plots
Blue = final combined signal (main output)
Orange = Daily SMA gate only
Green = RS(15m) only
⚡ Best Practice:
Use the blue combined signal as your main screening tool, and toggle the green/orange lines if you want to debug why a signal did/didn’t fire.
X VIBVolume Imbalance Zones
X VIB highlights price-levels where buying or selling pressure overwhelmed the opposing side within a single bar transition, leaving a void that the market often revisits. The script paints those voids as boxes so you can quickly see where liquidity may rest, where price may pause or react, and which imbalances persist across sessions.
What it plots
For each completed calculation bar (your chart’s timeframe or a higher timeframe you choose), the indicator draws a box that spans the prior bar’s close to the current bar’s open—only when that bar-to-bar transition exhibits a valid volume imbalance (VIB) by the selected rules. Boxes are time-anchored from the previous bar’s time to the current bar’s time close, and they are capped to a configurable count so the chart remains readable.
Two ways to define “Volume Imbalance”
X VIB calculates imbalances in two complementary ways. Both techniques isolate bar-to-bar displacement that reflects one-sided pressure, but they differ in strictness and how much confirmation they require.
Continuity VIB (Bar-to-Bar Displacement)
A strict definition that requires aligned progress and overlap between consecutive bars. In practical terms, a bullish continuity VIB demands that the new bar advances beyond the prior bar’s close, opens above it, and maintains upward progress without erasing the displacement; the bearish case mirrors this to the downside.
Use when: you want the cleanest, most structurally reliable voids that reflect decisive initiative flow.
Effect on boxes: typically fewer, higher-quality zones that mark locations of strong one-sided intent.
Gap-Qualified VIB (Displacement with Gap Confirmation)
A confirmatory definition that treats the bar-to-bar displacement as an imbalance only if the transition also observes a protective “gap-like” relationship with surrounding prices. This extra condition filters out many borderline transitions and emphasizes voids that were less likely to be traded through on their formation.
Use when: you want additional confirmation that the void had genuine follow-through pressure at birth.
Effect on boxes: often slightly fewer but “stickier” zones that can attract price on retests.
Both modes are drawn identically on the chart (as boxes spanning the displacement). Their difference is purely in the qualification of what counts as a VIB. You can display either set independently or together to compare how each mode surfaces structure.
Multi-Timeframe (MTF) logic
You can compute imbalances on a higher timeframe (e.g., 15-minute) while viewing a lower timeframe chart. When MTF is active, X VIB:
Samples open, high, low, close, time, and time_close from the selected HTF in a single, synchronized request (no gaps, no lookahead).
Only evaluates and draws boxes once per HTF bar close, ensuring clean, stable zones that don’t repaint intra-bar.
How traders use these zones
Reversion into voids: Price often returns to “fill” part of a void before deciding on continuation or reversal.
Context for entries/exits: VIB boxes provide precise, mechanically derived levels for limit entries, scale-outs, and invalidation points.
Confluence: Combine with session opens, HTF levels, or volatility bands to grade setups. Continuity VIBs can mark impulse anchors; Gap-Qualified VIBs often mark stickier pockets.
Inputs & controls
Calculate on higher timeframe? Toggle MTF computation; choose your Calc timeframe (e.g., 15).
Show VIBs: Master toggle for drawing imbalance boxes.
Color & Opacity: Pick the box fill and border intensity that suits your theme.
# Instances: Cap how many historical boxes remain on the chart to avoid clutter.
Notes & best practices
Signal density: Continuity VIBs tend to be more frequent on fast charts; Gap-Qualified VIBs are more selective. Try both and keep what aligns with your trade plan.
MTF discipline: When using a higher calc timeframe, analyze reactions primarily at that timeframe’s pace to avoid over-fitting to noise.
Lifecycle awareness: Not all voids fill. Track which boxes persist; durable voids often define the map of the session.
Strong Body Close Candle (90%)This indicator highlights Strong Body Close Candles, which are single bars where the real body makes up the vast majority of the total range and the close is positioned very close to the candle’s extreme. By default, the script looks for candles where the body is at least 90% of the full high-low range, and the close falls within the top 10% (for bullish) or bottom 10% (for bearish). These settings ensure that only very strong, conviction-driven candles are marked. The script plots labels above or below qualifying bars, colors the candle accordingly, and provides alert conditions so you can be notified in real time when such a candle forms.
Both percentages are fully adjustable so you can fine-tune the strictness of the definition. For example, if you change the body threshold to 85% and the close-to-extreme threshold to 15%, the script will highlight candles where the body makes up at least 85% of the total range and the close is within 15% of the high or low. This adjustment allows for a slightly looser definition, catching more frequent signals while still maintaining strength criteria. Built-in alerts let you choose between bullish and bearish signals separately (or both), ensuring you won’t miss setups even when you’re away from the chart.
This tool is flexible across timeframes and instruments. On lower timeframes, signals may appear more frequently, highlighting intraday momentum bursts, while on higher timeframes such as daily or weekly charts, these signals often represent periods of strong directional conviction. Traders can combine this indicator with additional filters such as trend direction, volume confirmation, VWAP, or moving averages to improve reliability and fit it into their broader strategy. Because the body and close thresholds are user-defined, you have control over whether the indicator is tuned to rare but powerful candles (stricter settings) or more frequent signals (looser settings).
The indicator is designed to be non-repainting since it only evaluates candles after they close. It can be used purely visually with chart labels and bar coloring or as part of an automated workflow with TradingView alerts. Alerts are triggered on bar close whenever a bullish or bearish strong body close candle is detected, allowing you to integrate them into your trading process via pop-ups, emails, mobile notifications, or webhooks. Whether you’re looking for sharp reversals, momentum continuation signals, or simply want to filter out weaker candles, this tool provides a clear and adjustable framework for identifying high-conviction bars.
SOFR Swap Spreads (2Y, 5Y, 10Y, 30Y)This indicator models real-time SOFR swap spreads across 2Y, 5Y, 10Y, and 30Y maturities by comparing SOFR Swapnote Futures (ICEEUR) to corresponding Treasury yields (TVC). It calculates the spread for each tenor and overlays a 90-day moving average as a fair value model, with ±1 standard deviation bands.
GME Cycle PredictorTitle: GME Cycle Predictor
Short Title: GME Cycle
Author:
Version: Pine Script @version=6
Published: September 25, 2025
Category: Cycle Analysis, Technical Analysis
Asset Focus: GameStop (GME) OverviewThe "GME Cycle Predictor" is a specialized cycle analysis tool designed for GameStop (GME) traders, identifying key cyclical patterns and confluence points that may signal significant price movements. Built on Pine Script @version=6, this indicator leverages historical reference points, volume, momentum, and Fibonacci levels to highlight critical cycle events, including 147-day quarterly cycles, 1704-day major cycles, T+35 FTD (Failure-to-Deliver) cycles, quarterly OPEX dates, and swap roll periods. The script provides a clean, visually intuitive interface with minimal clutter, using bright neon shapes, subtle background highlights, dynamic support/resistance levels, and a comprehensive information table to guide trading decisions. It is tailored for GME enthusiasts looking to capitalize on recurring market patterns tied to the stock’s unique history, such as the January 28, 2021 squeeze and Roaring Kitty’s return in June 2024.Key FeaturesCycle Detection:147-Day Quarterly Cycle: Marks every 147 days from the January 28, 2021 squeeze, indicating potential volatility periods.
1704-Day Major Cycle: Identifies long-term cycles starting from the 2021 squeeze, signaling rare but significant events.
T+35 FTD Cycles: Highlights 35-day Failure-to-Deliver settlement cycles, often associated with short squeeze pressure.
Quarterly OPEX Dates: Flags the 15th of March, June, September, and December for options expiration impacts.
Swap Roll Periods: Marks the last day of each quarter (March 30, June 30, September 30, December 31) for potential market maker activity.
Confluence Detection:Major Confluence: Combines 147-day cycles or OPEX dates with high volume (1.5x 20-day SMA) and RSI > 50 for strong bullish signals.
Super Confluence: Triggers when 1704-day and 147-day cycles align with high volume, indicating rare high-impact events.
Dynamic Support/Resistance:Plots 147-day cycle highs and lows as dynamic support/resistance levels.
Includes a 61.8% Fibonacci retracement level between cycle highs and lows for key price targets.
Visual Elements:Neon Shapes: Uses distinct, bright shapes for cycle events (no text labels):Red Circle (147-Day Cycle)
Yellow Diamond (1704-Day Major Cycle)
Orange Triangle (Quarterly OPEX)
Green Square (T+35 FTD Cycle)
Purple X (Swap Roll)
Rocket () for 1704-day hits
Target () for January 28 anniversary
Cat () for Roaring Kitty’s June 2, 2024 return
Background Highlights: Subtle red (super confluence) and yellow (major confluence) background colors to mark high-probability events.
Support/Resistance Lines: Red (147-day high), lime (147-day low), and blue (61.8% Fibonacci) lines with transparency for clarity.
Information Table:Displays a clean, 11-row table in the top-right corner with a legend and status:Legend: Explains each shape and its corresponding cycle/event.
Status: Shows days since the January 28, 2021 squeeze, days until the next 1704-day and 147-day cycles (with red text for imminent events, ≤10 and ≤5 days, respectively).
Updates dynamically to avoid redundancy and ensure accuracy.
Alerts:Configurable alerts for 147-day cycle hits, 1704-day cycle hits, and super confluence events, enabling timely notifications for traders.
How It WorksHistorical Reference: Anchors cycles to the January 28, 2021 GME squeeze (timestamp("2021-01-28 00:00")) and Roaring Kitty’s return on June 2, 2024 (timestamp("2024-06-02 00:00")).
Cycle Calculations: Uses days_since_squeeze to compute modulo-based cycles (147-day, 1704-day, 35-day) and specific dates for OPEX and swap rolls.
Confluence Signals: Combines cycle events with volume (1.5x 20-day SMA) and RSI (>50) for major confluence, and adds 1704-day alignment for super confluence.
Visuals: Plots small, neon-colored shapes (circles, diamonds, triangles, squares, X’s) without text to minimize clutter, with subtle background highlights and dynamic support/resistance lines.
Table: Provides a legend for shapes and real-time status updates on cycle proximity.
Alerts: Triggers notifications for key cycle events to support active trading strategies.
Usage InstructionsApply to Chart:Add the indicator to a GME chart (e.g., daily timeframe recommended) in TradingView.
Ensure sufficient chart history (back to January 2021) for accurate cycle calculations.
Interpret Signals:Buy Opportunities:Look for red circles (147-day cycle), yellow diamonds (1704-day cycle), or orange triangles (OPEX) with yellow background (major confluence) or red background (super confluence).
Confirm with high volume and RSI > 50 in the table or chart.
The 61.8% Fibonacci level (blue) and 147-day low (lime) act as potential support for entries.
Sell Opportunities:Monitor for cycle peaks (e.g., 147-day high in red) or lack of confluence signals.
Use purple X’s (swap rolls) as potential exit points for volatility spikes.
Avoid Trading:No shapes or background colors indicate low-probability setups.
Use the Table:Check the table’s “Days Since 1/28/21” to track cycle progress.
Note “Next 1704-Day” and “Next 147-Day” counts; red text (≤10 or ≤5 days) signals upcoming events.
Use the legend to identify shape meanings.
Set Alerts:Configure alerts for “147-Day Cycle Alert”, “1704-Day Major Cycle Alert”, or “Super Confluence Alert” to receive notifications on key events.
Input SettingsShow All Cycle Predictions: Toggle all cycle markers (default: true).
Show 147-Day Quarterly Cycle: Toggle red circles for 147-day cycles (default: true).
Show 1704-Day Major Cycle: Toggle yellow diamonds for 1704-day cycles (default: true).
Show FTD T+35 Cycles: Toggle green squares for 35-day FTD cycles (default: true).
Show Swap Roll Dates: Toggle purple X’s for swap roll periods (default: true).
Example Table Output
LEGEND & STATUS |
🔴 Red Circle | 147-Day Cycle
🟡 Yellow Diamond | 1704-Day MAJOR
🟢 Green Square | T+35 FTD
🟠 Orange Triangle | Quarterly OPEX
🟣 Purple X | Swap Roll
🚀 Rocket | 1704 Hit!
🎯 Target | Jan 28 Anniv
Days Since 1/28/21 | 1357
Next 1704-Day | 347 days
Next 147-Day | 12 days
Why Use This Indicator?GME-Specific: Tailored for GME’s unique market dynamics, referencing the 2021 squeeze and 2024 events.
Clean Visuals: Uses bright neon shapes and minimal labels to reduce chart clutter while highlighting key cycles.
Actionable Insights: Combines cycle analysis with volume, momentum, and Fibonacci levels for high-probability setups.
Dynamic Table: Provides real-time cycle status and a clear legend for easy interpretation.
Customizable: Toggle specific cycles and adjust visuals to suit your trading style.
Notes for TradersBest Timeframe: Daily chart for accurate cycle alignment, though intraday (e.g., 1h) can work for short-term confirmation.
Risk Management: Use confluence signals (yellow/red backgrounds) and support levels (lime, blue) for entries; monitor swap rolls and cycle peaks for exits.
Limitations: Cycles are based on historical patterns and may not guarantee future performance. Combine with other indicators (e.g., RSI, volume) for confirmation.
Testing: Backtest on GME’s historical data (2021–2025) to validate cycle accuracy, especially around January 28 anniversaries and June 2024 events.
Publication NotesTags: GME, Cycle Analysis, GameStop, Short Squeeze, Technical Analysis, FTD Cycles, OPEX, Swap Rolls
Chart Example: Include a GME daily chart screenshot showing neon shapes, background highlights, support/resistance lines, and the table. Highlight a super confluence event (red background) or a 147-day cycle hit (red circle).
Community Contribution: Encourage feedback from GME traders to refine cycle lengths or add new reference points.
Disclaimer: Emphasize that this is for educational purposes, not financial advice. Past cycles do not guarantee future results.
H/L Swings/pivots detectorThis indicator detects and labels swing highs and swing lows using pivot logic.
It highlights market structure shifts by identifying:
- Higher Highs (HH) and Lower Highs (LH)
- Lower Lows (LL) and Higher Lows (HL)
Traders often use these levels to analyze trends, reversals, and key support/resistance zones.
The script also plots pivot markers above highs and below lows for visual clarity.
This tool is designed for educational and analytical purposes, and it does not provide financial advice or guaranteed results.
📂 Categories (choose when publishing)
Type of script → Indicator
Category → Trend Analysis (fits best for HH/LL pivots)
Optionally → Support/Resistance (if you emphasize pivots as zones)
swing high
swing low
pivot points
market structure
trend analysis
higher high
lower low
support resistance