Rage of UltronRage of Ultron - Multi-Timeframe Smart Money Trading System
Advanced Confluence-Based Trading Indicator
Rage of Ultron is a comprehensive multi-timeframe trading system that combines Smart Money Concepts (SMC) with macro market context, RSI divergences, liquidity sweeps, and volume analysis to identify high-probability setups across all markets.
Key Features
Multi-Timeframe Alignment
* Weekly Bias - Directional trend context
* Daily Structure - Order Blocks and Fair Value Gaps
* 4H Confirmation - Entry timing and execution
* Real-time MTF alignment scoring (🟢 Bull Aligned / 🔴 Bear Aligned / 🟡 Mixed)
Smart Money Concepts
* Order Blocks (OB) - Institutional entry zones with visual clarity
* Fair Value Gaps (FVG) - Price imbalances and retracement magnets
* Change of Character (CHoCH) - Market structure breaks (▲▼)
* Liquidity Sweeps - Stop hunt detection before reversals (💧)
Technical Analysis
* RSI Divergences - Regular and hidden divergences with zones (◆)
* RSI Swing Failure Patterns - Grade-A reversal setups (★)
* Automatic Fibonacci - Dynamic retracements and extensions
* Volume Impulse Detection - Weighted confirmation signals
Macro Market Radar
* DXY - Dollar strength assessment
* BTC Dominance - Crypto market risk gauge
* USDT Dominance - Stablecoin flow analysis
* Combined risk environment scoring
Confluence Scoring System (0-7)
Quantified setup quality with three alert tiers:
* Tier 1 (Score 6-7): Full confluence + sweep + volume + MTF alignment
* Tier 2 (Score 5): High confluence + volume or sweep
* Tier 3 (Score 4): Standard confluence setups
"Rage" Volume State
* 🟢 RAGE PULSE - Explosive volume spike (score 6+ trigger)
* ⚡ Active - Strong volume with good confluence
* 🟡 Stable - Moderate volume conditions
* 🔴 Dormant - Low volume, wait for confirmation
Visual Design
* Clean Zone Rendering - Persistent OB/FVG boxes with limited extension
* Signal Bar Highlighting - Colored fills and contrasting borders for instant recognition
* Dynamic Symbol Placement - ATR-based offset prevents overlap
* Comprehensive Panel - Real-time macro + trade metrics in one view
* Toggleable Legend - Learn signals, hide once familiar
How to Use
1. Set Your Timeframes - Default 1W/1D/4H works for swing trading
2. Monitor Macro Environment - Check risk-on/off context
3. Wait for Confluence ≥4 - Let multiple signals align
4. Enter on Tier 1/2 Alerts - Best probability setups
5. Use Fib Extensions for Targets - Systematic profit taking
Customizable Settings
* Multi-timeframe periods
* RSI length and divergence sensitivity
* Liquidity sweep parameters
* Fibonacci swing lookback
* Volume thresholds
* Shape offset multiplier
* Visual toggles (Fibs, extensions, legend)
Built-in Alert System
Three-tier alert structure lets you filter by setup quality. Set alerts for Tier 1 only for highest conviction trades, or include Tier 2 for more opportunities.
Best Practices
* Use on clean timeframes - 1H+ for less noise
* Combine with support/resistance - Zones near key levels = highest probability
* Respect the macro - Don't fight extreme risk-off environments
* Wait for the full stack - Best trades have 4+ aligned signals
* Practice on demo first - Learn signal behavior in your market
Works On
* Cryptocurrency (spot & futures)
* Forex pairs
* Stock indices
* Individual stocks
* Commodities
Note: This indicator identifies potential setups but does not guarantee profits. Always use proper risk management, position sizing, and stops. Past performance does not predict future results.
Created by cdotgnz | For educational purposes
Multitimeframe
HTF MACD Dual Zero Cross + First EMA PullbackThis script aims to get the trader on the right side of the momentum and get better entries by only alerting when price pulls back to the trader's specified EMA.
This script isnt meant to catch tops or bottoms but to trade with the momentum once it starts.
This script will alert whe nthe MACD and signal line both cross the zero line, after that the script waits for price to make a pullback and then alet either a sell or buy. Ive found this works best when you trade with the trend on a higher timeframe.
You can use whatever MACD settings you prefer and really customize this to the asset youre trading.
You can also change whether you get an alert based on a wick touch of the EMA or a candle close.
Label Temps Réel - Position Adaptative🕒 REAL-TIME CANDLE TIMESTAMP LABEL
Displays the current candle's date and time directly on your chart with automatic updates.
✨ KEY FEATURES:
• Automatic timestamp label at the bottom of the chart (like the price label on the right)
• Vertical line connecting the active candle to the timestamp
• Real-time updates: moves automatically with each new candle
• Adaptive positioning: works perfectly on ALL timeframes (1M to 1W+)
🎨 CUSTOMIZATION OPTIONS:
• Label Style: Rectangle, Arrow Up/Down, Circle
• Line Style: Solid, Dotted, Dashed
• Text Layout: Horizontal (1 line) or Vertical (2 lines)
• Colors: Independent label and line colors
• Size: Tiny to Huge label sizes
• Distance: Adjustable spacing (% of visible range)
📅 TIME FORMAT:
HH:MM - DD-MM (Hour:Minute - Day-Month)
No year displayed for cleaner visuals.
⚙️ TECHNICAL DETAILS:
• 100% Pine Script v6 compliant
• Zero lag or repainting
• Minimal resource usage (1 label + 1 line)
• Position calculated as percentage of visible range = always consistent visual placement
🎯 USE CASES:
Perfect for traders who need constant time awareness without cluttering the chart.
Especially useful for multi-timeframe analysis and session timing.
💡 NO CONFIGURATION NEEDED:
Add to chart → Works immediately. Customize later if desired.
---
Built with Pine Script v6 | Lightweight | Universal Compatibility
TrendMaster V2TrendMaster V2 is a comprehensive Pine Script indicator designed for TradingView. It combines multiple technical indicators and an advanced scoring logic to provide actionable trading signals. The script is highly customizable, allowing users to adjust trading modes, color themes, and signal filters according to their preferences and risk tolerance.
Key Features
Composite Scoring System:
The script calculates a composite score based on trend, momentum, pattern recognition, volume, volatility, divergence, Pearson correlation, and the CCI index. This score helps identify the best buy or sell opportunities.
Customizable Parameters:
Users can choose between “Aggressive,” “Balanced,” or “Conservative” trading modes, adjust indicator periods, and customize the color scheme of all visual elements.
Confluence Analysis:
The script evaluates the number of matching bullish or bearish signals, providing a confluence summary for higher-confidence trades.
Visual Signals:
Clear visual cues (triangles, circles, crosses) are displayed on the chart for strong buy/sell signals, confluences, and divergences.
Information Panels:
Two panels display real-time data such as score, RSI, volume, volatility, Pearson, CCI, trend, signal, and mode, along with the confluence status for quick reference.
Alert Conditions:
The script supports alerts for strong buy/sell signals, confluences, and divergences.
How It Works
Main Configuration:
Users select a trading mode (Aggressive, Balanced, or Conservative) and a color theme (Dark or Light).
Custom colors can also be set for bullish, bearish, strong, neutral, and signal elements.
Technical Indicators
Moving Averages (SMA/EMA) for trend analysis.
RSI to assess momentum and overbought/oversold conditions.
MACD for trend confirmation.
Volume and Volatility (ATR) for market activity evaluation.
Advanced Indicators
Pearson Correlation to measure trend strength.
CCI for cyclic momentum analysis.
Pattern Recognition
The script identifies common bullish and bearish reversal patterns (e.g., engulfing, hammer, morning/evening star) and continuation patterns (e.g., three white soldiers/black crows).
Composite Score
Each indicator contributes to a composite score, weighted according to the selected trading mode.
The score determines the strength of buy/sell signals.
Confluence Analysis
The script counts the number of matching bullish or bearish signals, providing a confluence summary for higher-confidence trades.
Visual Signals and Alerts
Strong buy/sell signals: triangles
Confluence signals: circles
Divergences: crosses
Alerts are triggered for strong buy/sell signals, confluences, and divergences.
Usage Instructions
Add the script to your TradingView chart.
Adjust the settings in the configuration panel to match your trading style.
Monitor the information panels and visual signals to spot trading opportunities.
Set up alerts for your preferred signal types.
MTF Trend - Gold/XAU with DXY FilterI published this earlier and I had it on a chart with multiple other Indicators and It was very confusing so i am publishing it again on a clean chart
This Indicator is for Gold only buy can be used in other assets If the Filter toggle is turned off in the settings
This Indicator measures the strength of the Dollar Index which will determine the direction of the Gold asset
If the DXY is weak and all timeframes align then you can tide in that direction, the opposite is true foe a strong Dollar all timeframes must be opposite to the Dollar as as DXY and Gold trade together very well it also plots a large Triangle on the chart to warn of the Direction
You can trade however you wish but it is best to sell gold when Dollar is strong and buy gold when Dollar is weak, money is moved from Dollar to Gold and Gold to Dollar when weak and strong
RSI Curl Signals 70 / 60 / 40This Indicator Identifies the turning points on the RSI and plots a buy and sell signal on the chart It plots on crossing up above the 41 Level on the RSI and plots a sell curling below the 60 level use a standard RSI on chart if needed with alerts set at RSI curling up above value 40 Level and use an alert for curling below Level 60 use support and resistance for confirmation
Works with any timeframe Ans any asset
Trend Meter [MMT]The Trend Meter is a dynamic Pine Script indicator designed to provide traders with a clear, multi-dimensional view of market trends and momentum across different timeframes and metrics. By integrating Exponential Moving Averages (EMAs), Volume-Weighted Average Price (VWAP), higher timeframe (HTF) analysis, and Regular Trading Hours (RTH) breakouts, this indicator offers a comprehensive tool for identifying bullish, bearish, or neutral market conditions. Its customizable visual display and label system make it ideal for traders seeking actionable insights for trend-following, breakout, or reversal strategies.
Key Features:
1. Multi-Metric Trend Analysis:
- Trend Meter : Compares a Fast EMA (default: 9) and Slow EMA (default: 21) to determine short-term trend direction.
- Bias Meter : Uses a longer-term Bias EMA (default: 35) to assess the overall market bias based on the close price.
- VWAP Meter : Evaluates price position relative to the VWAP for dynamic support/resistance insights.
- HTF Meter : Analyzes higher timeframe (default: 60-minute) price action, detecting breakouts of previous highs/lows and candle direction.
- RTH Meter : Tracks price breakouts above/below the US Regular Trading Hours (09:30–16:00 EST) 15m opening range (09:30–09:45 EST).
2. Color-Coded Visuals:
- Each metric is displayed as a horizontal line with customizable colors (green for bullish, red for bearish, gray for neutral).
- Visual style options (dotted, dashed, or solid lines) allow for personalized chart clarity.
3. Dynamic Labels:
- Optional labels for each metric (Trend, Bias, VWAP, HTF, RTH) with customizable text, size (tiny to huge), and color.
- Labels update in real-time, providing clear identification of each meter’s role and current state.
4. Flexible Metric Selection:
- Toggle individual metrics (EMA, VWAP, HTF, RTH) on/off to focus on relevant indicators for your trading style.
- Option to use the previous bar’s close price for calculations, reducing noise in volatile markets.
5. RTH and Opening Range Analysis:
- Calculates the high/low of the opening range (09:30–09:45 EST) during RTH sessions.
- Signals bullish or bearish conditions when the price breaks above/below the opening range outside the initial 15-minute window.
6. Higher Timeframe Breakout Detection:
- Monitors HTF price action to identify breakouts of the previous candle’s high or low, combined with the HTF candle’s direction for trend confirmation.
How to Use:
- Trend Confirmation : Use the Trend and Bias Meters to confirm short-term and long-term market direction.
- Breakout Trading : Leverage the RTH Meter for breakout setups above/below the opening range during US trading hours.
- Support/Resistance : Utilize the VWAP Meter to identify dynamic price levels for entries or exits.
- Higher Timeframe Context : Monitor the HTF Meter for broader market trend alignment, ideal for swing or position trading.
- Customization : Adjust EMA lengths, toggle metrics, and customize visual styles and labels to suit your chart preferences.
Settings:
- Bias Settings :
- Fast EMA (default: 9), Slow EMA (default: 21), Bias EMA (default: 35).
- Higher Timeframe (default: 60-minute).
- Option to use previous close price for calculations.
- Enable/disable individual metrics (EMA, VWAP, HTF, RTH).
- Visual Settings :
- Bullish (green), bearish (red), and neutral (gray) colors.
- Line style (dotted, dashed, solid).
- Label Settings :
- Enable/disable labels.
- Customize label size (tiny, small, normal, large, huge) and text color.
- Custom text for each meter’s label (Trend, Bias, VWAP, HTF, RTH).
Notes:
- Optimized for intraday trading (e.g., 1m, 5m, 15m) but adaptable to any timeframe.
- RTH and opening range calculations are tailored for US markets (EST timezone); adjust session times in the code for other markets.
- Higher timeframe analysis enhances context for multi-timeframe strategies.
Ideal For:
- Intraday traders targeting RTH breakout opportunities.
- Swing traders aligning with higher timeframe trends.
- Traders using VWAP and EMA-based strategies for trend and momentum analysis.
- Those seeking a clean, customizable dashboard for multi-metric market analysis.
RSI MTF Table - 12 Pairs (1,5,15)
The relative strength index measures the speed and magnitude of an asset's recent price changes. Therefore, it is considered a momentum indicator in technical analysis. Essentially, the RSI is the ratio of the days an asset's value increases to decreases over a given period.
Generally speaking, if the RSI is around 50, we do not expect strong movements. RSI above 65 or below 35 are areas we expect. In this context, this chart and the general momentum in 1-5-15 minutes allow us to quickly determine the parity we will trade. It is useful for intraday trading and scalping.
XAUUSD 4H Candle Close Vertical Lines + Labels (debug)//@version=5
indicator("XAUUSD 4H Candle Close Vertical Lines + Labels (debug)", overlay=true)
// Detect when a new 4H candle closes
new_4h_candle = ta.change(time("240"))
// Debug: show tiny shape when detection happens (remove later if not needed)
plotshape(new_4h_candle, title="4H close detected", style=shape.triangleup, location=location.belowbar, size=size.tiny)
// When a new 4H candle closes, draw a vertical dotted blue line and a label
if new_4h_candle
// vertical line at current bar_index
line.new(
x1=bar_index,
y1=na,
x2=bar_index,
y2=na,
xloc=xloc.bar_index,
extend=extend.both,
color=color.new(color.blue, 0),
style=line.style_dotted,
width=1)
// label at the low of the bar (adjust y if you want it elsewhere)
label.new(
x=bar_index,
y=low,
text="4H Close " + str.format("{0,time,HH:mm}", time),
xloc=xloc.bar_index,
style=label.style_label_down,
color=color.new(color.blue, 85),
textcolor=color.white,
size=size.tiny)
Swing High Low ZigZag v3.0 BajaSwing High/Low Pivot - Designed to help easily spot peaks and bottoms for quicker drawing of trendlines and other drawings as well as alerts without needing to zoom in a whole lot.
Multi-Timeframe RSI + MA - Santosh - BangaloreThis script has a combined 5 and 15 min RSI's together in one indicator. Created using AI.
ZOBAKAFXAI – Price Action Swing SetupThe ZOBAKAFXAI Price Action Swing Setup is a swing trading indicator that helps traders identify clear market structure, trend direction, and potential entry/exit zones using EMA and pivot-based price action.
🔹 Features:
✅ Automatically detects swing highs & swing lows (market structure)
✅ EMA-based trend direction filter (EMA50 / EMA200)
✅ Higher timeframe trend filter option (4H bias on lower TFs)
✅ ATR-based Stop Loss & TP calculation
✅ TP1 / TP2 / TP3 based on Risk-to-Reward ratio
✅ Works on all pairs – Forex, Gold, Crypto, Indices
✅ Clean design – ideal for 4H swing trading
🔹 How to Use:
Trade in the direction of the EMA trend
Buy when price forms a higher low above EMA & breaks previous swing high
Sell when price forms a lower high below EMA & breaks previous swing low
Stop Loss = ATR × selected multiplier
TP levels are auto-calculated based on Risk/Reward (2R, 3R, etc.)
⚠ Disclaimer:
This script is for educational and technical analysis purposes only. It is not financial advice. Always use risk management.
ICMR — Chrono Maker Range (v12.7.1)✅ ICMR — Chrono Maker Range (v12.7) — Description (Balanced Technical + Friendly)
ICMR — Chrono Maker Range is a hybrid market-structure tool designed to help traders clearly identify directional bias and high-quality breakouts using either Higher-Timeframe (HTF) ranges or Initial Balance (IB) ranges. The indicator automatically builds the range, colors candles by market state, and highlights breakout signals using smart filters to reduce noise.
The concept is simple:
Price is either above the range (Bullish), inside the range (Neutral), or below the range (Bearish)—and ICMR keeps this state stable and easy to follow.
🔷 How It Works
ICMR constructs a tradable range using one of two modes:
1) HTF Range Mode
Pulls the High / Low from a higher timeframe (e.g., Daily, 4H).
You can choose:
Previous HTF candle → stable, non-moving range
Current HTF candle → dynamic, expands until HTF close
Perfect for tracking market bias across smaller timeframes.
2) Initial Balance (IB) Mode
Builds the range from the first N minutes of the session (e.g., first 60 minutes).
After the IB period ends, the range locks and becomes the day’s framework.
🔷 Market State Logic
The indicator evaluates where price is relative to the range and classifies the market into:
✅ Bullish → price breaks above the range
⚪ Neutral → price stays inside
❌ Bearish → price breaks below
You can optionally enable an EMA Trend Filter (fast vs slow EMA) to ensure breakouts align with trend direction.
🔷 Smart Signal System
ICMR includes compact signal shapes (triangles/circles), but only when conditions are strong:
✔️ Minimum breakout distance beyond the range
✔️ Candle body must exceed a % of ATR
✔️ Optional volume expansion filter
✔️ Cooldown between signals to avoid over-trading
✔️ Option to trigger signals only on state flips
These filters help keep signals actionable and reduce noise.
🔷 Visual Tools
HTF/IB Range High, Range Low, Midline
Optional shaded box
Segmented extend-right lines that reset when HTF/IB changes
Bar coloring (Bull/Neutral/Bear)
Soft background tint (optional)
Built-in info panel with range & filter stats
Alerts on state flips
Everything is designed to keep the chart clean and readable.
🔷 Presets
The indicator includes two ready-to-use profiles:
Conservative
Stable HTF ranges, confirmed breaks, trend-filtered signals, and fewer alerts.
Aggressive
Dynamic HTF ranges, more flexible break rules, and more frequent signals.
Each preset can be fully customized.
🔷 How Traders Use It
Intraday traders use HTF ranges (D, 4H) for bias on 1m–15m charts.
Day traders use IB to track the opening range and breakout opportunities.
Swing traders use conservative settings to filter false moves.
Scalpers enable aggressive mode with ATR/volume filters.
Final Scalping Strategy - RELAXED ENTRY, jangan gopoh braderEMA Scalping System (MTF) Guide (1HR direction, 15 min entry)
Objective
To capture small, consistent profits by entering trades when 15-minute momentum aligns with the 1-hour trend.
Trades are executed only during high-liquidity London and New York sessions to increase the probability of execution and success.
Strategy Setup
Chart Timeframe (Execution): 15-Minute (M15).
Trend Filter (HTF): 1-Hour (H1) chart data is used for the long-term EMA.
Long-Term Trend Filter: 50-Period EMA (based on H1 data).
Short-Term Momentum Signal: 20-Period EMA (based on M15 data).
Risk
Metric: 14-period ATR for dynamic Stop Loss calculation.
✅ Trading Rules🟢
Long (Buy) Entry Conditions
Session: Must be within the London (0800-1700 GMT) or New York (1300-2200 GMT) sessions.
HTF Trend: Current price must be above the 1-Hour EMA 50.
Momentum Signal: Price crosses above the 15-Minute EMA 20.
Confirmation: The bar immediately following the crossover must close above the 15-Minute EMA 20.
Ent
ry: A market order is executed on the close of the confirmation candle.
🔴 Short (Sell) Entry Conditions
Session: Must be within the London (0800-1700 GMT) or New York (1300-2200 GMT) sessions.
HTF Trend: Current price must be below the 1-Hour EMA 50.
Momentum Signal: Price crosses below the 15-Minute EMA 20.
Confirmation: The bar immediately following the crossover must close below the 15-Minute EMA 20.
Entry: A market order is executed on the close of the confirmation candle.
🛑 Trade Management & Exits
Stop Loss (SL): Placed dynamically at 2.0 times the 14-period ATR distance from the entry candle's low (for Buys) or high (for Sells).
Take Profit (TP): Placed dynamically to achieve a 1.5 Risk-Reward Ratio (RR) (TP distance = 1.5 x SL d
istance).
📊 On-Chart Visuals
Detailed Labels: A box appears on the entry bar showing the action, SL/TP prices, Risk/Reward in Pips, and the exact R:R ratio.
Horizontal Lines: Dashed lines display the calculated SL (Red) and TP (Green) levels while the trade is active.
Background: The chart background is shaded to highlight the active London and New York tradi
ng sessions.
Ichimoku_RSI_MACD_CleanIchimoku + RSI + MACD. A combination of three indicators. The important thing is that they have a BUY or SELL alert, so it makes it easy to understand the numbers.
Ichimoku_RSI_MACDIchimoku cloud + RSI + MACD. Combined indicators with signals, indicating whether it is bullish or bearish (BUY or SELL).
Ichimoku_RSI_MACD_CleanIchimoku + RSI + MACD indicator. It combines these three indicators. It tells whether the trend is bullish or bearish. Multi-timeframe.
RSI + MACD Multi-Timeframe StrategyThis strategy combines the Relative Strength Index (RSI) from the daily timeframe with the Moving Average Convergence Divergence (MACD) from the 4-hour timeframe to generate precise long entry and exit signals.
The system uses a multi-timeframe approach to align longer-term trend conditions with shorter-term momentum shifts — allowing traders to catch dips with confirmation and exit before reversals.
🧠 Strategy Logic
✅ Long Entry Condition:
- RSI on the daily (1D) timeframe is oversold (below your defined threshold)
- MACD on the 4H timeframe crosses above the signal line
→ A long trade is opened when these two align
✅ Long Exit Condition:
- RSI on the daily timeframe is overbought
- MACD on the 4H timeframe crosses below the signal line
→ The long trade is closed when these two conditions are met
💡 This strategy currently supports long entries only. Short logic can be added if needed.
📊 Indicator Components
🔹 RSI (Relative Strength Index):
- A momentum oscillator that measures the speed and magnitude of price changes.
- Helps identify overbought (potential sell) and oversold (potential buy) conditions.
- Applied on the 1D timeframe (by default) to reflect broader market trend or exhaustion levels.
🔹 MACD (Moving Average Convergence Divergence):
- A trend-following momentum indicator based on moving averages.
- The MACD Line (fast EMA - slow EMA) crossing above the Signal Line indicates bullish momentum.
- Used here on the 4-hour timeframe (by default) for shorter-term momentum confirmation.
🔹 Multi-Timeframe (MTF) Logic:
- Uses request.security() to pull higher timeframe data (1D for RSI, 4H for MACD).
- Ensures no repainting, as it only uses closed candles from the higher timeframe.
- Aligns longer-term signals with shorter-term entries, reducing false signals.
📈 Plotting Options
The script includes a plot selector input allowing you to toggle between:
- RSI Plot (with overbought/oversold lines)
- MACD Plot (MACD line and signal line)
- This helps visualize signal conditions clearly on your chart.
🛠 Customization
- RSI & MACD settings are fully configurable
- RSI and MACD timeframes can be adjusted independently
⚠️ Disclaimer
This strategy is provided for educational and informational purposes only.
It is not financial advice or a recommendation to buy or sell any asset.
Past performance does not guarantee future results. Always test strategies in a simulated environment before live use, and consult with a licensed financial advisor for investment decisions.
SR-ZnV2There are many support and resistance scripts out there. I was unable to find one that met all of my needs so I have expanded on the closest ones that I was able to discover. The ability to show persistent S/R levels by volume at various time frames automates much of the process for the user with unique and customizable features, the lastest dated of which are displayed by its time frame support/resistance strength and extend toward the right of the screen where they can be seen more clearly by price .
// Original script is thanks to tommyf1001, synapticex and additional modifications is thanks to Lij_MC. Credit to both of them for most of the logic behind this script. Since then I have made many changes to this script as noted below.
// Changed default S/R lines from plots to lines, and gave option to user to change between solid line, dashed line, or dotted line for both S/R lines.
// Added additional time frame and gave more TF options for TF1 other than current TF. Now you will have 4 time frames to plot S/R zones from.
// Gave user option to easily change line thickness for all S/R lines.
// Made it easier to change colors of S/R lines and zones by consolidating the options under settings (rather than under style).
// Added extensions to active SR Zones to extend all the way right.
// Added option to extend or not extend the previous S/R zones up to next S/R zone.
// Added optional time frame labels to active S/R zones, with left and right options as well as option to adjust how far to the right label is set.
// Fixed issue where the higher time frame S/R zone was not properly starting from the high/low of fractal. Now any higher time frame S/R will begin exactly at the High/Low points.
// Added to script a function that will prevent S/R zones from lower time frames displaying while on a higher time frame. This helps clean up the chart quite a bit.
// Created arrays for each time frame's lines and labels so that the number of S/R zones can be controlled for each time frame and limit memory consumption.
// New alert options added and customized alert messages.
Session SFPThis script is a powerful, multi-timeframe tool designed to identify high-probability Swing Failure Patterns (SFPs) at key historical levels.
Instead of looking for traditional "pivots" (like a 3-bar swing), this indicator finds the actual high and low of a previous higher-timeframe (HTF) bar (e.g., the previous weekly high/low) and waits for a lower-timeframe (LTF) candle to sweep that level and fail.
This allows you to spot liquidity sweeps and potential reversals at significant, structural price points.
How It Works
The indicator's logic is based on a simple, two-timeframe process:
Level Detection: First, it finds the high and low of the previous bar on your chosen "Level Timeframe" (e.g., W for Weekly, D for Daily). It plots these as small 'x' markers on your chart.
SFP Identification: Second, it watches price action on a lower "SFP Timeframe" (e.g., 240 for 4H). A potential SFP is identified when a candle's wick sweeps above a key high or below a key low.
Confirmation: The SFP is only confirmed after the SFP candle closes back below the high (for a bearish SFP) or above the low (for a bullish SFP). It then waits for a set number of "Confirmation Bars" to pass. If price does not close back over the level during this window, the signal is locked in, and a label is printed.
How to Use (Key Settings)
Level Timeframe (Most Important): This is the timeframe for the levels you want to trade. Set this to W to find SFPs of the previous weekly high/low. Set it to D to find SFPs of the previous daily high/low.
SFP Timeframe: This is the timeframe you want to use to find the SFP candle itself. This should be lower than your Level Timeframe (e.g., 240 or 60).
Level Lookback: This controls how many old levels the script will track. A value of 10 on a W Level Timeframe will track the highs and lows of the last 10 weeks.
Confirmation Bars: This is your "patience" filter. It's the number of SFP Timeframe bars that must close without reclaiming the level after the SFP. A value of 0 will confirm the SFP immediately on the candle's close.
Enable Wick % Filter: A quality filter. If checked, this ensures the SFP candle's rejection wick is a significant percentage of the candle's total range.
Chart Visuals
'x' Markers: These are the historical highs and lows from your "Level Timeframe". You can turn these on or off in the settings.
SFP Label: When an SFP is fully confirmed, a label (Bearish SFP or Bullish SFP) will appear, detailing the level that was swept and the timeframes used.
SFP Line: A solid horizontal line is drawn from the 'x' marker to the SFP candle to highlight the sweep.
Colored Boxes (Optional): If you are viewing a chart timeframe lower than your "SFP Timeframe", you can enable background boxes to highlight the exact SFP candle and its confirmation bars.






















