Close alertingThis script generates alerts when the current candle CLOSES ABOVE the previous candle's HIGH, or CLOSES BELOW the previous candle's LOW.
✅ Works on ANY timeframe you are viewing (1m, 5m, 15m, 1h, 4h, etc.)
✅ Alerts can be created:
- "Close Above Previous High"
- "Close Below Previous Low"
The script is lightweight and works purely on current chart timeframe. No need to adjust or configure — just add to chart and set Alerts.
Enjoy and safe trading! 🚀
Candlestick analysis
Outside Bar Strategy with Multiple Entry ModelsOutside Bar Strategy with Multiple Entry Models
This Pine Script strategy implements a versatile trading system based on the Outside Bar pattern, offering three distinct entry models: Close Entry, High/Low Entry, and Midpoint Entry. Designed for traders seeking flexibility, the strategy includes customizable risk/reward ratios, an optional EMA trend filter, and enhanced visualization with line fills.
Key Features:
Entry Models:
Close Entry: Enters a long position when the current candle closes above the high of the previous outside bullish bar . For short, it enters when the candle closes below the low of the previous outside bearish bar.
High/Low Entry: Enters a long position when the price crosses above the high of the previous outside bullish bar . For short, it enters when the price crosses below the low of the previous outside bearish bar .
Midpoint Entry: Places a limit order at the midpoint of the previous outside bar, entering when the price reaches this level.
EMA Trend Filter: Optionally filters signals based on the alignment of EMAs (7 > 25 > 99 > 200 for long, 7 < 25 < 99 < 200 for short). Can be toggled via the Use EMA Filter input.
Risk/Reward Management: Configurable risk/reward ratio (default 2.0) with stop-loss set at the low/high of the outside bar and take-profit calculated based on the bar's range multiplied by the ratio.
Visualization:
Lines for entry, stop-loss, and take-profit levels (dashed for active trades, solid for pending Midpoint Entry orders).
Line fills: Red between entry and stop-loss, green between entry and take-profit.
Previous lines and fills persist on the chart for historical reference (line deletion disabled).
Pending limit orders for Midpoint Entry extend dynamically to the right until triggered or canceled.
Information Table: Displays real-time trade details (entry model, RR ratio, open trade status, entry/stop/take-profit levels, profit/loss percentage) and strategy statistics (success rate, total trades). For Midpoint Entry, pending order details are shown.
Inputs:
Entry Model: Choose between Close Entry, High/Low Entry, or Midpoint Entry (default: Close Entry).
Risk/Reward Ratio: Set the RR ratio (default: 2.0, step: 0.5).
Use EMA Filter: Enable/disable the EMA trend filter (default: true).
Line Colors and Style: Customize colors for entry, stop-loss, and take-profit lines, and select line style (solid or dashed).
Table Settings: Adjust table text color, size (small/normal/large), and position (right top/middle/bottom).
Disclaimer: This strategy is for educational purposes only. Backtest thoroughly and use at your own risk. Past performance is not indicative of future results.
SMT Time Windows# SMT Time Windows
SMT Time Windows is a Pine Script v6 indicator by **Originalsauce1** that automates ICT-style Smart Money Technique (SMT) divergences between two correlated symbols. It detects bullish and bearish SMT divergences using swing highs/lows (pivot logic) across both instruments. Bullish SMT occurs when one symbol makes a higher low while the other forms a lower low; bearish SMT is when one symbol prints a higher high while the other records a lower high. These divergences highlight imbalances in correlated markets and can signal potential momentum shifts. SMT Time Windows plots clear labels for each divergence event and offers comprehensive filtering by custom time sessions.
## Key Features
* **Time Window Filters:** Define up to three custom time windows (e.g. 2:00–4:00 AM, 6:00–8:30 AM, 9:00–10:30 AM) with individual enable/disable toggles. Active windows can be highlighted on the chart with optional background shading for visual cueing.
* **Timezone Support:** User-selectable time zone ensures that time windows align correctly across different session schedules (global session alignment).
* **Adjustable Detection:** Set the pivot **length** (sensitivity of swing detection) and the signal **timeframe**. This pivot-based approach confirms valid swing highs/lows before marking divergences.
* **Clean SMT Labels:** The indicator plots “Bullish SMT” or “Bearish SMT” labels at the relevant pivots, clearly marking each divergence event. Label color and style are customizable, providing a clean visual cue of SMT signals.
* **Chart Highlights:** Optionally shade the chart background during active time windows, making it easy to see when the session filter is in effect.
* **Session Status Table:** An on-chart table shows which time windows are currently active (e.g. shows “Open”/“Closed” status). This real-time session table provides live feedback similar to other TradingView session trackers.
* **Comparison Symbol & Alerts:** Optionally overlay the comparison symbol on your chart. Built-in alerts notify you when bullish or bearish SMT divergences occur, allowing timely review.
## How It Works
SMT Time Windows checks for divergences between two positively correlated markets (for example, equity futures like S\&P 500 (ES) vs Nasdaq 100 (NQ), or FX pairs like US Dollar Index vs EUR/USD). When one instrument’s swing high/low is not confirmed by the other, it flags this as an SMT event. For instance, a **Bearish SMT** is identified when one symbol makes a higher high but the other fails to keep pace (prints a lower high); a **Bullish SMT** is when one symbol’s low is higher while the other’s low is lower. These divergences are interpreted as signs of uneven buying/selling pressure and can precede shifts in momentum.
The indicator is designed for use with correlated markets (e.g. ES/NQ, DXY/EURUSD, etc.) to enhance your market structure analysis. It is not a “set and forget” signal but a tool to spot potential imbalances. Use SMT Time Windows alongside your discretionary analysis and higher-timeframe context for best results.
## Disclaimer
This script is provided *“for educational and informational purposes only”*. It is **not** financial or trading advice. Always perform your own analysis and risk management before making trading decisions.
*Created by Originalsauce1. For educational and informational purposes only.*
EMA 50/200 Pullback + RSI/SMA RSI
Strategy Description: EMA 50/200 Pullback + RSI/SMA RSI
1. Trend Identification with EMA:
Uses two Exponential Moving Averages (EMA): a fast EMA (default 50) and a slow EMA (default 200).
When the fast EMA crosses above the slow EMA (bullish crossover), an uptrend is identified.
When the fast EMA crosses below the slow EMA (bearish crossover), a downtrend is identified.
The lengths of both EMAs are fully customizable.
2. EMA Distance Condition:
Signals are only valid when the absolute percentage distance between the two EMAs is within a user-defined range (default: 0.4% to 1%).
This helps filter out weak signals when the EMAs are too close or too far apart.
3. Pullback Condition:
After a new trend is detected (EMA crossover), the strategy waits for the price to pull back to touch or cross the fast EMA (EMA 50).
This ensures entries are not taken immediately at the crossover, but after a retracement to a dynamic support/resistance area.
4. RSI Confirmation:
Uses the RSI indicator (default 14) and its Simple Moving Average (SMA RSI, default 14).
Buy signal: RSI crosses above its SMA.
Sell signal: RSI crosses below its SMA.
Both RSI and SMA RSI lengths are fully customizable.
5. Entry Rules:
The indicator only gives the first buy/sell signal after each EMA crossover (start of a new trend), and will not repeat signals until the next EMA crossover.
Buy signal:
Fast EMA crosses above slow EMA
EMA distance is within the valid range
Price pulls back to the fast EMA
RSI crosses above its SMA
Sell signal:
Fast EMA crosses below slow EMA
EMA distance is within the valid range
Price pulls back to the fast EMA
RSI crosses below its SMA
6. Customization:
All parameters (EMA lengths, RSI length, SMA RSI length, EMA distance range) can be adjusted in the indicator’s settings.
Note:
This is a signal indicator, not a complete trading strategy. For real trading, always combine with risk management and additional confirmations.
Third Candle MarkerTitel: Third Candle Marker – Highlights Trend Continuation
Beschreibung:
This script highlights potential trend continuation setups by marking the third candle after two consecutive candles of the same direction.
If the previous two candles were bullish (green), the third candle is colored green.
If the previous two candles were bearish (red), the third candle is colored red.
A white color indicates that no clear trend was detected in the previous two candles.
Additionally, the script plots small triangle markers:
Green upward triangle below the bar if the last two candles were bullish.
Red downward triangle above the bar if the last two candles were bearish.
Use this tool to visually identify potential continuation signals in trending markets. Suitable for all timeframes.
Note: This script does not generate buy/sell signals; it is meant to assist in visual trend recognition.
ELFIEDT RSI + Reversion📘 Script Title:
ELFIEDT RSI + Reversion
📄 Description:
This script identifies potential mean reversion opportunities by combining price volatility, momentum, and volume confirmation. It is designed to help traders detect moments where price may be temporarily overextended, increasing the likelihood of a short-term reversal or pullback.
The approach integrates three core components:
🔹 1. Volatility Envelope
The strategy uses a dynamic banding system based on a statistical measure of price deviation from its recent average. When price closes significantly outside this envelope, it signals a potential extreme movement, suggesting conditions are ripe for a reversion to the mean.
🔹 2. Momentum Confirmation via RSI
To enhance reliability, momentum is evaluated using the Relative Strength Index (RSI). Only when RSI confirms that price action is either overbought or oversold does the script consider a reversal more probable.
🔹 3. Volume Spike Filter
The script incorporates a volume confirmation layer to avoid false signals. A signal only triggers if there is an unusually high level of trading activity, helping to identify areas of market interest and possible exhaustion.
🔔 Signal Triggers & Alerts:
Upside Reversion Zone:
When price moves significantly below the volatility band, RSI shows oversold conditions, and volume confirms abnormal activity. The chart highlights this with a green label and a green-colored bar.
Downside Reversion Zone:
When price moves significantly above the volatility band, RSI shows overbought conditions, and volume confirms a spike. This is marked by a red label and a red-colored bar.
Built-in Alerts:
The script includes alert conditions that notify you when either scenario occurs. These can be used for real-time monitoring or automation.
📊 Visual Features:
Colored bars and labels show potential reversion areas.
The chart plots a trend-following baseline with dynamic upper and lower bands to visualize volatility extremes.
Up and Down zones are clearly marked for easier decision-making.
⚠️ Disclaimer:
This script is intended for educational and informational purposes only. It does not constitute financial advice, trading signals, or guarantees of future results. Users should perform their own due diligence before making trading decisions.
Worldwide Sessions and Open Range BreakoutThis script shows when the various normal market hours for each of the major worldwide markets (Asia, New York, and London). It also draws a line on the opening range for each of these market sessions. The opening range defaults to the first 15 minutes of the session, but this can be customized.
This script does automatically handle the session times regardless of your time zone or what time frame you are on. No need to set anything! This probably can't handle non-normal trading days, such as partial days.
This script is made for futures, but would likely work for other markets, like Forex.
LRHA Trend Shift DetectorLRHA Trend Shift Detector (TSD)
The LRHA Trend Shift Detector is an advanced momentum exhaustion indicator that identifies potential trend reversals and changes by analyzing Linear Regression Heikin Ashi (LRHA) candle patterns. TSD focuses on detecting when strong directional moves begin to lose momentum.
🔬 Methodology
The indicator employs a three-stage detection process:
LRHA Calculation: Applies linear regression smoothing to Heikin Ashi candles, creating ultra-smooth trend-following candles that filter out market noise
Extended Move Detection: Identifies sustained directional moves by counting consecutive bullish or bearish LRHA candles
Momentum Exhaustion Analysis: Monitors for significant changes in candle size compared to recent averages
When an extended move shows clear signs of momentum exhaustion, the indicator signals a potential trend shift with red dots plotted above or below your candlesticks.
⚙️ Parameters
Core Settings
LRHA Length (11): Linear regression period for smoothing calculations. Lower values = more responsive, higher values = smoother trends.
Minimum Trend Bars (4): Consecutive candles required to establish an "extended move." Higher number detects longer term trend changes.
Exhaustion Bars (3): Number of consecutively smaller candles needed to signal exhaustion. Lower is more sensitive.
Size Reduction Threshold (40%): Percentage decrease in candle size to qualify as "exhaustion." Lower is more sensitive.
Trend Trading
Pullback Entries: Identify exhaustion in counter-trend moves for trend continuation
Exit Strategy: Recognize when main trend momentum is fading
Position Sizing: Reduce size when seeing exhaustion in your direction
🎛️ Optimization Tips
For More Signals (Aggressive)
- Decrease LRHA Length (7-9)
- Reduce Minimum Trend Bars (2-3)
- Lower Size Reduction Threshold (25-35%)
For Higher Quality (Conservative)
- Increase LRHA Length (13-18)
- Raise Minimum Trend Bars (5-6)
- Higher Size Reduction Threshold (45-55%)
⚠️ Important Notes⚠️
- **Not a Complete Strategy**: Use as confluence with other analysis methods
- **Market Context Matters**: Consider overall trend direction and key support/resistance levels
- **Risk Management Essential**: Always use proper position sizing and stop losses
- **Backtest First**: Optimize parameters for your specific trading style and instruments
Candle Price % ChangeIf you are using candle bottoms/tops for your stop-loss, this indicator allows you to see the price percentage difference between the current price and the high or low of a candle. This eliminates the need to manually measure the candle every time you need to determine your stop-loss %. It's particularly useful when scalping on small time frames like the 1m.
1 Candle SMT Divergence (Nephew_Sam_)📊 1 Candle SMT Divergence Detector
3-Way Smart Money Theory (SMT) Divergence Scanner for Multi-Symbol Analysis
This indicator identifies 1-candle SMT divergences by comparing one primary symbol against up to 2 correlation symbols across multiple timeframes simultaneously. Perfect for detecting institutional smart money moves and market inefficiencies.
🎯 Key Features:
3-Way Comparison: Compare 1 "From" symbol vs 2 "To" symbols (configurable)
5 Symbol Pairs: Pre-configure up to 5 different symbol combinations
Multi-Timeframe: Scan 5 timeframes simultaneously (Chart, 1H, 4H, Daily, Weekly)
Smart Filtering: Only displays timeframes equal to or higher than your chart
Real-Time Detection: Compares current vs previous candle highs/lows
Visual Alerts: Clean table display with color-coded divergence status
Line Drawing: Optional trend lines connecting divergence points
Replay Compatible: Works with TradingView's replay mode
📈 How It Works:
Detects when one symbol makes a higher high while correlated symbols make lower highs (and vice versa for lows). This creates SMT divergence signals that often precede significant market moves.
Multi Asset Comparative📊 Multi Asset Comparative – Compare Baskets of Cryptos Visually
This indicator allows you to compare the performance of two groups of cryptocurrencies (or any assets) over time, using a clean and intuitive chart.
Instead of looking at each asset separately, this tool gives you a global view by showing how one group performs relative to another — all displayed in the form of candlesticks.
🧠 What This Tool Is For
Markets constantly shift, and capital rotates between sectors or tokens. This script helps you visually track those shifts by answering a key question:
"Is this group of assets getting stronger or weaker compared to another group?"
For example:
Compare altcoins vs Bitcoin
Track the DeFi sector vs Ethereum
Analyze your custom portfolio vs the market
Spot moments when money flows from majors to smaller caps, or vice versa
🧩 How It Works (Simplified)
You select two groups of assets:
Group 1 (up to 20 assets) — the one you want to analyze
Group 2 (up to 5 assets) — your comparison baseline
The indicator then creates a single line of candles that represents the performance of Group 1 compared to Group 2. If the candles go up, it means Group 1 is gaining strength over Group 2. If the candles go down, it's losing ground.
This lets you see market dynamics in one glance, instead of switching charts or running calculations manually.
🚀 Why It's Unique
Unlike many indicators that just show data from one asset, this one provides a bird's-eye view of multiple assets at once — condensed into a simple visual ratio.
It’s:
Customizable (you choose the assets)
Visual and intuitive (no need to interpret tables or formulas)
Actionable (helps with trend confirmation, macro views, and market rotation)
Whether you're a swing trader, a macro analyst, or building your own strategy, this tool can help you spot opportunities hidden in plain sight.
✅ How to Use It
Choose your two groups of assets (e.g., altcoins vs BTC/ETH)
Watch the direction of the candles:
Uptrend = Group 1 gaining strength over Group 2
Downtrend = Group 1 weakening
Use it to confirm market shifts, anticipate rotations, or analyze sector strength
Candlestick Body and Wick Midpoints [Dire]Summary
This indicator provides a deeper look into intra-bar price action by plotting the precise halfway point of each candlestick's body, top wick, and bottom wick. It renders three distinct, color-coded horizontal lines on each of the most recent candles, helping traders identify hidden micro-levels of interest.
How It Works
For each candlestick, the indicator calculates and plots:
Top Wick Midpoint: The median price of the sell-off (or profit-taking) range.
Body Midpoint: The equilibrium or "fair price" point between the open and close.
Bottom Wick Midpoint: The median price of the buy-up (or support) range.
How to Use
These levels can serve as micro-pivots or points of interest for price action analysis. A return to a previous wick's midpoint may signal a potential reaction. Observing how these levels align over several bars can reveal subtle areas of price consensus or rejection that are not obvious from standard candle charts.
Customization
Lookback Period: Easily adjust the number of recent candles to analyze via the "Inputs" tab.
Colors: The color for each of the three lines (Top Wick, Body, and Bottom Wick) can be fully customized in the "Style" tab of the indicator settings.
Zuper Custom Index (Up to 40 Stocks)Description:
This indicator empowers you to create your own custom index from up to 40 stocks, with full control over the weight of each component. Whether you want to track a sector, a basket of favourites, or build your own benchmark, this tool gives you the flexibility and visualisation you need—all directly on your TradingView chart.
Key Features:
Supports Up to 40 Stocks:
Combine up to 40 different symbols into a single, custom index.
Flexible Weighting:
Assign a custom percentage weight to each stock. The script automatically normalizes your weights to ensure the index always sums to 100%.
Candlestick or Line Chart Display:
Choose between a candlestick chart (showing open, high, low, close of the index) or a simple line chart (close only) for your custom index.
Dynamic Rebalancing:
Change weights or symbols at any time; the index recalculates instantly.
Easy Symbol Input:
Add or remove stocks with simple input fields—no code editing required.
Perfect for Sector Analysis & Custom Baskets:
Track sectors, strategies, or any group of assets you care about.
How to Use:
Add the Indicator to Your Chart.
Enter Up to 40 Stock Symbols in the input fields.
Assign Weights (as percentages) to each symbol.
If all weights are left at zero, the index will use equal weighting.
If you enter custom weights, they will be automatically normalized.
Choose Your Display Type:
Select between a candlestick or line chart for your index.
Analyze Your Custom Index!
Use Cases:
Build your own sector or thematic index.
Track a custom ETF or fund composition.
Compare your portfolio’s performance as a single chart.
Visualize the impact of different weightings on a basket of stocks.
Notes:
The indicator uses TradingView’s latest Pine Script version for maximum performance and flexibility.
You can use any valid TradingView symbol (stocks, ETFs, indices, etc.).
For best results, ensure all symbols are available on your selected timeframe and exchange.
Create, visualize, and analyze your own custom indices—right on your TradingView chart!
Bullish & Bearish Three Line Strike ProHello Traders!
Overview
The **Bullish & Bearish Three Line Strike Pro** indicator pin-points one of the most decisive four-candle reversal formations on any market or timeframe. Whether you trade ranges or follow strong trends, this tool spots exhaustion and offers clear entry and exit guidance.
Key Features :
Precise pattern detection: Detects genuine Bullish and Bearish Three Line Strike setups, screening out look-alikes that fail to perform on the market.
Trend filter (optional): Aligns signals with a user-defined Simple Moving Average (SMA) so you can choose to trade only with, or deliberately against, the prevailing trend.
Visual clarity: Highlights Bullish and Bearish Three Line Strike patterns with customizable colors and shapes, making them easy to spot on the chart.
Filtered-signal display: Let the script reveal which patterns were rejected by the trend filter — an invaluable learning aid.
Bullish Three Line Strike
Three consecutive bearish candles that step lower.
The fourth candle opens below (or at) the last close, then charges upward engulfing all three prior bodies.
Bearish Three Line Strike
Three consecutive bullish candles that step higher.
The fourth candle opens above (or at) the last close, then plunges below engulfing all three prior bodies.
What makes this indicator unique
Precise pattern detection: Detects genuine Bullish and Bearish Three Line Strike setups, screening out look-alikes that fail to perform on the market.
Trend filter (optional): Aligns signals with a user-defined Simple Moving Average (SMA) so you can choose to trade only with, or deliberately against, the prevailing trend.
Visual clarity: Highlights Bullish and Bearish Three Line Strike patterns with customizable colors and shapes, making them easy to spot on the chart.
Filtered-signal display: Let the script reveal which patterns were rejected by the trend filter — an invaluable learning aid.
Nuanced candle analytics: Goes beyond simple price action by considering multiple factors such as candle body ratios, wick lengths, and relative positions to previous candles.
Adaptive learning mode: Display rejected setups to reverse-engineer the logic and refine your discretionary skills.
One-glance decision making: Unified color scheme and label styling make patterns pop, even on cluttered layouts.
How to Trade with this Indicator
Use Three Line Strike Pro to fade exhaustion or re-enter a trend after a healthy pull-back.
Bullish opportunities: Watch for light blue-colored strike candles as potential entry points.
Bearish opportunities: Look for orange-colored strike candles as potential entry points.
Entry: Open the position at the next bar’s open once the strike candle closes.
Stop-loss: 2 ticks beyond the extreme of the complete four-candle pattern.
Aggressive stop-loss: For exceptionally strong strike candles (tiny opposite wick, close near extreme) trail only 2 ticks beyond the strike candle itself.
Take-profit: Aim for 2R (3R for aggressive traders), or trail behind higher lows / lower highs.
Trend Alignment
For a conservative approach, enable "Use Trend Filter" and take only those strikes that agree with the SMA slope. The SMA line is color-coded—lime for up, red for down, yellow for flat—to help you confirm bias at a glance.
Tip: If you want the candle coloring to sit on top of all other studies, drag the indicator to the top of your Object Tree.
Multi-Timeline 1.0Multi-TimeLines 1.0 - Comprehensive Description
WHAT IT DOES:
This indicator creates dynamic horizontal support/resistance lines based on opening prices captured at user-defined New York times. Unlike static horizontal lines, these levels automatically appear and disappear based on sophisticated session logic, providing traders with time-sensitive reference levels that adapt to market sessions.
HOW IT WORKS - TECHNICAL IMPLEMENTATION:
1.
Timezone Conversion Engine:
The script uses Pine Script's "America/New_York" timezone functions to ensure all time calculations are based on NY time, regardless of the user's chart timezone. This eliminates confusion and provides consistent behavior across global markets.
2.
Dual-Category Time Classification System:
The indicator employs a unique two-category classification system:
Category A (16:00-23:59 NY): Evening times that extend overnight until next day 15:59 NY
Category B (00:00-15:59 NY): Day times that extend until same day 15:59 NY
This classification handles the complex logic of overnight sessions and prevents lines from incorrectly resetting at midnight for evening times.
3. Price Capture Mechanism:
Uses precise time-hit detection with backup systems for edge cases (especially midnight 00:00). When a specified time occurs, the script captures the bar's opening price and stores it in persistent variables using Pine Script's var declarations.
4. Session-Aware Display Logic:
Lines only appear during their designated "display windows" - periods when the captured price level is relevant. The script uses conditional plotting with plot.style_linebr to create clean breaks when lines are inactive.
5. Smart Reset System:
Different reset behaviors based on time classification:
Category A times persist across midnight (for overnight analysis)
Category B times reset on day changes (except 00:00 which captures AT day change)
Automatic cleanup when display windows close
ORIGINALITY & UNIQUE FEATURES:
1. Overnight Session Handling:
Unlike basic horizontal line tools, this script properly handles overnight spans for evening times, making it invaluable for analyzing gaps and overnight price action.
2. Automatic Session Management:
No manual line drawing required - the script automatically manages when lines appear/disappear based on NY market sessions (15:59 close, 18:00 after-hours start).
3. Time-Window Display Logic:
Lines only show during relevant periods, reducing chart clutter and focusing attention on currently active levels.
TRADING CONCEPTS & APPLICATIONS:
1. Session-Based Analysis:
Capture opening prices at key session times:
00:00 NY: Sydney/Asian session start
03:00 NY: London pre-market
08:00 NY: London session open
09:30 NY: NYSE opening bell
18:00 NY: After-hours start
2. Gap Analysis:
Evening times (20:00-23:59) that extend overnight are particularly useful for:
Identifying potential gap-fill levels
Tracking overnight high/low breaks
Setting reference points for next-day trading
3. Support/Resistance Framework:
Opening prices at significant times often act as:
Intraday support/resistance levels
Reference points for breakout/breakdown analysis
Pivot levels for mean reversion strategies
HOW TO USE:
1. Time Input:
Enter times in "HH:MM" format using 24-hour NY time:
"09:30" for NYSE open
"15:30" for late-day reference
"20:00" for evening level (extends overnight)
2. Line Behavior:
Blue/Green/Cyan/Red lines: Your custom times
Yellow line: After-hours day open (18:00 NY start)
Lines appear with breaks during inactive periods
3. Strategic Setup:
Use 2-3 key session times for your trading style
Combine morning times (immediate reference) with evening times (overnight analysis)
Toggle after-hours line based on your market focus
CALCULATION METHOD:
The script uses direct opening price capture (no smoothing or averaging) at precise time hits, ensuring the most accurate representation of actual market levels at specified times. This raw price approach maintains the integrity of actual market opening prices rather than manipulated or calculated values.
This method is particularly effective because opening prices at significant times often represent institutional order flow and can act as magnetic levels throughout subsequent sessions.
Multi-Timeframe Price Action AnalysisMulti-Timeframe Price Action Analysis
This indicator analyzes price action across multiple timeframes to determine bullish and bearish signals. It creates a dashboard showing how price interacts with previous candles' highs and lows.
Features
- Analyzes 4 customizable timeframes simultaneously
- Detects when price:
-- Grabs lows and comes back inside (bullish)
-- Grabs highs and comes back inside (bearish)
-- Grabs both highs and lows
-- Moves above previous high
-- Moves below previous low
-- Calculates bullish/bearish percentages for each timeframe
-- Visual dashboard with color-coded signals
Adjustable confirmation settings
-- Settings
-- Customize timeframes (default: 15min, 1H, 4H, D)
-- Toggle confirmation waiting
-- Set number of confirmation candles
This is a very rudimentary version.. I will make a more robust version soon
For it to be considered a "grab" the current price must be within the previous candle's range..
This also does not focus on candle closures just highs and lows
Also note that this is a little aggressive in that it does not require a bullish close for example to be considered bullish, a bearish close inside the previous candle is considered valid, this is to handle the morning stars that have a slightly bearish close in middle candle etc.. obviously do not rely on this indicator.. look at the price action and determine if you think its worth taking..
Same goes for bullish closes inside previous candle after grabbing highs..
Mech Model - monkertrades x {DeadCatCode}Mech Model - Multi-Timeframe ICT Liquidity & iFVG Trading System
Detailed Methodology & Underlying Concepts
This indicator automates the Inner Circle Trader (ICT) methodology by identifying institutional order flow through liquidity sweeps and inverse Fair Value Gap (iFVG) formations across multiple timeframes.
Core Logic & Calculations
1. Liquidity Level Identification The script tracks four key liquidity pools:
NY session dynamic LQ detection everytime it sweeps high/low Calculates high/low from 18:00-09:30 EST
Session Extremes: Monitors Asia (20:00-23:00), London (02:00-05:00) session highs/lows
Previous Day Levels: Requests PDH/PDL using request.security() with daily timeframe
Dynamic Updates: Liquidity levels update in real-time when swept during NY session
2. Market Structure Analysis
Uses pivot points logic to understand HH.HL parameters
Classifies pivots as Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), Lower Lows (LL)
Stores last 50 pivots for reference in custom PivotPoint type arrays, background calculations to identfy price legs after sweep
3. Fair Value Gap Detection
Bullish FVG: When low > high (gap between candles)
Bearish FVG: When high < low
Stores FVG data including top, bottom, direction, and bar index
Tracks "wicking" - when price touches but doesn't close through FVG
4. Price Leg Formation (Key Innovation) When liquidity is swept:
Bull Leg: Forms after low sweep, connects previous swing high to sweep point
Bear Leg: Forms after high sweep, connects previous swing low to sweep point
Leg remains "active" and extends with continued liquidity breaks
5. iFVG Signal Generation The signal fires when:
An active price leg exists (post-liquidity sweep)
An FVG within the leg range gets "closed through" (not just wicked)
This creates an inverse FVG (iFVG) - the key entry signal
Signal direction matches leg type (bull leg + bull iFVG = buy signal)
6. Multi-Timeframe Synchronization
Uses request.security() to run detection logic on 1m, 2m, 3m, 4m, 5m
All signals display on 1-minute chart via status table
How Traders Use This
Setup Phase: Script identifies when price sweeps overnight/session liquidity
Confirmation: Waits for FVG within the "price leg" to be violated
Entry Signal: iFVG formation provides precise entry point
Target: Typically the next unmitigated FVG on 5-minute timeframe
Key Parameters Users Can Adjust
Session times for different market hours
Visual elements (colors, transparency, line styles)
Timeframe selection (enable/disable 1m-5m)
Wick grace period (0-100 bars)
Signal display mode (triangles vs horizontal lines)
This script essentially automates the manual process ICT traders use to identify institutional footprints through liquidity raids and subsequent rebalancing via FVG mitigation.
Candle Ribbon [UkutaLabs]The Candle Ribbon is a powerful trading tool that creates a strong ribbon that indicates market strength. This ribbon is created using three moving averages that use the candle values (high, low, open and close) as its input values.
The center most MA will also be colored green, red or grey depending on whether or not its direction aligns with current market strength.
The outer band lines act as range indicators, plotted above and below the center ribbon, which represent volatility boundaries for price action.
█ USAGE
The Candle Ribbon is created using a series of three moving averages that uses values from the candle as its inputs. The user has the ability to select whether the moving averages are EMAs or SMAs, as well as the ability to control the period of the moving averages.
If the moving average calculated using the Candle Open is below the moving average calculated using the Candle Close, the ribbon will be colored green, indicating a bullish trend. If the moving average calculated using the Candle Open is above the moving average calculated using the Candle Open, the ribbon will be colored red, indicating a bearish trend.
This indicator also uses a series of hidden EMAs to determine market strength. If these EMAs do not align with the direction of the Candle Ribbon, the middle MA will instead be colored grey, indicating uncertainty in the market, as well as a possible reversal.
█ SETTINGS
Configuration
• Moving Average Type: Determines whether or not the Candle Moving Averages will be drawn as EMAs or SMAs.
• Moving Average Period: Determines the period of the Candle Moving Averages.
Moving Average
• Moving Average Input: Determines the input values for the hidden EMAs.
CHoCH + BOS Detector (con líneas)este indicador sirve para simplificar las entrada scalper en el oro
Absolute Range 1/2 - Histogram Style - Alternating 7 BarsAbsolute Range 1/2 - Histogram Style with Alternating 7-Bar Colors
This indicator calculates the 9-period simple moving average of the daily range (high minus low) and plots half of this value as a histogram and a line for easy visual tracking of range volatility.
To enhance readability, the histogram bars alternate colors every 7 bars — grouping the bars in blocks of seven with distinct colors. This makes it easier to observe range patterns and changes over time.
Features:
Smooths range data using SMA(9)
Plots half the average range as histogram bars and a line overlay
Alternates histogram bar colors every 7 bars dynamically
Clean, minimalistic design suitable for identifying volatility trends
Engulfing Candles (ATR-Based) with Volume SpikeOverview:
This script is designed to detect high-probability bullish and bearish engulfing patterns — but with a twist: it filters them through ATR-based volatility and confirms strength with volume spikes, all while offering optional trend filtering. It's built for traders who want more than just surface-level candle patterns — it's for those who want contextual confirmation before entering a trade.
What Makes It Different:
Most engulfing candle indicators simply match two candle shapes. This script goes deeper by:
Measuring candle body size relative to recent volatility (via ATR).
Checking for volume confirmation using a dynamic spike threshold.
Filtering based on trend context using SMA-based structure detection.
This tri-layered logic aims to avoid false positives and give traders cleaner, more actionable entries that align with momentum.
Core Concepts:
1. Trend Detection (Optional)
You can choose between two structural filters:
SMA50 only: Looks for price above or below the 50-period SMA to define trend direction.
SMA50 + SMA200 alignment: A stricter rule requiring both fast and slow SMAs to confirm a trend.
Or turn off trend filtering entirely (No detection).
This helps ensure engulfing setups appear in line with the broader trend, increasing the likelihood of continuation.
2. ATR-Filtered Candle Bodies
To eliminate noise:
A candle is only considered a valid engulfing candle if it has a body larger than 1.5× ATR(14).
The previous candle must be a small-bodied candle (less than 0.5× ATR), creating a clear visual engulfing structure.
This method dynamically adjusts for market volatility, so setups are meaningful even during periods of compression or expansion.
3. Volume Spike Confirmation
Not all engulfing candles lead to follow-through. That’s why this script includes a volume confirmation filter:
A 20-period moving average of volume is calculated.
A spike is flagged if the current bar’s volume exceeds 1.5× this average (adjustable).
Patterns with this confirmation are marked with a “*” label (e.g., BU* or BE*) to distinguish volume-backed setups from weaker ones.
Visuals & Alerts:
BU = Bullish engulfing without volume spike
BU* = Bullish engulfing with volume spike
BE = Bearish engulfing without volume spike
BE* = Bearish engulfing with volume spike
A white background highlight is shown behind candles with volume-confirmed engulfing patterns.
Alerts are available for BU* and BE* so you can automate your edge.
How to Use:
Add the indicator to any chart.
Choose your trend filter from the settings panel.
Watch for BU* and BE* labels — these are your highest-conviction signals.
Optional: Combine with support/resistance, Fibonacci zones, or MTF confirmation to refine entries.
Use the included alerts to receive real-time push/email notifications when patterns emerge.
Performance Note:
I’ve found this script to be fairly good when applied to the 1-hour charts of the companies in the US100. The combination of ATR-based filtering and volume confirmation appears to provide clear, high-quality setups with good follow-through potential.
By blending candle patterns, volatility filtering, volume confirmation, and trend context, this script aims to filter out weak signals and highlight the most statistically significant engulfing opportunities.
Flexible Reversal DetectorFlexible Reversal Detector
An advanced, fully customizable analytical tool designed to identify local trend reversal zones based on candlestick formations. Users have full control over all logic parameters, making it adaptable to different trading styles and preferences.
Key Features
Adjustable maximum pattern length (number of candles)
Customizable body size ratios for initial, middle, and final candles
Configurable minimum price movement (in %) required before a pattern is considered valid
Colored horizontal lines showing the full length of the pattern – helpful in identifying structure, potential support/resistance zones
Optional volume filter – the volume of the final candle is compared to a volume SMA; multiplier can be adjusted (e.g. 1 = equal to average, 0.8 = 80% of average)
Logic Overview
U Pattern
Each bearish candle is treated as a potential start of a reversal pattern.
Subsequent candles, if small enough and within defined thresholds, form the middle part of the structure.
When a bullish candle with a sufficiently large body appears, it is marked as the final candle of the pattern.
The pattern is considered valid if it was preceded by a defined percentage price drop and – optionally – if the volume condition was met.
∩ Pattern
Each bullish candle may act as the initial candle of a potential reversal pattern in the opposite direction.
Following smaller candles form the middle part, as long as they meet the defined criteria.
The appearance of a strong bearish candle marks the end of the formation.
If this pattern is preceded by a certain price increase (and optionally meets the volume filter), it is highlighted on the chart.
Note: On markets with low volatility or on lower timeframes, it is recommended to reduce the percentage thresholds for signal detection. For more dynamic price action or higher timeframes, consider increasing them accordingly.
Visualization
The final candle of the pattern is marked visually on the chart (depending on direction)
Colored horizontal lines indicate the full span of the pattern – from initial to final candle
Trendline Breakouts With Volume Strength [TradeDots]Trendline Breakouts With Volume Strength is an innovative indicator designed to identify potential market turning points using pivot-based trendline detection and volume confirmation. By merging dynamic trendline analysis with multi-tiered volume filters, this tool helps traders quickly spot breakouts or breakdowns that may signal significant shifts in price action.
📝 HOW IT WORKS
1. Pivot-Based Trendline Detection
The script automatically scans for recent pivot highs and lows over a user-defined lookback period.
When it finds higher pivot lows, it plots green uptrend lines; when it finds lower pivot highs, it plots red downtrend lines.
These dynamic lines update as new pivots form, providing continuously refreshed trend guidance.
2. Volume Ratio Analysis
A moving average of volume is compared against the current bar’s volume to calculate a ratio (e.g., 1.5×, 2×).
Higher ratios suggest above-average volume, often interpreted as stronger participation.
The script applies color-coded cues to highlight the intensity of volume surges.
3. Breakout & Breakdown Detection
Each trendline is monitored for a defined “break threshold,” which helps avoid minor penetrations that can trigger premature signals.
When price closes beyond a threshold below an uptrend line, the indicator labels it a “BREAKDOWN.” If it closes above a threshold on a downtrend line, it labels it a “BREAKOUT.”
Volume surges accompanying these breaks are highlighted with contextual emojis and distinct color gradients for quick visual reference.
4. Trend Direction Table
A small on-chart table provides a snapshot of the current market trend—Uptrend, Downtrend, or Sideways—based on a simple moving average slope and the number of active uptrend or downtrend lines.
This table also displays quick stats on how many lines are actively tracked, helping traders assess the broader market posture at a glance.
🛠️ HOW TO USE
1. Choose a Timeframe
This script works on multiple timeframes. Intraday traders can monitor minute or hourly charts for frequent pivot updates, while swing and position traders may prefer daily or weekly intervals to reduce noise.
2. Observe Trendlines & Labels
Watch for newly drawn green/red lines connecting pivots.
When you see a “BREAKOUT” or “BREAKDOWN” label, confirm whether volume was abnormally high based on the ratio or color-coded bars.
3. Consult the Trend Table
Use the table in the bottom-right corner to quickly check if the market is trending or range-bound.
Look at the count of active uptrend vs. downtrend lines to gauge broader sentiment.
4. Employ Additional Analysis
Combine these signals with other tools (e.g., candlestick patterns, oscillators, or fundamental analysis).
Validate potential breakouts using standard techniques like retests or support/resistance checks.
❗️LIMITATIONS
Delayed Pivots: Trendlines only adjust once new pivot highs or lows form, which can introduce a slight lag in highly volatile environments.
Choppy Markets: Rapid, back-and-forth price moves may produce conflicting trendline signals and frequent breakouts/breakdowns.
Volume Data Reliability: Gaps in volume data or unusual market conditions (holidays, low-liquidity sessions) can skew ratio readings.
RISK DISCLAIMER
Trading any financial instrument involves substantial risk, and this indicator does not guarantee profits or prevent losses. All signals and visual cues are for educational and informational purposes only; past performance does not assure future outcomes. You retain full responsibility for your trading decisions, including proper risk management, position sizing, and the use of additional confirmation methods. Always consider the possibility of losing some or all of your original investment.