geminiNiftyhi it gives buy sell signal this is using price action with cpr indicator
works well on trending day
Formacje wykresów
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.
HPZ — 4H Buy Zones (Ultra High Quality)Only finds BUY setups.
Only shows overlaps between 4H Fair Value Gaps and Bullish Order Blocks.
Filters out small gaps or candles with too little momentum.
Displays a green box (HPZ) only when overlap is valid.
Optionally shows a “HPZ BUY” label when price enters the zone.
Includes tiny swing markers for visual reference.
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="出現賣出訊號")
Nithin Liquidity Sweep//@version=6
indicator("Liquidity Sweep Finder", overlay=true, max_labels_count=500)
// Input settings
lookback = input.int(10, "Lookback Bars for High/Low", minval=2)
showHighSweep = input.bool(true, "Show High Sweeps")
showLowSweep = input.bool(true, "Show Low Sweeps")
// Identify recent swing high/low
recentHigh = ta.highest(high, lookback)
recentLow = ta.lowest(low, lookback)
// Sweep conditions
highSweep = showHighSweep and high > recentHigh and close < recentHigh
lowSweep = showLowSweep and low < recentLow and close > recentLow
// Plot signals
plotshape(highSweep, title="High Liquidity Sweep", style=shape.labeldown,
text="Sweep ⬇", location=location.abovebar, color=color.red, size=size.tiny)
plotshape(lowSweep, title="Low Liquidity Sweep", style=shape.labelup,
text="Sweep ⬆", location=location.belowbar, color=color.green, size=size.tiny)
// Highlight background when sweep occurs
bgcolor(highSweep ? color.new(color.red, 85) : na)
bgcolor(lowSweep ? color.new(color.green, 85) : na)
FMA Pro v1.0Foxbrady Moving Average Pro - uses EMA for tick based charts and SMA for time based charts, automatically.
Tristan's Three Line Strike PatternThree Line Strike Indicator (5-Minute Timeframe)
This indicator highlights Three Line Strike candlestick patterns on a 5-minute chart . The Three Line Strike is a rare four-candle formation that often signals trend continuation rather than reversal.
Bullish Three Line Strike (green “3LS long” above the candle):
Three strong bullish candles in a row are followed by a large bearish candle that completely engulfs the prior three. Despite looking bearish, this setup often indicates strength in the uptrend.
Bearish Three Line Strike (red “3LS sell” below the candle):
Three consecutive bearish candles are followed by a large bullish engulfing candle. Although it looks like a reversal, the downtrend commonly resumes.
How to use on the 5-min chart:
Watch for the labels marking the pattern.
A bullish signal suggests that the upward move is likely to continue after the engulfing candle.
A bearish signal suggests that the downtrend is likely to continue after the engulfing candle.
These signals are not entry/exit triggers on their own—I suggest you combine them with trend confirmation (e.g., moving averages, momentum indicators, or volume analysis) before acting.
Use good risk management, and don't buy / sell based on these indicators alone.
BTC Momentum Strategy Ver2.0 by @AshokTrendThe BTC Momentum Strategy with LazyBear SQZMOM & Custom SL + Angle Filter is a technical trading strategy that blends multiple proven concepts to capture favorable momentum trades in Bitcoin or other assets.
### Core Components
- **LazyBear Squeeze Momentum Indicator (SQZMOM):** This indicator identifies low volatility "squeeze" periods when Bollinger Bands contract inside Keltner Channels, signaling potential explosive moves once the squeeze releases. The strategy uses momentum derived from linear regression on price to judge trade direction—positive momentum favors longs, negative momentum favors shorts.
- **EMA 200 Trend Filter:** The 200-period Exponential Moving Average defines the prevailing trend. Trades are taken long only if price is above the EMA and short if below, reducing risk of countertrend entries.
- **Price Movement Angle Filter:** The strategy calculates the angle of recent price movement over a lookback period. Entries require a price angle greater than 27 degrees for longs and less than -27 degrees for shorts, confirming strong directional momentum and filtering out weak moves.
- **Stop Loss Management:** A custom stop loss in fixed points distance from the entry price manages risk, protecting capital if the market moves against the trade.
- **Trading Time Window:** The strategy trades only during Indian market hours (4:00 AM to 11:00 PM IST), filtering trades to relevant active market sessions.
- **Swing Levels:** Recent swing highs and lows are used as additional confirmation levels for entries and exits, helping to time trade triggers more precisely.
### How Trades Are Executed
- **Long Entry:** When trading hours are active, SQZMOM indicates bullish momentum (momentum histogram positive and squeeze released), price is in an uptrend (above EMA 200), the current close is above recent swing highs, and the price movement angle exceeds 27 degrees, the strategy enters a long position.
- **Short Entry:** When trading hours are active, SQZMOM shows bearish momentum (momentum histogram negative and squeeze released), price is in a downtrend (below EMA 200), the current close is below recent swing lows, and the price movement angle is less than -27 degrees, the strategy enters a short position.
- **Exits:** Positions are closed either when price breaches opposite swing levels, momentum conditions reverse, or trading hours end. Stop losses are also triggered if price moves unfavorably by the defined points.
### Strategy Benefits
- Detects volatility contractions and momentum expansions for potentially strong directional moves.
- Reduces false entries with the EMA trend and angle momentum filters.
- Manages risk actively with stop losses and time-based filters.
- Combines multiple technical tools — momentum, trend, volatility, price structure — for a holistic approach.
This strategy tends to work best on active higher timeframes where trends and momentum have clarity and is designed for disciplined, momentum-focused trading with robust trade management.
Concepts used-
SMC
TRednline Breaout,
Timefram-15M or Higher For better Result.
Note-We are not SEBI-Registered, Graphs, charts, and tables are provided for illustrative purposes only. Investing is subject to market risks. Investors acknowledge and accept the potential loss of some or all of an investment's value.Please consult your financial advisor before taking any decision.
Please whatsapp only=7835983697.
MA Disparity (乖離率%)このインジケータは、現在の終値と移動平均線(SMAまたはEMA)との**乖離率(かいりりつ)**を%で表示します。
「価格が移動平均線からどれだけ離れているか」を視覚的に把握することで、**過熱感(買われすぎ/売られすぎ)**を判断できます。
設定で期間(例:20日、25日など)を自由に変更可能
SMA/EMAの選択が可能
0%ラインを基準として、プラス側は上方乖離、マイナス側は下方乖離を示します
トレンドの勢い確認、押し目・戻り目の判断にも活用できます
📊 例:
+10%以上 → 短期的な過熱感
-10%以下 → 売られすぎの可能性
---
This indicator displays the disparity ratio (price deviation) between the current close and a moving average (SMA or EMA), expressed in percentage.
It helps visualize how far the price has moved away from its average — a useful signal for identifying overbought or oversold conditions.
Adjustable period (e.g., 20, 25, 50, etc.)
Selectable MA type (SMA or EMA)
0% baseline: positive values = above MA, negative = below MA
Great for spotting trend strength, pullbacks, and reversals
📈 Example:
+10% → potential overbought zone
-10% → potential oversold zone
---
#Kairi #Disparity #MovingAverage #Volume #SMA #EMA #Overbought #Oversold #Japan
Pops Master Overlay -Soft Cloud + EMA 5/20/200 + EMA 13/48/200 ⚙️ SETUP & PURPOSE
This indicator combines everything you and I built into one clean, eye-friendly suite:
Soft Cloud Bands for volatility & trend confirmation
Bollinger & Keltner “Squeeze” logic for compression signals
Two EMA families for short-term vs. momentum trend
VWAP toggle for intraday equilibrium reference
🧭 QUICK START
Apply to Chart
Add the script (overlay=true) — works best on 2-minute to daily timeframes.
Choose Theme
Default: Graphite Gray (gentle and easy on the eyes)
You can switch to Soft Teal or Smoke Blue in settings.
Adjust Cloud
“Show Cloud Fill” → toggles the soft volatility zone
“Cloud Transparency” → 92–96 = softer background
“Show Background Tint” → adds a barely visible page hue
🧠 EMA SYSTEMS (Your Two Trading Views)
🔹 Set A – 5 / 20 / 200 EMA
Purpose: Fast, reactive, perfect for momentum & scalp entries
EMA 5 → micro trend (very short-term speed)
EMA 20 → intraday rhythm
EMA 200 → master bias line (above = bullish, below = bearish)
Usage Tip:
When EMA 5 crosses above EMA 20 while price is above the 200, that’s your “early push” confirmation.
Reverse for short bias.
➡ Toggle visibility:
Settings → EMA Set A → turn each one on/off individually.
🔹 Set B – 13 / 48 / 200 EMA
Purpose: Slower, smoother, designed for swing trades & trend filtering
EMA 13 → trend guide
EMA 48 → intermediate momentum
EMA 200 → long-term direction
Usage Tip:
Look for 13 > 48 > 200 stacking for clean, trending structure.
If they’re twisted together, it’s chop — step aside.
➡ Toggle visibility:
Settings → EMA Set B → turn each one on/off individually.
You can run both sets at once to compare momentum vs. structure.
💥 SQUEEZE ZONE
Red dots appear when Bollinger Bands are inside Keltner Channels → low volatility (squeeze forming).
Green dots appear when the squeeze releases → breakout conditions.
💡 Combine this with your EMAs:
If the squeeze releases while both EMA sets align bullishly, it’s often your best breakout timing.
🧮 VWAP
Toggle “Show VWAP (intraday)” to anchor your price bias around session mean value.
Price above VWAP = buyers control; below = sellers control.
👁️ RECOMMENDED SETTINGS
Setting Recommended
Cloud Theme Graphite Gray
Cloud Transparency 92–96
Band Lines Transparency 45
EMA Lines Set A for Day Trading, Set B for Swing
Squeeze Dots ON for momentum confirmation
🕹️ TIPS FOR TOGGLING EMAs
To switch quickly:
Open gear ⚙️ → scroll to “EMA Set A” or “EMA Set B.”
Turn off the ones you don’t want.
You can rename colors in settings to keep them separate (e.g., Green/Gold for A, Lighter Green/Gold for B).
Visual layering trick:
Run Set A (solid) for live momentum.
Run Set B (faint) to see long-term structure behind it.
🌤️ POPS RULE OF THUMB
“When both EMA sets line up, the squeeze releases, and price rides above the cloud —
that’s not a maybe… that’s a momentum wave.”
Breakout Score (0–100)Breakouts are often the trader's best setups. Often seen on the chart as wedges and flags, consolidation before a pop up or down. This script attempts to visualize breakout potential with gradients in the background. I built this to place on my side charts to quickly visualize that a setup was forming.
For this indicator, Breakouts have generally been assumed as:
Decrease in average volume over N candles
Proximity to VWAP
Convergence/cross of price to the 9, 20 and 50 EMAs
Range compression (formation of flag or consolidation)
each of these factors are scored and rated. Multiple signals exponentially increase the gradient. Depending on the score, the chart will display a visual gradient behind the chart. Color, opacity and filtering fully customizable.
Enjoy!
Volume Peak (2 before & 2 after) - FixedThe option to detect volume peaks higher than the surrounding bars.
3/4-Bar GRG / RGR Pattern (Conditional 4th Candle)This indicator can be used to identify the Green-Red-Green or Red-Green-Red pattern.
It is a price action indicator where a price action which identifies the defeat of buyers and sellers.
If the buyers comprehensively defeat the sellers then the price moves up and if the sellers defeat the buyers then the price moves down.
In my trading experience this is what defines the price movement.
It is a 3 or 4 candle pattern, beyond that i.e, 5 or more candles could mean a very sideways market and unnecessary signal generation.
How does it work?
Upside/Green signal
Say candle 1 is Green, which means buyers stepped in, then candle 2 is Red or a Doji, that means sellers brought the price down. Then if candle 3 is forming to be Green and breaks the closing of the 1st candle and opening of the 2nd candle, then a green arrow will appear and that is the place where you want to take your trade.
Here the buyers defeated the sellers.
Sometimes candle 3 falls short but candle 4 breaks candle 1's closing and candle 2's opening price. We can enter on candle 4.
Important - We need to enter the trade as soon as the price moves above the candle 1 and 2's body and should not wait for the 3rd or 4th candle to close. Ignore wicks.
I have restricted it to 4 candles and that is all that is needed. More than that is a longer sideways market.
I call it the +-+ or GRG pattern.
Stop loss can be candle 2's mid for safe traders (that includes me) or candle 2's body low for risky traders.
Back testing suggests that body low will be useless and result in more points in loss because for the bigger move this point will not be touched, so why not get out faster.
Downside/Red signal
Say candle 1 is Red, which means sellers stepped in, then candle 2 is Green or a Doji, that means buyers took the price up. Then if candle 3 is forming to be Red and breaks the closing of the 1st candle and opening of the 2nd candle then a Red arrow will appear and that is the place where you want to take your trade.
Sometimes candle 3 falls short but candle 4 breaks candle 1's closing and candle 2's opening price. We can enter on candle 4.
We need to enter the trade as soon as the price moves below the candle 1 and 2's body and should not wait for the 3rd or 4th candle to close.
I have restricted it to 4 candles and that is all that is needed. More than that is a longer sideways market.
I call it the -+- or RGR pattern.
Stop loss can be candle 2's mid for safe traders ( that includes me) or candle 2's body high for risky traders.
Back testing suggests that body high will be useless and result in more points in loss because for the bigger move this point will not be touched, so why not get out faster.
Important Settings
You can enable or disable the 4th candle signal to avoid the noise, but at times I have noticed that the 4th candle gives a very strong signal or I can say that the strong signal falls on the 4th candle. This is mostly a coincidence.
You can also configure how many previous bars should the signal be generated for. 10 to 30 is good enough. To backtest increase it to 2000 or 5000 for example.
Rest are self explanatory.
Pointers
If after taking the trade, the next candle moves in your direction and closes strong bullish or bearish, then move SL to break even and after that you can trail it.
If a upside trade hits SL and immediately a down side trade signal is generated on the next candle then take it. Vice versa is true.
Trades need to be taken on previous 2 candle's body high or low combined and not the wicks.
The most losses a trader takes is on a sideways day and because in our strategy the stop loss is so small that even on a sideways day we'll get out with a little profit or worst break even.
Hold targets for longer targets and don't panic.
If last 3-4 days have been sideways then there is a good probability that day will be trending so we can hold our trade for longer targets. Target to hold the trade for whole day and not exit till the day closes.
In general avoid trading in the middle of the day for index and stocks. Divide the day into 3 parts and avoid the middle.
Use Support/Resistance, 10, 20, 50, 200 EMA/SMA, Gaps, Whole/Round numbers(very imp) for identifying targets.
Trail your SL.
For indexes I would use 5 min and 15 min timeframe.
For commodities and crypto we can use higher timeframe as well. Look for signals during volatile time durations and avoid trading the whole day. Signal usually gives good targets on those times.
If a GRG or RGR pattern appears on a daily timeframe then this is our time to go big.
Minimum Risk to Reward should be 1:2 and for longer targets can be 1:4 to 1:10.
Trade with small lot size. Money management will happen automatically.
With small lot size and correct Risk-Re ward we can be very profitable. Don't trade with big lot size.
Stay in the market for longer and collect points not money.
Very imp - Watch market and learn to generate a market view.
Very imp - Only 4 candles are needed in trading - strong bullish, strong bearish, hammer, inverse hammer and doji.
Go big on bearish days for option traders. Puts are better bought and Calls are better sold.
Cluster of green signals can lead to bigger move on the upside and vice versa for red signals.
Most of this is what I learned from successful traders (from the top 2%) only the indicator is mine.
Episodic Pivot -AparnaEpisodic pivot when volume are 5x of SMA 14 and price is 10% higher than previous close
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! 🚀📈**
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
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)
50 SMA 5-Candle Crossover50 SMA 5-Candle Crossover. Testing out. Not for trading but for investing. HOLD