Candle Close CounterThis indicator counts how many candles have closed above, below, or exactly at a user-defined price level
starting from a specified time. It provides real-time statistics to help traders analyze price behavior
around key levels.
HOW IT WORKS:
The indicator begins counting at your chosen start time and tracks each candle's closing price relative
to your specified price level. It maintains running totals of candles that close above, below, and at
the price level, displaying this information both in a chart label and a statistics table.
PRACTICAL APPLICATIONS:
1. CONSOLIDATION ANALYSIS:
Use this tool to identify and measure consolidation patterns by placing the price level at the midpoint
of a trading range. A balanced count of candles closing above and below the midpoint suggests genuine
consolidation with no directional bias.
2. RANGE MIDPOINT MONITORING:
During consolidation phases, set the price level to the 50% retracement of the range midpoint between
the high and low. Monitor how price interacts with this level over time.
3. SUPPORT/RESISTANCE VALIDATION:
Place the price level at a key support or resistance zone and start counting from a significant market
event (news release, session open, etc.). The distribution of closes helps validate whether the level
is holding or weakening.
4. SESSION ANALYSIS:
Set the start time to the beginning of a trading session (e.g., 9:30 AM ET for regular hours) and place
the level at the opening price or previous day's close.
Candlestick analysis
Evil MACD Trading System (Pine Script v6)Indicator Overview
The Evil MACD Trading System is an enhanced version of the classic MACD indicator, optimized for TradingView with Pine Script v6. It integrates trend filtering, volume confirmation, and precision signal positioning to reduce false signals and improve trading decision accuracy—distinguishing itself from the traditional 12/26/9 MACD by focusing on trend-aligned entries and exits.
Core Logic & Features
1. Enhanced MACD Calculation
Departing from the standard MACD parameters, this system uses customizable fast (default:14), slow (default:28), and signal (default:8) periods to adapt to different market volatility and asset types (stocks, futures, cryptos). The core DIF, DEA, and histogram are retained while optimized for better sensitivity to medium-term trends.
2. Trend Filtering Mechanism
A 60-period EMA (adjustable) acts as the primary trend filter, ensuring buy signals only trigger in uptrends (price above EMA) and sell signals in downtrends (price below EMA). This avoids counter-trend trades and minimizes exposure to sideways market noise.
3. Volume Confirmation (Toggleable)
The optional volume filter validates signals by requiring trading volume to exceed 120% of the 20-period average volume. This ensures entries/exits are supported by capital flow, reducing false breakouts/breakdowns.
4. Precision Signal Positioning
Signals are overlaid directly on the price chart (not the subwindow) for intuitive price correlation. Buy signals (green upward triangles + "Buy" label) attach to the bottom of candlesticks, while sell signals (red downward triangles + "Sell" label) align with candlestick highs—adjustable offset parameters let users fine-tune signal proximity to price.
Usage Guidelines
- Buy Signal: Triggered when DIF crosses above DEA, price stays above the 60-period EMA, and volume (if enabled) meets the 120% threshold.
- Sell Signal: Triggered when DIF crosses below DEA, price stays below the 60-period EMA, and volume (if enabled) meets the 120% threshold.
- Customization: Adjust MACD periods, trend filter length, volume sensitivity, and signal offset to match your trading style (scalping, swing trading) and target assets.
Compatibility & Notes
Built for Pine Script v6 (latest TradingView version) with no syntax errors. The indicator supports all timeframes and asset classes. For best results, combine with additional technical tools (support/resistance, RSI) for multi-factor confirmation. Disable the volume filter in low-liquidity markets to avoid missing valid signals.
Volume Delta Highlighted (Pane)A simple volume delta indicator that highlights blue when the bar has no wicks and white with it has only opposite end wicks ,a good confluence and visual
note :
not as accurate as the paid tradingview indicator since it uses chart data
N Option Selling 2
---
## 📌 Script Description
**NIFTY Weekly Option Seller – Regime-Based Risk-Controlled System**
This indicator is designed for **systematic weekly option selling on NIFTY**, using a **rule-based regime and scoring framework** to decide **what to sell, how aggressively to sell, and when to defend or harvest**.
The script does **not generate buy/sell signals**.
Instead, it acts as a **decision and risk-management engine** for option sellers.
---
## 🔹 Core Idea
The market is always in one of three regimes:
1. **Iron Condor (IC)** → Range / mean-reverting market
2. **Put Credit Spread (PCS)** → Bullish trending market
3. **Call Credit Spread (CCS)** → Bearish trending market
This script **scores all three regimes (0–5)** on the current chart timeframe and automatically selects the **dominant regime**.
---
## 🔹 How Scoring Works (High Level)
Each regime score is built using **price structure + volatility + momentum context**:
### PCS (Bullish bias)
* EMA alignment (8 > 13 > 34)
* ADX trend strength
* Price above VWAP
* CPR breakout
* RSI sanity checks (size is reduced in extremes)
* Daily trend confirmation
### CCS (Bearish bias)
* EMA alignment (8 < 13 < 34)
* ADX trend strength
* Price below VWAP
* CPR breakdown
* RSI sanity checks (size is reduced in extremes)
* Daily trend confirmation
### IC (Range bias)
* Low ADX (both intraday & daily)
* Price inside CPR
* Price near VWAP
* Price inside Camarilla H3–L3
* RSI near equilibrium (45–55)
A **cross-penalty system** ensures that strong trends suppress IC scores and vice-versa, preventing conflicting signals.
Scores are **smoothed** to reduce noise and avoid over-trading.
---
## 🔹 Regime Selection Logic
* The regime with the **highest score** is selected.
* If scores tie:
* **Trending markets → PCS / CCS**
* **Non-trending markets → IC**
This ensures **trend takes priority over range** when volatility expands.
---
## 🔹 Strike Selection (ATR-Based)
The script suggests **volatility-adjusted strike distances** using ATR:
* **Iron Condor:** ±1.0 × ATR
* **PCS / CCS:** ±1.25 × ATR
This adapts automatically to changing volatility instead of using fixed point distances.
---
## 🔹 Risk-First Trade Management
The script provides **three actionable alerts only**:
### 🔴 DEFEND
Triggered when:
* Price approaches short strike
* Trend breaks beyond Camarilla levels
* Volatility expansion threatens the position
→ Signals the need to **roll, widen, or convert**
### 🟢 HARVEST
Triggered when:
* Adequate price cushion exists
* Market remains range-bound or stable
→ Signals opportunity to **book profits or roll closer**
### 🔵 REGIME CHANGE
Triggered when:
* Market structure flips decisively
→ Signals need to **switch strategy bias**
A **cooldown system** prevents alert spam.
---
## 🔹 Position Sizing Philosophy
* Scores determine **directional conviction**
* RSI-based **size multiplier** automatically reduces exposure in extreme momentum conditions
* Optional **minimum lot floor** ensures participation without over-risking
* Designed to support **Risk:Reward frameworks (1:2 or 1:3)** through premium-based stop discipline
---
## 🔹 Visual & UX Features
* Background color reflects active regime and conviction
* On-chart panel displays:
* Active strategy
* Scores (IC / PCS / CCS)
* ADX & RSI
* VWAP, CPR, Camarilla levels
* Clean, non-repainting levels (previous day data)
---
## 🔹 Intended Use
* Weekly option selling (IC / PCS / CCS)
* Works best on **30m–1h charts**
* Designed for **rule-based traders**, not discretionary scalpers
* Focused on **capital preservation, consistency, and disciplined adjustments**
---
## ⚠️ Disclaimer
This script is **not financial advice**.
It is a **decision-support and risk-management tool** for experienced option sellers who already understand spreads, adjustments, and margin dynamics.
SMT + BOS + RR This indicator implements a Smart Money Theory (SMT) + Break of Structure (BOS) strategy with a fixed risk/reward ratio, synchronized between two assets. The main idea is to detect discrepancies in the movements of two symbols to identify potential accumulation and reversal zones driven by institutional activity.
Key Features:
SMT Signals:
Automatically identifies divergences between two assets (e.g., BTC and ETH), highlighting potential smart money activity.
Detects trend direction through sweeps of recent highs and lows.
BOS (Break of Structure):
Filters signals based on structure break: higher highs/lower lows.
Additional ATR-based candle size check to avoid false signals.
Entry & Position Management:
Supports long, short, or both directions.
Entry type selection: on candle close (bos_close) or retest (bos_retest).
Automatic calculation of Stop Loss at the last extreme and Take Profit based on the specified risk/reward ratio (RR).
Visualization:
Arrows displayed on the chart for buy and sell signals.
SL and TP lines for clear risk management.
SMT signals marked at the top and bottom of the chart.
Settings:
Symbol A / Symbol B — choose assets for SMT analysis.
Side — trading direction: long, short, or both.
Swing Size — pivot size for detecting local highs and lows.
Risk/Reward — RR ratio for automatic TP calculation.
Min BOS Body ATR — minimum candle body size for BOS confirmation.
Best Suited For:
Traders following Smart Money concepts and looking for market structure-based signals with controlled risk.
Hisham&Wissamsuper heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it super heroes only can use it, super heroes only can use it
LIVE PRICE + TIMER v2LIVE PRICE + CANDLE TIMER Indicator
The Live Price + Candle Timer indicator displays the current market price in a clear, fixed on-screen panel, combined with a real-time countdown to the candle close.
It is designed to help traders improve timing, discipline, and entry precision, especially on fast-moving markets like XAU/USD (Gold).
Key Features
Live Price Display
Shows the current price continuously in a clean, easy-to-read panel.
Bullish / Bearish Color Coding
Green background when the current candle is bullish
Red background when the current candle is bearish
This provides instant market sentiment at a glance.
Candle Close Countdown (mm:ss)
Displays the remaining minutes and seconds until the current candle closes, helping you avoid early entries and wait for confirmation.
Adjustable Panel Size
Choose between Small, Medium, or Large panel sizes to match your screen layout and trading style.
Candle Close Alert (Optional)
An optional alert that triggers when the candle closes, ideal for traders who enter only after candle confirmation.
Fixed Screen Position
The panel stays visible on the chart without overlapping candles, making it perfect for active intraday trading.
Best Use Cases
Gold (XAU/USD) trading
Lower timeframes (1m – 15m)
Traders who wait for candle close confirmation
Avoiding FOMO and premature entries
This indicator acts as a simple but powerful trading HUD, keeping the most important information — price direction and time — always in sight.
Anchored VWAPThe Anchored VWAP Indicator: A Dynamic Reference for Pivotal Market Events
This script implements a specialized and highly customizable trading tool known as an Anchored Volume-Weighted Average Price (VWAP). Its core innovation and primary utility lie not in a novel mathematical formula, but in its temporal flexibility. Unlike the standard VWAP, which resets at the fixed start of each trading day, this indicator allows the trader to manually define the precise moment from which the calculation begins. This transforms it from a generic daily benchmark into a powerful, event-specific dynamic support and resistance level.
What It Does and How It Works
The indicator plots a single, continuous line on the price chart. This line represents the average price paid for an asset over a specified period, weighted by trading volume, but crucially, starting from a user-chosen timestamp. The calculation follows this logic:
Anchor Point Definition: The user specifies a "Start Time" (e.g., "2024-05-22 11:45:00"). This is the anchor—the moment deemed significant for a new market phase.
Initialization: On the very first candle at or immediately after the anchor time, the indicator initializes its calculation. It uses the candle's high price and volume to set an initial value, establishing a starting point for the cumulative calculation.
Cumulative Calculation: For every subsequent candle, the script calculates the Typical Price (High + Low + Close) / 3 for that period. It then:
Adds (Typical Price * Volume) to a running cumulative total.
Adds the Volume to a running cumulative volume total.
VWAP Plotting: The anchored VWAP line for each candle is simply the cumulative total price-value divided by the cumulative total volume up to that point. The line is only plotted for the period on and after the user-defined anchor time.
How to Use It: The Strategic Application
The power of this tool is unlocked through strategic anchor point selection. It is not a standalone signal generator but a dynamic reference framework for price action. It belongs to the family of Price Action-Based, Event-Driven Analysis and Dynamic Support/Resistance methodologies. Traders use it to contextualize price movement relative to a key market "reset" event.
Common anchor points include:
Major Economic News Releases: Anchor at the exact time of a CPI, FOMC, or jobs report to see the fair-value price discovery after the news, filtering out prior, irrelevant noise.
Significant Technical Breaks: Anchor at the moment a price conclusively breaks a major trendline, a multi-month high/low, or a key chart pattern (like the neckline of a head and shoulders). The VWAP then acts as a dynamic gauge of momentum following the breakout.
Session or Shift Changes: For 24-hour markets, anchor at the open of a specific session (e.g., London Open, US Open) to analyze intra-session flow.
Instrument-Specific Events: Anchor at the start of a merger announcement, earnings call, or product launch.
Once anchored, traders interpret price interaction with the line:
Trend Validation: Price sustaining above a rising anchored VWAP (anchored at a breakout point) confirms bullish momentum. Conversely, holding below a falling VWAP confirms bearish momentum.
Dynamic Support/Resistance: In a trending move, pullbacks towards the anchored VWAP often find support (in uptrends) or resistance (in downtrends). This makes it a potential area for trend-continuation entries.
Mean Reversion & Exhaustion Signals: A sharp, high-volume move far away from the anchored VWAP may signal an overextended market, prompting watch for a reversion back to the mean (the VWAP line).
The Core Philosophy and Rationale
The underlying principle is that volume-confirmed price action following a defining event establishes a new, more relevant fair-value equilibrium. The standard daily VWAP includes all overnight or pre-event noise, which can distort the relevant average for the new market regime initiated by the event.
This anchored approach:
Filters Irrelevance: It isolates analysis to the market structure after the catalyst, providing a cleaner analytical canvas.
Respects Market Microstructure: By weighting price by volume, it acknowledges that high-volume price levels are more significant than low-volume spikes, creating a more robust and "traded" average.
Provides a Self-Adjusting Baseline: It creates a moving benchmark that evolves with the new trend, offering a continuous, objective measure of whether prices are becoming relatively "expensive" or "cheap" within the current move, not compared to the entire day.
In essence, this Anchored VWAP shifts the perspective from a fixed, time-based cycle (the trading day) to a flexible, event-based cycle. It empowers traders to draw a dynamic line in the sand at their chosen moment of structural shift, turning a simple average into a sophisticated gauge of post-event market sentiment and momentum.
Son Fiyat, Limitler ve RVOL (Garantili)This script shows you the status/condition of the latest (current) bar and the previous bar.
If your platform/package includes RVOL (Relative Volume) data, it also displays that information
Crypto RSI AdvancedThe Crypto RSI Advanced Indicator: A Multi-Dimensional Market Assessment Tool
This document outlines the unique features, functionality, implementation, and theoretical foundation of the "Crypto RSI Advanced" indicator. It is designed to be far more than a simple oscillator; it is a comprehensive analytical suite that enhances the classic Relative Strength Index (RSI) by incorporating trend-filtered signals, visual context, and real-time market state diagnostics.
Core Originality & Unique Value Proposition
The primary innovation of this script lies in its multi-layered, context-aware approach to momentum analysis. While traditional RSI indicators often generate signals based solely on crossing static levels (like 30/70), leading to false signals in strong trends, this script synthesizes four critical dimensions of information:
Momentum Value: The raw RSI reading.
Momentum Trend: The direction of the RSI itself, determined by its short-term trajectory.
Zone Persistence: Whether the RSI is coming from an overbought/oversold condition, adding conviction to breakouts.
Integrated Signal Confirmation: The use of a smoothed signal line (EMA of RSI) for additional validation.
This synthesis transforms the RSI from a standalone oscillator into a cohesive trading system framework that helps distinguish between potential reversal points and mere pauses within a strong trend.
What It Does & How It Achieves It
The indicator performs several interconnected functions, presented in a single pane below the price chart:
Enhanced RSI & Signal Line Plotting:
It calculates the standard RSI based on a user-defined source and length.
It plots a smoothed Signal Line (an EMA applied to the RSI values), which acts as a dynamic filter. Crosses between the RSI and this signal line can provide earlier or more refined entry clues than static level crosses alone.
Dynamic Visual Context and Alerts:
Colored Background Bands: The plot area is dynamically shaded to visually telegraph the market state at a glance: blue for oversold, orange for overbought, and white for the neutral zone.
Conditional RSI Line Coloring: The RSI line itself changes color based on its zone and position relative to the 50 mid-line, providing instant visual feedback on momentum strength and bias.
Multi-Tiered Signal Detection: The script identifies four distinct signal types:
Buy/Sell Signal: Triggered when the RSI crosses back inside the oversold/overbought band from an extreme. This aims to catch early reversals as momentum exits an extreme state.
Strong Buy/Strong Sell Signal: A higher-conviction signal triggered when the RSI crosses the oversold/overbought level from within the extreme zone. This suggests a more powerful shift in momentum as the market exits a deeply overextended condition.
Integrated Market Intelligence Panel:
A key original feature is the fixed information table in the top-right corner. This panel synthesizes all calculations into a concise, actionable snapshot for the latest bar, including:
Current precise RSI value.
Market State (e.g., Overbought, Bullish Bias, Neutral).
RSI Trend (Rising, Falling, Consolidating), assessing the oscillator's own momentum.
Active Signal Status (e.g., "Strong Buy", "No Signal").
Zone Intensity (e.g., "Extreme Overbought", "Normal").
Clear Level Annotation:
On the final bar, it draws labeled markers at the key levels (Oversold, Mid, Overbought) for a clean and permanent reference on the chart.
How to Use It
Application: This tool is designed for momentum confirmation, divergence spotting, and identifying potential reversal zones within a broader trend context. It is particularly useful for swing traders and position traders looking for higher-probability entry points, rather than for pure, high-frequency scalping.
Usage Guidelines:
Parameter Setup: Adjust the core RSI Length and Signal Length to match the volatility of your asset and trading timeframe. The default (14, 9) offers a balanced approach.
Signal Hierarchy: Prioritize "Strong" signals over regular signals, as they carry the added context of a zone breakout. A "Strong Buy" signal appearing in an overall uptrend on the higher timeframe presents a high-conviction scenario.
Synthesize Information: Do not trade on signals alone. Use the Information Panel for context. For example, a "Buy Signal" occurring while the panel shows "Market State: Oversold" and "RSI Trend: Rising" offers a congruent, multi-factor setup.
Visual Context: Use the colored bands and line colors for quick assessment. A blue (bullish) RSI line forming in the blue (oversold) shaded area provides immediate visual congruence for a potential long setup.
Confirmation: As with any oscillator, use this tool in conjunction with price action analysis (support/resistance, chart patterns) and other non-correlated indicators (e.g., a trend-following indicator like a moving average) to filter trades and avoid whipsaws in ranging markets.
Underlying Computational Philosophy
The script's logic is built upon the principle of "Contextual Momentum Analysis." The core premise is that the absolute value of the RSI is less important than its behavior relative to its recent state and trajectory.
Trend-Filtered Momentum: By analyzing the RSI's own trend (rsi_trend_up/down), the script introduces a crucial filter. A sell signal occurring while the RSI's internal trend is still rising may be less reliable, warning of a potential false signal.
Zone-Based Conviction: The distinction between a regular and a "Strong" signal is philosophically significant. It applies the concept of "impulse from an extreme." A reversal signal that originates from deep inside an extreme zone is considered to have more kinetic energy (conviction) than one that forms near the boundary.
Synthesis Over Isolation: The script deliberately avoids providing a single "answer." Instead, it presents multiple, simultaneous data points (value, trend, zone, signal line interaction, historical state) and presents them together in the information panel. This empowers the trader to make a reasoned decision based on a confluence of factors, mimicking the analytical process of a seasoned chartist.
In essence, this indicator automates and visualizes a sophisticated, multi-step analytical process that a trader would otherwise have to perform manually, thereby enhancing speed, consistency, and depth of market analysis.
My script// @version=6
indicator("ORB-FVG-Sweep Alert", overlay=true)
start = input.session("2300-2330", title="ORB session UTC")
level = input.float(2.0, "Min FVG size ($)")
// ---- ORB box ----
t = time(timeframe.period, start)
inRange = not na(t)
h = ta.valuewhen(inRange, high, 0)
l = ta.valuewhen(inRange, low, 0)
plot(inRange ? h : na, color=color.gray, style=plot.style_linebr)
plot(inRange ? l : na, color=color.gray, style=plot.style_linebr)
// ---- FVG detection (simplified) ----
fvg = (high < low and close < open ) or (low > high and close > open )
plotshape(fvg and math.abs(high -low ) >= level, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.tiny, title="Bull FVG")
plotshape(fvg and math.abs(low -high ) >= level, style=shape.triangledown,location=location.abovebar, color=color.red, size=size.tiny, title="Bear FVG")
// ---- Sweep of ORB high/low ----
sweepHigh = high > h and close < h and high <= h
sweepLow = low < l and close > l and low >= l
plotshape(sweepHigh, style=shape.arrowdown, location=location.abovebar, color=color.maroon, size=size.small, title="Sweep High")
plotshape(sweepLow, style=shape.arrowup, location=location.belowbar, color=color.green, size=size.small, title="Sweep Low")
// ---- Combined alert condition ----
alertcondition(sweepHigh and fvg, title="Short setup", message="ORB sweep+FVG short")
alertcondition(sweepLow and fvg, title="Long setup", message="ORB sweep+FVG long")
FADE GIGA CANDLE STRAT# 🔥 FADE GIGA CANDLE STRATEGY
## Overview
The **Fade Giga Candle Strategy** is a contrarian trading indicator designed to identify extreme price movements (called "Giga Candles") and predict mean reversion opportunities. This strategy is specifically optimized for Polymarket's 15-minute crypto prediction markets (BTC, ETH, SOL, XRP) but can be applied to any timeframe.
**Core Concept:** When price makes an unusually large move with extreme RSI and high volume, it often reverses in the next period. This indicator detects those moments and signals to "fade" (bet against) the move.
---
## 📊 What Does It Do?
### Signal Generation
- **FADE BEARISH (📉)**: Detects massive green candles → Predicts price will go DOWN next
- **FADE BULLISH (📈)**: Detects massive red candles → Predicts price will go UP next
### Real-Time Stats
- Win Rate tracking
- Total Return calculation
- Expected Value (EV) analysis
- Breakeven threshold display (57.14% for 75% win / 100% loss structure)
### Visual Alerts
- Chart labels showing predictions
- Background highlighting on signal candles
- Stats table in top-right corner
- RSI indicator with overbought/oversold zones
---
## ⚙️ How It Works
### 1. Giga Candle Detection
The indicator analyzes the last 500 candles and identifies "Giga Candles" based on:
- **Body Size Percentile** (default 93rd): Only the top 7% largest candles qualify
- **Minimum Body %** (default 0.5%): Filters out noise on small moves
### 2. Confirmation Filters
Before generating a signal, the indicator checks:
**RSI Filter (Optional)**
- RSI must be ≥70 (overbought) OR ≤30 (oversold)
- Indicates price is at an extreme level
**Volume Filter (Optional)**
- Current volume must be ≥1.5x the 20-period average
- Confirms the move has conviction
### 3. Fade Logic
```
IF Giga Green Candle + RSI Extreme + High Volume
→ FADE BEARISH (predict DOWN)
IF Giga Red Candle + RSI Extreme + High Volume
→ FADE BULLISH (predict UP)
```
---
## 🎛️ Settings & Parameters
### Giga Candle Detection
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Giga Candle Percentile** | 93.0 | 80-99 | Top X% of candles by body size. 93 = only top 7% qualify as "giga" |
| **Min Body % (Safety)** | 0.5 | 0.1-2.0 | Minimum body size as % of price. Prevents false signals on low volatility |
### RSI Filter
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Use RSI Filter** | ON | ON/OFF | Require RSI to be extreme before signaling |
| **RSI Length** | 14 | 5-50 | Period for RSI calculation |
| **RSI Overbought** | 70 | 60-85 | Threshold for overbought condition |
| **RSI Oversold** | 30 | 15-40 | Threshold for oversold condition |
### Volume Filter
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| **Use Volume Filter** | ON | ON/OFF | Require high volume before signaling |
| **Volume SMA Length** | 20 | 10-50 | Period for average volume calculation |
| **Volume Multiplier** | 1.5 | 1.0-3.0 | Current volume must be X times the average |
### Display Options
- **Show Signal Labels**: Display prediction labels on chart
- **Highlight Signal Candles**: Background color on signal bars
- **Show Stats Table**: Performance statistics in top-right
- **Enable Alerts**: Push notifications when signals occur
---
## 🚀 How to Use
### For Polymarket Trading (Recommended)
1. **Set timeframe to 15 minutes** (matches Polymarket market duration)
2. **Apply to BTC, ETH, SOL, or XRP charts**
3. **Wait for signal:**
- 📉 FADE BEARISH → Buy "DOWN" on Polymarket
- 📈 FADE BULLISH → Buy "UP" on Polymarket
4. **Hold until market resolves** (15 minutes)
5. **Track your performance** using the stats table
### For Regular Trading
1. Use on any liquid crypto market
2. When signal appears, consider entering a mean-reversion trade
3. Set stop-loss at 100% of entry (built into expected value calculation)
4. Take profit at 75% gain (matches the 57.14% breakeven math)
### Understanding the Stats Table
**Win Rate**: Your prediction accuracy percentage
- **Target: >57.14%** (breakeven for 75% win / 100% loss structure)
- Green if profitable, red if unprofitable
**Expected Value (EV)**: Average % return per trade
- **Positive EV** = Strategy is profitable long-term
- **Negative EV** = Strategy is losing long-term
- Formula: `(WinRate% × 75) - (LossRate% × 100)`
**Total Return**: Cumulative % gain/loss across all signals
---
## 📈 Interpretation Guide
### Strong Signals
✅ Large giga candle (top 3-5%)
✅ RSI >75 or <25 (very extreme)
✅ Volume >2x average
✅ Signal appears after sustained trend
✅ Win rate >60% in recent trades
### Weak Signals (Consider Skipping)
⚠️ Borderline giga candle (barely above threshold)
⚠️ RSI only slightly extreme (71 or 29)
⚠️ Volume just meets minimum (1.5x)
⚠️ Signal appears during choppy/sideways market
⚠️ Win rate <50% in recent trades
---
## 💡 Pro Tips
### 1. Timeframe Matters
- **15-min**: Best for Polymarket, captures intraday exhaustion
- **1-hour**: Better for swing trading
- **5-min**: Too noisy, not recommended
### 2. Market Context
- Works best in **trending markets** that overextend
- Less effective in **tight ranges** (consolidation)
- Avoid during **low liquidity** hours (weekends, holidays)
### 3. Filter Tuning
**More Aggressive (More Signals)**
- Lower Giga Percentile (90th)
- Disable RSI filter
- Lower volume multiplier (1.2x)
**More Conservative (Fewer, Higher Quality)**
- Raise Giga Percentile (95th)
- Tighter RSI thresholds (75/25)
- Higher volume multiplier (2.0x)
### 4. Bankroll Management
- **Never bet >5% of capital** on a single signal
- Maintain 20+ bet bankroll minimum
- Use Kelly Criterion: `Bet% = (WinRate - LossRate) / 2`
- Example: 60% win rate → Bet ~10% of bankroll
### 5. Track Your Performance
- Monitor the stats table actively
- If win rate drops below 55% for 20+ trades, **stop trading**
- If EV goes negative, **reassess filters or market conditions**
- Keep a trading journal outside the indicator
---
## ⚠️ Risk Disclosure
### Important Warnings
1. **Past performance ≠ future results**: Backtested win rates may not hold in live trading
2. **Market conditions change**: Strategy may stop working if market dynamics shift
3. **Gambler's ruin risk**: Even profitable strategies can lose multiple trades in a row
4. **Polymarket specific**:
- Carries smart contract risk
- Subject to liquidity constraints
- Markets can resolve unexpectedly
5. **Not financial advice**: This is an educational tool, not a recommendation to trade
### Best Practices
- Start with **small position sizes** to test
- Track at least **50 signals** before evaluating performance
- Consider **paper trading** first (simulated trades)
- Never trade with money you can't afford to lose
- Understand the **57.14% breakeven** requirement
---
## 🔧 Troubleshooting
### "No signals appearing"
- Check if filters are too strict (try disabling RSI/Volume filters temporarily)
- Reduce Giga Percentile to 90th
- Ensure sufficient chart history loaded (>500 candles)
### "Too many signals"
- Increase Giga Percentile to 95th
- Enable both RSI and Volume filters
- Raise volume multiplier to 2.0x
### "Win rate seems low"
- Check if you're trading during low liquidity periods
- Verify you're using 15-min timeframe for Polymarket
- Consider market is in tight consolidation (strategy works best in trends)
---
## 📚 Technical Details
### Calculations
- **Body Size**: `|close - open|`
- **Body %**: `(bodySize / open) × 100`
- **Giga Threshold**: `percentile_nearest_rank(last 500 candles, 93rd)`
- **RSI**: Standard 14-period RSI
- **Volume Ratio**: `current_volume / SMA(volume, 20)`
### Performance Tracking
- Checks if previous signal was correct after 1 bar
- Win = +75% to total return
- Loss = -100% to total return
- Win Rate = `(correct_predictions / total_signals) × 100`
---
## 🎯 Ideal Use Cases
### ✅ Perfect For:
- Polymarket 15-minute crypto prediction markets
- Mean-reversion trading on liquid crypto pairs
- Contrarian traders who fade extremes
- Systematic traders who follow rules-based signals
### ❌ Not Ideal For:
- Trend-following strategies (this is contrarian)
- Low volatility assets (needs large moves)
- Illiquid markets (won't have "giga" candles)
- Sub-5-minute scalping (too much noise)
---
## 📞 Support & Updates
**Version**: 6.0
**Last Updated**: January 2025
**Compatible With**: TradingView Pine Script v6
### Feedback Welcome
If you find this indicator useful or have suggestions for improvement, please:
- ⭐ Leave a rating
- 💬 Comment with your results
- 🚀 Share your settings for different markets
**Good luck, and trade responsibly!** 🎯
---
## Quick Start Checklist
- Set timeframe to 15 minutes
- Load BTC, ETH, SOL, or XRP chart
- Verify stats table shows in top-right
- Enable alerts for signal notifications
- Start with paper trading to validate
- Track at least 20 signals before going live
- Never bet more than 5% of bankroll per trade
- Monitor win rate and stop if <55%
**Remember: The goal is >57.14% win rate for profitability!**
Optimal Day Trading System🚥 How to Trade with ODTS
The indicator provides visual cues on the chart (triangles) and a real-time Status Table to help you make decisions.
Signal Definitions
Buy Signal (Green Triangle): Price is above the Sunya line and the Primary Cycle is trending up.
Strong Buy (Lime Triangle): All criteria are met, plus the Secondary Cycle has also turned bullish. This indicates "confluence".
Sell Signal (Red Triangle): Price is below the Sunya line and the Primary Cycle is trending down.
Strong Sell (Maroon Triangle): Both Primary and Secondary cycles are aligned with a price break below the Sunya line.
Real-Time Status Table
Located at the top right, this table gives you an instant "health check" of the current asset:
Price > Sunya: Confirms if the current price is above or below the FLD.
Cycle Dir: Shows the slope of the primary trend.
Position: Tells you if price is "Inside" the envelope (ranging) or "Above/Below" (overextended).
📈 Best Practices
Confluence is Key: The strongest trades occur when the Signal column in the table shows "STRONG BUY" or "STRONG SELL," meaning multiple cycles are in agreement.
Envelope Extremes: If the Status Table shows the Position as "ABOVE" or "BELOW" the envelope, be cautious about entering new trades, as the price may be overextended and due for a reversion to the Basis (mean).
Timeframe Synergy: Use the 15-minute timeframe for swing trade entries and the 1-minute or 5-minute for precise day trading executions.
[uxo] Delta Heatmap - Open Sourcedtheres genuinely no reason that a delta heatmap should be closed source
MA4 Alignment with Forward ProjectionThis indicator is a moving-average alignment and projection overlay built on a simple core idea:
MA4 (a 4-period moving average) represents the current short-term mean of price.
MA4 is the prior value of that same moving average, used as a 1-bar delayed reference.
From those two series, the script provides four layers of information:
Live alignment (MA4 vs MA4 )
A forward projection of a sampled historical MA pattern
Projected cross markers (vertical lines) when the projected MA4 would cross projected MA4
A compact table summarizing current alignment and the most recent live cross event
This is designed to help traders visualize:
whether short-term mean behavior is strengthening or weakening, and
where a future cross could plausibly occur if a selected historical pattern repeats.
This script is informational only and does not place trades.
Chart Setup Note (Important)
Because this tool samples a historical pattern window and projects it forward, it is important to let the chart fully load/merge historical data before interpreting the projection.
If the chart history is not fully loaded, the sampled window may be incomplete, which can shift the projection and projected cross markers.
Once the chart is fully merged, the projection remains stable and consistent during scrolling and replay.
What Makes It Different
This is not a basic “MA crossover” indicator. The core differentiator is:
The script extracts a historical MA4 pattern from a user-defined window,
shifts it forward into the future, and
marks projected future crosses between the projected MA4 and projected MA4 .
It also builds projected deviation envelopes from the sampled window and uses those envelopes for optional stretch/invalidation alerts.
How the Projection Works (Concept)
1) Sample a historical MA “pattern window”
You define a window in the past using:
Pattern Start (bars back)
Pattern End (bars back)
The script collects MA4 values across that window into an internal pattern array.
2) Shift the pattern forward
Shift Pattern Forward (bars) controls how far into the future the sampled pattern is plotted.
3) Delta-anchor projection (optional)
If Delta-anchor projection is enabled, the script projects the shape of the pattern while re-centering it around the current MA4 level.
This keeps the projection visually relevant to current price scale instead of “pasting” old absolute values.
Projected Cross Vertical Lines
When projection is enabled, the script checks for projected cross events:
Bull projected cross: projected MA4 rises through projected MA4
Bear projected cross: projected MA4 falls through projected MA4
When a projected cross occurs, a vertical line marks that projected bar as a possible timing point.
Vertical line visibility is made more consistent by using a deviation-based height (with ATR fallback) so the marker remains readable across different symbols and volatility regimes.
Projected Deviation Envelopes + Alerts (Band 3 / Band 4)
The script measures historical deviation from MA4 within the sampled window using the standard deviation of:
(close − MA4)
That deviation is then applied to the projected MA4 path to form projected envelopes:
Band 3 (Stretch): ±(StDev × 1.618 by default)
Band 4 (Invalidation): ±(StDev × 2.618 by default)
Optional alerts can trigger when price breaches these projected envelopes:
Band 3 Breach: price stretched outside the projected range
Band 4 Breach: price exceeded the larger projected boundary (often treated as invalidation context)
Alerts can be set to use wicks or close.
Table: What It Shows
The table summarizes the current state at a glance:
MA4 value
MA4 value
Alignment: Bullish / Bearish / Neutral
Most recent live cross event:
BUY (MA4 crossed above MA4 )
SELL (MA4 crossed below MA4 )
This helps confirm what you’re seeing without relying on visual estimation.
How to Use It (Simple Workflow)
Read live alignment
MA4 above MA4 = bullish bias
MA4 below MA4 = bearish bias
Enable projection for timing awareness
Turn on Projection
Watch projected cross VLines as “possible next inflection timing” markers
Use Band 3 / Band 4 as context
Band 3 breach can indicate stretch vs the projected path
Band 4 breach can indicate the projected path is less reliable (invalidation context)
Use the table for quick confirmation
It summarizes alignment and the latest live cross state.
DOL EngineEMA FILTERED
WAVE BASED
these highs / lows can be seen or used in sweeps, turtle soups & inducements.
have high probability of equals being formed in these areas
Historical Price LevelsHistorical Price Levels is a lightweight indicator that visualizes key price extremes over multiple recent time windows.
The indicator automatically calculates and displays the highest high and lowest low for the following periods:
• Last 1 Day
• Last 7 Days
• Last 15 Days
• Last 30 Days
Core Purpose
• Quickly identify recent support and resistance zones
• Provide objective historical context without subjective drawing
• Help traders assess range expansion, compression, and breakout potential
STRAT + Timeframe Continuity + 50% RuleTheSTRAT is a multi-timeframe strategy that focuses on three primary components: Inside Bars, Directional Bars, and Outside Bars. The approach also emphasizes several key principles, including Full Time Frame Continuity, Broadening Formations, and the significance of Inside Bars.
Neeson Vegas ChannelVegas Channel Indicator: A Comprehensive Multi-Timeframe Trend-Following System
Originality and Conceptual Foundation
This script implements an enhanced version of the classic "Vegas Tunnel" or "Vegas Channel" methodology, popularized by traders who follow the work associated with the "Vegas" technique. Its primary original contribution lies in its specific, rule-based multi-layered trend identification and visualization system. While the core uses well-known Exponential Moving Averages (EMAs), the originality is in the precise combination of periods and the strict, hierarchical logic for defining trend states and generating signals.
Unlike simpler moving average crossovers or single-tunnel systems, this script employs three distinct EMA pairs, each serving a unique purpose within the trend hierarchy:
Short-Term Momentum Pair (EMA 12 & 24): Acts as the primary signal trigger and momentum gauge.
Core Trend Tunnel (EMA 144 & 169): Serves as the central "channel" or "tunnel." A key visual and logical component is the shading between these two lines, which thickens and changes color with the trend, creating a dynamic channel.
Long-Term Foundation Pair (EMA 580 & 670): Represents the underlying, slower-moving trend foundation, providing context for the higher-timeframe bias.
The system's true innovation is its binary and exclusive trend definition logic. It does not rely on a single crossover. Instead, it defines a confirmed Uptrend only when both the short-term EMAs (12 and 24) are established above both lines of the core tunnel (144 and 169). Conversely, a Downtrend is confirmed only when both short-term EMAs are established below both core tunnel lines. This creates a high-confidence filter, reducing whipsaw signals that can occur when price oscillates around a single moving average.
Functionality, Implementation, and Usage
What It Does:
This indicator is a multi-timeframe trend identification and signal-generation tool. It visually condenses trend information from short, medium, and long-term perspectives onto a single chart. Its primary functions are:
Trend State Classification: It dynamically classifies the market into one of three states: Bull Trend (Blue), Bear Trend (Orange), or Sideways/Congestion (Gray). This is reflected in the chart's background color, the color of all EMA lines, and the fill of the central 144/169 channel.
Signal Generation: It plots discrete buy and sell arrows. A Buy Signal (blue upward triangle) appears the first bar the market transitions into the defined "Uptrend" state from a non-uptrend state. A Sell Signal (orange downward triangle) appears the first bar the market transitions into the defined "Downtrend" state.
Visual Structuring: It plots all six EMAs and prominently highlights the interaction zone between the 144 and 169 EMAs with a colored fill, making the "tunnel" a focal point for support/resistance and trend quality assessment.
How It's Implemented:
The logic is implemented through a clear sequence of conditional checks:
Calculation: All six EMAs are calculated based on user-definable periods (defaults as listed).
Trend Logic: The script continuously evaluates the position of EMA12 and EMA24 relative to EMA144 and EMA169 using strict AND conditions to define the uptrend and downtrend Boolean variables.
Signal Logic: A signal (buy or sell) is generated only on the change of the trend state. It uses a check of the form current_trend_state AND (NOT previous_bar_trend_state) to pinpoint the exact bar of transition.
Visual Feedback: All plot colors, the channel fill color, and the background color are unified and determined by the current trend state variable. Labels for the trend and each EMA line are drawn on the last bar for clarity.
How to Use It:
Traders employ this indicator primarily for trend-following and breakout confirmation. It is suited for swing trading or higher-timeframe positional trades rather than scalping, due to the lag inherent in its longer EMAs and its focus on confirmed states.
Trend Bias: The overall color scheme (blue/orange/gray background) provides an immediate, at-a-glance assessment of the dominant trend force. Trading in the direction of the colored background is considered aligned with the system's trend.
Signal Entry: The arrow signals are not meant for blind entry. They mark the point of a confirmed trend state transition.
A Buy Signal suggests the short-term momentum (12,24) has decisively broken above and established itself over the medium-term trend framework (144,169). This could be used as a trigger for long entries, preferably with the long-term EMAs (580,670) sloping upwards or flat, adding confluence.
A Sell Signal suggests the opposite breakdown.
Channel as Dynamic S/R: The filled area between EMA144 and EMA169 acts as a dynamic support zone in an uptrend and a resistance zone in a downtrend. Pullbacks into this "tunnel" that hold without triggering a sell signal (i.e., without both EMA12 & 24 closing back below both tunnel lines) can be viewed as potential continuation opportunities.
Filter for Other Systems: The clear trend state (uptrend/downtrend) can be exported or used as a filter for other trading systems or discretionary decisions, ensuring actions are only taken in the direction of the script's defined trend.
Core Computational Philosophy and Strategic Rationale
The script's logic is rooted in the philosophy of trend hierarchy and confirmation. It belongs to the category of Multi-Moving Average Convergence/Divergence Systems with State-Based Rules.
The 144/169 Tunnel: These numbers are derived from Fibonacci sequences (144, 169 is 12^2 and 13^2). They are believed by proponents to represent a natural rhythm or "heartbeat" of the market, defining a robust intermediate-term trend framework.
The 12/24 Pair: A standard fast-moving average pair commonly used to gauge short-term momentum and trigger entries.
The Strategic Innovation (Dual-Condition Crossover): The core idea is that a crossover of a single fast MA above a single slow MA can be false and noisy. By requiring both members of a fast pair to establish position relative to both members of a slower "tunnel" pair, the system demands a broader, more concerted move. This seeks to filter out weak, unsustainable breaks and only capture shifts in momentum strong enough to flip the entire short-term structure's position relative to the medium-term structure.
The 580/670 Pair: These very slow EMAs represent the "secular" trend. While not part of the direct signal logic, they provide critical context. A buy signal that occurs while price is above the 580/670 pair (which would be sloping up in a healthy bull market) carries more weight than one that occurs while price is below this long-term foundation, which might indicate a counter-trend rally.
In essence, this script is more than just moving averages on a chart. It is a systematic, rule-based framework for identifying when the market's short-term energy (12,24) has converged sufficiently to overcome and reposition itself against its medium-term equilibrium (144/169 tunnel), thereby signaling a high-probability phase change in trend, all while considering the backdrop of a long-term trend (580/670).
Multi-Timeframe Inside Bar Breakout (4-Symbol Simultaneous)Multi-Timeframe Inside Bar Breakout (4-Symbol Simultaneous)
Overview
Monitors 4 symbols across 4 timeframes simultaneously, displaying labeled alerts when all 4 symbols break out from inside bar compression on any tracked timeframe. See 15-minute, 30-minute, 60-minute, and daily breakouts all on one chart — complete multi-timeframe compression analysis.
When all 4 symbols compress into inside bars and then ALL break the same direction, you get clear directional confirmation across different timeframes. Perfect for Rob Smith's "The Strat" methodology and traders who use multi-timeframe analysis for entry confirmation.
🎯 Why This Matters
Multi-timeframe breakout confluence = stronger signals.
When SPY, QQQ, IWM, and DIA simultaneously:
✅ Compress into inside bars (bar )
✅ ALL break same direction (bar )
✅ Across multiple timeframes
You get layered confirmation — not just one timeframe saying "go," but multiple timeframes agreeing on direction.
Example: 15m breakout + 60m breakout + Daily breakout = alignment across timeframes.
✅ Key Features
✅ 4 Timeframes Tracked — Monitor 15m, 30m, 60m, Daily (fully customizable)
✅ 4 Symbols Per Timeframe — All must break together for signal
✅ Staggered Labels — Each timeframe displays at different distance (no overlap)
✅ Adaptive Positioning — Works on futures, stocks, forex, crypto
✅ Customizable Colors — Bullish/bearish colors with opacity control
✅ Alert-Ready — 8 alert conditions (bull/bear per timeframe)
✅ Works on Any Chart — See higher timeframe signals on lower timeframe charts
📊 How It Works
Inside Bar Check (Bar ):
All 4 symbols had inside bars (high < prior high AND low > prior low)
Breakout Check (Bar ):
Bullish: All 4 close > prior high
Bearish: All 4 close < prior low
Label Display:
📈IBSB 15 = Bullish breakout on 15-minute timeframe
📉IBSB D = Bearish breakout on daily timeframe
Each timeframe operates independently — you might see multiple timeframe labels on the same bar when breakouts align.
⚙️ Settings Guide
Symbols (Default: SPY, QQQ, IWM, DIA)
Customize to any 4 symbols
Popular: ES/NQ/YM/RTY (futures), XLF/XLK/XLE/XLV (sectors)
Timeframes (Default: 15, 30, 60, D)
Set any 4 timeframes to monitor
Examples: 5/15/60/240 (intraday stack), 60/D/W/M (swing stack)
Display Options:
Bullish/Bearish colors + opacity control
Label distance (% of bar range)
Stagger spacing (prevents overlap)
Max labels per timeframe (default: 25)
Debug Mode:
Shows which symbols are inside/breaking per timeframe
Useful for troubleshooting
🔔 Setting Up Alerts
Create alerts for any combination:
"IBSB Bull - TF1" (first timeframe bullish)
"IBSB Bear - TF4" (fourth timeframe bearish)
Set to "Once Per Bar Close" for confirmed signals
💡 Example Trading Approach
Note: Educational example, not trading advice.
Watch for compression across symbols on higher timeframes
IBSB label appears → all 4 broke same direction
Multiple timeframe labels = stronger confluence
Enter with your strategy using proper risk management
Example: Daily IBSB bullish + 60m IBSB bullish = aligned timeframes for potential long entry.
🎯 Why Multi-Timeframe Matters
Single timeframe breakout = one piece of data.
Multi-timeframe breakout = confirmation across time horizons.
When 15m, 60m, and Daily all show simultaneous 4-symbol breakouts → market structure aligning across timeframes.
🔧 Technical Details
✅ PineScript v6 (latest)
✅ Adaptive label positioning (scales with price)
✅ Smart staggering (prevents label overlap)
✅ Label management (max 500 total across timeframes)
✅ NA-safe logic (handles missing data)
✅ Works across all chart timeframes
⚠️ Important Disclaimers
Not financial advice: Educational and informational purposes only
No performance guarantees: Past breakouts don't predict future results
Risk management essential: Always use proper position sizing
Test before trading: Backtest and paper trade first
⚡ Quick Start
Add indicator to chart
Set symbols (default: SPY/QQQ/IWM/DIA)
Set 4 timeframes (default: 15/30/60/D)
Customize colors if desired
Create alerts (optional)
Watch for 📈IBSB or 📉IBSB labels with timeframe designation
📞 Support
Follow for updates and new indicators.
Questions? Leave a comment below — I respond to all feedback.
💬 Final Thoughts
Multi-timeframe compression breakouts with 4-symbol confirmation. Instead of monitoring dozens of charts manually, see all your timeframe breakouts in one place. When multiple timeframes align with simultaneous 4-symbol breakouts, you get clearer directional signals.
Use as one component of your analysis, combine with your risk management, and always trade with discipline.
Happy trading! 📈
Free and open-source for personal use. If you find this valuable:
👍 Like | 📝 Review | 🔔 Follow
Hammer Alert by Marcos TavaresIndicador que sinaliza quando uma vela martelo fecha próximo das médias móveis de 20 e 200
XAUSNIPERThis is for all subscribers
1. Use color candles
2. Use mitigation
3. Use lux algo structure shifts
Multi-Symbol Inside Bar Detector (4-Symbol Compression)Multi-Symbol Inside Bar Detector (4-Symbol Compression)
Overview
Detects simultaneous inside bars across 4 symbols in real-time — a signal of market-wide compression that may precede directional moves. When all 4 symbols are "inside" (trading within the prior bar's range), the market is consolidating.
Monitor SPY, QQQ, DIA, IWM (or any 4 symbols you choose) on a single timeframe. No more chart hopping. Designed for Rob Smith's "The Strat" methodology and price action traders who trade compression setups.
🎯 Why This Matters
Inside bars indicate compression and consolidation.
When all 4 major ETFs simultaneously compress into inside bars:
Market is consolidating within a range
Volatility is contracting (not expanding)
A directional move may follow (direction unknown)
This is NOT a directional signal — it's a consolidation detector. You determine direction based on your analysis. This indicator identifies WHEN compression exists across multiple symbols.
✅ Key Features
✅ 4-Symbol Monitoring — Track 4 symbols simultaneously on one timeframe
✅ Visual Alerts — Bar coloring + optional "4-Inside" labels
✅ TradingView Alerts — Get notified when all 4 go inside simultaneously
✅ Live vs Confirmed Mode — Toggle between real-time (repaints) or bar-close confirmation (no repaint)
✅ Customizable — Any 4 symbols, any timeframe, custom colors
✅ Debug Table — See which symbols are inside (troubleshooting)
📊 How It Works
Inside Bar Definition (Rob Smith Standards)
An inside bar forms when:
High < Prior High AND
Low > Prior Low
Current bar trades entirely within prior bar's range.
Technical Implementation
pinescriptisInside(h, l, ph, pl) =>
na(h) or na(l) or na(ph) or na(pl) ? false : (h < ph and l > pl)
NA-safe: Handles missing data gracefully
Strict comparison: Uses < and > (not <= or >=)
Rob Smith compliant: Tick-perfect inside bar detection per Strat methodology
4-Symbol Requirement
Signal fires when ALL 4 symbols are inside bars simultaneously. If only 3 are inside → no signal. All 4 must compress together.
⚙️ Settings Guide
Symbols
Default: SPY, QQQ, DIA, IWM (broad market coverage)
Customize: Click to change to ANY 4 symbols
Popular Combinations:
Futures: ES, NQ, YM, RTY
Sectors: XLF, XLK, XLE, XLV
Mega Caps: AAPL, MSFT, GOOGL, AMZN
Timeframe
Default: 60 (1-hour bars)
What it does: Applies SAME timeframe to all 4 symbols
Examples: 5 (5min), 15 (15min), D (Daily)
Live Intrabar Mode
ON (default): Shows forming bars in real-time (repaints until close)
OFF: Waits for bar close (no repaint, confirmed only)
Use ON for: Live monitoring, intraday setups
Use OFF for: Alerts, backtesting, confirmed signals
Display Options
Show Labels: Toggle "4-Inside" labels on/off
Inside Bar Color: Default yellow (customize)
Show Debug Table: See per-symbol status (for troubleshooting)
🔔 Setting Up Alerts
Right-click chart → "Add Alert"
Condition: Select this indicator
Frequency: "Once Per Bar Close" (recommended for confirmed mode)
Alert fires when all 4 symbols go inside simultaneously (edge detection, not every bar)
💡 Example Trading Approaches
Note: These are educational examples, not trading advice. Past compression patterns do not guarantee future directional moves.
Approach 1: Higher TF Compression → Lower TF Trigger
1H chart: 4-symbol inside bar forms (compression)
15m chart: Monitor for directional break
Await confirmation with your analysis before entry
Approach 2: Daily Compression → Intraday Entries
Daily chart: All 4 compress (consolidation)
1H chart: Monitor for range expansion
Use your directional bias to determine position
Approach 3: Sector Analysis
Use sector ETFs (XLF, XLK, XLE, XLV)
When all 4 compress → observe which breaks first
Analyze sector strength/weakness patterns
🎯 Why 4 Symbols?
Market coverage: When SPY, QQQ, DIA, and IWM all compress together, it indicates broad market consolidation across multiple market-cap segments.
SPY: S&P 500 (large caps)
QQQ: Nasdaq 100 (tech)
DIA: Dow 30 (blue chips)
IWM: Russell 2000 (small caps)
Using 4 major indices helps filter noise from single-symbol compression.
⚡ Quick Start
Add indicator to chart
Choose symbols (default: SPY/QQQ/DIA/IWM)
Set timeframe (default: 60min)
Toggle live mode (ON for real-time, OFF for confirmed)
Create alert (optional)
Yellow bars = all 4 inside
Use with your directional analysis
🔒 Technical Details
Code Quality
✅ PineScript v6 (latest)
✅ NA-safe logic (handles missing data)
✅ Rob Smith Strat standards (strict tick tolerance)
✅ No repainting (in confirmed mode)
✅ Efficient performance (max_bars_back=2)
✅ Open-source (educational transparency)
Repainting Behavior
Live Mode (ON): Repaints until bar closes (shows forming bars)
Confirmed Mode (OFF): No repaint, waits for bar close
Alert recommendation: Use Confirmed Mode to avoid false alerts
📞 Support
Follow me on TradingView for updates and new indicators.
Questions? Leave a comment below. I respond to all feedback.
⚠️ Important Disclaimers
Not financial advice: This indicator is for educational purposes and market analysis
No performance guarantees: Past patterns do not predict future results
Directional bias required: Inside bars indicate consolidation, not direction
Risk management essential: Always use proper position sizing and stops
Test before trading: Backtest on historical data and paper trade first
💬 Final Thoughts
Compression often precedes expansion, but direction remains uncertain. When multiple major indices compress simultaneously, it indicates market-wide consolidation. This indicator helps identify those moments across 4 symbols — no more chart hopping, easier pattern recognition.
Use it as one component of your analysis, combine with your directional methodology, and always manage risk appropriately.
Happy trading! 📈
Free and open-source for personal use. If you find this valuable:
👍 Like | 📝 Review | 🔔 Follow






















