📊 Multi-Timeframe High/Low Strategy Pro v40.0📊 Multi-Timeframe High/Low Strategy Pro v40.0 (Mustang Algo)
🎯 OVERVIEW
Advanced trading strategy that identifies and trades breakouts of key support and resistance levels across multiple timeframes. Features intelligent pyramiding, ATR-based risk management, and comprehensive backtesting capabilities. Now upgraded to Pine Script v6 for enhanced performance and compatibility.
✨ KEY FEATURES
📈 Multi-Timeframe Levels:
- Yesterday's High/Low
- Today's High/Low (intraday)
- Last Week's High/Low
- Last Month's High/Low
- Last Year's High/Low
🔥 Advanced Position Management:
- Pyramiding up to 100 simultaneous positions
- Configurable equity allocation per trade (0.1% - 100%)
- Daily trade limiter to control overtrading
- Smart position sizing with percentage-based allocation
🎯 Flexible Entry Signals:
- 10 Long entry options (breakouts above key levels)
- 10 Short entry options (breakdowns below key levels)
- Mix and match any combination of signals
- Real-time alerts for all level breaks
🛡️ Risk Management:
- ATR-based or Percentage-based Stop Loss
- ATR-based or Percentage-based Take Profit
- Time-based exits (exit after X bars)
- Precise price-based exits using limit/stop orders
- Entry price calculation for accurate TP/SL placement
📊 Visual Features:
- Clean, modern design with color-coded levels
- Customizable labels with emojis for easy identification
- ATR bands and histogram visualization
- Real-time position information panel
- Adjustable line lookback period (10-500 bars)
⚙️ HOW TO USE
1️⃣ Enable Strategy:
• Check "▶️ Enable Strategy" in Backtesting Settings
• Optionally set date range filter for testing specific periods
2️⃣ Select Entry Signals:
• Choose which level breaks trigger Long entries (⬆️)
• Choose which level breaks trigger Short entries (⬇️)
• Can combine multiple signals for complex strategies
3️⃣ Configure Exits:
• Enable Take Profit and/or Stop Loss
• Choose between Percentage or ATR-based calculations
• Set percentage values (e.g., 10% TP, 5% SL)
• Optionally enable time-based exit (bars)
4️⃣ Advanced Options:
• Enable Pyramiding for multiple concurrent positions
• Set max number of trades per day (1-1000)
• Adjust position sizing per trade (0.1-100%)
📋 CONFIGURATION PARAMETERS
Visual Settings:
- Toggle individual levels on/off
- Line lookback length (10-500 bars)
- Label size (large/normal/small/tiny)
- Label color customization
- Label positioning offset (0-50)
ATR Settings:
- ATR Period (default: 14, range: 1-200)
- ATR Multiplier (default: 2.0, range: 0.1-10.0)
- Optional ATR bands visualization
- Optional ATR histogram display
Entry Signals:
- 10 Long entry triggers (crossover signals)
- 10 Short entry triggers (crossunder signals)
- Individual activation for each signal
Exit Settings:
Take Profit:
- Enable/Disable TP
- Type: Percent (0.1-100%) or ATR (0.1-20x)
- Percent: 0.1% to 100% gain target
- ATR: 0.1 to 20 ATR multipliers
Stop Loss:
- Enable/Disable SL
- Type: Percent (0.1-100%) or ATR (0.1-20x)
- Percent: 0.1% to 100% loss limit
- ATR: 0.1 to 20 ATR multipliers
Time Exit:
- 0-1000 bars (0 = disabled)
Multi-Trade Settings:
- Enable/Disable Pyramiding
- Max concurrent trades (1-100)
- Equity % per trade (0.1-100%)
Daily Limit:
- Enable/Disable daily trade limit
- Max trades per day (1-1000)
Backtesting:
- Date range filtering
- From/To Year, Month, Day selection
🎨 VISUAL DESIGN
Modern, clean interface featuring:
- Color-coded levels with transparency:
- 📗📕 Yesterday (bright green/red)
- 🟢🔴 Today (cyan/magenta)
- 🔵🟠 Last Week (blue/orange)
- 🟣🔷 Last Month (purple/light blue)
- 🟤🟫 Last Year (brown)
- Different line styles per timeframe
- Compact emoji labels (Y-High, T-Low, W-High, M-Low, Yr-High)
- Dynamic info panel showing active settings
- Semi-transparent fills for ATR zones
⚡ PERFECT FOR
- Breakout trading strategies
- Multi-timeframe analysis
- Systematic algorithmic trading
- Range breakout systems
- Support/Resistance trading
- Scalping with pyramiding
- Day trading with level breaks
📊 BACKTESTING ENGINE
Comprehensive backtesting with:
- Date range filtering for precise periods
- Accurate entry/exit execution
- Multiple position management
- Detailed performance metrics
- Trade-by-trade analysis
- Pyramiding simulation
🔔 ALERTS AVAILABLE
Set custom alerts for:
- Any level breakout (10 different levels)
- Crossover and crossunder events
- All timeframe combinations
- Entry and exit signals
- Position management events
🆕 VERSION 40.0 UPDATES
- Upgraded to Pine Script v6
- Enhanced compatibility and performance
- Improved input system (input.bool, input.int, input.float)
- Updated security function (request.security)
- Fixed ta.barssince calculations
- Optimized strategy.close implementation
- Shorter title for TradingView compliance
⚠️ IMPORTANT TECHNICAL NOTES
- Uses precise limit/stop prices for TP/SL (not ticks)
- Entry price-based calculations (not current close)
- Pyramiding controlled via strategy declaration
- Daily trade counter resets at midnight
- ATR calculated on each bar for consistency
- Works best on intraday timeframes for daily levels
- Time-based exits use global scope calculations
💡 USAGE TIPS
- Start with single signal testing to understand behavior
- Use percentage-based exits for consistent risk/reward ratios
- Enable daily limit to prevent overtrading volatile days
- Combine ATR-based stops with percentage targets
- Test different level combinations for your specific asset
- Lower pyramiding percentage for safer multi-position trading
- Consider market volatility when setting ATR multipliers
📈 STRATEGY LOGIC EXPLANATION
The strategy identifies critical support/resistance levels from multiple timeframes (yesterday, today, week, month, year) and generates trading signals when price breaks through these levels.
**Entry Logic:**
- LONG: Price crosses above selected high/low levels
- SHORT: Price crosses below selected high/low levels
**Exit Logic:**
- Take Profit: Fixed percentage or ATR-based target
- Stop Loss: Fixed percentage or ATR-based stop
- Time Exit: Maximum bars in position
**Position Management:**
- Pyramiding allows building multiple positions
- Daily limiter prevents excessive trading
- Per-trade allocation controls risk per entry
🎓 BEST PRACTICES
1. **Risk Management:** Never risk more than 1-2% per trade
2. **Pyramiding:** Use smaller percentages (0.5-2%) when enabled
3. **Daily Limits:** Set realistic limits based on market volatility
4. **TP/SL Ratio:** Aim for minimum 1:1.5 risk/reward ratio
5. **Backtesting:** Test thoroughly across different market conditions
6. **Timeframes:** Use appropriate timeframes for your trading style
7. **Level Selection:** Choose relevant levels for your asset class
📊 RECOMMENDED SETTINGS
**Conservative (Low Risk):**
- Pyramiding: Disabled
- TP: 5% or 3 ATR
- SL: 2% or 1.5 ATR
- Daily Limit: 3-5 trades
- Signals: Week/Month highs only
**Moderate (Balanced):**
- Pyramiding: Enabled (max 3)
- Per Trade: 2%
- TP: 3% or 2.5 ATR
- SL: 1.5% or 1 ATR
- Daily Limit: 5-10 trades
- Signals: Yesterday + Week levels
**Aggressive (High Risk):**
- Pyramiding: Enabled (max 5)
- Per Trade: 1%
- TP: 2% or 2 ATR
- SL: 1% or 0.75 ATR
- Daily Limit: 10-20 trades
- Signals: All levels enabled
⚠️ RISK DISCLAIMER
This indicator is for educational and informational purposes only. Trading involves substantial risk of loss and is not suitable for every investor. Past performance does not guarantee future results. Always:
- Test thoroughly in paper trading first
- Use proper risk management
- Never risk more than you can afford to lose
- Understand the strategy before live trading
- Consider transaction costs and slippage
- Consult a financial advisor if needed
🔧 TROUBLESHOOTING
- **No trades executing:** Check if "Enable Strategy" is ON
- **Too many trades:** Reduce signals or enable daily limit
- **TP/SL not working:** Verify percentage/ATR settings
- **Pyramiding not working:** Check max trades and % per trade
- **Labels not showing:** Ensure "Show Labels" is enabled
📞 SUPPORT & FEEDBACK
For questions, suggestions, bug reports, or feature requests:
- Comment below this indicator
- Contact the author through TradingView
- Report any issues with specific examples
🌟 FEATURES SUMMARY
✅ Multi-timeframe level detection
✅ Customizable breakout signals
✅ ATR and percentage-based exits
✅ Advanced pyramiding system
✅ Daily trade limiting
✅ Time-based exits
✅ Modern visual design
✅ Comprehensive backtesting
✅ Real-time alerts
✅ Pine Script v6 compatible
📚 VERSION HISTORY
- v40.0 - Pine Script v6 upgrade + bug fixes
- v39.3 - Fixed TP/SL with limit/stop prices
- v39.2 - Entry price-based calculations
- v39.1 - Fixed daily trade counter
- v39.0 - Pyramiding + daily limiter
- v38.0 - Multi-trade capability (100 positions)
- v37.0 - ATR-based exits
- v36.0 - Backtesting integration
- v35.0 - Added yearly levels
🚀 GET STARTED
1. Add indicator to your chart
2. Open settings panel
3. Enable "▶️ Enable Strategy"
4. Select your preferred entry signals
5. Configure TP/SL settings
6. Run backtest on historical data
7. Optimize parameters for your asset
8. Set up alerts for live trading
Happy Trading! 🎯💰📈
---
© 2025 Multi-Timeframe High/Low Strategy Pro
Built with precision. Tested with care. Trade with confidence.
Göstergeler ve stratejiler
20 Minute Macro (1 and 5 minute timeframes)This is a time-based macro indicator that automatically begins and ends at 10 minutes around the hour.
Institutional AbsorptionHighlights potential zones where institutional participants may be absorbing aggressive buying or selling pressure.
It analyzes candle structure and volume to detect possible bullish and bearish absorption events, providing a visual cue for traders studying market imbalance and liquidity dynamics.
The script compares each candle’s wick–body ratio and volume relative to its moving average.
A bullish absorption setup occurs when strong volume appears after a sharp downward move with long lower wicks, while bearish absorption occurs after upward moves with long upper wicks, suggesting the presence of large counter-orders.
+ Features
Detects bullish and bearish absorption candles.
Customizable wick to body ratio and volume multiple thresholds.
Optional filter to require candle color alignment with trend (green/red).
Option to ignore tiny body (doji-like) candles.
+ How to Use
Adjust wick–body ratio, volume multiplier, and lookback length under “Conditions (Absorption)”.
Enable “Require candle color” to strengthen directional context.
Use alerts to receive notifications when new absorption signals appear.
+ Notes
This tool aims to visualize possible absorption behavior, not confirm institutional activity.
Combine it with your broader market structure, volume, or order flow analysis for a more comprehensive analysis.
NSR - Dynamic Linear Regression ChannelOverview
The NSR - Dynamic Linear Regression Channel is a powerful overlay indicator that plots a dynamic regression-based channel around price action. Unlike static channels, this tool continuously recalculates the linear regression trendline from a user-defined starting point and builds upper and lower boundaries using a combination of standard deviation and maximum price deviations (highs/lows).
It visually separates "Premium" (overvalued) and "Discount" (undervalued) zones relative to the regression trend — ideal for mean-reversion, breakout, or trend-following strategies.
Key Features
Dynamic Regression Line Calculates slope, intercept, and average using full lookback from a reset point.
Adaptive Channel Width Combines standard deviation of residuals with max high/low deviations for robust boundaries.
Auto-Reset on Breakout Channel resets when price closes beyond upper/lower band twice in direction of trend .
Visual Zones Blue shaded = Premium (resistance zone)
Red shaded = Discount (support zone)
Real-Time Updates Live channel extends with each bar; historical channels preserved on reset.
How It Works
Regression Calculation
Uses all bars since last reset to compute the best-fit line:
y = intercept + slope × bar_position
Deviation Bands
Statistical : Standard deviation of price from regression line
Structural : Maximum distance from highs to line (upper) and lows to line (lower)
Final band = Regression Line ± (Deviation Input × StdDev)
Channel Reset Logic
Resets when:
Price closes above upper band twice in an uptrend (slope > 0)
OR closes below lower band twice in a downtrend (slope < 0)
Prevents overextension and adapts to new trends.
Visual Output
Active channel updates in real-time
Completed channels saved as historical reference (up to 500 lines/boxes)
Input Parameters
Deviation (2.0) - Multiplier for standard deviation to set channel width
Premium Color - blue color for upper (resistance) zone
Discount Color - red color for lower (support) zone
Best Use Cases
Mean Reversion - Buy near lower band in uptrend, sell near upper band
Breakout Trading - Enter on confirmed close beyond band + volume
Trend Confirmation - Use slope direction + price position in channel
Stop Loss / Take Profit - Place stops beyond opposite band
Pro Tips
Use on higher timeframes (4H, Daily) for cleaner regression fits
Combine with volume or momentum to filter false breakouts
Lower Deviation (e.g., 1.5) for tighter, more responsive channels
Watch channel resets — they often mark significant trend shifts
Why Use DLRC?
"Most channels are static. This one evolves with the market."
The NSR-DLRC gives you a mathematically sound, visually intuitive way to see:
Where price should be (regression)
Where it has been (deviation extremes)
When the trend is breaking structure
Perfect for traders who want regression-based precision without rigid assumptions.
Add to chart → Watch price dance within the evolving trend corridor.
PatternsLibCandle patterns Library 1.
Absorption pattern and Signals.
Library "PatternsLib"
fBase(open, high, low, close, volume, mintick, avoidTinyBodies, lenVolMA, volMult)
Parameters:
open (float)
high (float)
low (float)
close (float)
volume (float)
mintick (float)
avoidTinyBodies (bool)
lenVolMA (int)
volMult (float)
fSignals(open, close, upperWick, lowerWick, bodySafe, hiVol, wickBodyMin, requireTrendColor)
Parameters:
open (float)
close (float)
upperWick (float)
lowerWick (float)
bodySafe (float)
hiVol (bool)
wickBodyMin (float)
requireTrendColor (bool)
computeSignals(open, high, low, close, volume, mintick, avoidTinyBodies, lenVolMA, volMult, wickBodyMin, requireTrendColor)
Parameters:
open (float)
high (float)
low (float)
close (float)
volume (float)
mintick (float)
avoidTinyBodies (bool)
lenVolMA (int)
volMult (float)
wickBodyMin (float)
requireTrendColor (bool)
Greed Control AlgoisGreedBar = vol > ta.sma(vol, 20) * greedVolFactor and rsi > greedRsi
isTop = high == ta.highest(high, lookback)
isBottom = low == ta.lowest(low, lookback)
MaayaBearishPRODstrategy based on moving averages
strategy based on moving averages
strategy based on moving averages
strategy based on moving averages
strategy based on moving averages
strategy based on moving averages
strategy based on moving averages
📐 Уровни и Прогноз v6 (без box, через fill)shortLine := line.new(bar_index, resLevel, bar_index + 20, target2, color=color.red, style=line.style_arrow_right, width=2)
tp1Short := label.new(bar_index + 10, target1, text="TP1 ↓", style=label.style_label_down, color=color.red, textcolor=color.white)
tp2Short := label.new(bar_index + 20, target2, text="TP2 ↓",
Intraday Multi-Signal Dashboard + Dynamic SignalsThis indicator provides a clean visual dashboard summarizing multiple intraday signals on a single chart.
It plots key trend and momentum metrics — EMA alignment, RSI zone, MACD histogram, and Volume vs. average — along with a compact dashboard table for quick decision support.
What It Does
EMA Trend Monitor: Plots 9-, 21-, and 50-period EMAs and detects when they align strongly up or down.
RSI Zone Analysis: Highlights overbought / oversold conditions based on configurable RSI thresholds.
MACD Momentum: Reads MACD histogram strength and directional bias (bullish/bearish).
Volume Check: Compares current volume against its moving average to spot above-average participation.
Dashboard Summary: Displays all current signal states in a color-coded table (green = bullish, red = bearish, orange = caution).
Dynamic Markers: Small floating circles plotted near candles (ATR-based offset) that move with price when zooming/panning.
⚙️ Inputs & Customization
Adjustable EMA lengths (default 9/21/50).
RSI length, overbought/oversold/neutral thresholds.
MACD parameters (fast, slow, signal).
Volume moving average length and threshold multiplier.
ATR-based marker offset for zoom scaling.
Compact mode toggle for the dashboard table.
Table anchor position selectable (top/bottom corners).
📈 How to Use
Add the script to your intraday chart (5 min – 1 hour works best).
Observe the dashboard table for quick signal consensus.
Use it as a visual aid alongside your existing strategy or confirmations.
Color cues:
🟢 Green → bullish alignment
🔴 Red → bearish alignment
🟠 Orange → caution / overbought or oversold
⚪ Gray → neutral
⚠️ Important Notes (Compliance)
This script is for informational and educational purposes only.
It does not generate buy/sell signals or financial advice.
All calculations use bar-close data and are non-repainting.
Past performance is not indicative of future results.
You may freely modify or adapt it for your personal use.
Original author: @darshakssc
🧠 Recommended Use
Ideal for traders who want a quick sentiment snapshot without clutter — works well as an overlay on intraday setups or alongside volume profile and order flow indicators
Multi-asset fvgsThis indicator shows only fair value gaps that are also gaps on other assets, nothing personal xd. Just a thing that ICT traders could like lmao.
RBD + SMA Crossover ComboFeatures Included
RBD / RBR / DBD / DBR pattern detection (LuxAlgo logic)
SMA crossover (custom lengths)
Buy/Sell labels with manual size input
Bar coloring options (Full / Detection only / None)
FDL Horizontal Levels + EMAs (US30 & YM1)This indicator automatically plots institutional horizontal levels for US30 and YM1, so you don’t have to mark them manually. It also shows the 100 EMA and 200 EMA on all timeframes.
Horizontal levels are displayed on 3, 5, 10, 15, and 30-minute charts.
TrendMaster V2🧭 TrendMaster V2 — Multi-Factor Market Analyzer
🔍 Overview
TrendMaster V2 is a comprehensive multi-factor technical analysis system designed to provide a clear visual summary of market conditions across multiple timeframes.
It combines trend, momentum, volume, volatility, and pattern recognition into a unified composite score and displays it through customizable on-chart tables.
The goal of TrendMaster V2 is to help traders interpret technical signals more efficiently not to provide trading advice or automatic buy/sell recommendations.
⚙️ Main Features
Multi-factor scoring system:
Combines moving averages, RSI, MACD, CCI, Pearson correlation, candle patterns, volume, volatility, and divergence analysis into one composite trend score.
Custom trading modes:
Choose between Aggressive, Balanced, or Conservative profiles. Each mode adjusts signal sensitivity and scoring thresholds.
Advanced indicators:
CCI & Pearson correlation for trend confirmation.
Divergence detection on RSI for potential reversals.
Candlestick pattern recognition** (engulfing, doji, morning/evening star, etc.).
Multi-Timeframe Ichimoku analysis (MTF):
View Ichimoku trend alignment across 1 m → Daily timeframes with an adjustable summary table.
Confluence analysis:
Detects when multiple bullish/bearish factors agree (trend + momentum + patterns + volume + advanced metrics).
Displays a confluence table summarizing alignment strength.
Custom color themes:
Adapt all elements for dark or light charts, including table backgrounds, signal markers, and divergence highlights.
Signal filtering options:
Display all signals, strong-only, or confluence-confirmed ones.
🧩 How It Works
TrendMaster V2 evaluates several core dimensions of market behavior and assigns weighted scores:
| Component | Description
| Trend Score | Based on the alignment of 3 MAs (fast, slow, long).
| Momentum Score | Combines RSI, MACD crossover, and rate of change (ROC).
| Pattern Score | Detects bullish and bearish candlestick structures, adjusted by trading mode.
| Volume Score | Measures volume spikes or low-activity periods relative to a moving average.
| Volatility Score | Uses ATR to gauge market activity levels.
| Divergence Score | Identifies RSI divergences with recent pivot points.
| Pearson & CCI Scores | Quantify linear correlation and mean-reversion pressure.
All these values are merged into a final composite score, which determines one of five states:
Strong Bullish
Bullish
Neutral
Bearish
Strong Bearish
The indicator can display these in the main info table and optionally draw visual markers on the chart (triangles or circles) for stronger or confluence-based signals.
🕓 **Multi-Timeframe Component
An integrated Ichimoku trend engine runs on up to six user-selected timeframes (1 min → Daily).
Each timeframe is evaluated independently and summarized in a dedicated table, showing:
↑ Bullish
↓ Bearish
• Neutral
The **MTF Trend Strength** metric measures how aligned all timeframes are — useful for identifying broad confluence between short- and long-term structures.
📊 Visual Interface
TrendMaster V2 displays three main tables directly on the chart:
1. Main Info Table – shows RSI, Score, Volume, Volatility, Pearson, CCI, Trend, Signal, and Mode.
2. Ichimoku MTF Table – summarizes cloud-based trend status for each selected timeframe.
3. Confluence Summary Table – aggregates bullish/bearish counts, MTF alignment, and overall status.
All tables use solid background colors (no transparency) to ensure visibility across different chart themes.
🔔 Alerts
Custom alerts are provided for key events, including:
* Strong Buy / Sell signals
* Bullish / Bearish confluence
* All-timeframe (MTF) alignment
* RSI divergence detections
MTF EMA Trend Dashboard + Trade ZoneMuti Time Frame Indicator Shows alignment of 5 Min 1 Hour 4 Hor and day for Direction
Low and Preceding High (Breakout + Bullis fgv + Extending Fib)🚀 Last Low & Preceding High: Bullish Reversal Strategy
This indicator identifies high-probability long setups by confirming a Bullish Market Structure Shift (BMS) coupled with a strong momentum filter.
🧠 Indicator Logic (How It Works)
The core function of this tool is to automatically locate the key structural points that lead to a bullish bias:
Structure Identification: It first defines a Range between the two most recent Pivot Lows. Within this range, it finds the Preceding High (the highest close before the current low) and the true Low Anchor (the lowest low/tail of the pivot low).
Breakout and Momentum Filter: A valid signal requires two conditions to be met on the current bar:
Bullish Breakout: The price must close above the Preceding High.
Marubozu Confirmation: A strong Bullish Marubozu candle (minimal wicks) must be present in the impulse move from the low, filtering for institutional strength.
Fibonacci Discount Zones: Upon confirmation, the indicator calculates and plots the discount zones (0.50, 0.618, 0.786) using the true extremes (tail-to-tail anchors). These zones start extending from the breakout candle and represent high-value areas for potential entries.
🎯 Entry and Risk Management
The strategy provides clear rules for execution once the logic is confirmed:
Entry Execution:
Wait for Retracement: Enter a Long position when the price retraces back into the colored Discount Zones (0.50 to 0.786).
Risk Control:
🛑 Stop Loss (SL): Placed below the Low Line (the swing low that initiated the move).
✅ Take Profit (TP): Placed above the High Line (the high that was broken).
Final note
"Special thanks to Mr. Mazen (@dr0chart) for developing this strategy."
Session ParmezanForex Session Range Boxes (Asia, Europe, US) — visual intraday session tracker for Forex and metals.
This indicator automatically marks the three major Forex trading sessions — Asian (Tokyo), European (London), and American (New York) — directly on your chart using dynamic colored boxes.
Each box represents the full price range (High–Low) formed during that session, helping traders visualize how volatility and liquidity evolve across the global trading day.
The script is built for intraday traders and session-based strategies, especially those who monitor breakouts from the Asian range or reactions during London–New York overlaps.
⚙️ Features
• Accurate session timing (UTC+3 / Moscow Time) — Asia: 03:00–12:00, Europe: 11:00–20:00, US: 16:00–01:00.
• Dynamic range boxes: each box expands in real time as new highs and lows are set during the session.
• Clear visual separation: each session is shown in its own color (blue for Asia, orange for Europe, green for US).
• Automatic daily reset — new boxes start every new session.
• Intraday focus only — visible up to the 1-hour timeframe (M1–H1) for clarity.
• Transparent design — semi-transparent fills keep candles readable even when sessions overlap.
• Lightweight performance — optimized use of box.new() and var variables avoids lag on lower timeframes.
🧭 Typical Use-Cases
• Identify Asian session ranges and watch for London breakouts or New York reversals.
• Visually align your intraday strategy with session volatility cycles.
• Combine with VWAP, liquidity zones, or market profile indicators for deeper confluence.
• Spot overlapping sessions — often the most active periods of the day.
Smart Money Flow Index (SMFI) - Advanced SMC [PhenLabs]📊Smart Money Flow Index (SMFI)
Version: PineScript™v6
📌Description
The Smart Money Flow Index (SMFI) is an advanced Smart Money Concepts implementation that tracks institutional trading behavior through multi-dimensional analysis. This comprehensive indicator combines volume-validated Order Block detection, Fair Value Gap identification with auto-mitigation tracking, dynamic Liquidity Zone mapping, and Break of Structure/Change of Character detection into a unified system.
Unlike basic SMC indicators, SMFI employs a proprietary scoring algorithm that weighs five critical factors: Order Block strength (validated by volume), Fair Value Gap size and recency, proximity to Liquidity Zones, market structure alignment (BOS/CHoCH), and multi-timeframe confluence. This produces a Smart Money Score (0-100) where readings above 70 represent optimal institutional setup conditions.
🚀Points of Innovation
Volume-Validated Order Block Detection – Only displays Order Blocks when formation candle exceeds customizable volume multiplier (default 1.5x average), filtering weak zones and highlighting true institutional accumulation/distribution
Auto-Mitigation Tracking System – Fair Value Gaps and Order Blocks automatically update status when price mitigates them, with visual distinction between active and filled zones preventing trades on dead levels
Proprietary Smart Money Score Algorithm – Combines weighted factors (OB strength 25%, FVG proximity 20%, Liquidity 20%, Structure 20%, MTF 15%) into single 0-100 confidence rating updating in real-time
ATR-Based Adaptive Calculations – All distance measurements use 14-period Average True Range ensuring consistent function across any instrument, timeframe, or volatility regime without manual recalibration
Dynamic Age Filtering – Automatically removes liquidity levels and FVGs older than configurable thresholds preventing chart clutter while maintaining relevant levels
Multi-Timeframe Confluence Integration – Analyzes higher timeframe bias with customizable multipliers (2-10x) and incorporates HTF trend direction into Smart Money Score for institutional alignment
🔧Core Components
Order Block Engine – Detects institutional supply/demand zones using characteristic patterns (down-move-then-strong-up for bullish, up-move-then-strong-down for bearish) with minimum volume threshold validation, tracks mitigation when price closes through zones
Fair Value Gap Scanner – Identifies price imbalances where current candle's low/high leaves gap with two-candle-prior high/low, filters by minimum size percentage, monitors 50% fill for mitigation status
Liquidity Zone Mapper – Uses pivot high/low detection with configurable lookback to mark swing points where stop losses cluster, extends horizontal lines to visualize sweep targets, manages lifecycle through age-based removal
Market Structure Analyzer – Tracks pivot progression to identify trend through higher-highs/higher-lows (bullish) or lower-highs/lower-lows (bearish), detects Break of Structure and Change of Character for trend/reversal confirmation
Scoring Calculation Engine – Evaluates proximity to nearest Order Blocks using ATR-normalized distance, assesses FVG recency and distance, calculates liquidity proximity with age weighting, combines structure bias and MTF trend into smoothed final score
🔥Key Features
Customizable Display Limits – Control maximum Order Blocks (1-10), Liquidity Zones (1-10), and FVG age (10-200 bars) to maintain clean charts focused on most relevant institutional levels
Gradient Strength Visualization – All zones render with transparency-adjustable coloring where stronger/newer zones appear more solid and weaker/older zones fade progressively providing instant visual hierarchy
Educational Label System – Optional labels identify each zone type (Bullish OB, Bearish OB, Bullish FVG, Bearish FVG, BOS) with color-coded text helping traders learn SMC concepts through practical application
Real-Time Smart Money Score Dashboard – Top-right table displays current score (0-100) with color coding (green >70, yellow 30-70, red <30) plus trend arrow for at-a-glance confidence assessment
Comprehensive Alert Suite – Configurable notifications for Order Block formation, Fair Value Gap detection, Break of Structure events, Change of Character signals, and high Smart Money Score readings (>70)
Buy/Sell Signal Integration – Automatically plots triangle markers when Smart Money Score exceeds 70 with aligned market structure and fresh Order Block detection providing clear entry signals
🎨Visualization
Order Block Boxes – Shaded rectangles extend from formation bar spanning high-to-low of institutional candle, bullish zones in green, bearish in red, with customizable transparency (80-98%)
Fair Value Gap Zones – Rectangular areas marking imbalances, active FVGs display in bright colors with adjustable transparency, mitigated FVGs switch to gray preventing trades on filled zones
Liquidity Level Lines – Dashed horizontal lines extend from pivot creation points, swing highs in bearish color (short targets above), swing lows in bullish color (long targets below), opacity decreases with age
Structure Labels – "BOS" labels appear above/below price when Break of Structure confirmed, colored by direction (green bullish, red bearish), positioned at 1% beyond highs/lows for visibility
Educational Info Panel – Bottom-right table explains key terminology (OB, FVG, BOS, CHoCH) and score interpretation (>70 high probability) with semi-transparent background for readability
📖Usage Guidelines
General Settings
Show Order Blocks – Default: On, toggles visibility of institutional supply/demand zones, disable when focusing solely on FVGs or Liquidity
Show Fair Value Gaps – Default: On, controls FVG zone display including active and mitigated imbalances
Show Liquidity Zones – Default: On, manages liquidity line visibility, disable on lower timeframes to reduce clutter
Show Market Structure – Default: On, toggles BOS/CHoCH label display
Show Smart Money Score – Default: On, controls score dashboard visibility
Order Block Settings
OB Lookback Period – Default: 20, Range: 5-100, controls bars scanned for Order Block patterns, lower values detect recent activity, higher values find older blocks
Min Volume Multiplier – Default: 1.5, Range: 1.0-5.0, sets minimum volume threshold as multiple of 20-period average, higher values (2.0+) filter for strongest institutional candles
Max Order Blocks to Display – Default: 3, Range: 1-10, limits simultaneous Order Blocks shown, lower settings (1-3) maintain focus on most recent zones
Fair Value Gap Settings
Min FVG Size (%) – Default: 0.3, Range: 0.1-2.0, defines minimum gap size as percentage of close price, lower values detect micro-imbalances, higher values focus on significant gaps
Max FVG Age (bars) – Default: 50, Range: 10-200, removes FVGs older than specified bars, lower settings (10-30) for scalping, higher (100-200) for swing trading
Show FVG Mitigation – Default: On, displays filled FVGs in gray providing visual history, disable to show only active untouched imbalances
Liquidity Zone Settings
Liquidity Lookback – Default: 50, Range: 20-200, sets pivot detection period for swing highs/lows, lower values (20-50) mark shorter-term liquidity, higher (100-200) identify major swings
Max Liquidity Age (bars) – Default: 100, Range: 20-500, removes liquidity lines older than specified bars, adjust based on timeframe
Liquidity Sensitivity – Default: 0.5, Range: 0.1-1.0, controls pivot detection sensitivity, lower values mark only major swings, higher values identify minor swings
Max Liquidity Zones to Display – Default: 3, Range: 1-10, limits total liquidity levels shown maintaining chart clarity
Market Structure Settings
Pivot Length – Default: 5, Range: 3-15, defines bars to left/right for pivot validation, lower values (3-5) create sensitive structure breaks, higher (10-15) filter for major shifts
Min Structure Move (%) – Default: 1.0, Range: 0.1-5.0, sets minimum percentage move required between pivots to confirm structure change
Multi-Timeframe Settings
Enable MTF Analysis – Default: On, activates higher timeframe trend analysis incorporation into Smart Money Score
Higher Timeframe Multiplier – Default: 4, Range: 2-10, multiplies current timeframe to determine analysis timeframe (4x on 15min = 1hour)
Visual Settings
Bullish Color – Default: Green (#089981), sets color for bullish Order Blocks, FVGs, and structure elements
Bearish Color – Default: Red (#f23645), defines color for bearish elements
Neutral Color – Default: Gray (#787b86), controls color of mitigated zones and neutral elements
Show Educational Labels – Default: On, displays text labels on zones identifying type (OB, FVG, BOS), disable once familiar with patterns
Order Block Transparency – Default: 92, Range: 80-98, controls Order Block box transparency
FVG Transparency – Default: 92, Range: 80-98, sets Fair Value Gap zone transparency independently from Order Blocks
Alert Settings
Alert on Order Block Formation – Default: On, triggers notification when new volume-validated Order Block detected
Alert on FVG Formation – Default: On, sends alert when Fair Value Gap appears enabling quick response to imbalances
Alert on Break of Structure – Default: On, notifies when BOS or CHoCH confirmed
Alert on High Smart Money Score – Default: On, alerts when Smart Money Score crosses above 70 threshold indicating high-probability setup
✅Best Use Cases
Order Block Retest Entries – After Break of Structure, wait for price retrace into fresh bullish Order Block with Smart Money Score >70, enter long on zone reaction targeting next liquidity level
Fair Value Gap Retracement Trading – When price creates FVG during strong move then retraces, enter as price approaches unfilled gap expecting institutional orders to continue trend
Liquidity Sweep Reversals – Monitor price approaching swing high/low liquidity zones against prevailing Smart Money Score trend, after stop hunt sweep watch for rejection into premium Order Block/FVG
Multi-Timeframe Confluence Setups – Identify alignment when current timeframe Order Block coincides with higher timeframe FVG plus MTF analysis showing matching trend bias
Break of Structure Continuations – After BOS confirms trend direction, trade pullbacks to nearest Order Block or FVG in direction of structure break using Smart Money Score >70 as entry filter
Change of Character Reversal Plays – When CHoCH detected indicating potential reversal, look for Smart Money Score pivot with opposing Order Block formation then enter on structure confirmation
⚠️Limitations
Lagging Pivot Calculations – Pivot-based features (Liquidity Zones, Market Structure) require bars to right of pivot for confirmation, meaning these elements identify levels retrospectively with delay equal to lookback period
Whipsaw in Ranging Markets – During choppy conditions, Order Blocks fail frequently and structure breaks produce false signals as Smart Money Score fluctuates without clear institutional bias, best used in trending markets
Volume Data Dependency – Order Block volume validation requires accurate volume data which may be incomplete on Forex pairs or limited in crypto exchange feeds
Subjectivity in Scoring Weights – Proprietary 25-20-20-20-15 weighting reflects general institutional behavior but may not optimize for specific instruments or market regimes, user cannot adjust factor weights
Visual Complexity on Lower Timeframes – Sub-hour timeframes generate excessive zones creating cluttered charts, requires aggressive display limit reduction and higher minimum thresholds
No Fundamental Integration – Indicator analyzes purely technical price action and volume without incorporating economic events, news catalysts, or fundamental shifts that override technical levels
💡What Makes This Unique
Unified SMC Ecosystem – Unlike indicators displaying Order Blocks OR FVGs OR Liquidity separately, SMFI combines all three institutional concepts plus market structure into single cohesive system
Proprietary Confidence Scoring – Rather than manual setup assessment, automated Smart Money Score quantifies probability by weighting five institutional dimensions into actionable 0-100 rating
Volume-Filtered Quality – Eliminates weak Order Blocks forming without institutional volume confirmation, ensuring displayed zones represent genuine accumulation/distribution
Adaptive Lifecycle Management – Automatically updates mitigation status and removes aged zones preventing trades on dead levels through continuous validity and age monitoring
Educational Integration – Built-in tooltips, labeled zones, and reference panel make indicator functional for both learning Smart Money Concepts and executing strategies
🔬How It Works
Order Block Detection – Scans for patterns where strong directional move follows counter-move creating last down-candle before rally (bullish OB) or last up-candle before sell-off (bearish OB), validates formations only when candle exhibits volume exceeding configurable multiple (default 1.5x) of 20-bar average volume
Fair Value Gap Identification – Compares current candle’s high/low against two-candles-prior low/high to detect price imbalances, calculates gap size as percentage of close and filters micro-gaps below minimum threshold (default 0.3%), monitors whether subsequent price fills 50% triggering mitigation status
Liquidity Zone Mapping – Employs pivot detection using configurable lookback (default 50 bars) to identify swing highs/lows where retail stops cluster, extends horizontal reference lines from pivot creation and applies age-based filtering to remove stale zones
Market Structure Analysis – Tracks pivot progression using structure-specific lookback (default 5 bars) to determine trend, confirms uptrend when new pivot high exceeds previous by minimum move percentage, detects Break of Structure when price breaks recent pivot level, flags Change of Character for potential reversals
Multi-Timeframe Confluence – When enabled, requests security data from higher timeframe (current TF × HTF multiplier, default 4x), compares HTF close against HTF 20-period MA to determine bias, contributes ±50 points to score ensuring alignment with institutional positioning on superior timeframe
Smart Money Score Calculation – Evaluates Order Block component via ATR-normalized distance producing max 100-point contribution weighted at 25%, assesses FVG factor through age penalty and distance at 20% weight, calculates Liquidity proximity at 20%, incorporates structure bias (±50-100 points) at 20%, adds MTF component at 15%, applies 3-period smoothing to reduce volatility
Visual Rendering and Lifecycle – Draws Order Block boxes, Fair Value Gap rectangles with color coding (green/red active, gray mitigated), extends liquidity dashed lines with fade-by-age opacity, plots BOS labels, displays Smart Money Score dashboard, continuously updates checking mitigation conditions and removing elements exceeding age/display limits
💡Note:
The Smart Money Flow Index combines multiple Smart Money Concepts into unified institutional order flow analysis. For optimal results, use the Smart Money Score as confluence filter rather than standalone entry signal – scores above 70 indicate high-probability setups but should be combined with risk management, higher timeframe bias, and market regime understanding.
FDL Horizontal Levels + EMAs YM1Plots institutional horizontal levels on US30 and YM1, with 100 & 200 EMAs for trend guidance.
BB Pullback Strategy - Persistent Fractal TrendIn Uptrend, when price pullback and reach the lower band, expect it to bounce, thus enter buy at lower band.
In Downtrend, when price pullback and reach the upper band, expect it to bounce, thus enter sell at upper band.
Uptrend and Downtrend is decided by using William Fractal (3 bars) HH, HL, LH, LL
Intra day BB Trap Indicator with buy and sell signalThis script plots CPR and the BB channel and provides buy and sell signals.
All the plots are customizable. better to use it within an hour time frame.
Buy signal when the price closes above CPR support and comes inside bb channel on the lower bb side.
Sell signal when the price closes below CPR Resistance and comes inside bb channel on the upper bb side.
MIG and MC 发布简介(中文)
MIG and MC 指标帮助日内交易者快速识别微型缺口(Micro Gap)与微型通道(Micro Channel)。脚本支持过滤开盘跳空、合并连续缺口,并自动绘制
FPL(Fair Price Line)延伸线,既可追踪缺口是否被填补,也能直观标注潜在的趋势结构。为了确保跨周期一致性,最新版本对开盘前后和跨日场景做了专门处理
主要特性
- 自动检测并显示看涨/看跌微型缺口,支持按需合并连续缺口。
- 自定义是否忽略开盘缺口、缺口显示范围与 FPL 样式。
- FPL 触及后即停止延伸,辅助研判缺口是否真正回补。
- 内置强收盘与缺口过滤的微型通道识别,可选多种严格程度。
- 适用于 1/5/9 分钟等日内周期,也适用于更长周期。
Recommended English Description
The MIG and MC indicator highlights Micro Gaps and Micro Channels so you can track true intraday imbalances without noise. It merges
consecutive gaps, projects Fair Price Lines (FPL) that stop once touched, and offers a full intraday-ready opening-gap filter so your
early bars stay clean. The latest update refines cross-session handling, giving reliable gap plots on 1-, 5-, and 9-minute charts as well as higher time frames.
Key Features
- Detects bullish and bearish micro gaps with optional gap merging.
- Toggle opening-gap filters and configure look back, visibility, and FPL style.
- FPL lines stop as soon as price revisits the gap, making gap closure obvious.
- Micro Channel mode uses strong-close and gap filters to mark high-quality trend legs.
- Consistent behavior across intraday and higher time frames.






















