Opening Range BoxOPENING RANGE BOX + LEVELS (RTH)
OVERVIEW
This indicator draws the Opening Range for the U.S. Regular Trading Hours session starting at 9:30 AM New York time. It plots the Opening Range High, Low, and Midpoint, and can extend those levels for the rest of the session. It also displays the Opening Range size in points and ticks.
WHAT IT DRAWS
• Opening Range box for the first N minutes of RTH (ex: 5, 10, 15)
• OR High (ORH)
• OR Low (ORL)
• OR Midline (midpoint of ORH/ORL)
• Opening Range value label (range in points + ticks)
KEY FEATURES
• Time-anchored drawings (bar_time) so levels stay accurate on any intraday timeframe
• Configurable Opening Range length in minutes
• Configurable box fill/border colors
• Independent styling for OR High / OR Low / Midline (color, width, line style)
• Line extension modes:
Line extension modes
- To RTH Close
- Right Forever
- For N Minutes
- None
Optional label placement to the LEFT of the Opening Range so it doesn’t block new candles
Option to keep previous sessions’ Opening Ranges visible for context
BEST FOR
• Futures: ES / NQ / MNQ (and other RTH-based products)
• Intraday stocks and ETFs
• OR breakout, rejection/fade, and mean reversion workflows
NOTES
• Intended for intraday charts
• Opening Range is calculated strictly inside the selected time window (no extra bars)
• Session is America/New_York, 09:30–16:00
אינדיקטורים ואסטרטגיות
Gold Chop MeterWhat it does
It’s a market quality filter. It does NOT tell you direction.
It tells you when Gold is too compressed/choppy to trust clean expansions.
NORMAL = tradable conditions
CHOP = compressed / messy conditions
NO TRADE (30M BOX) = hard stop (30M is CHOP)
NO TRADE (HTF CHOP) = hard stop (majority of higher TFs are CHOP)
How to read the panel (left → right)
You’ll see:
1H: NORMAL/CHOP | 30M: NORMAL/CHOP | 15M: NORMAL/CHOP | 5M: NORMAL/CHOP | TRADE/NO TRADE
The rules (exact)
If 30M = CHOP → NO TRADE (30M BOX)
This is your strongest filter. Don’t fight it.
If 30M isn’t CHOP, then it checks majority:
Default: 1H + 30M + 15M
If 2 of 3 are CHOP → NO TRADE (HTF CHOP)
If those are not true → it prints TRADE
If 15M is CHOP but 30M is NORMAL, it prints:
“TRADE (CAUTION – 15M CHOP)”
That means: trade smaller, quicker, or wait for cleaner trigger.
Settings you actually need to touch
1) Profile
Auto (by session) = best for most days (it changes the threshold by time window)
NYO / Overnight / London profiles are there if you want to force one behavior.
2) ATR Length (fixed)
Default 4 is good for Gold.
If it’s too sensitive (flips CHOP too often), raise to 5.
If it’s too slow (stays NORMAL when price is dead), drop to 3.
3) Include 5M in majority filter? (default OFF)
OFF = cleaner, less restrictive (recommended)
ON = stricter filter (needs 3 of 4 to be CHOP for “HTF CHOP” but 5M influences the count)
How to use it with your purge strategy (simple playbook)
When it says TRADE
You’re allowed to execute your normal model:
Sweep → displacement / CHoCH → first return → run
When it says TRADE (CAUTION – 15M CHOP)
Still tradable, but:
take A+ only
smaller size
quicker TP, don’t expect runners
demand a cleaner trigger (strong displacement)
When it says NO TRADE
You don’t force entries.
What you do instead:
wait for 30M to flip back to NORMAL
or wait for a clear range break + retest that turns the environment back to expansion
Quick “decision cheat”
30M CHOP? → Stop. No trade.
2/3 HTFs CHOP? → Stop. No trade.
Only 15M CHOP? → Trade, but cautious.
All NORMAL? → Green light.
SHFE Silver USD/ozPersonal utility script to view Shanghai silver prices in USD/oz along side COMEX silver.
Real Drawdown Balance (Apex Style)Beat the Psychological Game of prop firms by tracking your actual balance/drawdown.
Turtle Trading Strategy (Delayed Filters, Optional ATR Stop)cookie-cutter turtle strat
Long/short
adx/roc filters
HTF Balanced Price RangeThis script is based off of TradeForOpp's BPR indicator, but I adapted it to work on higher timeframes
SMAcross-mvrOverview
SMAcross-mvrNew is a flexible, non-repainting moving-average strategy designed for clarity, configurability, and reliable backtesting.
It supports multiple entry styles, optional layered exits, and full-capital position sizing, while remaining stable during chart zooming and dragging.
🚀 What’s New in v2
✅ Multiple Entry Modes
You can now choose how trades are entered:
Entry Mode A: Short SMA crosses Long SMA
Entry Mode B: Price crosses Long SMA
This allows both classic MA-crossover trading and trend-continuation pullback entries using the same strategy.
✅ Modular Exit System (Checkbox-Based)
Exit logic is now fully modular using independent checkboxes:
☑ Exit on opposite signal
☑ Exit when price closes beyond Short SMA
You may enable one, both, or neither.
If both are enabled, the strategy exits on whichever condition occurs first.
✅ Terminology Clarity
All labels, inputs, and alerts now use semantic naming:
Short SMA (formerly 13 SMA)
Long SMA (formerly 30 SMA)
This makes the strategy easier to understand and future-proof if SMA lengths are changed.
✅ Full-Capital Position Sizing
Each trade uses 100% of available equity, allowing performance to naturally compound over time during backtests.
✅ Optional Visual Enhancements
Optional cross price labels (can be toggled on/off)
Color-filled zone between Short and Long SMAs for quick trend recognition
Optional 200 SMA (off by default) for higher-timeframe context
✅ Alert-Ready (TV-Safe)
All alerts use static messages compatible with TradingView’s alert system, making the strategy suitable for:
Manual trade notifications
Webhook-based automation
Broker integrations
🔒 Design Principles
No repainting
No line continuations (TradingView-safe formatting)
Stable behavior when zooming or scrolling
Clear separation of entry logic, exit logic, and visuals
⚠️ Notes
This script is intended for educational and research purposes.
Always forward-test and apply proper risk management before live trading.
CPR Projectionupdated the camarilla formula,
1. CPR
2. CPR for next day
3. Previous day high.
4. Previous day low.
5. Camarilla, 3,4,5
ZOE IFVG+his indicator combines the original ICT Inversion Fair Value Gap (iFVG) Detector by ote618 with a manual checklist panel for trade analysis.
Features:
ICT iFVG Detector
Automatically identifies bullish and bearish inversion fair value gaps (iFVGs) based on 3-candle formation logic.
Draws colored boxes on the chart to highlight confirmed iFVG zones.
Sends optional alerts when iFVGs are confirmed, respecting your selected timeframe.
Works exactly like the original ote618 iFVG script, with no modifications to the core detection logic.
Manual Checklist Panel
Displays a customizable checklist to track key market factors:
Liquidity Sweep
HTF FVG
V-Shape Recovery
Inversion FVG
Clear Opposite DOL
SMT Divergence
Assigns a score and grade (A+ to F) based on selected conditions.
Panel position and background can be customized.
Allows traders to visually track trade quality alongside iFVG zones.
Usage:
Use the iFVG boxes to identify high-probability zones for entries and liquidity hunts.
Use the manual checklist to evaluate trades based on additional criteria, creating a structured workflow for market analysis.
Fully compatible with your existing iFVG workflow — the core detection and alerts remain unchanged.
Ideal For:
Traders following ICT concepts, liquidity hunts, and structure-based strategies who want to combine automated FVG detection with a manual trade-quality checklist.
Multi-Metric Market Regime Detector - [KK]This indicator identifies current market behavioral regimes by synthesizing six complementary analytical methodologies. Rather than generating trading signals, it provides contextual analysis to help traders understand market conditions and adapt their strategies accordingly.
Markets cycle through distinct behavioral states - trending efficiently, consolidating in ranges, compressing before breakouts, or transitioning between states. This tool quantifies these conditions using only price action data (OHLC), enabling traders to filter strategies based on current market structure.
Core Methodology
The indicator combines six independent metrics into a weighted composite classification system:
Efficiency Ratio (30% weight)
Measures the signal-to-noise ratio of price movement by comparing net price displacement to total path traveled. High efficiency indicates clean directional movement; low efficiency indicates choppy, noisy conditions.
Choppiness Index (25% weight)
Quantifies whether the market is trending or consolidating by comparing cumulative True Range to actual price range. Values below 38.2 suggest trending behavior; values above 61.8 suggest range-bound consolidation.
Volatility Analysis (20% weight)
Detects compression and expansion cycles using the relationship between Bollinger Bands and Keltner Channels. Compression phases (squeeze conditions) often precede significant directional moves.
Fractal Efficiency Proxy (10% weight)
Analyzes path complexity by comparing net displacement to cumulative range, providing insight into the smoothness versus randomness of price action.
Market Structure (15% weight)
Examines pivot point sequences to identify structural trends. Higher Highs and Higher Lows indicate bullish structure; Lower Lows and Lower Highs indicate bearish structure.
Wick-to-Body Ratio Analysis (qualitative)
Identifies rejection and indecision patterns by measuring the proportion of candle wicks to bodies, highlighting potential reversal zones or liquidity events.
Regime Classifications
The composite scoring system produces four distinct regime states:
TRENDING : High efficiency, low choppiness, clear directional structure. Favorable conditions for momentum and trend-following strategies.
CHOPPY/RANGE : Low efficiency, high choppiness, mean-reverting behavior. Favorable conditions for range trading and counter-trend setups.
COMPRESSION : Volatility squeeze detected, market coiling. Anticipate expansion; reduce position size until breakout confirmation.
TRANSITION : Mixed signals, conflicting metrics, unclear direction. Recommended to reduce exposure and wait for regime clarity.
Visual Features
Regime-Colored Candles (enabled by default)
Candles are colored according to the current regime state for immediate visual identification. Green indicates trending, gray indicates choppy, orange indicates compression, and yellow indicates transition.
Comprehensive Metrics Table (top right)
Displays real-time values for all six metrics along with individual regime assessments and the final composite classification with score.
Regime Guide Table (middle right)
Quick reference guide showing recommended strategies and actions to avoid for each regime state.
Chart Label ( optional)
Summary label displaying current regime and key metric values.
Background Coloring (optional)
Alternative visualization using background colors instead of candle coloring.
Indicator Plots (optional)
Displays Efficiency Ratio and Choppiness Index with threshold reference lines.
Customization Options
All calculation parameters are adjustable:
- Efficiency Ratio lookback period and thresholds
- Choppiness Index length and classification thresholds
- Volatility analysis parameters (BB/KC multipliers and lengths)
- Pivot detection sensitivity (left/right bars)
- Text size controls for both tables (Tiny to Huge)
- Visual element toggles (candles, background, label, tables, plots)
The indicator automatically detects chart theme (dark/light) and adjusts text colors for optimal readability.
Practical Application
This is a context tool, not a signal generator. Use it to:
- Filter trend-following strategies to trending regimes only
- Identify range-bound conditions for mean-reversion setups
- Anticipate breakout opportunities during compression phases
- Reduce exposure during transitional periods with mixed signals
- Improve risk management by matching position size to regime clarity
The indicator works on all timeframes and instruments using only OHLC data. Higher timeframes generally provide more stable regime classifications.
Alert Conditions
Four alert types are available:
- Efficiency Ratio crosses trend threshold
- Choppiness Index enters range territory
- Volatility squeeze released
- Regime state change detected
Technical Notes
Built with Pine Script v5. Uses up to 500 bars of historical data for stable calculations. All metrics are calculated in real-time with no repainting on confirmed pivots. Compatible with all chart themes through adaptive text coloring.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or trading recommendations. Past performance and theoretical analysis do not guarantee future results. Always conduct independent research and implement appropriate risk management. Trading financial instruments involves substantial risk of loss.
Usage Philosophy
The goal is not to trade more frequently, but to think more clearly about market conditions. Use this tool to develop deeper intuition about market structure and to enforce discipline by avoiding low-probability setups during unfavorable regime conditions.
Photon Price Action Scanner [JOAT]
Photon Price Action Scanner - Light Speed Edition
Overview
Photon Price Action Scanner is an open-source overlay indicator that detects and displays over 15 candlestick patterns with strength filtering, trend confirmation, and velocity analysis. It combines classic pattern recognition (engulfing, hammer, doji, morning/evening star) with advanced patterns (three soldiers/crows, tweezer tops/bottoms, island reversals) and gap analysis to provide comprehensive price action insights.
What This Indicator Does
The indicator detects and displays:
Classic Patterns - Bullish/Bearish Engulfing, Hammer, Shooting Star, Doji, Morning Star, Evening Star, Piercing Line, Dark Cloud Cover, Bullish/Bearish Harami
Advanced Patterns - Three White Soldiers, Three Black Crows, Tweezer Top/Bottom, Island Reversals
Gap Analysis - Detects gap up and gap down conditions
Velocity Confirmation - Filters signals by price velocity (rate of change)
Neural Bias Filter - Adaptive EMA-based trend filter with momentum adjustment
Pattern Strength - Volume and body size weighted strength calculation
How It Works
Each pattern has specific detection logic. For example, Bullish Engulfing:
isBullishEngulfing() =>
bool pattern = close < open and close > open and
open <= close and close >= open and
close - open > open - close
pattern
Three White Soldiers detection:
isThreeWhiteSoldiers() =>
bool pattern = close > open and close > open and close > open and
close < close and close < close and
open > open and open < close and
open > open and open < close
pattern
Pattern strength is calculated using volume and body size:
calculatePatternStrength(bool pattern, series float volume, simple int period) =>
float strength = 0.0
if pattern
float avgVol = ta.sma(volume, period)
float volRatio = avgVol > 0 ? volume / avgVol : 1.0
float bodySize = math.abs(close - open) / close
strength := (volRatio + bodySize * 100) / 2
strength
Neural bias filter uses adaptive EMA with momentum adjustment:
neuralEMA(series float src, simple int period, simple float lr) =>
var float neuralValue = na
var float momentum = 0.0
float error = src - neuralValue
float adjustment = error * lr
momentum := momentum * 0.9 + adjustment * 0.1
neuralValue := neuralValue + adjustment + momentum
neuralValue
Signal Generation
Signals are filtered by multiple criteria:
Strong Pattern: Pattern detected + strength exceeds threshold + trend alignment + neural bias confirmation + velocity confirmation (if enabled)
Ultra Pattern: Strong pattern + gap in same direction + velocity confirmation
Dashboard Panel (Bottom-Right)
Current Pattern - Name of detected pattern or NONE
Bull Strength - Bullish pattern strength score
Bear Strength - Bearish pattern strength score
Trend - Current trend direction (UPTREND/DOWNTREND/SIDEWAYS)
Signal Quality - STRONG BULL/STRONG BEAR/BULL/BEAR/NONE
Velocity - FAST BULL/FAST BEAR/NORMAL
Gap Status - GAP UP/GAP DOWN/NO GAP
Light Beam - Scanning intensity percentage
Action - Recommended action (ULTRA BUY/BUY/WATCH BUY/WAIT etc.)
Visual Elements
Pattern Labels - Abbreviated labels at pattern locations (BE, H, MS, SS, ES, etc.)
Neural Bias Line - Adaptive trend line
Gap Boxes - Cyan boxes highlighting gap zones
Action Zones - Dashed boxes around strong pattern areas
Light Beam - Oscillating area plot for visual scanning effect
Velocity Markers - Small circles indicating velocity confirmation
Ultra Signals - Large labels for highest conviction signals
Input Parameters
Scan Sensitivity (default: 1.0) - Overall detection sensitivity
Pattern Strength Filter (default: 3) - Minimum strength for strong signals
Trend Period (default: 20) - Period for trend determination
Show All Patterns (default: false) - Show all patterns regardless of strength
Advanced Patterns (default: true) - Enable soldiers/crows/tweezer detection
Gap Analysis (default: true) - Enable gap detection
Velocity Confirmation (default: true) - Require velocity confirmation
Neural Bias Filter (default: true) - Enable adaptive trend filter
Neural Period (default: 50) - Period for neural bias calculation
Neural Learning Rate (default: 0.12) - Adaptation speed for neural filter
Suggested Use Cases
Identify reversal patterns at key support/resistance levels
Use pattern strength to filter high-quality setups
Combine with trend direction for higher probability trades
Watch for ultra signals as highest conviction opportunities
Use gap analysis for momentum continuation or reversal setups
Timeframe Recommendations
Effective on 1H to Daily charts. Lower timeframes produce more patterns but with potentially lower reliability.
Limitations
Pattern detection is mechanical and does not consider broader context
Strength calculation is based on volume and body size, not pattern quality
Neural bias filter may lag during rapid trend changes
Gap detection requires clean price data
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Pattern detection does not guarantee trade outcomes. Always use proper risk management.
- Made with passion by officialjackofalltrades
Opens and RangesDisplays:
- Daily, Weekly, Monthly and Yearly opens
- High / Low / Midline(EQ) of previous day and previous week
ETH Vol Breakout - NO ERROR VERSIONThis strategy examines the impact of Eth.d Vol on Ethereum price. Looking at ETHDVOL -60 (Support) and 78 (Resistance)—tell a very specific story - analyzing a High Volatility Regime.
The support level around 60 and resistance 78, tend to only occurs during Bull Runs or Market Crashes.
In the "Quiet Years", ETHDVOL rarely touched 60, let alone 78.
Trying to develop a strategy that is perfectly tuned for a Bull Market or a Crisis,
1. The "60 Floor" (Support)
Context: In a high-volatility regime, when ETHDVOL drops to 60, it indicates the market has "cooled off" just enough to reload leverage.
Historical Behavior (2021-2022 Context):
July 2021: After the May crash, ETHDVOL compressed down and found support at ~65.
Result: This marked the local bottom before the massive run-up to the November All-Time Highs ($4,800).
Outcome: Strong Buy Signal (Trend Continuation).
January 2022: ETHDVOL dropped to ~58-60 while price was hovering around $3,000.
Result: The floor broke, volatility spiked to 80+, and price crashed to $2,200.
Outcome: Trap / Warning Signal.
The Pattern: When Volatility hits 60 (Support), price is usually Coiling.
If Price is trending UP: This is a "dip buy" opportunity. The coil resolves upwards.
If Price is trending DOWN: This is the "calm before the flush." The coil resolves downwards.
2. The "78 Ceiling" (Resistance)
Context: 78 is an extreme reading. It represents panic (bottom) or euphoria (blow-off top).
Historical Behavior:
May 2021 (The Crash): ETHDVOL smashed through 78, peaking at 100+.
Price Action: Price collapsed from $4,000 to $1,700.
Signal: If Vol > 78, you are in a capitulation event. Buying spot here is usually profitable within 3-6 months (buying the blood).
November 2022 (FTX Collapse): ETHDVOL spiked to ~75-80.
Price Action: ETH hit $1,100 (Cycle Lows).
Signal: Hitting 78 marked the Absolute Bottom.
November 2021 (The Top): Interestingly, at the $4,800 price peak, Volatility was NOT at 78. It was lower (~60-70).
Insight: Bull market tops often happen on lower volatility than bear market bottoms.
TAN Omni-Dash v50: Dividend Payout for Jan 2026 TradableJust a simple Momentum swing algo. It's mainly for keeping an eye out for Jan 2026 ex-divedent payouts list. This code contains top 100 most profitable payouts.
Tabla de EMA's y TimeframesGraphic and permanent representation of the trend of an action/CFD/stock/crypto, directly related to the technical analysis of its EMA's.
Volume Expansion vs 20-Day AverageThis indicator compares the current bar’s volume with the average volume of the previous 20 periods.
It highlights moments of volume expansion, where trading activity exceeds its recent norm, often associated with increased participation, momentum, or institutional interest.
The indicator is designed to be used as a filter, not a standalone signal. It is particularly useful for confirming breakouts, momentum setups, or avoiding low-quality trades during low-liquidity conditions.
Volume thresholds can be adjusted to require a minimum multiple of the average volume, allowing traders to focus only on meaningful volume surges.
EY Watermark DashboardThis script provides a comprehensive, high-level watermark dashboard designed to give traders an immediate snapshot of a symbol's health and context without cluttering the main chart area.
Main Features & Logic:
Contextual Data: Displays Company Name, Market Cap (T/B/M), Sector, and Industry.
Volatility (ATR): Shows the 14-day Average True Range as a percentage of the price, with color-coded emojis based on user-defined thresholds.
Volume Anomaly Detection: Compares current intraday volume against a 200-bar SMA to flag "Low," "High," or "Extreme" volume spikes.
Pre-Market Analysis: Calculates cumulative pre-market volume and compares it to a 30-day average volume. This is categorized into levels (Negligible, Noise, Sentiment, Significant Move, or Major Event) to help identify early institutional interest.
Trend & Distance: Tracks price position relative to a customizable Moving Average (default 150) and calculates the percentage distance from the All-Time High (ATH).
Fundamental Data: Integrates P/E ratios and a countdown to the next earnings date using TradingView's financial and earnings data functions.
How to use: Traders can use this to quickly verify if a stock is "extended" from its ATH, if the current volume is anomalous, or if there is significant pre-market activity that warrants attention before the opening bell.
Day HighlighterThis simple indicator highlights specific days of the week on your chart to assist with backtesting and pattern analysis.
Selectable Days: You can toggle specific days (e.g., Monday, Friday) on or off via the settings menu.
Visual Indicators: A red circle and the day name are displayed above the high of the candle for the selected days.
Visibility: The text is white to ensure high readability on dark backgrounds.
차트 보다가 '이게 무슨 요일이지?' 하고 일일이 날짜 확인하기 귀찮아서 만들었습니다. 설정에서 원하는 요일(예: 월요일)만 체크하면, 캔들 위에 빨간 원과 요일 이름을 자동으로 찍어줍니다. 특정 요일 무빙 복기할 때 편해요
FX Master Confluence v41 (Smart TDI Filter)How to read your new Dashboard:
Top Row (The Boss): This is your 8-Hour WaveTrend status.
DARK GREEN: Strong Bull (Bias is Up & Above Zero). Aggressively look for buys.
LIGHT GREEN: Weak Bull (Bias is Up but Below Zero). Be cautious, could be a deep pullback.
DARK RED: Strong Bear (Bias is Down & Below Zero). Aggressively look for sells.
LTF Rows (15m - 6h):
"GOLDEN ZERO": This is the Holy Grail signal you asked for. The LTF WaveTrend just crossed the Zero line in agreement with the 8H Boss.
"REV SETUP": Standard reversal signal (useful, but lower confidence than Golden).
"TREND UP/DOWN": No signal right now, but tells you the flow of that specific timeframe.
Quicky's List 101this is my checklist to enter a trade,
and the grade level of each setup
so basiclly help me be more knowledgble of what i have ticked or not
Price % Distance from 52 Weeks High, and EMAs"Stop guessing how far extended the price is—measure it instantly."
As a swing trader, knowing the exact distance between the current price and your key moving averages is critical. It tells you if a stock is overextended (too far) or offering a low-risk pullback entry (near 0%).
This lightweight utility script calculates the real-time percentage distance of the closing price from three critical levels:
10 EMA (Short-term momentum)
20 EMA (Swing trend baseline)
52-Week High (Major structural resistance)
It displays this data in a single, clean Smart Label attached to the latest candle, keeping your chart clutter-free.
Key Features
📊 Instant Calculation: See exactly how far (%) the price is from the 10 EMA, 20 EMA, and 52-Week High without using a measuring tool.
🧠 Intelligent Trend Coloring: The text color changes dynamically based on the immediate trend:
🟢 Green Text: Price is ABOVE both 10 & 20 EMAs (Bullish / Buy-the-dip zone).
🔴 Red Text: Price is BELOW both 10 & 20 EMAs (Bearish / Caution).
⚪ White Text: Price is mixed/choppy (between the EMAs).
👁️ High Contrast Design: Uses a semi-transparent dark background that ensures the data is clearly visible on both Light and Dark mode charts.
How to Use for Swing Trading
Pullback Entries: In a strong uptrend (Green Text), watch for the 10 EMA or 20 EMA % value to drop near 0.0% to 0.5%. This indicates a pullback to the average—often a high-probability entry point.
Overextension Warning: If the % distance becomes unusually large (e.g., Price is +5% above the 10 EMA), the move may be overextended, signaling to tighten stops or take profit.
52-Week Breakouts: Monitor the 52W % distance. As it approaches 0.0%, the stock is challenging its yearly high, alerting you to potential breakout plays.
Settings
EMA Lengths: Fully customizable (Default: 10 & 20).
Lookback: Adjust the high lookback period (Default: 260 bars for 52 Weeks).
Position: Toggle the label to appear Above or Below the candle.
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)






















