Williams %R StrategyA Williams %R-based strategy that buys when the Williams %R crosses above -80 (indicating oversold conditions) and sells when it crosses below -20 (indicating overbought conditions).
The strategy uses a black-themed GUI for better visibility.
You can customize the length of the Williams %R using the input parameter.
This strategy is effective for identifying potential reversal points in the market. Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
Göstergeler ve stratejiler
Ichimoku Cloud Breakout - Black GUIAn Ichimoku Cloud breakout strategy that buys when the price closes above the Ichimoku cloud and sells when it closes below.
The strategy features a black-themed GUI for enhanced visibility.
You can customize the input parameters for the Ichimoku calculation.
This strategy is effective for identifying strong trends in the market.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
Triple EMA Crossover - Black GUIA triple EMA crossover strategy that uses three EMAs (fast, medium, and slow) for more accurate trend detection.
The strategy buys when the fast EMA crosses above the medium EMA while the medium EMA is above the slow EMA, and sells when the opposite occurs.
The strategy features a black-themed GUI for enhanced visibility.
You can adjust the lengths of the EMAs using the input parameters.
This strategy is useful for capturing longer-term trends in the market.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
Double EMA Crossover - Black GUIA strategy that uses a double EMA crossover approach, buying when the fast EMA (9) crosses above the slow EMA (21) and selling when the opposite occurs.
The strategy features a black-themed GUI for enhanced visibility.
You can adjust the lengths of the fast and slow EMAs using the input parameters.
This strategy is useful for capturing short to medium-term trends in the market.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
Price Crosses EMA - Black GUIA simple strategy that buys when the price crosses above the 20-period EMA and sells when it crosses below.
The strategy features a black-themed GUI for enhanced visibility.
You can adjust the length of the EMA using the input parameter.
This strategy is useful for identifying trend changes in the market.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
Volume Spike Strategy - Black GUIA volume spike strategy that buys when the volume is 150% above the 20-day average and the price is increasing.
The strategy uses a black-themed GUI for better visibility.
You can customize the volume spike multiplier and the length of the volume moving average using the input parameters.
This strategy is effective for identifying potential breakout points in the market. Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
ADX with DI+/- Crossover StrategyAn ADX-based strategy that buys when the DI+ line crosses above the DI- line with the ADX above a specified threshold (default 25), and sells when the opposite occurs.
The strategy features a black-themed GUI for enhanced visibility.
You can adjust the ADX length and threshold using the input parameters.
This strategy is useful for identifying strong trends in the market.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
Intraday Key Levels - Name + PriceIntraday Key Levels plots objective, session-based reference lines to help you track structure during the trading day. It shows prior-day levels, current open, opening-range boundaries, and after-hours extremes, with compact labels that include each level’s name and price.
What it plots
Previous Day High / Low / Close
Previous Day Midpoint
Current Day Open
Opening Range High/Low (configurable minutes)
After-Hours High/Low (pre-market and post-market windows)
Inputs
Toggle: Previous Day levels, After Hours, Open, Opening Range, Midpoint
Opening Range length (15–60 min)
Label on/off and label X-offset
Notes
Designed for intraday charts; OR/AH are session-based.
Session times use standard US market hours.
For analysis/education only; not a signal or guarantee of results.
Parabolic SAR Trend Following - Black GUIA Parabolic SAR-based strategy that buys when the SAR dots are below the price and sells when they are above.
The strategy uses a black-themed GUI for better visibility.
You can customize the input parameters for the SAR calculation.
This strategy is effective for trending markets.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
Stochastic Oscillator - Black GUIA Stochastic Oscillator-based strategy that buys when the %K line crosses above 20 (indicating oversold conditions) and sells when it crosses below 80 (indicating overbought conditions).
The strategy uses a black-themed GUI for better visibility.
You can customize the lengths of the %K and %D lines using the input parameters.
This strategy is effective for identifying potential reversal points in the market.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
RSI Divergence Filtered by ZigZag RatiosRSI Divergence Filtered by ZigZag Ratios
This indicator is designed to help traders identify potential trend reversals by finding RSI divergence and then confirming it with a unique filter based on price movements. It draws two ZigZag lines on your chart to visually represent these patterns.
Core Functionality
The indicator works by doing three main things:
Price ZigZag (Blue Line): ZigZag line directly on the price chart. This line connects the significant high and low points of the price action, based on the ZigZag Deviation % you set. It's a way to simplify the trend and clearly see the "legs" or swings of the market.
RSI ZigZag (Orange Line): It also draws a separate ZigZag line, colored orange, that follows the movement of the RSI indicator. This helps you visually track the highs and lows of the RSI at the same time as the price.
Divergence Detection: The indicator continuously looks for divergence between the price ZigZag and the RSI.
The Key Filter: ZigZag Ratio
This is what makes the indicator unique. When a potential divergence is found, it doesn't just display a signal immediately. It performs an extra check:
It compares the size of the most recent price swing (the "last leg") to the size of the previous swing in the same direction. It then calculates a ratio. If the most recent swing is significantly smaller than the previous one, it confirms the signal and displays a label.
This filtering mechanism aims to weed out weak signals and highlight divergences that occur after a period of slowing momentum.
Bullish/Bearish Div Labels: When a valid, filtered divergence is found, the indicator will place a green Bullish Div label at the bottom of a low swing or a red Bearish Div label at the top of a high swing.
User Inputs
ZigZag Deviation %: This is the minimum percentage change required to form a new ZigZag pivot. The default value is set to 0.3618, which is a popular number in technical analysis. A lower value will capture more minor swings, while a higher value will focus only on larger, more significant ones.
RSI Length: The number of bars used to calculate the RSI. The default is 6, but you can adjust this to your preference.
Bollinger Bands Mean Reversion - Black GUIA Bollinger Bands mean reversion strategy that buys when the price touches the lower band and sells when it touches the upper band.
The strategy features a black-themed GUI for enhanced visibility.
You can adjust the length and multiplier of the Bollinger Bands using the input parameters.
This strategy is useful for identifying potential reversal points in the market.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
MACD Signal Line Crossover - Black GUIA MACD-based strategy that buys when the MACD line crosses above the signal line and sells when it crosses below.
The strategy uses a black-themed GUI for better visibility.
You can customize the lengths of the MACD and signal line using the input parameters.
This strategy is effective for identifying trend changes and momentum shifts in the market.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
RSI Overbought/Oversold - Black GUIAn RSI-based strategy that buys when the RSI drops below 30 (indicating oversold conditions) and sells when it rises above 70 (indicating overbought conditions).
The strategy features a black-themed GUI for enhanced visibility. You can adjust the RSI length using the input parameter.
This strategy is useful for identifying potential reversal points in the market.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
SMA Crossover - Black GUIA simple moving average crossover strategy that buys when the fast SMA crosses above the slow SMA and sells when it crosses below. The strategy uses a black-themed GUI for better visibility. You can customize the lengths of the fast and slow SMAs using the input parameters. This strategy is ideal for identifying trend changes and can be used on various timeframes. Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
Multi Stoch + VWAP Heatmap + Histogram + ScalpingThis indicator was developed by referencing various indicators from many contributors. I apologize that I cannot identify all the original authors due to the numerous sources referenced. Thank you to everyone who contributed to the trading community.
Important Notice: Please use this indicator with sufficient caution and proper risk management. I do not assume any responsibility for any losses incurred from using this indicator. Trade at your own risk.
Alternative version:
Acknowledgment & Disclaimer:
This indicator incorporates ideas and concepts from numerous community indicators. I sincerely apologize for not being able to properly credit all the original creators due to the extensive references used. My heartfelt gratitude goes out to all the talented developers in the trading community.
Risk Warning: Please exercise extreme caution when using this indicator. All trading involves substantial risk of loss, and I accept no liability for any financial losses that may result from the use of this indicator. Always implement proper risk management and trade responsibly.
Multi Stoch + VWAP Heatmap + Histogram + Scalping Usage Guide
🔧 Basic Settings
Parameter Settings (Recommended for XAU/USD)
Fast Stoch Length: 5 # Ultra-short term trend
Medium Stoch Length: 14 # Short term trend
Slow Stoch Length: 21 # Medium term trend
%K Smoothing: 2 # High sensitivity setting
%D Smoothing: 2 # High sensitivity setting
Overbought Level: 75 # Sell zone
Oversold Level: 25 # Buy zone
📈 Reading the Chart
1. Histogram (Background Bar Chart)
Green tones: Strong uptrend
Red tones: Strong downtrend
Gray: Trendless/neutral
2. Line Display
Blue lines: Ultra-short term Stochastic (K1/D1)
Orange lines: Short term Stochastic (K2/D2)
Purple lines: Medium term Stochastic (K3/D3)
Yellow line: VWAP (normalized)
3. Horizontal Lines
Upper line (75): Sell zone
Center line (50): Neutral line
Lower line (25): Buy zone
🎯 Signal Types and Meanings
Scalping Signals (● marks)
Green ● (bottom): 📈 Scalp buy entry
RSI(7) < 25 + K1 < 30 combination
VWAP bounce targeting
Red ● (top): 📉 Scalp sell entry
RSI(7) > 75 + K1 > 70 combination
VWAP rejection targeting
Main Trend Signals
▲ (large, green): 💪 Strong buy signal - Multiple conditions aligned
▼ (large, red): 💪 Strong sell signal - Multiple conditions aligned
△ (medium, green): 📈 Normal buy signal
▽ (medium, orange): 📉 Normal sell signal
Warning/Reversal Signals
▼ (pink): ⚠️ Sell warning - Trend reversal caution
△ (teal): ⚠️ Buy warning - Trend reversal caution
Cross Signals (● marks, positioned up/down)
Green ● (bottom): Histogram crosses above VWAP
Red ● (top): Histogram crosses below VWAP
🚀 Practical Usage
Scalping Strategy (1-5 minute charts recommended)
Entry: Enter on green ● or red ● signals
Take Profit: At opposite zone or next ● signal
Stop Loss: Around 10-15 pips (for gold)
Time Session: London-NY overlap optimal
Swing Trading Strategy (15min-1hour charts)
Entry: Strong ▲▼ signals
Take Profit: Opposite warning signals (▼△)
Stop Loss: VWAP reverse break or 30-50 pips
Day Trading Strategy (5-15 minute charts)
Trend Confirmation: Histogram color
Entry: △▽ signals
Take Profit: Opposite zone reached
Stop Loss: 20-30 pips
⚡ XAU/USD Specific Usage
Session-Based Strategy
Tokyo Session (9-15 JST): Wait and see, small scalps
London Session (16-24 JST): Main trading
NY Session (22-6 JST): Most active, all signals valid
Major News Events
Pre-announcement: Reduce positions
Post-announcement: Trend following with ● signals
🔍 Filter Functions
ATR Filter
Small price movements filtered as noise
Signals only on significant price moves
Time Filter
Strong signals only during high volatility sessions
Weaker signals during low volatility periods
Consecutive Signal Prevention
Duplicate signals within 2 bars filtered out
Prevents noise trading
⚙️ Settings Customization
For Aggressive Trading
Signal Cooldown: 1 # More frequent signals
ATR Length: 5 # More sensitive filter
For Conservative Trading
Signal Cooldown: 5 # Relaxed signals
ATR Length: 20 # Stricter filter
Overbought: 80 # More extreme levels
Oversold: 20
📱 Recommended Alert Settings
Strong Buy/Sell Signal: Priority ★★★
Scalping Buy/Sell Signal: Priority ★★☆
Reverse Warning: Priority ★★★ (for position management)
⚠️ Important Notes
Scalping requires quick decision-making
Multiple timeframe confirmation recommended
Exercise caution during major news events
Risk management is top priority
This indicator is a versatile multi-functional tool suitable for short to medium-term trading strategies!
🎓 Trading Examples
Scalping Example
Wait for green ● at oversold level (below 30)
Enter long position immediately
Target: 50 level or red ● signal
Stop: Below recent swing low
Day Trading Example
Histogram turns green (bullish trend)
Wait for △ buy signal near support
Target: Overbought level (75)
Exit: Warning signal ▼ appears
Risk Management Rules
Never risk more than 2% per trade
Use proper position sizing
Set stops before entry
Take partial profits at key levels
This comprehensive guide will help you maximize the potential of this advanced multi-timeframe indicator!
[blackcat] L3 Improved Dual Ehlers BPF for Volatility DetectionOVERVIEW
This script implements an advanced L3 Improved Dual Ehlers Bandpass Filter (BPF) for volatility detection, combining both L1 and L2 calculation methods to create a comprehensive trading signal. The script leverages John Ehlers' sophisticated digital signal processing techniques to identify market cycles and extract meaningful trading signals from price action. By combining multiple cycle detection methods and filtering approaches, it provides traders with a powerful tool for identifying trend changes, momentum shifts, and potential reversal points across various market conditions and timeframes. The L3 approach uniquely combines the outputs of both L1 (01 range) and L2 (-11 range) methods, creating a signal that ranges from -1~2 and provides enhanced sensitivity to market dynamics.
FEATURES
🔄 Dual Calculation Methods: Choose between L1 (01 range), L2 (-11 range), or combine both for L3 signal (-1~2 range) to match your trading style
📊 Multiple Cycle Detection: Seven different dominant cycle calculation methods including HoDyDC (Hilbert Transform Dominant Cycle), PhAcDC (Phase Accumulation Dominant Cycle), DuDiDC (Duane Dominant Cycle), CycPer (Cycle Period), BPZC (Bandpass Zero Crossing), AutoPer (Autocorrelation Period), and DFTDC (Discrete Fourier Transform Dominant Cycle)
🎛️ Flexible Mixing Options: Six sophisticated mixing methods including weighted averaging, simple sum, difference extraction, dominant-only, subdominant-only, and adaptive mixing that adjusts based on signal strength
🌊 Bandpass Filtering: Precise bandwidth control for both dominant and subdominant filters, allowing fine-tuning of frequency response characteristics
📈 Advanced Divergence Detection: Robust algorithm for identifying bullish and bearish divergences with customizable lookback periods and range constraints
🎨 Comprehensive Visualization: Extensive customization options for all signals, colors, plot styles, and display elements
🔔 Comprehensive Alert System: Built-in alerts for divergence signals, zero line crosses, and various market conditions
📊 Real-time Cycle Information: Optional display of dominant and subdominant cycle periods for educational purposes
🔄 Adaptive Signal Processing: Dynamic adjustment of parameters based on market conditions and volatility
🎯 Multiple Signal Outputs: Simultaneous generation of L1, L2, and L3 signals for different trading strategies
HOW TO USE
Select Calculation Method: Choose between "l1" (01 range), "l2" (-11 range), or "both" (L3, -1~2 range) in the Calculation Method settings based on your preferred signal characteristics
Configure Cycle Detection: Select your preferred Dominant Cycle Method from the seven available options and adjust the Cycle Part parameter (0.1-0.9) to fine-tune cycle sensitivity
Set Subdominant Parameters: Configure the subdominant cycle either as a ratio of the dominant cycle or as a fixed period, depending on your analysis approach
Adjust Filter Bandwidth: Fine-tune the bandwidth settings for both dominant and subdominant filters (0.1-1.0) to control the frequency response and signal smoothing
Choose Mixing Method: Select how to combine the filters - weighted averaging for balance, sum for maximum sensitivity, difference for trend isolation, or adaptive mixing for dynamic response
Configure Smoothing: Select from SMA, EMA, or HMA smoothing methods with adjustable length (1-20 bars) to reduce noise in the final signal
Customize Visualization: Enable/disable individual plots, divergence detection, zero line, fill areas, and customize all colors to match your chart preferences
Set Divergence Parameters: Configure lookback ranges (5-60 bars) for divergence detection to match your trading timeframe and style
Monitor Signals: Watch for crosses above/below zero line and divergence patterns, paying attention to signal strength and consistency
Set Up Alerts: Configure alerts for divergence signals, zero line crosses, and other market conditions to stay informed of trading opportunities
LIMITATIONS
The script requires the dc_ta library from blackcat1402 for several advanced cycle calculation methods (HoDyDC, PhAcDC, DuDiDC, CycPer, BPZC, AutoPer, DFTDC)
L1 method operates in 01 range while L2 method uses -11 range, requiring different interpretation approaches
Combined L3 signal ranges from -1~2 when both methods are selected, creating unique signal characteristics that traders must adapt to
Divergence detection accuracy depends on proper lookback period settings and market volatility conditions
Performance may be impacted with very long lookback ranges (>60 bars) or when multiple plots are simultaneously enabled
The script is designed for non-overlay use and may not display correctly on certain chart types or with conflicting indicators
Adaptive mixing method requires careful threshold tuning to avoid excessive signal fluctuation
Cycle detection algorithms may produce unreliable results during low volatility or highly choppy market conditions
The script assumes regular price data and may not perform optimally with irregular or gapped price sequences
NOTES
The script implements advanced mathematical calculations including bandpass filters, Hilbert transforms, and various cycle detection algorithms developed by John Ehlers
For optimal results, experiment with different cycle detection methods and bandwidth settings across various market conditions and timeframes
The adaptive mixing method automatically adjusts weights based on signal strength, providing dynamic response to changing market conditions
Divergence detection works best when the "Plot Divergence" option is enabled and when combined with other technical analysis tools
Zero line crosses can indicate potential trend changes or momentum shifts, especially when confirmed by volume or other indicators
The script includes commented code for cycle information display that can be enabled if you want to monitor cycle periods in real-time
Different calculation methods may perform better in different market environments - L1 tends to be smoother while L2 is more sensitive
The subdominant cycle helps filter out noise and provides additional confirmation for signals generated by the dominant cycle
Bandwidth settings control the filter's frequency response - lower values provide more smoothing while higher values increase sensitivity
Mixing methods offer different approaches to combining signals - weighted averaging is generally most reliable for most trading applications
THANKS
Special thanks to John Ehlers for his pioneering work in cycle analysis and digital signal processing for financial markets. This script implements and significantly improves upon his bandpass filter methodology, incorporating multiple advanced techniques from his extensive body of work. Also heartfelt thanks to blackcat1402 for the dc_ta library that provides essential cycle calculation methods and for maintaining such a valuable resource for the Pine Script community. Additional appreciation to the TradingView platform for providing the tools and environment that make sophisticated technical analysis accessible to traders worldwide. This script represents a collaborative effort in advancing the field of algorithmic trading and technical analysis.
Rbpov1 – Opening Range Multi-Actifs Final📌 Strategy Bio – Rbpov1 Opening Range Pro
🎯 Core Concept
The Rbpov1 Opening Range Pro is an advanced algorithmic trading system built around the opening range breakout concept.
It is based on the observation that, after a period of consolidation (the opening range), markets often generate strong directional moves once the range is broken.
This strategy is designed to be multi-asset (Forex, indices, commodities, crypto) and multi-timeframe, with the following key principles:
A reference range (default: 03:00 → 06:00 UTC+2, customizable).
Trade entries are taken only after the range closes.
Smart filtering (trend, volatility, volume) to reduce false signals.
Strict risk management in USD, with Stop Loss and Take Profit defined in multiples of R.
Automatic end-of-day flat rule: all positions are closed by session end.
⚙️ Filters & Conditions
🔹 1. Trend Filter (EMA HTF)
A 21-period EMA is applied to a higher timeframe (default: H4).
If price is above EMA, only longs are allowed.
If price is below EMA, only shorts are allowed.
👉 This aligns intraday trades with the dominant trend.
🔹 2. Volatility Filter (ATR)
Uses a 14-period ATR to validate range conditions.
Opening range is valid only if:
Range > minATR × ATR
Range < maxATR × ATR
Default: minATR = 0.2, maxATR = 6.0.
👉 Filters out noise (tiny ranges) or overextended volatility.
🔹 3. Volume Filter (Optional)
Breakout candle must show higher volume than the average (default SMA 20).
Prevents low-liquidity breakouts.
🔹 4. Session & Trading Rules
No trades during weekends (Forex).
Maximum X trades per day (default: 2).
Positions are force-closed at EOD (default: 19:00 UTC+2).
💰 Risk Management
Dynamic position sizing in USD (capital × risk%).
Stop Loss automatically set at the opposite side of the range (with optional buffer).
Take Profit in multiples of R (default: 1.5R).
Equity-based recalculation ensures consistency as account grows.
📊 Key Benefits
✅ Professional and modular architecture.
✅ Works across Forex, indices, gold, and crypto.
✅ Smart filtering for cleaner signals.
✅ Robust and consistent risk management.
✅ Automatic end-of-day flattening (no overnight risk).
✅ Modern and visual dashboard interface for readability.
🏆 Use Cases
Forex (USD/JPY, EUR/USD, GBP/USD) → Asian session ranges.
Indices (NAS100, US30, DAX) → NYSE opening ranges.
Gold (XAU/USD) → Tokyo or pre-London ranges.
Crypto (BTC, ETH) → Tailored to volatility peaks.
Chop Zones with confirmation (Version 2)Time-Locked Consolidation Zones (Confirmed, No Overlap)
This indicator automatically detects and marks consolidation zones where price trades tightly for a defined period, then highlights only those zones that break with full confirmation.
🔹 How it works:
Detects tight price-only ranges based on your custom time and height limits.
Draws a pending zone while price stays contained.
Waits for a breakout → requires the next candle’s full body to confirm direction.
Locks the zone permanently once confirmed (no overlap with prior zones).
Adds clear labels and alerts for confirmed breakouts or breakdowns.
🔹 Why use it:
Filters out fakeouts and wick-based breaks.
Confirms momentum before signaling.
Keeps charts clean with non-overlapping, verified zones.
Works on any timeframe or instrument.
Perfect for breakout traders who want high-probability setups built on structure and confirmation.
🔹 Purpose
The script identifies price-only consolidation ranges that last a minimum time period, then waits for a confirmed breakout before permanently locking in that zone. It helps traders spot accumulation/distribution phases and trade breakouts with stronger confirmation.
🔹 Core Logic
1. Finding Consolidation Windows
User sets a minimum number of minutes (minMins) that price must stay in a range.
This is converted into bars (barsNeeded) based on the current chart timeframe.
The highest high and lowest low of that rolling window are tracked.
If the total range (hh - ll) is below a user-defined cap (maxRangePts in points OR maxRangePct of price), the zone is considered “tight” enough.
2. Pending Zone Creation
When a new tight range is detected, and no other zone is in cooldown or awaiting confirmation, the script starts a pending zone box (yellow by default).
The box tracks:
Top/bottom of the range (high/low).
Left/right time boundaries (from the first bar in the window to the current bar).
While pending:
The box extends to include each new bar.
A “touch counter” tracks how many times price hits the edges (optional filter).
3. Breakout Detection
A breakout is defined as a bar whose close is outside the pending zone (not just a wick).
At that point, the script goes into confirmation mode:
It remembers the direction (+1 for breakout up, -1 for breakout down).
It waits one more bar.
4. Confirmation Rule
The very next bar must have a full body completely outside the zone in the breakout direction:
Up breakout: both open and close are above the zone top.
Down breakout: both open and close are below the zone bottom.
If confirmed:
The pending box becomes locked (teal by default).
It cannot overlap in both time and price with an existing locked box.
It is added permanently to the lockedBoxes array.
A cooldown period starts (so it won’t immediately draw another).
If not confirmed:
The zone remains pending and extends forward.
5. Overlap Control
The script ensures zones don’t overlap:
Both in time (a new zone cannot start inside the time span of the last zone).
And in price (locked zones cannot overlap vertically with another).
If overlap would occur, the pending zone is discarded.
6. Alerts & Labels
On the confirmation bar (the breakout bar after validation), the script plots:
Up label above the bar for confirmed breakouts.
Down label below the bar for confirmed breakdowns.
Alerts are available for both breakout and breakdown events.
🔹 Key Inputs & Customization
Minimum minutes in range (minMins).
Max height of range: either in points (maxRangePts) or percentage (maxRangePct).
Cooldown bars before a new zone can form.
Minimum touches on zone edges (optional).
Tolerance for what counts as a touch.
Colors for pending vs locked zones.
🔹 Visual Workflow
Price consolidates tightly for minMins.
A yellow box forms (pending).
A breakout bar closes outside the box → script waits for 1 more candle.
If that candle’s body is fully outside in the same direction → zone locks teal.
A label + alert fires: “Breakout confirmed ↑” or “Breakdown confirmed ↓”.
Zone is stored and won’t overlap with others.
MRL Slim — SuperBuy/Sell + Bands (v6.4)MRL — Mean Reversion Bands + Super Buy/Sell (RSI-10)
What it does
This overlay plots a mean-reversion line (linear regression of price) with k·σ bands and adds clean RSI-10 signals on the chart.
Signals (tags on price):
SB = Super Buy: fires when RSI(10) (on close) crosses down through your oversold threshold (default 29).
– Capped to 2 touches per cycle; the cycle resets when RSI crosses above 50 (configurable).
SS = Super Sell (71): fires when RSI(10) crosses up through your overbought threshold (default 71).
SS80 = Super Sell (Hard):
– Fires on cross above 80, and (optionally) again while RSI ≥ 80 using a cooldown to prevent spam.
– Per-cycle cap = 2 by default; you can let hard sells bypass the cap.
Bands & Source
Bands are built around a linreg mean of your chosen Source (default hlc3).
Toggle Log Space to make bands act percent-like on long histories/trending assets.
Filters (optional)
Price ≥ Upper Band required for sells.
Mean slope down required for sells.
(Disable if you want every RSI event, even in strong trends.)
Debug (optional)
Turn on Debug to see raw RSI crosses/touches and why a signal was blocked (e.g., cap, band, slope, cooldown).
Separate toggle to show/hide CAP dots.
Tips
For fast charts or very strong momentum, consider loosening the sell filters or shortening the HARD cooldown.
If your panel RSI shows signals you don’t see on price: ensure you’re comparing RSI(10, close) on the same timeframe.
Disclaimer
For research/education only. Not financial advice; always manage risk.
Scalp - Victor Trader//@version=6
indicator("Scalp Fluxo Simples v6 — OP1/OP2/OP3", overlay=true, max_labels_count=500)
// === Inputs básicos ===
lenVol = input.int(50, "Janela do Volume", minval=10)
zVolThr = input.float(2.2,"Z-score mínimo p/ Clímax", step=0.1)
imbThr = input.float(0.65,"Desequilíbrio |Δ|/Vol", step=0.01)
sweepLookbk = input.int(20, "Lookback p/ Varredura", minval=5)
wickMult = input.float(1.0,"Pavio dominante vs Corpo (x)", step=0.1)
confirmClose = input.bool(true, "Confirmar só no fechamento? (anti-repaint)")
cooldownBars = input.int(8, "Cooldown OP1 (barras mínimas entre OP1)", minval=0)
// --- OP2 (reteste) ---
useOP2 = input.bool(true, "Ativar OP2 (reteste da zona)?")
retestBars = input.int(8, "Janela p/ reteste (barras após OP1)", minval=1)
// --- OP3 (confirmação do candle seguinte) ---
useOP3 = input.bool(true, "Ativar OP3 (confirmação do candle seguinte)?")
// === Funções utilitárias ===
zscore(src, len) =>
m = ta.sma(src, len)
s = ta.stdev(src, len)
s := s == 0.0 ? 1e-10 : s
(src - m) / s
// === Proxy de delta (tick rule) ===
chg = close - close
delta = volume * math.sign(chg)
// === Clímax de volume ===
zVol = zscore(volume, lenVol)
climax = zVol >= zVolThr
// === Pavio dominante ===
body = math.abs(close - open)
topWick = high - math.max(open, close)
botWick = math.min(open, close) - low
topDom = topWick > body * wickMult
botDom = botWick > body * wickMult
// === Desequilíbrio ===
imbalance = math.abs(delta) / math.max(volume, 1.0)
buyImb = imbalance >= imbThr and delta > 0
sellImb = imbalance >= imbThr and delta < 0
// === Sweeps ===
prevHH = ta.highest(high, sweepLookbk)
prevLL = ta.lowest(low, sweepLookbk)
sweepHigh = high > prevHH
sweepLow = low < prevLL
okBar = not confirmClose or barstate.isconfirmed
// === OP1 (sinal raiz) ===
topOP1_raw = climax and buyImb and sweepHigh and topDom and okBar
bottomOP1_raw = climax and sellImb and sweepLow and botDom and okBar
// Cooldown OP1
var int lastTopOP1 = na
var int lastBotOP1 = na
topOP1 = topOP1_raw and (na(lastTopOP1) or bar_index - lastTopOP1 > cooldownBars)
bottomOP1 = bottomOP1_raw and (na(lastBotOP1) or bar_index - lastBotOP1 > cooldownBars)
if topOP1
lastTopOP1 := bar_index
if bottomOP1
lastBotOP1 := bar_index
// === Guardar ZONAS do pavio do OP1 para OP2 ===
var float lastTopZoneLow = na
var float lastTopZoneHigh = na
var int lastTopBar = na
var float lastBotZoneLow = na
var float lastBotZoneHigh = na
var int lastBotBar = na
if topOP1
lastTopZoneLow := math.max(open, close)
lastTopZoneHigh := high
lastTopBar := bar_index
if bottomOP1
lastBotZoneLow := low
lastBotZoneHigh := math.min(open, close)
lastBotBar := bar_index
// === OP2 (reteste da zona do pavio dentro de N barras) ===
topOP2 = useOP2 and not na(lastTopBar) and bar_index > lastTopBar and (bar_index - lastTopBar <= retestBars) and high >= lastTopZoneLow and low <= lastTopZoneHigh and close < open and okBar
bottomOP2 = useOP2 and not na(lastBotBar) and bar_index > lastBotBar and (bar_index - lastBotBar <= retestBars) and high >= lastBotZoneLow and low <= lastBotZoneHigh and close > open and okBar
// === OP3 (confirmação do candle seguinte) ===
topOP3 = useOP3 and topOP1 and close < low and okBar
bottomOP3 = useOP3 and bottomOP1 and close > high and okBar
// === Plots ===
plotshape(series=topOP1, title="TOP OP1", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, text="TOP1")
plotshape(series=topOP2, title="TOP OP2", style=shape.triangledown, location=location.abovebar, color=color.maroon, size=size.small, text="TOP2")
plotshape(series=topOP3, title="TOP OP3", style=shape.triangledown, location=location.abovebar, color=color.orange, size=size.small, text="TOP3")
plotshape(series=bottomOP1, title="FND OP1", style=shape.triangleup, location=location.belowbar, color=color.lime, size=size.small, text="FND1")
plotshape(series=bottomOP2, title="FND OP2", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="FND2")
plotshape(series=bottomOP3, title="FND OP3", style=shape.triangleup, location=location.belowbar, color=color.teal, size=size.small, text="FND3")
// === Alertas ===
alertcondition(condition=topOP1, title="TOP OP1", message="TOP OP1 (clímax+sweep+pavio)")
alertcondition(condition=topOP2, title="TOP OP2", message="TOP OP2 (reteste da zona)")
alertcondition(condition=topOP3, title="TOP OP3", message="TOP OP3 (confirmação)")
alertcondition(condition=bottomOP1, title="FND OP1", message="FND OP1 (clímax+sweep+pavio)")
alertcondition(condition=bottomOP2, title="FND OP2", message="FND OP2 (reteste da zona)")
alertcondition(condition=bottomOP3, title="FND OP3", message="FND OP3 (confirmação)")
Standard Deviations [MTRX]The standard deviations script identifies manipulation ranges and automatically draws standard deviation fibonacci retracements on the wicks of the candles. You can use the given deviation points to take high probability retracement or reversal trades.
BDNS ORB Strategy v3BDNS Opening Range Breakout Strategy
What This Strategy Does This strategy implements an Opening Range Breakout (ORB) system that identifies the high and low prices during a customizable opening period, then trades breakouts above or below these levels with momentum confirmation. The strategy goes beyond basic ORB concepts by incorporating ADX momentum filtering, VWAP directional bias, dynamic position sizing, and sophisticated exit management including breakeven moves and trailing stops.
Core Strategy Logic
Opening Range Definition: The strategy tracks price action during a user-defined opening period (default: 9:30-9:35 AM ET for 5 minutes). During this time, blue horizontal lines appear marking the session high and low. A yellow background highlights this opening range period.
Breakout Detection: After the opening range completes, green and red horizontal lines appear showing the actual entry levels - these are offset from the range boundaries by a configurable number of ticks (default: 24 ticks) to filter out false breakouts and ensure committed moves.
Entry Conditions: Trades trigger when price breaks through these offset levels during the trading window (green background, default until 10:30 AM ET), but only when:
ADX momentum indicator exceeds threshold (default 24.0) in the breakout direction
Price relationship to VWAP confirms directional bias (when VWAP filter enabled)
Daily trade limits haven't been reached
Large range filtering conditions are met
Visual Elements and Usage
Range Lines: Blue lines show the actual opening range boundaries. These appear immediately when the opening session begins.
Entry Levels: Green (long) and red (short) lines show where trades will trigger, appearing after the opening range completes.
Information Table: A data table appears in the top-right showing real-time strategy status including range size in ticks, ADX readings, filter status, trade counts, and momentum conditions.
Position Management:
When in a trade, colored circles appear showing:
Lime circles: Long position targets (T1, T2, T3)
Orange circles: Short position targets
Red circles: Stop loss levels
Blue crosses: Breakeven levels (when that feature activates)
Purple lines: Trailing stop levels (when position 3 trailing activates)
Background Colors:
Yellow: Opening range session active
Green: Trading window active
Purple: Large range day detected
Gray: Large range day being skipped
Position Management System
The strategy uses a three-tier exit approach:
Position 1: Takes partial profits at first target (default 50% of range size)
Position 2: Exits at second target (default 100% of range size)
Position 3: Either exits at third target or uses trailing stop after Position 2 wins
Breakeven Feature: When enabled and price reaches the breakeven trigger level, all stop losses move to a more favorable breakeven level instead of the original stop, protecting against giving back profits.
Trailing Stop System: After Position 2 hits its target, Position 3 automatically switches to a trailing stop that moves in the trader's favor as price continues trending.
Customization for Different Instruments
The default settings are configured for MNQ (Micro NASDAQ futures) but the ORB concept is highly customizable for any futures instrument and timeframe. Range duration, breakout offsets, and filter thresholds should be adjusted based on the specific instrument's volatility characteristics and typical intraday patterns.
Filter Usage Guidelines
ADX Momentum Filter: Essential for avoiding breakouts during consolidation. Higher thresholds (30+) for trending markets, lower (20-25) for more opportunities.
VWAP Filter: Helpful in trending conditions but may reduce trade frequency. Better to disable during range-bound or mean-reverting periods.
Large Range Filter: Critical risk management tool. When the opening range exceeds your threshold:
Skip: Avoids trades when stops would be too large
Fade: Trades mean reversion back into the range
Trade: Takes breakouts regardless (higher risk)
Range Size Considerations: Setting a large range threshold (200-400 ticks) helps avoid days when both sides of the range get tested before any meaningful breakout occurs, which often leads to whipsaws.
Risk Management Features
Dynamic Stops and Targets: All exit levels scale with the opening range size, ensuring risk/reward remains consistent regardless of daily volatility. A 100-tick range day will have proportionally smaller stops than a 300-tick range day.
Position Sizing: Configure contract amounts for each position tier based on account size and risk tolerance.
Daily Trade Limits: Prevents overtrading by limiting trades per direction per day.
Breakout Offset: The tick offset from range boundaries is crucial - too small creates false signals, too large misses good moves. Test different values based on your instrument's typical noise levels.
Advanced Features
Large Third Target: Set Target 3 to 300-500% to essentially hold runners indefinitely, using the trailing stop as the primary exit method for capturing extended trends.
Fade Trading: On large range days, the strategy can trade mean reversion when initial breakouts fail, often providing good counter-trend opportunities.
Time-Based Exits: All positions close at the end of the trading window, preventing overnight risk.
Strategy Properties Used
Initial Capital: $5,000 (realistic for micro contract trading)
Commission: $0.50 per contract (realistic retail rates)
Position Size: 100% of equity (manages risk through contract quantities and stop placement)
Default quantities: 3/1/1 contracts across the three positions
The default settings assume larger account sizes or proprietary trading firm accounts where higher risk tolerance is acceptable. With MNQ at $0.50 per tick, a typical 200-tick opening range with 75% stop loss (150 ticks) would risk $375 on a 5-contract position. For smaller retail accounts, consider reducing position sizes significantly - using only Position 1 (3 contracts) would risk $225, or even reducing to 1-2 total contracts to maintain appropriate risk levels relative to account size.
Getting Started Apply the strategy to your preferred instrument
Adjust the opening range time and duration for your market
Set appropriate breakout offset based on typical noise levels
Configure large range threshold based on your risk tolerance
Test filter combinations to find what works best for your trading style
Adjust contract quantities based on your account size and risk management rules
The strategy works best on liquid instruments with clear opening sessions and sufficient volatility to generate meaningful ranges. Results will vary significantly based on market conditions, parameter settings, and the specific instrument traded.
I warrant that the information created and published by by me here on TradingView is not prohibited, doesn't constitute investment advice, and isn't created solely for qualified investors.