Camarilla + CPR + PDH/PDL (Visual Optimized)Camarilla + CPR + PDH/PDL (Visual Optimized)
This indicator is visually optimized and used same open-source camarilla pivot formulae.
// Camarilla
H3 = pc + rng * 1.1 / 4
H4 = pc + rng * 1.1 / 2
H5 = H4 + (H4 - H3)
H6 = H5 + (H5 - H4)
L3 = pc - rng * 1.1 / 4
L4 = pc - rng * 1.1 / 2
L5 = L4 - (L3 - L4)
L6 = L5 - (L4 - L5)
// CPR
pivot = (ph + pl + pc) / 3
bc = (ph + pl) / 2
tc = pivot * 2 - bc
指標和策略
Gap Level Plotter (4H)# Gap Level Plotter (4H) - User Guide
## Overview
This indicator automatically detects and plots 4-hour gap zones on any chart timeframe. Gaps are price discontinuities where one 4H candle's low is above the previous 4H candle's high (gap up) or where one 4H candle's high is below the previous 4H candle's low (gap down). These levels often act as key support/resistance zones.
## Key Features
- **Works on any timeframe**: View 4-hour gaps on 1-minute, 5-minute, 15-minute, daily charts, etc.
- **Visual gap zones**: Displays translucent purple zones (customizable) that extend into the future
- **Configurable lookback**: Choose how many days of history to scan (30, 45, 60, or 90 days)
- **Gap filtering**: Filter out noise by setting minimum gap sizes in points or percentage
- **Clean and simple**: Gaps remain plotted even after being filled, providing historical context
## Settings
### Lookback Days (Default: 45)
Controls how far back in time to search for gaps.
- **Options**: 30, 45, 60, 90 days
- **Use case**: Increase for long-term analysis, decrease for short-term trading
### Zone Color (Default: Purple)
Customize the color of gap zones to match your chart theme or personal preference.
### Filter Method (Default: Points)
Choose how to filter out small/insignificant gaps:
- **None**: Show all gaps regardless of size
- **Points**: Filter by absolute price points (recommended for futures like NQ/ES)
- **Percentage**: Filter by percentage of price (recommended for stocks)
### Minimum Gap Size (Default: 5.0)
The threshold for filtering gaps based on your selected filter method.
**Recommended settings:**
- **NQ futures**: 5-10 points
- **ES futures**: 2-5 points
- **Stocks (percentage)**: 0.25-0.5%
Adjust based on the instrument's volatility and your trading style.
## Best Practices
1. **For futures (NQ/ES)**: Use "Points" filter with 5-10 point minimum
2. **For stocks**: Use "Percentage" filter with 0.25-0.5% minimum
3. **Clean charts**: If too many gaps clutter your view, increase the minimum gap size or reduce lookback days
4. **Multiple timeframes**: The same gaps appear on all chart timeframes - use this to identify key levels across your analysis
## How to Use
1. Add the indicator to your chart
2. Adjust settings based on your instrument and preferences
3. Gap zones automatically update as new 4H candles form
4. Use zones as potential support/resistance levels for entries, exits, or targets
## Notes
- Gaps are plotted when detected and remain visible even after being filled
- The indicator focuses on 4-hour timeframe gaps specifically, as these tend to be significant levels for intraday and swing trading
- Purple zones extend infinitely to the right to show where price might return to fill or test the gap
---
**Enjoy trading with cleaner gap visualization! 📊**
SLS CAPITALThe idea behind this indicator is to mark the high and low of each section, looking, for example, for a theme of confluence between days in order to find days that converge with a thesis of the strategy we have.
BAVC (Clone) Rolling Curves, Peak MarkersBAVC (Clone) — Rolling Curves + Peak Markers
BAVC (Clone) is a volume-based momentum and participation indicator designed to visualize aggressive buying vs aggressive selling pressure using rolling volume curves and structural peak detection.
This script is a functional clone of a Bid/Ask Volume Curve concept, implemented using approximated volume splitting (uptick/downtick or close vs open) so it works on standard TradingView data without requiring true bid/ask feeds.
What the Indicator Shows
1. Rolling Buy & Sell Volume Curves
Volume is split into Buy (aggressive buyers) and Sell (aggressive sellers) using a selectable approximation method.
Each side is accumulated over a configurable lookback window.
Optional EMA smoothing is applied to reduce noise and highlight participation trends.
Interpretation:
Rising Buy Curve → increasing buyer dominance
Rising Sell Curve → increasing seller dominance
Expanding separation → stronger directional conviction
Convergence / flattening → balance, absorption, or transition
2. Adaptive Color Intensity (Optional)
Curve opacity can remain fixed or
Automatically adapt based on relative dominance strength
Stronger imbalances visually stand out without adding extra indicators
3. Structural Peak & Trough Detection
The script identifies significant local extremes in both curves:
Buy-side peaks & troughs
Sell-side peaks & troughs
Each peak is filtered using:
Swing width (bars left/right)
Relative strength vs recent maximum
Minimum depth for troughs
Markers can be displayed as:
Circles directly on the curves, or
Minimal labels (▲ / ▼)
Interpretation:
Buy-side highs → possible exhaustion or distribution
Buy-side lows → loss of initiative / absorption
Sell-side highs → aggressive selling climax
Sell-side lows → selling pressure weakening
4. Alerts
Optional alerts fire when:
A significant Buy-side peak forms
A significant Buy-side trough forms
A significant Sell-side peak forms
A significant Sell-side trough forms
These are intended as contextual signals, not standalone trade triggers.
5. Status Line Helper
An optional real-time status label displays:
Lookback settings
Current rolling Buy and Sell volume sums
This is useful for quick confirmation without opening the settings panel.
Important Notes
This indicator uses volume behavior, not price.
It is best used as a confirmation tool alongside:
Structure
Time-based context
VWAP / trend filters
It does not generate buy or sell signals by itself.
Best Use Cases
Spotting institutional participation
Confirming trend strength or exhaustion
Identifying absorption before reversals
Filtering low-quality entries during choppy periods
SHFE vs COMEX Silver Spread (USD/ozt)the script shows the gap between shanghai and comex silver prices. they need me to say more words in the description for this in order for me to in order to publish with words. more words.
Long Position Region with Target & StopLong position region manually specified on QMCO. This is a test of a potential new indicator I am building
ICT FVG MNQ (Fixed Stop + Multi-TP Toggles)ICT FVG
use-18 Min timeframe
0) Stabilizer
Evaluation Mode: PriceCh... (PriceChange mode selected)
Bypass Session Filter: OFF (unchecked)
Bypass Open Delay: OFF
Bypass Cooldown: OFF
1) Entry Logic
Swing Strength (past-only): 4
FVG Min Size (ticks): 8
FVG Expire Bars: 12
2) Risk Management
Contracts (integer): 10
Hard Stop (ticks): 65
Use Trailing Stop: OFF
Trail Activation (ticks): 30
Trail Offset (ticks): 15
Use BreakEven (only with Trailing): OFF
BE Trigger (ticks): 20
BE Plus (ticks): 2
Cooldown Bars: 3
Market Open Delay (minutes): 2
2B) Multi Take Profit (No Trailing)
Use TP1/TP2/TP3 when Trailing OFF: ON (checked)
Enable TP1: ON
Enable TP2: ON
Enable TP3: OFF
TP1 Ticks: 29
TP2 Ticks: 54
TP3 Ticks: 54
TP1 %: 30
TP2 %: 60
TP3 %: 30
Move SL to Entry when TP2 fills: OFF (unchecked)
2C) Safety Exits
Force Exit at Session End: ON (checked)
(A “Max Bars In Trade” box is partially visible but not fully shown.)
3) Sessions
Timezone (IANA): America/New... (looks like America/New_York)
Enable Session 1: ON
S1 Start: 0 : 00
S1 End: 16 : 55
Enable Session 2: OFF
(Values shown: S2 Start 18:02, S2 End 23:55, but session 2 is disabled)
4) Visual
Show FVG Zones: ON
Show Dashboard: ON
Dashboard Position: TopRight
Master Strategy: BTC W1 Mean Reversion [Institutional SOP]Overview This is an institutional-grade Mean Reversion and Range Rotation strategy designed specifically for Bitcoin (BTC/USDT) Perpetual Futures. It operates on the philosophy that liquidity resides at the extremes of the previous week's range (Previous Week High/Low). The strategy looks for false breakouts (Sweeps) followed by a confirmed return to the range (Reclaim), targeting the weekly equilibrium (EQ).
Core Logic: The Deviation Play Unlike standard breakout strategies, this indicator hunts for trapped liquidity.
Weekly Levels (Fixed): It calculates PWH (Previous Week High) and PWL (Previous Week Low) based on confirmed, closed weekly data. These levels act as the "Box" for the current week.
The Sweep: We wait for price to pierce the PWH or PWL (taking liquidity/stops). The script uses a dynamic ATR-based threshold to filter out noise (micro-pokes).
The Reclaim (4H Close): A signal is generated ONLY if a 4H candle closes back inside the weekly range shortly after the sweep. This confirms rejection of higher/lower prices.
The Entry: The script suggests a Limit Order at the retested level (PWH/PWL) to maximize R:R.
Institutional Quality Filters ("Kill Switches") To prevent trading in unfavorable conditions, the script includes strict SOP (Standard Operating Procedure) filters:
Trend Filter (ADX): Blocks mean reversion signals if the daily trend is too strong (ADX > 25).
Expansion Filter: Blocks signals if price accepted levels outside the range for too long (prevents fighting a true breakout).
Weekly Range Filter: Filters out weeks that are statistically too tight (chop) or too wide (expansion).
Time Filter: A reclaim must happen within a set number of 4H bars after the sweep (default: 3).
Key Features
Zero Repainting: Logic is based strictly on closed candles ( , , ).
State Machine Logic: Uses internal memory to track sweeps regardless of chart timeframe glitches.
Operational Dashboard: Displays current status, countdown to next decision candle (4H close), and exact parameters for the last valid signal (Entry, SL, TP).
Unified Alerting: A single "Any function call" alert handles both Long and Short scenarios dynamically.
Clean Visuals: Levels are plotted with line breaks to avoid visual clutter between weeks.
How to Use
Timeframe: Set your chart to 4H. This is crucial as the logic relies on 4H closes.
Signals: Wait for the "4H RECLAIM" label.
Execution: Place a Limit Order at the suggested Level (PWH/PWL).
Stop Loss: Use the calculated SL provided by the indicator (Swing extreme + ATR buffer).
Target: TP1 is always the EQ (Equilibrium/Mid-range).
Daily & Weekly ConfluenceDaily & Weekly Confluence is a precision momentum-alignment indicator built on Stochastic RSI, designed to highlight high-probability bullish conditions when lower-timeframe momentum aligns with higher-timeframe structure. It combines live Stoch RSI signals with a forward-shifted momentum path and a robust daily/weekly confirmation system to help traders anticipate and confirm trend transitions with clarity and discipline.
Why this indicator matters
Momentum signals are most effective when they agree across timeframes. Daily & Weekly Confluence filters noise by requiring alignment between daily and weekly Stoch RSI behavior, allowing traders to focus on setups that occur within a supportive higher-timeframe context rather than reacting to isolated signals.
What the indicator shows
1. Live Stochastic RSI (%K / %D)
The indicator plots real-time Stoch RSI values for the active chart timeframe, including standard overbought and oversold reference levels. These lines represent current momentum conditions and form the basis for all signal logic.
2. Forward-shifted Stoch RSI path
A user-defined Stoch RSI pattern window is sampled from the past and drawn forward on the chart. This path visually maps how momentum previously evolved and where similar momentum behavior may re-emerge. Optional normalization keeps the path scaled to recent conditions for consistent visual interpretation.
3. Momentum cross visualization
When %K and %D intersect within the forward-shifted path, the indicator can display:
Color-cycling vertical reference lines
Small directional arrows at the crossing point
A single highlighted label marking the next upcoming cross
These visuals are designed to keep attention on momentum inflection zones, not clutter.
Multi-timeframe signal logic
Weekly signals
The indicator independently computes weekly Stoch RSI values and detects:
Confirmed bullish crosses
Near-cross conditions based on distance and slope
Daily signals
Daily bullish crosses and near-cross conditions are detected using the same logic but on the daily timeframe.
Weekly context filter (optional)
Daily signals can be restricted so they only trigger when weekly momentum is already bullish or has recently turned bullish. This alignment filter significantly reduces counter-trend signals.
Dual confirmation
When daily and weekly bullish crosses occur together, the indicator flags a high-confidence confluence event.
Alerts built for real trading
Preconfigured alert conditions include:
Weekly bullish confirmed
Weekly bullish near-cross
Daily bullish confirmed
Daily bullish near-cross
Daily signals with weekly confirmation required
Dual daily + weekly confirmation
Alerts can be configured to trigger only on confirmed bar closes for cleaner execution timing.
How to use it effectively
Use weekly signals to define directional bias
Use daily signals for timing within that bias
Treat “near-cross” alerts as early warnings, not entries
Give the highest weight to dual confirmed alignment events
This indicator is best suited for swing traders, position traders, and systematic momentum strategies that prioritize structure, confirmation, and discipline over reactive entries.
MA Crossover with R SquaredThis indicator enhances the classic Moving Average (MA) crossover strategy with statistical filtering and prediction capabilities.
Let me explain what it does:
Instead of just showing when a fast MA crosses above/below a slow MA, this indicator adds R² (R-squared) filtering to identify higher-quality crossovers and predicts future crossovers.
What is R²?
R² (Coefficient of Determination) is a statistical measure that shows how well one variable explains the movement of another variable. In simpler terms:
R² = 1.0: Perfect relationship - 100% of the movement in one MA is explained by the other MA
R² = 0.8: Strong relationship - 80%
R² = 0.5: Moderate relationship - 50%
R² = 0.0: No relationship - 0%
Imagine two cars driving on a highway:
High R² (0.9): Both cars are in the same lane, moving together consistently
Low R² (0.3): One car is weaving between lanes while the other stays straight - poor coordination.
Traditional MA crossovers often generate false signals during:
Choppy markets (price bouncing around)
Sideways/ranging markets
Low volatility periods
News events causing temporary spikes
The R² Solution:
R² acts as a "quality filter" that answers: "How meaningful this crossover is?"
What this means:
Before R² filtering: Every crossover generates a signal
After R² filtering: Only crossovers with R² > threshold generate signals
Result: Fewer but higher-quality signals.
MARKET REGIME DETECTION
High R² (> 0.7): Strong trending market - MA crossovers are reliable
Medium R² (0.4-0.7): Moderate trending - use with caution
Low R² (< 0.4): Choppy/range-bound market - avoid MA crossover signals
Increasing R²: MAs are converging/moving together more closely
Decreasing R²: MAs are diverging/losing coordination
Sudden R² drop: Potential market regime change.
Why Square the Correlation?
Correlation: Measures direction AND strength (-1 to +1)
R²: Measures strength ONLY (0 to 1)
In trading: We care about relationship strength, not direction
Direction is already indicated by crossover type (bullish/bearish)
Real-World Interpretation:
If R² = 0.64, it means:
64% of the variation in the fast MA is explained by the slow MA
36% is "noise" or unexplained movement
The MAs are moderately coordinated.
R² Trend Confirmation:
Entry: When crossover occurs AND R² is above threshold
Confirmation: R² continues rising after entry
Exit: R² drops below threshold (relationship weakening)
Multi-Timeframe R² Analysis
Check R² on higher timeframe for trend context
Use current timeframe for entry signals
Example: Daily R² > 0.7 gives bullish bias, use 1-hour for entries.
R² LIMITATIONS & CAUTIONS
1. Lagging Nature
R² is calculated from past data
By the time R² is high, the trend may already be established
2. Not a Standalone Indicator
R² should confirm other signals, not generate them alone
Always combine with price action, volume, support/resistance
3. Curve Fitting Risk
Don't over-optimize R² thresholds on historical data
What worked in the past may not work in the future
Use R² as a filter, not a predictor
4. Market-Specific Behavior
R² thresholds that work in trending stocks may fail in Forex
Cryptocurrencies may require different R² settings than commodities
Always test on your specific market/instrument
Before Taking Any Signal:
✅ Does the crossover have a colored circle? (R² > threshold)
✅ What's the R² number shown? (Higher = better)
✅ Is R² rising or falling? (Rising = strengthening relationship)
✅ Check history table - what happened with similar R² values?
✅ Consider prediction - does it align with current signal?
Simple R² Rules of Thumb:
R² > 0.8: Excellent signal quality
R² 0.6-0.8: Good signal quality
R² 0.4-0.6: Moderate - use additional confirmation
R² < 0.4: Poor - avoid or use extreme caution
Think of R² as:
A quality control inspector for MA crossovers
A relationship therapist for your moving averages
A statistical bouncer that only lets strong signals through
Higher win rate + Better risk/reward = More profitable trading
This script transforms the basic "when lines cross" approach into a sophisticated, statistically-validated trading system. R² is the secret sauce that separates random crossovers (Golden/Death) from meaningful trend changes.
DISCLAIMER: This information is provided for educational purposes only and should not be considered financial, investment, or trading advice. Please do boost if you like it. Happy Trading.
Market State Intelligence [Interakktive]Market State Intelligence (MSI) is a diagnostic market-context indicator that reveals how the market is behaving — not where price "should" go.
MSI does not generate buy/sell signals. Instead, it classifies market conditions into clear behavioural regimes by continuously measuring:
- DRIVE (directional effort)
- OPPOSITION (absorption / resistance)
- STABILITY (structural persistence)
MSI is designed to answer three practical questions:
- What state is the market in right now?
- Is energy building, releasing, or decaying?
- Is participation aligned with price, or opposing it?
█ WHAT MSI DOES
MSI operates as a real-time regime classification engine that processes each closed bar through three independent measurement systems:
DRIVE — Directional Effort (0–100)
- Displacement efficiency (net progress vs total path)
- Range expansion quality (actual range vs expected ATR range)
- Body dominance (body vs candle range)
OPPOSITION — Absorption / Resistance (0–100)
- Wick pressure (rejection relative to attempt)
- Effort–result gap (high effort, low progress)
- Reversal density (counter-moves frequency)
STABILITY — Persistence (0–100)
- Condition persistence (how long conditions hold)
- Variance score (flip frequency)
- Follow-through consistency (reaction continuity)
These three forces feed a deterministic classifier with hysteresis (anti-flicker) to identify five regimes:
COMPRESSION — low drive, low opposition, higher stability (pressure building, direction unclear)
EXPANSION — high drive, low opposition (directional energy release)
TREND — medium-high drive, higher stability, low-medium opposition (healthy continuation)
DISTRIBUTION — medium drive, high opposition (effort absorbed; progress blocked)
TRANSITION — rapidly rising opposition, low stability (regime breakdown / uncertainty)
█ WHAT MSI DOES NOT DO
- No buy/sell signals, entries/exits, or performance claims
- No prediction of future direction
- No repainting: calculations use closed-bar data only
MSI is a market state layer intended to support your execution framework.
█ VISUAL SYSTEM
MSI uses a layered visual grammar designed to remain readable on live charts:
Regime Ribbon
A thin horizontal band showing the current regime via colour. Ribbon opacity reflects regime confidence (stronger confidence = more visible).
Pressure Envelope (core visual)
A soft corridor around price that expands with Drive and becomes more visible as Opposition increases. This visualises "pressure thickness" around current action (not a volatility band for entries).
Structural Memory
Faint background stains appear where regimes previously failed (e.g., expansion collapsing into absorption). These are behavioural context zones showing where market intention was rejected — not support/resistance.
Regime Change Markers (optional)
Subtle labels appear when regimes transition after confirmation. Useful for replay and education.
Effort Halo (optional)
Candle highlighting when Opposition materially exceeds Drive, indicating absorption/inefficiency.
█ HUD PANEL
The HUD displays:
- Current regime name + colour indicator
- A context gate showing whether conditions are aligned with long-bias or short-bias context (not an entry/exit system)
█ REGIME LEGEND
When enabled, displays:
- A one-line definition of the current regime
- Live Drive / Opposition / Stability values for interpretation
█ TIME-TO-DECISION METER
A visual pressure gauge that tends to fill during Compression (energy building) and drain during Expansion (energy releasing). It is a state-tracking meter, not a timing tool.
█ SETTINGS
MSI — Settings
- Preset Mode: Scalper / Swing / Position
- Analysis Mode (Minimal): ON = subtle visuals, OFF = full intensity
- Regime Ribbon, Structural Memory, HUD Panel, Time-to-Decision Meter, Effort Halo
MSI — Visual Options
- Show Regime Changes: Labels when regime transitions occur
- Show Regime Legend: Definition and live values display
- Panel Position: Move the entire panel anywhere on chart
MSI — Advanced (Tuning)
- Sensitivity (0.5–2.0)
- Smoothing (0.5–2.0)
- Memory Decay (0.5–2.0)
- Visual Intensity (Low / Medium / High)
█ PRESETS EXPLAINED
Scalper
Higher sensitivity + lower smoothing + faster memory decay. Best for 1m–15m monitoring.
Swing (default)
Balanced behaviour. Best for 15m–4H analysis.
Position
Lower sensitivity + higher smoothing + slower memory decay. Best for 4H–1D macro context.
█ STRUCTURAL MEMORY
When a regime fails (example: Expansion → Distribution), MSI creates a memory imprint:
- Fixed stain window (preset dependent)
- Strength decays over time
- Limited to a maximum number of imprints to reduce chart clutter
These zones represent behavioural rejection, not levels.
█ SUITABLE MARKETS
MSI is designed for Forex, Crypto, Indices, Stocks, and Commodities.
Works from intraday to Daily, with particularly strong readability on 15m–4H.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice, trading recommendations, or solicitation. Trading involves substantial risk. Always use proper risk management and make independent decisions.
Confluence Strength Meter (Bull/Bear) [v6]This indicator provides a quantified "Strength Score" (0-5) for price action setups by measuring the confluence of five key technical drivers. It features a Strategy Mode toggle, allowing traders to instantly switch between Bullish (Long) and Bearish (Short) scoring logic.
How it Works: The script analyzes the following factors to build a Confluence Score:
Trend Direction: Price relation to the Slow EMA (50).
EMA Stack: Fast EMA (20) vs. Slow EMA (50) alignment.
Volume Sentiment: Price relation to the Intraday VWAP.
Momentum: MACD vs. Signal line crossover.
RSI Health: Checks for momentum in the correct direction while filtering out extreme exhaustion (Overbought/Oversold).
Features:
Visual Histogram: Color-coded bars (Green/Red for strong setups, Orange for moderate, Gray for weak) make it easy to spot high-confluence zones.
Dual Modes: Input setting to switch the entire logic engine between Bullish and Bearish detection.
Alerts: Pre-configured alert conditions for both Long and Short setups, ready for webhook integration.
Usage: Look for a score of 4 or 5 (brightly colored bars) to confirm high-probability entries in the direction of your selected trend.
Pivot & ORB //@version=5
indicator("Pivot & ORB Thin Zones with Small Labels", overlay=true, max_boxes_count=500)
// ───── Input Settings ─────
orbMinutes = input.int(15, "ORB Minutes")
zoneThickness = input.float(0.0005, "Zone Thickness") // height of thin boxes
showPD = input.bool(true, "Show Previous Day Zone")
showPM = input.bool(true, "Show Previous Month Zone")
showORB = input.bool(true, "Show ORB Zone")
// ───── Previous Day High / Low ─────
pdh = request.security(syminfo.tickerid, "D", high )
pdl = request.security(syminfo.tickerid, "D", low )
var box pdhBox = na
var box pdlBox = na
if showPD
box.delete(pdhBox)
box.delete(pdlBox)
pdhBox := box.new(left=bar_index-1, right=bar_index, top=pdh+zoneThickness, bottom=pdh-zoneThickness, bgcolor=color.new(color.red, 80), border_color=color.red)
pdlBox := box.new(left=bar_index-1, right=bar_index, top=pdl+zoneThickness, bottom=pdl-zoneThickness, bgcolor=color.new(color.green, 80), border_color=color.green)
label.new(bar_index, pdh, "PDH", style=label.style_label_down, size=size.tiny, textcolor=color.white, color=color.red)
label.new(bar_index, pdl, "PDL", style=label.style_label_up, size=size.tiny, textcolor=color.white, color=color.green)
// ───── Previous Month High / Low ─────
pmh = request.security(syminfo.tickerid, "M", high )
pml = request.security(syminfo.tickerid, "M", low )
var box pmhBox = na
var box pmlBox = na
if showPM
box.delete(pmhBox)
box.delete(pmlBox)
pmhBox := box.new(left=bar_index-1, right=bar_index, top=pmh+zoneThickness, bottom=pmh-zoneThickness, bgcolor=color.new(color.orange, 80), border_color=color.orange)
pmlBox := box.new(left=bar_index-1, right=bar_index, top=pml+zoneThickness, bottom=pml-zoneThickness, bgcolor=color.new(color.blue, 80), border_color=color.blue)
label.new(bar_index, pmh, "PMH", style=label.style_label_down, size=size.tiny, textcolor=color.white, color=color.orange)
label.new(bar_index, pml, "PML", style=label.style_label_up, size=size.tiny, textcolor=color.white, color=color.blue)
// ───── ORB (Opening Range Breakout) ─────
var float orbHigh = na
var float orbLow = na
var box orbHighBox = na
var box orbLowBox = na
sessionStart = timestamp("GMT+0", year, month, dayofmonth, hour, minute)
inORB = (timenow - sessionStart) <= orbMinutes * 60000
if inORB
orbHigh := na(orbHigh) ? high : math.max(orbHigh, high)
orbLow := na(orbLow) ? low : math.min(orbLow, low)
else
if not na(orbHigh) and showORB
box.delete(orbHighBox)
box.delete(orbLowBox)
orbHighBox := box.new(left=bar_index-1, right=bar_index, top=orbHigh+zoneThickness, bottom=orbHigh-zoneThickness, bgcolor=color.new(color.yellow, 70), border_color=color.yellow)
orbLowBox := box.new(left=bar_index-1, right=bar_index, top=orbLow+zoneThickness, bottom=orbLow-zoneThickness, bgcolor=color.new(color.yellow, 70), border_color=color.yellow)
label.new(bar_index, orbHigh, "ORB High", style=label.style_label_down, size=size.tiny, textcolor=color.black, color=color.yellow)
label.new(bar_index, orbLow, "ORB Low", style=label.style_label_up, size=size.tiny, textcolor=color.black, color=color.yellow)
orbHigh := na
orbLow := na
ADVANCED NIFTY OPTION BUY SELLADVANCED NIFTY OPTION BUY SELL – V1 is a non-repainting, trend-following TradingView indicator specially designed for NIFTY Index Options (CE / PE) traders.
This indicator focuses on:
Eliminating over-trading
Providing high-quality, low-frequency signals
Avoiding trades during sideways markets
It combines EMA crossover, RSI momentum, and ADX trend strength to deliver clean and reliable buy/sell signals.
FPT - Dark Cloud & Piercing FPT – Dark Cloud & Piercing (GAP) is a minimalist candlestick pattern indicator designed to highlight classical two-candle reversal formations with strict gap requirements.
This tool focuses purely on price action and avoids unnecessary filters or conditions.
🔹 Patterns Detected
Bullish Piercing Line
First candle: Bearish
Second candle: Bullish
Second candle opens with a gap down
Close penetrates above the midpoint of the first candle’s real body
Does not fully engulf the first candle
Bearish Dark Cloud Cover
First candle: Bullish
Second candle: Bearish
Second candle opens with a gap up
Close penetrates below the midpoint of the first candle’s real body
Does not fully engulf the first candle
Only the pattern-forming candle (second candle) is highlighted to keep the chart clean and readable.
🎨 Customization
Enable Bullish, Bearish, or Both patterns
Fully customizable colors for each pattern via Inputs → Colors
Style tab colors are intentionally not used to avoid confusion
🎯 Design Philosophy
No indicators
No volatility or size filters
No trend assumptions
Just pure candlestick structure, exactly as defined in classical technical analysis.
This indicator is ideal for traders who combine:
Key levels
Supply & demand zones
Market structure
Session-based or discretionary analysis
⚠️ This indicator is a visual tool only and does not provide trade signals by itself.
Always use proper risk management.
Mid-Term Refuges (RMP)════════════
ENGLISH VERSION (SPANISH TEXT AT THE END)
════════════
MID-TERM REFUGES (RMP) V1.0
The Mid-Term Refuges (RMP) indicator plots psychological support and resistance levels based on a methodology used by institutional investors since auction floor days. RMP automatically calculates 31 key levels (refuges) from the asset's annual opening price.
METHODOLOGY
• RESISTANCES (R1-R15): Projected at +10% intervals from annual opening, identifying selling pressure zones
• SUPPORTS (S1-S15): Calculated at -10% intervals, marking buyer interest areas
• ANNUAL OPENING PRICE (PA): Central reference level
The 10% intervals represent significant psychological thresholds that capture market indecision, consolidation, or reversal moments. When critical mass of participants uses these same levels, they become self-fulfilling prophecies.
VALIDATION
Test RMP effectiveness on your assets:
1. Use TradingView's Bar Replay
2. Review periods with +/-10% movements
3. Count price reactions at refuge levels
4. Higher frequency = higher institutional usage probability
ECOSYSTEM INTEGRATION
RMP integrates with our other indicators:
• RLP/RLPS (Long-Term Refuges): Structural analysis
• RS (Weekly Refuges): Short-term tactical analysis
FEATURES
• 31 configurable levels with individual switches
• Professional visualization with formatted prices
• Complete customization (colors, widths, styles)
• Native integration with TradingView's price scale
• Bar Replay compatible
PHILOSOPHY
RMP doesn't predict the future—it observes price action at objective levels. No oscillators, no curve-fitting. Pure technical analysis based on auction floor techniques proven over decades.
══════════════
VERSION EN ESPANIOL
══════════════
(La version completa con entrada de datos y textos de ayuda en espaniol (Roman Paladino) estara proximamente disponible en mi repositorio GH: aj-poolom-maasewal)
REFUGIOS DE MEDIANO PLAZO (RMP) V1.0
El indicador Refugios de Mediano Plazo (RMP) traza niveles psicologicos de soporte y resistencia basados en una metodologia utilizada por inversores institucionales desde los tiempos de los pisos de subastas. RMP calcula automaticamente 31 niveles clave (refugios) a partir del precio de apertura anual del activo.
METODOLOGIA
• RESISTENCIAS (R1-R15): Proyectadas a intervalos de +10% desde la apertura anual, identificando zonas de presion vendedora
• SOPORTES (S1-S15): Calculados a intervalos de -10%, marcando areas de interes comprador
• PRECIO DE APERTURA ANUAL (PA): Nivel de referencia central
Los intervalos del 10% representan umbrales psicologicos significativos que capturan momentos de indecision, consolidacion o reversion del mercado. Cuando una masa critica de participantes utiliza estos mismos niveles, se convierten en profecias autocumplidas.
VALIDACION
Pruebe la efectividad de RMP en sus activos:
1. Use el Reproductor de Barras de TradingView
2. Revise periodos con movimientos de +/-10%
3. Cuente las reacciones del precio en los niveles refugio
4. Mayor frecuencia = mayor probabilidad de uso institucional
INTEGRACION CON NUESTRO ECOSISTEMA DE INDICADORES DE REFUGIOS CON ACCION DEL PRECIO
(Disponibles para descarga proximamente)
Este indicador RMP se complementa fuertemente con el uso de los siguientes indicadores nuestros:
• RLP (Refugios de Largo Plazo): Busqueda y definicion automatizada de fases preponderantes.
• RLPS (Refugios de Largo Plazo Simplificado): Analisis en base a fase preponderante ya conocida.
• RS (Refugios Semanales): Analisis tactico de fases de corto plazo.
CARACTERISTICAS
• 31 niveles configurables con switches individuales
• Visualizacion profesional con precios formateados
• Personalizacion completa (colores, grosores, estilos)
• Integracion nativa con la escala de precios de TradingView
• Compatible con Reproductor de Barras
FILOSOFIA
RMP no predice el futuro. Observa la accion del precio en niveles objetivos. Sin osciladores, sin sobreajustes. Analisis tecnico puro basado en tecnicas de piso de subastas probadas durante decadas.
════════════════════════════════════════════════════════════
Desarrollado por: aj p'oolom masewal
Codificado con la colaboracion de: Claude Sonnet 4.5 de Anthropic
════════════════════════════════════════════════════════════
ProphetQuant LevelsProphetQuant Levels
ProphetQuant Levels is an open-source chart tool that helps you display your own price levels in a clean, organized way.
You enter levels directly into the script using simple level names and prices (for example: HV 415.00, B+ 432.10, B- 421.00, VAH/VAL, VIX R1/R2/S1/S2). The script reads your input and plots each level as a horizontal line with optional right-side labels and styling controls. Levels are plotted from the Globex session start by default, so they align consistently across sessions.
You can enter a single set of levels, or include multiple lines labeled by symbol. When multiple lines are present, the script automatically uses the line that matches the current chart symbol.
The indicator also includes an Initial Balance (IB) display with automatic session selection based on the instrument, along with optional labels and a midline.
This script is intended as a visual reference tool only. It does not calculate price levels, generate trade signals, or automate trading decisions.
Provided for educational and informational purposes only. This is not financial or trading advice.
Regime Switch 100/200 SMAWhat it does
Daily, close-only trend regime for any symbol using the 100-day (momentum) and 200-day (regime) SMAs. Classifies the tape into GREEN / YELLOW / RED and stays stable intraday.
How it works (rules)
GREEN = Close > 100D and 100D > 200D -> full risk-on.
YELLOW = Close > 200D and 100D <= 200D -> light risk-on / repair.
RED = Close < 200D -> risk-off.
State changes require N = 2 daily closes (configurable).
Optional +/- band % around 200D to reduce whipsaws.
Always computes on daily data (independent of chart timeframe).
Inputs
Use chart symbol? (else pick a fixed symbol)
Fast SMA length (default 100)
Slow SMA length (default 200)
Daily closes to confirm (default 2)
Buffer band % around 200D (default 0)
Toggles: state-change markers, status panel, SMA labels
Visuals & alerts
Background: GREEN / YELLOW / RED by state
Lines: SMA100 (yellow) and SMA200 (orange)
Markers on state flips; three alertconditions fire on GREEN / YELLOW / RED changes
How to use (workflow)
View with 1D candles , ~ 1Y range .
Decide at the daily close; execute next day’s open.
Example sizing when signaling on QQQ and expressing with TQQQ:
- GREEN -> sleeve 10–15% (cap 20–25%); trim if sleeve > target x 1.25.
- YELLOW -> sleeve 5–8% (half risk).
- RED -> 0%; sit in cash until GREEN or YELLOW returns.
No margin/loans layered on leveraged ETFs.
Notes
Works with regular candles; dividend-adjustment settings can nudge SMA values.
For faster but noisier behavior, shorten to 150/100D or set Confirm=1.
Change log
v1.0: Initial release (daily, 3-state, follows chart symbol, alerts, panel).
Disclosure
Educational use only. Not investment advice.
BB Squeeze - HighQToolsBBW Squeeze — HighQTools
As always, if anyone has any tips or additional features they'd like to see, feel free to reach out!
Overview
The BBW Percentile Squeeze highlights periods of exceptionally compressed volatility by measuring Bollinger Band Width (BBW) and ranking it within a rolling historical percentile. When BBW falls into the lowest portion of its own distribution, price is statistically “tight” relative to recent history—a condition that often precedes volatility expansion.
Instead of plotting an oscillator in a separate pane, this tool expresses information directly on the price chart by changing bar colors during squeeze conditions, keeping charts clean and execution-focused.
How It Works
Standard Bollinger Bands are calculated using a configurable length and standard deviation.
Band width is normalized and evaluated against a rolling lookback window.
The current width is converted into a percentile rank (0–100):
Lower percentile = tighter volatility
Higher percentile = expanded volatility
When the percentile drops below the user-defined threshold, the market is considered to be in a squeeze.
An optional RTH-only mode allows the percentile calculation to consider Regular Trading Hours bars only, which is especially useful for futures traders who want to ignore overnight volatility distortions.
Visual Signals
Squeeze Bars
Bars are recolored when BBW percentile falls below the selected threshold, indicating extreme compression.
Release Bar (optional)
The first bar exiting the squeeze can be highlighted separately, marking the resolution of compression.
No oscillator, no bands, no shapes—only context applied directly to price.
How to Use It
The squeeze itself is not a trade signal.
Squeeze conditions indicate stored energy—expect range expansion, not direction.
Focus on:
Market structure
Higher-timeframe context
Volume, delta, or acceptance/rejection
The release from squeeze often provides the best opportunity, especially when aligned with directional bias or structural breaks.
For best results, use this tool as a context filter alongside execution setups rather than as a standalone entry signal.
Recommended Settings
BB Length: 10
Std Dev: 2.0
Percentile Lookback: 200–300 bars
Squeeze Threshold: 5-10 percentile
RTH-only: Enabled for index futures
Disclaimer
This indicator is designed to provide context, not predictions. Always combine volatility information with sound risk management and a complete trading plan.






















