CAPITAL 121//@version=5
indicator("CAPITAL X", overlay=true)
// === הגדרות משתמש ===
yPos = input.string("Top", "מיקום אנכי של ה־Watermark", options = , inline = '1')
xPos = input.string("Right", "מיקום אופקי של ה־Watermark", options = , inline = '1')
offsetY = input.int(20, "מרחק אנכי מהקצה", minval=0, maxval=100)
txtCol = input.color(color.rgb(255, 255, 255, 80), 'צבע טקסט', inline = '2')
txtSize = input.string('Large', 'גודל טקסט', options = , inline = '2')
// ATR והגדרות תנודתיות
lengthATR = input.int(14, title='אורך ATR')
atrRedThreshold = input.float(7.0, "רף אדום (%)", minval=0)
atrYellowThreshold = input.float(3.0, "רף צהוב (%)", minval=0)
// חישוב ATR
atrValue = ta.atr(lengthATR)
atrPercent = (atrValue / close) * 100
atrDisplay = "ATR (" + str.tostring(lengthATR) + "): " + str.tostring(atrValue, "#.##") + " (" + str.tostring(atrPercent, "#.##") + "%)"
atrEmoji = atrPercent >= atrRedThreshold ? "🔴" : atrPercent >= atrYellowThreshold ? "🟡" : "🟢"
// גודל טקסט
sizer = switch txtSize
"Huge" => size.huge
"Large" => size.large
"Normal" => size.normal
=> size.small
// מיקום טבלה על המסך
posTable = str.lower(yPos) + '_' + str.lower(xPos)
// === תצוגת טבלת Watermark ===
var table watermarkTable = table.new(posTable, 1, 1, border_width=0)
if barstate.islast
table.cell(watermarkTable, 0, 0, atrDisplay + " " + atrEmoji, text_color=txtCol, text_size=sizer, text_halign=text.align_left)
// === חישוב ממוצעים נעים ===
smaShortLength = input.int(20, title='SMA Short Length', minval=1)
smaLongLength = input.int(100, title='SMA Long Length', minval=1)
smaShort = ta.sma(close, smaShortLength)
smaLong = ta.sma(close, smaLongLength)
// ממוצע נוסף (ניטרלי)
showCustomMA = input.bool(true, title='הצג ממוצע נע מותאם אישית')
customMALength = input.int(50, title='Custom MA Length')
customMA = ta.sma(close, customMALength)
plot(showCustomMA ? customMA : na, color=color.orange, linewidth=1, title='Custom MA')
// ציור ממוצעים עיקריים
plot(smaShort, color=color.yellow, linewidth=2, title='SMA 20')
plot(smaLong, color=color.blue, linewidth=2, title='SMA 100')
// איתותים
buySignal = ta.crossover(smaShort, smaLong)
sellSignal = ta.crossunder(smaShort, smaLong)
// הצגת אזורי קנייה ומכירה
plotshape(buySignal, title='אזור קנייה', text='אזור קנייה', location=location.belowbar,
style=shape.labelup, size=size.small, color=color.green, textcolor=color.white)
plotshape(sellSignal, title='אזור מכירה', text='אזור מכירה', location=location.abovebar,
style=shape.labeldown, size=size.small, color=color.red, textcolor=color.white)
// התראות
alertcondition(buySignal, title='אזור קנייה', message='זוהה אזור קנייה!')
alertcondition(sellSignal, title='אזור מכירה', message='זוהה אזור מכירה!')
// === Volume Profile Zone (פרופיל ווליום בסיסי) ===
showVolumeProfile = input.bool(true, title="הצג Volume Profile איזורי (ניסיוני)")
vpRange = input.int(100, title="טווח ברים לניתוח Volume Profile")
var float maxVol = na
var float vwap = na
if showVolumeProfile and bar_index > vpRange
float totalVol = 0.0
float volWeightedPrice = 0.0
for i = 0 to vpRange
totalVol += volume
volWeightedPrice += volume * close
maxVol := totalVol
vwap := volWeightedPrice / totalVol
plot(showVolumeProfile and not na(vwap) ? vwap : na, color=color.purple, style=plot.style_line, linewidth=2, title='Volume Profile VWAP')
Padrões gráficos
Tradpipps SMA Trade Signals SMA Trade Signals that identifies the point where the 5 moving average close below the 20 simple moving average. When that happen label TRADE SIGNAL. Also identifies the point where the 5 simple moving average closes above the 20 simple moving average label that TRADE SIGN
SPX Option Wedge Breakout v1.5a (Dual + Micro)
# SPX Option Wedge Breakout (Dual + Micro) — by Miguel Licero
What it does
This indicator is designed to catch fast, 3–5-bar momentum bursts in **SPX options (OPRA)** or the underlying (SPX/ES). It combines two detection engines:
1. Wedge Breakout Engine
Locates *falling-wedge* compression using recent swing pivots and verifies statistical tightness (channel width vs. ATR).
Confirms breakout when price closes above the wedge’s upper guide **and** above **EMA-21**, with optional **VWAP** confluence and volume expansion.
2. Micro-Breakout Engine (sub-VWAP thrusts)
Triggers when **EMA-9 crosses above EMA-21** and price **breaks the prior N-bar high (BOS)** with volume expansion.
Specifically handles rallies that start **below VWAP**, requiring sufficient “room to VWAP” measured as a fraction of ATR.
This indicador provides a state machine overlay and a dashboard . Consider the following states:
IDLE – no setup
WATCH – valid compression + preconditions (OBV positive, RSI build zone, tightness)
TRIGGER-A – breakout *above VWAP* (Strict mode)
TRIGGER-B/Micro – Under VWAP thrust with room to VWAP or Micro-Breakout (Flexible mode - this is the most common case for SPX options)
Why I believe it works
In my observation i've found short, violent option moves often occur when:
(1) liquidity compresses then releases (wedge), or
(2) micro momentum flips under VWAP and snaps to VWAP/EMA-50 (delta + IV expansion).
The indicator surfaces these two structures with clear, tradeable signals.
---
Inputs (key parameters)
EMAs : 9 / 21 / 50 / 200 (trend/micro-momentum and magnets/targets)
VWAP: optional intraday confluence and distance metric
Wedge: pivot widths (`left/right`), `tightK` (channel width vs ATR), `atrLen`
Volume/OBV/RSI: `volLen`, `volBoost` (volume expansion factor), `obvLen` (slope via linreg), `rsiLen`
VWAP Mode:
Strict – breakout must be above VWAP (TRIGGER-A)
Flexible – allows under VWAP breakouts if there’s room to VWAP (`minVWAPDistATR`) or a Micro-Breakout
Micro-Breakout: `useMicro`, `bosLen` (BOS lookback), `minRSIMicro`
Impulse Bars Target: time-based exit helper (e.g., like 3 or 5 candles)
---
Plots & UI
Overlay: EMA-9/21/50/200, VWAP, wedge guides, **TRIGGER** marker
Background color: state shading (IDLE / WATCH / TRIGGER)
Dashboard (table, top-right): State, VWAP mode, distances to VWAP/EMA-50/EMA-200, EMA-stack (9 vs 21), OBV slope sign, RSI zone, Tightness flag, Impulse counter, Micro status (9>21 / +BOS)
---
Alerts
Consider these status when you see them:
WATCH (there is wedge ready) – compression + preconditions met (prepare the order)
TRIGGER-A (price going above VWAP) – Strict breakout confirmation
TRIGGER-B/Micro – Flexible breakout (price under VWAP with room to go up to VWAP, EMA 200, -OB, resistance line, etc) or Micro-Breakout
---
Recommended Use
Timeframes: 1-minute for execution, 5-minute for context.
Symbols : OPRA SPX options (0-DTE/1-DTE) or SPX/ES for confirmation.
Sessions: Intraday with visible session (VWAP requires intraday data).
Suggested presets (for options):
`VWAP Mode = Flexible`
`minVWAPDistATR = 0.7` (room to VWAP)
`tightK = 1.0–1.2` (compression sensitivity)
`volBoost = 1.2` (raise to 1.3–1.4 if noisy)
`obvLen = 14–20` (14 = more reactive)
`Impulse Bars = 5`
High-probability windows (ET): 11:45–12:45, 13:45–15:15, 15:00–15:45.
---
Notes & Limitations
Designed to surface setups , not to replace discretion. Combine with your risk plan.
VWAP “room” is statistical; on news/latency spikes, distances may be crossed in one bar.
Works on underlyings too, but option % moves are what this study targets.
It's not guaranteed to work 100% of the times. Trade responsibly.
---
ULTIMATE Smart Trading Pro 🔥
## 🇬🇧 ENGLISH
### 📊 The Most Complete All-in-One Trading Indicator
**ULTIMATE Smart Trading Pro** combines the best technical analysis tools and Smart Money Concepts into a single powerful and intelligent indicator. Designed for serious traders who want a real edge in the markets.
---
### ✨ KEY FEATURES
#### 💰 **SMART MONEY CONCEPTS**
- **Order Blocks**: Automatically detects institutional zones where "smart money" enters positions
- **Break of Structure (BOS)**: Identifies structure breaks to confirm trend changes
- **Liquidity Zones**: Spots equal highs/lows areas where institutions hunt stops
- **Market Structure**: Visually displays bullish (green background) or bearish (red background) structure
#### 📈 **ADVANCED TECHNICAL INDICATORS**
- **RSI with Auto Divergences**: Classic RSI + automatic detection of bullish and bearish divergences
- **MACD with Signals**: Identifies bullish and bearish crossovers in real-time
- **Dynamic Support & Resistance**: Adaptive zones with intelligent scoring based on volume, multiple touches, and ATR
- **Fair Value Gaps (FVG)**: Detects unfilled price gaps (imbalance zones)
#### 📐 **AUTOMATIC TOOLS**
- **Auto Fibonacci**: Automatically calculates Fibonacci retracement levels on the last major trend
- **Pivot Points**: Daily, Weekly, or Monthly pivot points (PP, R1, R2, S1, S2)
- **Pattern Finder**: Automatically detects candlestick patterns (Hammer, Shooting Star, Engulfing, Morning/Evening Star) and chart patterns (Double Top/Bottom)
---
### 🎯 HOW TO USE IT
#### Quick Setup:
1. **Add the indicator** to your chart
2. **Open Settings** and enable/disable modules as needed
3. **Adjust parameters** for your trading style (scalping, swing, day trading)
#### Optimal Trading Setup:
🔥 **ULTRA STRONG Signal** when you have:
- An institutional **Order Block**
- Aligned with a **Support/Resistance** tested 3+ times
- An unfilled **FVG** nearby
- An **RSI divergence** confirming the reversal
- On a key **Fibonacci** level (50%, 61.8%, or 78.6%)
- Favorable market structure (green background for buys, red for sells)
---
### 💡 UNIQUE ADVANTAGES
✅ **Adaptive Intelligence**: Automatically adjusts to market volatility (ATR)
✅ **Volume Filters**: Validates important levels with volume confirmation
✅ **Multi-Timeframe Ready**: Works on all timeframes (1m to 1M)
✅ **Complete Alerts**: Notifications for all important signals
✅ **Clear Interface**: Emojis and colored labels for quick identification
✅ **Intelligent Scoring**: Levels ranked by importance (🔴🔴🔴 = very strong)
✅ **100% Customizable**: Enable only what you need
---
### 🎨 SYMBOL LEGEND
**Smart Money:**
- 🟢 OB = Bullish Order Block
- 🔴 OB = Bearish Order Block
- BOS ↑/↓ = Break of Structure
- 💧 LIQ = Liquidity Zone
**Candlestick Patterns:**
- 🔨 = Hammer (bullish signal)
- ⭐ = Shooting Star (bearish signal)
- 📈 = Bullish Engulfing
- 📉 = Bearish Engulfing
- 🌅 = Morning Star (bullish reversal)
- 🌆 = Evening Star (bearish reversal)
**Indicators:**
- 🚀 MACD ↑ = Bullish crossover
- 📉 MACD ↓ = Bearish crossover
- ⚠️ DIV = Bearish RSI divergence
- ✅ DIV = Bullish RSI divergence
**Support & Resistance:**
- 🟢/🔴 S1, R1 = Support/Resistance
- 🟢🟢🟢/🔴🔴🔴 = VERY strong level (3+ touches)
- (×N) = Number of times touched
---
### ⚙️ RECOMMENDED SETTINGS
**For Scalping (1m - 5m):**
- SR Lookback: 15
- Structure Strength: 3
- RSI: 14
- Volume Filter: ON
**For Day Trading (15m - 1H):**
- SR Lookback: 20
- Structure Strength: 5
- RSI: 14
- All filters: ON
**For Swing Trading (4H - Daily):**
- SR Lookback: 30
- Structure Strength: 7
- Pattern Lookback: 100
- Fibonacci: ON
---
### 🚨 DISCLAIMER
This indicator is a decision support tool. It does not guarantee profits and does not constitute financial advice. Always test on a demo account before real use. Trading involves significant risks.
---
## 📞 SUPPORT & UPDATES
For questions, suggestions, or bug reports, please comment below or contact the author.
**Version:** 1.0
**Last Updated:** October 2025
**Compatible:** TradingView Pine Script v6
---
### 🌟 If you find this indicator useful, please give it a 👍 and share it with other traders!
**Happy Trading! 🚀📈**
Trinity Dashboard v1.0For TT Savages
Shows 4 timeframes (customizable):
HMA value and above or below
RSI status - Overbought, Neutral, Oversold and direction
MACD Histogram status - positive and negative with rising or falling
XAUUSD/SPX with SMA(48)📊 Gold vs S&P 500 | XAUUSD/SPX Ratio with SMA (48) – Full Pine Script Breakdown
In this video, we build and explain a custom Pine Script that plots the Gold to S&P 500 ratio (XAUUSD/SPX) along with a 48-period Simple Moving Average (SMA).
This ratio helps us analyze how Gold is performing against equities and whether smart money is shifting from risk assets (stocks) to safe haven (gold).
🔧 What’s Included in the Script:
✅ Live ratio of XAUUSD (Gold) / SPX (S&P 500)
✅ 48-period SMA for trend analysis
✅ Clean visual chart in a separate pane
✅ Pine Script v5 compatible
🧠 Why This Matters:
Tracking the XAUUSD/SPX ratio gives deeper insight into macro trends, inflation hedge behavior, and market sentiment.
A rising ratio can signal weakness in equities and strength in precious metals — a key trend for long-term investors and macro traders.
FMA Pro v1.0Foxbrady Moving Average Pro - uses EMA for tick based charts and SMA for time based charts, automatically.
Boxes & Lines### Boxes & Lines Indicator
This indicator overlays horizontal lines, vertical lines, and boxes on the chart to highlight user-defined sessions, opening prices, and specific times. It supports up to 10 customizable instances each for opening prices, time markers, and session ranges. The source code is protected to preserve the implementation details, but the functionality is designed to provide flexible visual aids for intraday analysis on timeframe.isintraday charts.
#### Purpose
The script allows traders to mark key intraday periods with visual elements such as price lines from session opens, dotted vertical lines at specific times, and boxed ranges with optional projections, mid-levels, equilibrium lines, and point counts. It uses a selected timezone to align elements accurately across different symbols.
#### How It Works
- **Custom Opening Prices (COP)**: Draws horizontal lines at the opening price of specified sessions, extending to the session end or a custom point. Each can be enabled individually with a session time and color.
- **Custom Times (CT)**: Places dotted vertical lines at user-defined times, extending across the chart height. Supports up to 10 with unique colors.
- **Custom Sessions (CS)**: Creates boxes for session ranges, updating dynamically with high/low extremes. Options include:
- Background and border colors with adjustable border width.
- Projections: Extends levels beyond the box based on session range (e.g., full range or half for anchored modes).
- Mid-levels: Short horizontal lines at halfway points between projections.
- Equilibrium (EQ) Line: A dotted line at the session midpoint, optionally extended to a custom end time.
- Point Count: Labels the session range in points (using syminfo.mintick).
- Anchoring: Optionally bases projections on a separate anchor time's open instead of the session's range.
The script uses functions like request.security_lower_tf() for minute-level data and custom string handling for session parsing. It resets visuals at session starts and updates in real-time during active sessions.
#### How to Use
1. Add the indicator to your chart.
2. In the inputs:
- Select a **Timezone** from the dropdown (default: UTC-4) to match your market.
- For each **Custom Opening Price (1-10)**: Enable "Show Custom Opening Price X", set the session (e.g., '0900-1400'), and choose a color.
- For each **Custom Time (1-10)**: Enable "Mark Custom Time X with Vertical Line", set the time (e.g., '0900-0905'), and choose a color.
- For each **Custom Session (1-10)**: Enable "Plot Custom Session X", set the session time (e.g., '0900-1700'), and configure:
- Background and border colors, border size.
- Number of projections (default: 3).
- Toggles for projections, mid-levels, EQ line, point label, and EQ extension.
- Optional anchoring with a separate anchor time.
3. Apply changes; visuals appear on intraday timeframes during or after specified sessions.
This indicator is original and intended as a tool for visualizing time-based structures. It does not generate signals or provide trading advice. Test on historical data to understand behavior on your symbols. Updates may include release notes for any changes.
gex 1//@version=5
indicator("SPY Gamma Levels ", overlay=true)
// Generated from GEX Scanner at 2025-10-06 16:30 UTC
// Symbol: SPY | Spot: 671.39
// Analysis includes all expirations
// Symbol Validation - Only display levels for correct ticker
expectedSymbol = "SPY"
isCorrectSymbol = syminfo.ticker == expectedSymbol
// Warning System for Wrong Symbol
if not isCorrectSymbol and barstate.islast
warningTable = table.new(position.top_right, 1, 1, bgcolor=color.red, border_width=2)
table.cell(warningTable, 0, 0, "⚠️ WRONG SYMBOL! This script is for " + expectedSymbol + " Current chart: " + syminfo.ticker, text_color=color.white, bgcolor=color.red, text_size=size.normal)
// Zero Gamma Level
zero_gamma = 471.66
// Max Pain Strike
max_pain = 659.00
// Major Resistance Levels (Negative Gamma)
resistance_1 = 655.00 // GEX: -215M (minor)
resistance_2 = 663.00 // GEX: -104M (minor)
resistance_3 = 668.00 // GEX: -57M (minor)
// Major Support Levels (Positive Gamma)
support_1 = 675.00 // GEX: +708M (moderate)
support_2 = 680.00 // GEX: +595M (moderate)
support_3 = 670.00 // GEX: +458M (minor)
// Plot Key Levels
plot(isCorrectSymbol ? zero_gamma : na, "Zero Gamma", color=color.yellow, linewidth=3, style=plot.style_line)
if isCorrectSymbol and barstate.islast
label.new(bar_index, zero_gamma, "Zero Gamma $471.66", color=color.yellow, style=label.style_label_left, textcolor=color.black, size=size.normal)
plot(isCorrectSymbol ? max_pain : na, "Max Pain", color=color.purple, linewidth=2, style=plot.style_circles)
if isCorrectSymbol and barstate.islast
label.new(bar_index, max_pain, "Max Pain $659.00", color=color.purple, style=label.style_label_right, textcolor=color.white, size=size.small)
// TOP 3 RESISTANCE LEVELS (Strongest Negative Gamma)
plot(isCorrectSymbol ? resistance_1 : na, "★R1: $655", color=color.red, linewidth=4, style=plot.style_line)
if isCorrectSymbol and barstate.islast
label.new(bar_index, resistance_1, "★R1 (TOP) $655 -215M", color=color.red, style=label.style_label_left, textcolor=color.white, size=size.normal)
plot(isCorrectSymbol ? resistance_2 : na, "★R2: $663", color=color.new(color.red, 20), linewidth=3, style=plot.style_line)
if isCorrectSymbol and barstate.islast
label.new(bar_index, resistance_2, "★R2 (TOP) $663 -104M", color=color.new(color.red, 20), style=label.style_label_left, textcolor=color.white, size=size.normal)
plot(isCorrectSymbol ? resistance_3 : na, "★R3: $668", color=color.new(color.red, 40), linewidth=2, style=plot.style_line)
if isCorrectSymbol and barstate.islast
label.new(bar_index, resistance_3, "★R3 (TOP) $668 -57M", color=color.new(color.red, 40), style=label.style_label_left, textcolor=color.white, size=size.normal)
// TOP 3 SUPPORT LEVELS (Strongest Positive Gamma)
plot(isCorrectSymbol ? support_1 : na, "★S1: $675", color=color.lime, linewidth=4, style=plot.style_line)
if isCorrectSymbol and barstate.islast
label.new(bar_index, support_1, "★S1 (TOP) $675 +708M", color=color.lime, style=label.style_label_right, textcolor=color.black, size=size.normal)
plot(isCorrectSymbol ? support_2 : na, "★S2: $680", color=color.new(color.lime, 20), linewidth=3, style=plot.style_line)
if isCorrectSymbol and barstate.islast
label.new(bar_index, support_2, "★S2 (TOP) $680 +595M", color=color.new(color.lime, 20), style=label.style_label_right, textcolor=color.black, size=size.normal)
plot(isCorrectSymbol ? support_3 : na, "★S3: $670", color=color.new(color.lime, 40), linewidth=2, style=plot.style_line)
if isCorrectSymbol and barstate.islast
label.new(bar_index, support_3, "★S3 (TOP) $670 +458M", color=color.new(color.lime, 40), style=label.style_label_right, textcolor=color.black, size=size.normal)
// ==== TOP 3 GAMMA LEVELS SUMMARY ====
// STRONGEST RESISTANCE (Above $671.39):
// R1: $655.00 | -215M GEX | MINOR
// R2: $663.00 | -104M GEX | MINOR
// R3: $668.00 | -57M GEX | MINOR
// STRONGEST SUPPORT (Below $671.39):
// S1: $675.00 | +708M GEX | MODERATE
// S2: $680.00 | +595M GEX | MODERATE
// S3: $670.00 | +458M GEX | MINOR
// =====================================
// Usage Notes:
// - ★ TOP 3 LEVELS: Thickest lines (4px→3px→2px) with star symbols
// - Resistance levels (red): Negative gamma, potential price ceiling
// - Support levels (lime): Positive gamma, potential price floor
// - Zero Gamma (yellow): Gamma flip point - thicker line for visibility
// - Max Pain (purple): Strike with maximum option value decay
// - Color intensity: Darker = stronger level (top levels are most prominent)
// - Labels show strike prices, GEX values, and ranking for easy reference
// - Focus on TOP 3 levels for key trading decisions
// - Update this indicator throughout the trading day as levels change
Multi-Confluence MTF S/R Signal5 Confluences:
RSI - Detects oversold/overbought conditions with momentum
MACD - Confirms trend direction and momentum shifts
Moving Average Trend - Validates price position relative to 50 SMA and 20 EMA
Volume - Ensures strong participation (1.5x average volume)
Price Action - Confirms breakout (higher high for buys, lower low for sells)
Features:
Green triangles below bars = BUY signal (all 5 confluences bullish)
Red triangles above bars = SELL signal (all 5 confluences bearish)
Background coloring when signals occur
Real-time dashboard showing each confluence status
Built-in alerts you can enable
Customizable parameters for all indicators
Multi-Timeframe Features:
Higher Timeframe Analysis (Default: 60 min)
HTF Trend - Checks if price is above/below moving averages on higher timeframe
HTF MACD - Confirms momentum direction
HTF RSI - Validates not overbought/oversold
Signal Types:
Strong Signals (Full triangles with text)
✅ All 5 current timeframe confluences aligned
✅ Higher timeframe confirmation (2 of 3 HTF conditions)
GREEN "BUY" or RED "SELL" labels
Weak Signals (Small transparent triangles with "?")
✅ All 5 current timeframe confluences aligned
❌ NO higher timeframe confirmation
Use with caution - may signal counter-trend trades
Dashboard Updates:
Shows Current Timeframe section (all 5 confluences)
Shows HTF status (your chosen higher timeframe)
Displays final signal strength
Customizable Settings:
Enable/Disable MTF - Toggle multi-timeframe confirmation
Higher Timeframe - Choose any timeframe (15m, 60m, 4H, D, etc.)
Require HTF - Force HTF confirmation or allow weak signals
Alerts:
Strong Buy/Sell - Full confirmation
Weak Buy/Sell - No HTF confirmation
Breakout buy and sell//@version=6
indicator("突破 + 反轉指標(嚴格版)", overlay=true)
// 均線計算
ma5 = ta.sma(close, 5)
ma20 = ta.sma(close, 20)
ma_cross_up = ta.crossover(ma5, ma20)
ma_cross_down = ta.crossunder(ma5, ma20)
// 成交量判斷(嚴格:放量 1.5 倍以上)
vol = volume
vol_avg = ta.sma(vol, 20)
vol_increase = vol > vol_avg * 1.5
// 價格突破(嚴格:創 20 根新高/新低)
price_breakout_up = close > ta.highest(close, 20)
price_breakout_down = close < ta.lowest(close, 20)
// KDJ 隨機指標(抓反轉)
k = ta.stoch(close, high, low, 14)
d = ta.sma(k, 3)
kd_cross_up = ta.crossover(k, d)
kd_cross_down = ta.crossunder(k, d)
// 時間過濾(美股正規交易時段)
isRegularSession = (hour >= 14 and hour < 21) or (hour == 21 and minute == 0)
// 冷卻時間(避免連續訊號)
var int lastEntryBar = na
var int lastExitBar = na
entryCooldown = na(lastEntryBar) or (bar_index - lastEntryBar > 5)
exitCooldown = na(lastExitBar) or (bar_index - lastExitBar > 5)
// 嚴格進場條件
entryBreakout = ma_cross_up and vol_increase and price_breakout_up
entryReversal = kd_cross_up
entrySignal = (entryBreakout or entryReversal) and isRegularSession and entryCooldown
// 嚴格出場條件
exitBreakdown = ma_cross_down and vol_increase and price_breakout_down
exitReversal = kd_cross_down
exitSignal = (exitBreakdown or exitReversal) and isRegularSession and exitCooldown
// 更新冷卻時間
if entrySignal
lastEntryBar := bar_index
if exitSignal
lastExitBar := bar_index
// 顯示訊號
plotshape(entrySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="進場訊號", text="買入")
plotshape(exitSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="出場訊號", text="賣出")
// 均線顯示
plot(ma5, color=color.orange, title="5MA")
plot(ma20, color=color.blue, title="20MA")
// 提醒條件(alertcondition)
alertcondition(entrySignal, title="買入訊號", message="出現買入訊號")
alertcondition(exitSignal, title="賣出訊號", message="出現賣出訊號")
Triple RSI Strategy @AshokTrendThe Triple RSI Strategy is a trading approach that uses three separate Relative Strength Index (RSI) indicators, typically set to different periods, to generate buy and sell signals with potentially higher accuracy. It aims to filter false signals and improve the probability of successful trades by confirming conditions across multiple timeframes or sensitivity levels.
How the Triple RSI Strategy Works:
Different RSI Periods: Usually set with short, medium, and long periods (e.g., 5, 14, and 30).
Buy Signal: When all three RSIs indicate oversold conditions (below a certain threshold like 30) and show upward momentum.
Sell Signal: When all three RSIs indicate overbought conditions (above a certain threshold like 70) and show downward momentum.
Confirmation: The strategy often confirms signals when the shorter RSI crosses its own previous value or an opposite threshold.
Benefits:
Reduces false signals by requiring multiple conditions.
Suitable for trending or ranging markets, depending on parameters.
Customizable for different assets and timeframes.
Concepts used-
SMC
Trendline Breakout,
Suitable for Long traders.
⦁ Disclaimer: The content in this Article is for educational purposes only and should not be considered financial advice. We are not SEBI-registered advisors. Options trading is highly volatile and carries significant risk. Consult a qualified financial advisor before making any investment decisions.. About Us: We provide educational content on trading strategies and market analysis.
Connect With Us: For business inquiries, email us at: customercare@eamzn.in
For our trading course,
contact us on WhatsApp:
Backtesting Services: We offer strategy backtesting on TradingView.
Contact us for details.
Daily Pivot Points - Fixed Until Next Day(GeorgeFutures)We have a pivot point s1,s2,s3 and r1,r2,r3 base on calcul matematics
MW Futures Previous Daily & Weekly & Monthly Highs/LowsMW Futures Previous Daily, Weekly & Monthly Highs/Lows Indicator
Tired of guessing where the market's key support and resistance levels truly lie? In the fast-paced world of futures trading, pinpointing yesterday's highs/lows, last week's pivots, or the prior month's extremes can mean the difference between a winning scalp and a frustrating loss. Introducing the MW Futures Previous Highs/Lows Indicator – the simple, reliable tool you've been waiting for to unlock precision in continuation and reversal setups .
Why This Indicator Stands Out
Unlike cluttered or inaccurate scripts cluttering TradingView, this one delivers clean, timezone-aware tracking (America/New_York) for:
Current Day High/Low : Live updates to capture intraday extremes.
Previous Day High/Low : Forwarded seamlessly to the next session for overnight gap plays.
Previous Week High/Low : Weekly resets on Sundays at 6 PM ET – perfect for swing traders eyeing weekly biases.
Previous Month High/Low : Monthly pivots reset on the 1st, ideal for positional strategies.
Visualized with distinct line styles and colors:
Thin blue/red lines for daily levels (subtle yet sharp).
Medium thickness for weekly (builds context).
Bold, thicker lines for monthly (unmissable anchors).
Trade Smarter, Not Harder
This isn't just lines on a chart – it's your ideal zone for high-probability trades :
Continuations: Fade breaks above/below previous lows/highs for momentum chases.
Reversals: Stack daily/weekly/monthly confluences for rejection setups with tight risk.
Works flawlessly on ES, NQ, YM, or any session-based instrument.
"Finally, a script that bridges sessions without the hassle – game-changer for my daily routine." – Early Tester
Get Started Today
Add this free indicator to your charts now and transform vague levels into actionable edges. Questions? Drop a comment below. Like & follow for more MW Futures tools!
ATR-Based Stop Loss & TP (Last Bar Only, Styled, Dynamic RR)ATR-Based SL/TP (Last Bar Only, Styled, Dynamic RR)
This indicator calculates SL and TP levels based on the 30-bar Average True Range (ATR) and displays them as horizontal lines on the chart.
Features:
- Separate SL and TP lines for Long and Short positions.
- Long SL: red solid line
- Long TP: green solid line
- Short SL: red dashed line
- Short TP: green dashed line
- Lines extend to the right, based on the last bar only.
- Labels are displayed to the right of the lines and remain fixed.
- Risk:Reward ratio (R:R) is adjustable via input.
Inputs:
- ATR Length: period used for ATR calculation
- ATR Multiplier: ATR multiplier for SL/TP distance
- Bars for Average ATR: number of bars to calculate average ATR (default: 30)
- Risk:Reward: desired R:R ratio
- Label Right Offset Bars: number of bars to shift the label to the right for better visibility
Usage: Visualizes SL and TP levels for the last bar only. Lines and labels update automatically with each new bar.
ATR DrawerWith this ATR chart, you can easily see what yesterday's ATR was compared to today's High/Low, and if you want, it will also show you yesterday's ATR number in the corner.
When a new High/Low is created, the lines automatically adapt to yesterday's ATR. Every day, it recalculates and redraws the lines to yesterday's ATR level.
You can set:
- ATR length
- ATR line width
- Line color
- Show/hide yesterday's ATR
Anti-PDT Swing Trade Signals//@version=5
indicator("Anti-PDT Swing Trade Signals", overlay=true)
// === User Inputs ===
priceLimit = input.float(25, "Max Price ($)", minval=1)
minVolume = input.int(200000, "Min Avg Volume (10D)", minval=1)
// === Indicators ===
sma20 = ta.sma(close, 20)
sma50 = ta.sma(close, 50)
macdLine = ta.ema(close, 12) - ta.ema(close, 26)
signalLine = ta.ema(macdLine, 9)
rsi = ta.rsi(close, 14)
avgVolume = ta.sma(volume, 10)
// === Conditions ===
priceFilter = close <= priceLimit
volumeFilter = avgVolume >= minVolume
rsiFilter = ta.crossover(rsi, 40)
macdFilter = ta.crossover(macdLine, signalLine)
smaFilter = close > sma20 and close > sma50
momentumFilter = close > close * 1.03 and close < close * 1.10
// === Day Filter ===
isMonWedFri = dayofweek == dayofweek.monday or dayofweek == dayofweek.wednesday or dayofweek == dayofweek.friday
entryCondition = priceFilter and volumeFilter and rsiFilter and macdFilter and smaFilter and momentumFilter and isMonWedFri
// === Alerts & Visuals ===
plotshape(entryCondition, title="BUY", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
alertcondition(entryCondition, title="BUY Alert", message="BUY Signal: {{ticker}} meets swing trading entry criteria.")
plot(sma20, color=color.orange)
plot(sma50, color=color.blue)
Aggression Bulbs v3.1 (Sessions + Bias, fixed)EYLONAggression Bulbs v3.2 (Sessions + Bias + Volume Surge)
This indicator highlights aggressive buy and sell activity during the London and New York sessions, using volume spikes and candle body dominance to detect institutional momentum.
⚙️ Main Logic
Compares each candle’s volume vs average volume (Volume Surge).
Checks body size vs full candle range to detect strong directional moves.
Uses an EMA bias filter to align signals with the current trend.
Displays green bubbles for aggressive buyers and red bubbles for aggressive sellers.
🕐 Sessions
London: 08:00–12:59 UTC+1
New York: 14:00–18:59 UTC+1
(Backgrounds: Yellow = London, Orange = New York)
📊 How to Read
🟢 Green bubble below bar → Aggressive BUY candle (strong demand).
🔴 Red bubble above bar → Aggressive SELL candle (strong supply).
Bubble size = relative strength (volume × candle dominance).
Use in confluence with key POI zones, volume profile, or delta clusters.
⚠️ Tips
Use on 1m–15m charts for scalping or intraday analysis.
Combine with your session bias or FVG zones for higher accuracy.
Set alerts when score ≥ threshold to catch early momentum.
XAUUSD Confluence Pro v4.7A precision-built TradingView indicator engineered for professional gold (XAUUSD) trading.
It fuses multi-layer trend confirmation (EMA + MACD + ADX) with market-structure logic (BOS/CHOCH, Engulfing, FVG filters) to identify high-probability reversals and continuations.
Each signal automatically generates:
Smart trade metrics: dynamic ATR-based stop-loss, adaptive dual take-profits, and trailing-EMA management.
Integrated performance dashboard: real-time trade tracking in pips and dollars, complete with running totals.
Automation hooks: one-click PineConnector alert support for instant MT4/MT5 execution, including SL, TP, and lot size.
Fully customizable, session-aware, and built for automation—the XAUUSD Confluence Pro v4.7 transforms TradingView into a full-scale strategy terminal.
TJR asia session sweepThe TJR Asia Session Sweep is a liquidity-based trading strategy that focuses on the Asian session high and low range. During the London open, price often sweeps (breaks) one side of that range to grab liquidity — triggering stop hunts. After the sweep, traders look for a break of structure (BOS) and enter in the opposite direction of the sweep.
Supply & Demand Zones [QuantAlgo]🟢 Overview
The Supply & Demand (Support & Resistance) Zones indicator identifies price levels where significant buying and selling pressure historically emerged, using swing point analysis and pattern recognition to mark high-probability reversal and continuation areas. Unlike conventional support/resistance tools that draw arbitrary horizontal lines, this indicator can automatically detect structural zones, offering traders systematic entry and exit levels where institutional order flow likely congregates across any market or timeframe.
🟢 How to Use
# Zone Types:
Green/Demand Zones: Support areas where buying pressure historically emerged, representing potential long entry opportunities where price may bounce or consolidate before moving higher. These zones mark levels where buyers previously overcame sellers.
Red/Supply Zones: Resistance areas where selling pressure historically dominated, indicating potential short entry opportunities where price may reverse or stall before declining. These zones identify levels where sellers previously overwhelmed buyers.
# Zone Pattern Types:
Wick Rejection Zones: Zones created from candles with exceptionally long wicks showing violent price rejection. A demand rejection occurs when price drops sharply but closes well above the low, forming a long lower wick (relative to the total candle range) that demonstrates buyers aggressively defending that level. A supply rejection shows price spiking higher but closing well below the high, with the long upper wick proving sellers rejected that price aggressively. These zones often represent major institutional orders that absorbed significant market pressure. The rejection wick ratio setting controls how prominent the wick must be (higher ratios require more dramatic rejections and produce fewer but higher-quality zones).
Continuation Demand Zones: Areas where price rallied upward, paused in a brief consolidation base, then rallied again. This pattern confirms strong buying continuation (the consolidation represents profit-taking or minor pullbacks that failed to attract meaningful selling). When price returns to these zones, buyers who missed the initial rally often provide support, making them high-probability long entries within established uptrends. These zones follow the classic Rally-Base-Rally structure, demonstrating that buyers remain in control even during temporary pauses.
Reversal Demand Zones: Zones where price dropped, formed a consolidation base, then reversed into a rally. This structure marks potential trend reversals or major swing lows where buyers finally overwhelmed sellers after a decline. The base period represents accumulation by stronger hands, and these zones frequently appear at market bottoms or as significant pullback support within larger uptrends, signaling shifts in market control. These zones follow the Drop-Base-Rally pattern, showing the moment when selling pressure exhausted and buying interest emerged.
Continuation Supply Zones: Areas where price dropped, consolidated briefly, then dropped again. This pattern demonstrates strong selling continuation (the pause represents temporary buying attempts that failed to generate meaningful recovery). When price returns to these zones, sellers who missed the initial decline often provide resistance, creating short entry opportunities within established downtrends. These zones follow the Drop-Base-Drop structure, confirming that sellers maintain dominance even during temporary consolidations.
Reversal Supply Zones: Zones where price rallied upward, formed a consolidation base, then reversed into a decline. This formation identifies potential trend reversals or major swing highs where sellers overcame buyers after an advance. The base period often represents distribution by institutional participants, and these zones commonly appear at market tops or as key pullback resistance within larger downtrends, marking transfers of market control from buyers to sellers. These zones follow the Rally-Base-Drop pattern, capturing the transition point when buying exhaustion meets aggressive selling.
# Zone Mitigation Methods:
Wick Mitigation: Zones become invalidated immediately upon first contact by any wick. This assumes zones work only on their initial test, reflecting the belief that institutional orders concentrated at these levels get completely filled on first touch. Best for traders seeking only the highest-probability, untested zones and willing to accept that zones invalidate frequently in volatile markets. When price touches a zone boundary with even a single wick, that zone is considered "used up" and becomes mitigated.
Close Mitigation: Zones remain valid through wick penetration but become invalidated only when a candle closes through the zone boundary. This method allows price to briefly probe the zone with wicks while requiring actual commitment (a close) for invalidation. Suitable for traders who recognize that zones can withstand initial tests and prefer filtering out false breakouts caused by temporary volatility or liquidity hunts. A zone stays active as long as candles close within or outside it, regardless of wick penetration, until a close occurs beyond the boundary.
Full Body Mitigation: Zones stay valid until an entire candle body exists completely beyond the zone boundary, meaning both the open and close must be outside the zone. This approach maintains zone validity through partial penetrations, accommodating the reality that institutional zones can absorb considerable price action before exhausting. Ideal for volatile markets or traders who believe zones represent price ranges rather than precise levels, and who want zones to persist through aggressive but ultimately rejected breakout attempts. Only when both the open and close of a candle are beyond the zone does it become mitigated.
🟢 Pro Tips for Trading and Investing
→ Preset Selection: Choose presets matching your preferred timeframe - Scalping (M1-M30) for aggressive detection on minute charts, Intraday (H1-H12) for balanced filtering on hourly timeframes, or Swing Trading (1D+) for strict filtering on daily charts. Each preset automatically optimizes swing length, zone strength, and max zone counts for the selected timeframe.
→ Input Calibration: Adjust Swing Length based on market speed (lower values 3-7 for fast markets, higher values 12-20 for slower markets). Set Minimum Zone Strength according to asset volatility (0.05-0.15% for low-volatility assets, 0.25-0.5% for high-volatility assets). Tune Rejection Wick Ratio higher (0.6-0.8) for strict wick filtering or lower (0.3-0.5) to capture more subtle rejections.
→ Zone Pattern Toggle Strategy: Pattern types are mutually exclusive - enable Continuation OR Reversal patterns for each zone type, not both together. Recommended combinations: For trend trading, enable Rejection + Continuation (2-4 toggles total). For reversal trading, enable Rejection + Reversal (2-4 toggles). For scalping, enable only Rejection zones (1-2 toggles). Maximum 3-4 active toggles provides optimal chart clarity. A simple Wick Rejection toggle can also work on virtually any market and timeframe.
→ Mitigation Method Selection: Use Wick mitigation in clean trending markets for strict zone invalidation on first touch. Use Close mitigation in moderate volatility to filter out temporary spikes. Use Full Body mitigation in highly volatile markets to keep zones active through whipsaws and false breakouts.
→ Alert Configuration: Utilize built-in alerts for new zone creation, zone touches, and zone breaks. New zone alerts notify when fresh supply/demand areas form. Zone touch alerts signal potential entry opportunities as price reaches zones. Zone break alerts indicate when levels fail, signaling possible trend acceleration or structure changes.
조건 검색식//@version=5
indicator("조건 검색식", overlay=true)
// ----------------------
// 기본 입력
// ----------------------
shortEmaLen = input.int(112, "단기 EMA")
midEmaLen = input.int(224, "중기 EMA")
longEmaLen = input.int(448, "장기 EMA")
ema5Len = input.int(5, "EMA 5")
ema20Len = input.int(20, "EMA 20")
bbLen = input.int(20, "볼린저 기간")
bbMult = input.float(2.0, "볼린저 배수")
// ----------------------
// 이동평균선
// ----------------------
emaShort = ta.ema(close, shortEmaLen)
emaMid = ta.ema(close, midEmaLen)
emaLong = ta.ema(close, longEmaLen)
ema5 = ta.ema(close, ema5Len)
ema20 = ta.ema(close, ema20Len)
// ----------------------
// 거래량 / 거래대금
// ----------------------
avgVol = ta.sma(volume, 5)
cond_vol = (volume >= 50000 and volume <= 99999999)
cond_val = (avgVol * close >= 50000 and avgVol * close <= 9999999)
// ----------------------
// 캔들 비교
// ----------------------
cond_price = (close < close) // 1봉전 종가 < 현재 종가
// ----------------------
// 이평 조건
// ----------------------
cond_ma_reverse = (emaShort < emaMid and emaMid < emaLong) // 역배열
cond_ma_short = (ema5 > ema20 and ema5 > ema20 ) // 1봉 이상 지속
// ----------------------
// 체결강도 (추정치, 거래량 기준)
// ----------------------
// 체결강도 공식은 증권사마다 다르므로 근사치로 가정: (상승 거래량 비중/총거래량)
// TradingView에서 직접적인 "체결강도"는 제공하지 않음 → 임시로 100% 충족으로 세팅
cond_strength = true // 혹은 커스텀 계산 가능
// ----------------------
// 볼린저밴드 조건
// ----------------------
basis = ta.sma(close, bbLen)
dev = ta.stdev(close, bbLen)
bbUpper = basis + bbMult * dev
// 종가가 상단선 -5% ~ +5% 이내
cond_bb = (close >= bbUpper * 0.95 and close <= bbUpper * 1.05)
// ----------------------
// 일목균형표 (9,26,52)
// ----------------------
conversion = (ta.highest(high,9) + ta.lowest(low,9)) / 2
base = (ta.highest(high,26) + ta.lowest(low,26)) / 2
span1 = (conversion + base) / 2
span2 = (ta.highest(high,52) + ta.lowest(low,52)) / 2
cond_ichimoku = (close > span1 and close > span2)
// ----------------------
// 최종 조건
// ----------------------
condition = cond_vol and cond_val and cond_price and cond_ma_reverse and cond_ma_short and cond_strength and cond_bb and cond_ichimoku
plotshape(condition, title="조건 충족", style=shape.labelup, color=color.green, size=size.small, text="조건OK")