Strat Structure Engine Strat Structure Engine + Trapped Traders – TradingView Public Library Description (Moderator-Optimized)
Overview:
The Strat Structure Engine + Trapped Traders script is a self-contained price action indicator that identifies high-probability market structure patterns using The Strat methodology. It integrates bar-based structure, volatility (ATR), and volume analysis to detect potential reversals, exhaustion points, and trapped trader scenarios directly on the chart. Unlike generic indicators, it grades signals for reliability and visual clarity, providing actionable insight for traders.
Originality and Purpose:
This script is original because it combines multiple structure-based patterns into a single, coherent system:
3-Bar → Failed 2 (3→F2) – A tiered scoring system evaluates the strength of a strict 3-bar structure followed by a Failed 2 bar.
2-Bar → Failed 2 (2→F2, A+ only) – Filters only the strongest 2-bar setups followed by a Failed 2 for high-confidence reversal signals.
Failed 2 → Failed 2 (Dragon’s Tail / F2→F2) – Detects consecutive Failed 2 bars in opposite directions, signaling trapped traders and quick reversals.
Each pattern is evaluated using objective criteria: bar range relative to ATR, Failed 2 close relative to the preceding structure, body-to-range ratio, and volume spikes compared to recent averages. The combination of multiple patterns with tiered scoring and volume confirmation is unique and cannot be reproduced by simply merging standard indicators.
Signal Evaluation and Scoring:
1. 3→F2 (Tiered Scoring)
Criteria:
3-bar range vs ATR
Failed 2 close relative to 3-bar midpoint
Body-to-range ratio
Volume vs recent SMA
Tier Grades: A+, A, B, —
Purpose: Helps traders prioritize high-confidence reversal setups while filtering out weaker signals.
2. 2→F2 (A+ Only)
Evaluates strict 2-bar structures followed by a Failed 2 bar.
Displays only the strongest A+ setups to reduce noise.
3. F2→F2 (Dragon’s Tail)
Detects consecutive Failed 2 bars in opposite directions.
Highlights trapped trader zones and potential rapid reversals.
Volume and Volatility Integration:
ATR normalization ensures bar ranges are contextualized to market volatility.
SMA volume averaging confirms unusual activity, filtering signals with low participation.
This ensures signals are structurally valid and contextually significant.
Chart and Visual Clarity:
Labels are color-coded (green for bullish, red for bearish) and include tier/score for easy interpretation.
Only confirmed patterns are labeled, avoiding clutter or ambiguous markings.
Works on standard candlestick charts (does not use Heikin Ashi, Renko, or Range bars), ensuring realistic and reliable signals.
Customization and Alerts:
Toggle each pattern on/off: 3→F2, 2→F2, F2→F2
Adjust ATR length and volume average period per instrument or timeframe.
Alerts available for all patterns for bar-close confirmation, enabling real-time monitoring or integration with trading systems.
Practical Trading Use:
Identify exhaustion points, trapped traders, and reversals.
Can be used alongside VWAP, liquidity zones, fair value gaps, and session extremes for enhanced entry and exit decisions.
Focus on A+ / A tier signals for execution; use B-tier signals for context or partial entries.
Designed for multiple instruments (equities, futures, Forex) and adaptable across timeframes.
Compliance and Risk Notes:
Signals are historical, not predictive.
Follow proper risk management and do not rely solely on indicator signals.
Past performance does not guarantee future results.
Does not use request.security() with lookahead; all signals are confirmed on bar close.
✅ Key Advantages:
Fully self-contained, original methodology.
Multi-pattern integration with tiered scoring for reliability.
Volume and ATR confirmation reduces noise and false signals.
Clean, uncluttered chart output that is easy to read and interpret.
This version explicitly addresses moderation points:
Originality: explains why the mashup is necessary and unique.
Usefulness: shows exactly how traders can use it.
Chart clarity: confirms labels are meaningful, non-redundant, and easy to read.
Signal realism: bars are confirmed, no lookahead used.
รูปแบบชาร์ต
Session & ATR Trailing Stop mindedgean indicator that highlights the asian range where i look for the 15m fractal to be swept and then i trade in the opposite direction
MTF MACD Dynamic█ MACD PULSE MTF
Multi-timeframe MACD with 4-color dynamic histogram.
█ FEATURES
- Multi-timeframe support
- 4-color histogram (trend strength + direction)
- Dynamic MACD/Signal line colors
- Cross markers for entry signals
█ HOW TO USE
HISTOGRAM COLORS:
🟢 Bright Green = Bullish momentum increasing
🟢 Teal = Bullish momentum decreasing
🔴 Bright Red = Bearish momentum increasing
🟠 Orange = Bearish momentum decreasing
SIGNALS:
- Buy: Histogram turns green + MACD crosses above signal
- Sell: Histogram turns red + MACD crosses below signal
- Circle markers show exact cross points
█ SETTINGS
- Fast EMA: 12 (default)
- Slow EMA: 26 (default)
- Signal SMA: 9 (default)
- Custom timeframe: Select any TF while on current chart
█ TIPS
- Use higher timeframe for trend direction
- Combine with support/resistance levels
- Fading colors = potential reversal warning
NWOG Predictive AnalysisThis indicator answers the question, if it's mid week and NWOG hasn't been returned to yet, what are the odds it still gets hit? It gives you a live probability based on the current day and updates as the week progresses.
NWOG Return AnalysisThis indicator tracks the NWOG and shows what percentage of each weekday price returns to it. It tells you historically how often Monday, Tuesday, Wednesday, etc. see a NWOG touch.
ChillLax Distance From Moving Average// show the % distance from the moving average, in colorful histogram
// you can choose :
// : the moving average of the close, default to 200 ma
// : sma or ema, default to sma
// : choose calculation from open or high or low or close (to the ma), default is close
// : threshold % above/below ma, default is 70%. when the stock is above/below
// this threshold, histogram is red (default)
// : otherwise, histogram is blue (default)
// Why this? In William O'neil's book, How to make money in stock, 4th edition, page 264,
// in Climax Top:
// 200-day moving average line. Some stocks may be sold when they are
// 70% to 100% or more above their 200-day moving average price line
Adaptive MTF Momentum█ WHAT MAKES THIS INDICATOR DIFFERENT
This indicator solves a common problem: lower timeframe noise causing false signals. Instead of using fixed settings, it dynamically selects which higher timeframes to monitor based on your current chart.
The core methodology combines three analysis layers that must ALL agree before generating a signal:
1. Multi-timeframe trend alignment (direction filter)
2. Momentum exhaustion detection (timing filter)
3. Volume and structure confirmation (validation filter)
This triple-confirmation approach significantly reduces false signals compared to single-indicator strategies.
█ METHODOLOGY EXPLAINED
Layer 1: Adaptive Timeframe Selection
The indicator automatically builds a timeframe chain based on your chart:
| Your Chart | Monitors |
|------------|----------|
| 5 minute | 30m + 1H + 4H |
| 15 minute | 1H + 4H + Daily |
| 30 minute | 2H + 8H + Daily |
For each higher timeframe, it calculates EMA crossovers (8/21/50) to determine trend direction. The "alignment score" (0-3) shows how many timeframes agree.
Why this matters: A 5m buy signal is more reliable when 30m, 1H, AND 4H all show bullish structure.
Layer 2: Momentum Timing
Once trend direction is confirmed, the indicator waits for optimal entry timing using:
- RSI (14): Identifies oversold (<30) and overbought (>70) conditions
- Stochastic (14,3,3): Confirms momentum shift via K/D crossovers
- MACD (12,26,9): Validates momentum direction change
A "momentum score" combines these readings. Signals only fire when momentum aligns with the higher timeframe trend.
The logic: In an uptrend, we want to buy when momentum is oversold and turning up. In a downtrend, we want to sell when momentum is overbought and turning down.
Layer 3: Validation Filters
Before any signal appears, these conditions must pass:
- Volume Filter: Current volume must exceed 1.2x the 20-period average. This confirms institutional participation.
- VWAP Filter: For longs, price should be above VWAP. For shorts, below VWAP. This ensures we trade with intraday flow.
- Structure Filter: Requires a recent break of swing high (for longs) or swing low (for shorts). This confirms price is actually moving in our direction.
- ATR Filter: Volatility must be above 50% of its 50-period average. This avoids low-volatility chop.
█ SIGNAL CLASSIFICATION
The indicator categorizes signals by entry type:
REV (Reversal): Momentum reaches extreme (RSI oversold/overbought) while higher timeframes maintain trend. Best for catching pullbacks in trends.
CONT (Continuation): Price pulls back to the 21 EMA in a strong trend, then momentum turns. Best for adding to existing positions.
BRK (Breakout): Price breaks structure level with volume spike. Best for catching new moves early.
█ QUALITY SCORE CALCULATION
Each signal receives a Q1-Q5 rating based on:
- HTF alignment score (0-3 points)
- Momentum score (0-3 points)
- Volume spike present (+1 point)
Higher scores indicate more filters aligned. Q4-Q5 signals have the highest probability.
█ RISK MANAGEMENT
TP/SL levels are calculated using ATR(14):
- Stop Loss: 1.2 x ATR from entry
- TP1: 1.8 x ATR (partial exit)
- TP2: 3.0 x ATR (full exit)
This provides approximately 1.5:1 to 2.5:1 reward-to-risk ratio.
█ HOW TO USE
1. Apply to 5m, 15m, or 30m chart
2. Enable "Auto-Adapt" mode (recommended)
3. Wait for signals with Q3 or higher rating
4. Check dashboard confirms trend alignment
5. Enter with suggested TP/SL levels
Settings Guide:
- Sensitivity: "Conservative" = fewer but higher quality signals
- Sensitivity: "Aggressive" = more signals, lower threshold
- Cooldown: Increase to 10-15 if signals appear too frequently
█ DASHBOARD READINGS
- HTF: Shows active timeframe chain
- Trend: Bull/Bear + alignment score (aim for +2 or +3)
- RSI/Stoch: Current value or OS/OB status
- Vol: "SPIKE" when above threshold
- VWAP: Arrow shows price position relative to VWAP
█ LIMITATIONS
- Works best in trending markets; avoid during ranging/choppy conditions
- Designed for intraday timeframes (5m-30m); not optimized for higher timeframes
- Signals are not guarantees; always use proper risk management
- Past performance does not indicate future results
█ ALERTS AVAILABLE
- Long / Short: Any signal
- HQ Long / HQ Short: Q4+ signals only (recommended)
- Any: All signals combined
CPR ProjectionCPR Projection
1. CPR with different ways to feed data
2. Camarilla 3, 4, 5
3. EMA Table
CPR ProjectionCPR Projection
1. CPR with different ways to feed data
2. Camarilla 3, 4, 5
3. EMA Table with variable font
4. Previous day High
5. Previous day low
Oxscope 1hr V1This indicator is a sophisticated trend-following tool designed to filter market noise by aggregating signals from 20 distinct technical indicators—including EMA, RSI, MACD, Bollinger Bands, SuperTrend, and Ichimoku. Instead of relying on a single metric, it calculates a real-time "consensus score" for every candle, where each indicator votes +1 for bullish or -1 for bearish.
Key Features:
High-Confidence Threshold: The strategy operates on a strict threshold of ±6. A score of +6 or higher activates the Long Zone (Green Background), while -6 or lower triggers the Short Zone (Red Background). This ensures trades are only suggested when there is strong technical agreement.
Visual Clarity: Designed for a distraction-free experience, this version removes complex data tables and indicator lines. It features massive, easy-to-read emoji labels ("🚀" for Long entries, "📉" for Short entries).
Smart Signal Logic: The script prioritizes entry signals over exit signals during sharp reversals, keeping your chart clean and focusing solely on the most critical trend changes.
This tool is ideal for traders seeking high-conviction setups without visual clutter.
Decoy Long / Decoy ShortThis indicator plots a decoy bar. A Decoy bar can be a 'decoy long' or a 'decoy short' bar. A 'decoy long' is a bar that creates a higher high and higher low but ends up as a red bar. A 'decoy short' is a bar that creates a lower high and lower low but still ends up as a green bar.
LTF Distribution Analyzer█ OVERVIEW
LTF Distribution Analyzer reveals the hidden price distribution and order flow within each candle by sampling lower timeframe data. It visualizes where prices concentrated, how volume was distributed between buyers and sellers, and identifies divergences between price action and actual market participation.
Unlike traditional candlesticks showing only OHLC, this indicator exposes the statistical structure of price movement using quartile-based visualization combined with delta analysis.
█ CONCEPTS
The indicator is built on two core concepts:
1 — Statistical Price Distribution
Each candle contains many lower timeframe bars. By analyzing these bars, we calculate:
• Q1 (25th percentile) - 25% of prices traded below this level
• Q3 (75th percentile) - 75% of prices traded below this level
• Median - The middle price value
• IQR (Interquartile Range) - The Q3-Q1 spread containing 50% of all prices
2 — Volume Delta Analysis
Delta measures buying vs selling pressure:
• Delta = Buy Volume − Sell Volume
• Positive delta = More aggressive buying
• Negative delta = More aggressive selling
• Delta Ratio normalizes this as a percentage
█ HOW IT WORKS
The indicator fetches lower timeframe data using request.security_lower_tf() and processes it to create a statistical summary:
Step 1: Timeframe Calculation
• Auto mode: Chart timeframe ÷ Auto Divisor = LTF
• Example: 1H chart ÷ 1000 = ~3.6 second sampling
• Manual mode: User-specified timeframe
Step 2: Data Collection
• Collects all close prices from LTF bars within current candle
• Aggregates volume by candle direction (bullish/bearish)
Step 3: Statistical Analysis
• Calculates quartiles (Q1, Q3), median, and boundaries
• Identifies outliers using 1.5× and 3× IQR fences
• Finds Volume POC (price with highest volume)
Step 4: Delta Calculation
• Sums buy volume (from bullish LTF bars)
• Sums sell volume (from bearish LTF bars)
• Computes delta ratio for color determination
█ VISUAL ELEMENTS
┌─────────────────────────────────────────┐
│ ▲ Extreme outlier (3× IQR) │
│ △ Mild outlier (1.5× IQR) │
│ ─ Upper whisker cap │
│ ┊ Whisker line (dashed) │
│ ▄ IQR Box (Q1 to Q3 range) │
│ ━ Volume POC (highest volume) │
│ ● Median (green=bull, red=bear) │
│ ┊ Whisker line (dashed) │
│ ─ Lower whisker cap │
│ ▽ Mild outlier │
│ ▼ Extreme outlier │
└─────────────────────────────────────────┘
█ COLOR SYSTEM
Colors indicate the relationship between candle direction and order flow:
🟢 TEAL (Positive Flow)
Bullish candle + Positive delta
→ Strong buying confirmation
→ Trend continuation signal
🔴 RED (Negative Flow)
Bearish candle + Negative delta
→ Strong selling confirmation
→ Trend continuation signal
🟠 ORANGE (Mixed Signal A)
Bullish candle + Negative delta
→ Price up but sellers dominated
→ Potential weakness/reversal warning
🔵 BLUE (Mixed Signal B)
Bearish candle + Positive delta
→ Price down but buyers dominated
→ Potential accumulation/reversal signal
█ SETTINGS
Timeframe Settings
• LTF Mode — Auto or Manual selection
• Manual Timeframe — Specific LTF when in Manual mode
• Auto Divisor — Higher = finer granularity (default: 1000)
• Allow Sub-Minute — Requires Premium subscription
Visual Style
• Positive/Negative Flow colors — Customize the 4 flow colors
• Box Transparency — Opacity of the quartile box (0-100%)
Statistics Display
• Show Statistics Panel — Toggle on-chart stats table
• Show Timeframe Badge — Toggle LTF indicator badge
• Panel Position — Choose corner placement
• Panel Size — Text size selection
█ HOW TO USE
1. Divergence Detection
Look for color mismatches:
• Orange bars in uptrend = weakness, potential reversal
• Blue bars in downtrend = strength, potential reversal
• Multiple consecutive divergent bars strengthen signal
• Wait for confirmation before entry
2. Volume POC Trading
• POC marks where most volume traded
• POC clusters at similar levels = strong S/R zone
• Price often returns to POC before continuing
• Use POC for entry/exit targeting
3. Trend Confirmation
• Consecutive teal = strong uptrend
• Consecutive red = strong downtrend
• Median position shows intrabar momentum
• Wide boxes indicate high volatility
4. Outlier Analysis
• Extreme markers (▲▼) often mark stop hunts
• Consider fading extremes at key levels
• Mild markers (△▽) = areas to watch
█ RECOMMENDED SETTINGS
For different chart timeframes:
│ Chart TF │ Auto Divisor │ Resulting LTF │
├──────────┼──────────────┼───────────────┤
│ 15M │ 1500 │ ~1M │
│ 1H │ 1000 │ ~3-4s │
│ 4H │ 600 │ ~24s │
│ Daily │ 500 │ ~2-3M │
Tip: Check the TF badge to confirm active sampling timeframe.
█ BEST PRACTICES
Do:
✓ Use "Bars" chart style for cleanest display
✓ Combine with support/resistance analysis
✓ Wait for confirmation bars
✓ Note POC clusters across multiple bars
✓ Adjust divisor based on your timeframe
Avoid:
✗ Trading single bar signals alone
✗ Using during low volume periods
✗ Trading immediately after news releases
✗ Ignoring overall market context
█ LIMITATIONS
• Requires adequate market liquidity for reliable signals
• Sub-minute timeframes need Premium subscription
• Historical data depth depends on TradingView's data availability
• Delta calculation assumes volume direction matches candle direction
█ NOTES
This indicator works best on liquid markets (forex majors, major indices, popular stocks/crypto) where volume data is meaningful.
The gray dotted vertical line marks where LTF data becomes available - bars before this line won't display the indicator.
For questions or suggestions, leave a comment below.
LockPoint TrackerLockPoint Tracker is a simple yet powerful tool for visually tracking price movement from a locked reference point.
Key Features:
• Lock any bar’s closing price with a single click.
• Reference line drawn at the locked price for clear visual context.
• “L” label marks the locked bar.
• Live percentage change label shows how far the current price has moved from the locked level.
• Green above the bar for gains, red below for losses.
• Automatically disappears on the next bar — always shows only the live value.
• Configurable label padding for optimal visibility on any chart or timeframe.
LockPoint Tracker is perfect for traders who want to monitor key levels, measure intrabar moves, or visually track performance from specific price points without cluttering the chart.
Stack Detector Stack Detector, which is showing how the ma moves as a chart goes by.
It help you the power of the waves
GER40(DAX) - OAR & IDARIndicator for DT – Auction Mechanics / OAR & IDAR (c) Aress
Works best on the 2m/10m timeframes.
I’d appreciate any feedback <3
---
Індикатор для DT - Auction Mechanics / OAR & IDAR (c) Aress
Працює найкраще на 2м та 10м.
Буду вдячний за фідбек <3
RSI Bull bear thresholds region highlight on priceBullish & bearish relative strength thresholds
Default 61 & 39 RSI
AlgoDesk SENSEX Option Buyer v1.4//@version=6
indicator("AlgoDesk SENSEX Option Buyer v1.4", overlay=true) // timeframe removed
//---------------------- Inputs --------------------------
rsiLength = input.int(14,"RSI Length")
macdFast = input.int(12,"MACD Fast")
macdSlow = input.int(26,"MACD Slow")
macdSig = input.int(9,"MACD Signal")
bbLength = input.int(20,"Bollinger Length")
bbMult = input.float(2.0,"BB Multiplier")
//---------------------- Indicator Calculations ----------
rsi = ta.rsi(close, rsiLength)
macd = ta.ema(close, macdFast) - ta.ema(close, macdSlow)
signal = ta.ema(macd, macdSig)
basis = ta.sma(close, bbLength)
dev = bbMult * ta.stdev(close, bbLength)
upperBand = basis + dev
lowerBand = basis - dev
vwap = ta.vwap(close)
//---------------------- Conditions ----------------------
bullish_rsi = rsi > 60
bearish_rsi = rsi < 40
macd_bull = ta.crossover(macd, signal)
macd_bear = ta.crossunder(macd, signal)
above_vwap = close > vwap
below_vwap = close < vwap
bb_up = close > upperBand
bb_dn = close < lowerBand
//---------------------- Signal Logic --------------------
callSignal = bullish_rsi and macd_bull and above_vwap and bb_up
putSignal = bearish_rsi and macd_bear and below_vwap and bb_dn
//---------------------- ATM Strike Detect ---------------
atm = math.round(close/100) * 100
//---------------------- Plot Signals --------------------
plotshape(callSignal,
title="CALL BUY",
style=shape.labelup,
location=location.belowbar,
color=color.new(color.green,0),
size=size.large,
text="CALL")
plotshape(putSignal,
title="PUT BUY",
style=shape.labeldown,
location=location.abovebar,
color=color.new(color.red,0),
size=size.large,
text="PUT")
plotshape(not callSignal and not putSignal,
title="NO TRADE",
style=shape.circle,
location=location.bottom,
color=color.new(color.gray,70),
size=size.tiny,
text="NT")
//---------------------- Display BB + VWAP ----------------
plot(upperBand,"Upper BB",color=color.green)
plot(lowerBand,"Lower BB",color=color.red)
plot(vwap,"VWAP",color=color.yellow)
//---------------------- Webhook JSON --------------------
alertMessageCall = str.format(
'{"sensex":"{0}","rsi":"{1}","signal":"CALL","strike":"{2}"}',
close, rsi, atm)
alertMessagePut = str.format(
'{"sensex":"{0}","rsi":"{1}","signal":"PUT","strike":"{2}"}',
close, rsi, atm)
// Alerts fire on signal confirmation
if callSignal
alert(alertMessageCall, alert.freq_once_per_bar_close)
if putSignal
alert(alertMessagePut, alert.freq_once_per_bar_close)
XAUUSD $4 Scalp Indicator (Swift Algo)his script is a Trend-Momentum Scalper. It uses three Exponential Moving Averages (EMAs) to identify trend direction and the Relative Strength Index (RSI) to ensure you aren't entering a trade when the market is overextended.How the Strategy WorksThe "Swift Algo" relies on a three-layer confirmation system to filter out "bad" trades:1. The Trend Filter (The 50 EMA)The Blue 50-period EMA acts as the "Grandmaster" trend.If the price is above the 50 EMA, the script only looks for Buy signals.If the price is below the 50 EMA, it only looks for Sell signals.Why? This prevents you from "fighting the trend."2. The Entry Trigger (9 & 21 EMA Cross)The actual signal is generated by the "Fast" (9) and "Slow" (21) EMAs.Buy Signal: When the 9 EMA (Green) crosses above the 21 EMA (Orange).Sell Signal: When the 9 EMA (Green) crosses below the 21 EMA (Orange).3. The "Sweet Spot" RSI FilterThe RSI filter is the most unique part of this script. It looks for momentum that is strong but not yet exhausted.For Buys: RSI must be between 50 and 70. (Bullish momentum is building, but not yet overbought).For Sells: RSI must be between 30 and 50. (Bearish momentum is building, but not yet oversold).Technical Summary of ComponentsVariableSettingRoleFast EMA9Short-term momentum trigger.Slow EMA21Medium-term baseline.Trend EMA50Long-term trend direction (The "Filter").RSI Length14Measures the speed and change of price movements.Practical Tips for XAUUSD (Gold) ScalpingTimeframes: This specific combination (9/21/50) is most effective on the 1-minute (1m) or 5-minute (5m) charts for scalping.The "$4 Target": Since your indicator title mentions a "$4 Scalp," this implies that on Gold ( OANDA:XAUUSD $), you are looking for a move of 40 pips (e.g., from $2030.00 to $2034.00).Stop Loss Placement: A common practice with this setup is to place your Stop Loss just below the 50 EMA for buys, or above it for sells.Would you like me to modify the code to include an automated Stop Loss and Take Profit level on the chart?
Gold 0.786 Intraday RR 1:2 (Prev Candle SL)The 0.786 Deep Reversal is a precision Fibonacci level used to identify high-probability turning points in Gold.
The Math: The 0.786 level is the square root of 0.618, representing a deep 78.6% retracement of a prior price move.
Stop-Hunt Zone: In Gold, price often blows past the common 0.618 level to "hunt" stops before reversing at the 0.786.
Entry Logic: It allows traders to enter a trend at a much lower price (for longs) or higher price (for shorts) than standard pullbacks.
Risk Management: It offers a superior Risk-to-Reward ratio because the stop-loss is placed just beyond the 1.0 (100%) origin point.
Pattern Synergy: This level is the defining entry point for the Gartley Harmonic pattern, a powerful reversal structure.
Confirmation: Traders look for "rejection candles," such as long-wick Pin Bars, specifically at this 0.786 coordinate.
Gold Volatility: Gold’s high volatility makes the 0.786 more reliable than shallower levels, which are often breached by market noise.
Trend Health: If Gold fails to hold the 0.786 level, it usually signals that the original trend has completely failed.
Targeting: Typical targets for this reversal include the 0.382 level for a quick scalp or the -0.27 extension for a full trend continuation.
Institutional Alignment: Large banks often use these deep levels to fill large buy or sell orders where liquidity is highest.
AlgoDesk SENSEX Option Buyer v1.4//@version=6
indicator("AlgoDesk SENSEX Option Buyer v1.4", overlay=true) // timeframe removed
//---------------------- Inputs --------------------------
rsiLength = input.int(14,"RSI Length")
macdFast = input.int(12,"MACD Fast")
macdSlow = input.int(26,"MACD Slow")
macdSig = input.int(9,"MACD Signal")
bbLength = input.int(20,"Bollinger Length")
bbMult = input.float(2.0,"BB Multiplier")
//---------------------- Indicator Calculations ----------
rsi = ta.rsi(close, rsiLength)
macd = ta.ema(close, macdFast) - ta.ema(close, macdSlow)
signal = ta.ema(macd, macdSig)
basis = ta.sma(close, bbLength)
dev = bbMult * ta.stdev(close, bbLength)
upperBand = basis + dev
lowerBand = basis - dev
vwap = ta.vwap(close)
//---------------------- Conditions ----------------------
bullish_rsi = rsi > 60
bearish_rsi = rsi < 40
macd_bull = ta.crossover(macd, signal)
macd_bear = ta.crossunder(macd, signal)
above_vwap = close > vwap
below_vwap = close < vwap
bb_up = close > upperBand
bb_dn = close < lowerBand
//---------------------- Signal Logic --------------------
callSignal = bullish_rsi and macd_bull and above_vwap and bb_up
putSignal = bearish_rsi and macd_bear and below_vwap and bb_dn
//---------------------- ATM Strike Detect ---------------
atm = math.round(close/100) * 100
//---------------------- Plot Signals --------------------
plotshape(callSignal,
title="CALL BUY",
style=shape.labelup,
location=location.belowbar,
color=color.new(color.green,0),
size=size.large,
text="CALL")
plotshape(putSignal,
title="PUT BUY",
style=shape.labeldown,
location=location.abovebar,
color=color.new(color.red,0),
size=size.large,
text="PUT")
plotshape(not callSignal and not putSignal,
title="NO TRADE",
style=shape.circle,
location=location.bottom,
color=color.new(color.gray,70),
size=size.tiny,
text="NT")
//---------------------- Display BB + VWAP ----------------
plot(upperBand,"Upper BB",color=color.green)
plot(lowerBand,"Lower BB",color=color.red)
plot(vwap,"VWAP",color=color.yellow)
//---------------------- Webhook JSON --------------------
alertMessageCall = str.format(
'{"sensex":"{0}","rsi":"{1}","signal":"CALL","strike":"{2}"}',
close, rsi, atm)
alertMessagePut = str.format(
'{"sensex":"{0}","rsi":"{1}","signal":"PUT","strike":"{2}"}',
close, rsi, atm)
// Alerts fire on signal confirmation
if callSignal
alert(alertMessageCall, alert.freq_once_per_bar_close)
if putSignal
alert(alertMessagePut, alert.freq_once_per_bar_close)





















