SMT Divergence PSP&PCP - Milana TradesThis indicator is designed for traders who want to combine SMT Divergence (SMT) analysis with Precision Swing Points and Candles (PSP/PCP) to identify potential market reversals, trend changes, and optimal entry points. It works on one, two, or three symbols simultaneously, and provides alerts for all key signals.
1. SMT Divergence
Purpose:
SMT Divergence identifies discrepancies between the price movements of a reference market (controlling asset) and the current chart. This helps traders detect when “smart money” might be acting differently than the public trend.
How it works:
The indicator tracks pivot highs and lows in both the current chart and the reference symbol.
If the current chart forms a high but the reference asset fails to confirm it (or vice versa), this creates a bearish or bullish divergence.
These divergences are drawn as lines on the chart with customizable color, style, and label size.
Broken or invalid divergences are automatically removed to avoid clutter.
Visual Features:
+SMT / -SMT labels indicate bullish or bearish divergences.
Lines connect the divergence points for easy visualization.
Alerts:
Bullish SMT
Bearish SMT
2. Precision Swing Points (PSP) and Precision Candle Points (PCP)
Purpose:
Precision Swing Points are extremely accurate pivot points in the price movement, showing potential short-term reversals.
Precision Candle Points extend this by confirming reversal candlestick patterns at these pivots.
How it works:
The indicator checks pivot highs/lows for patterns across multiple symbols.
Bullish PSP indicates a potential upward reversal.
Bearish PSP indicates a potential downward reversal.
PCP signals are more conservative and require a pattern confirmation, often used for safer entries.
Key Features:
Works with 1, 2, or 3 symbols simultaneously to detect correlated reversals.
Automatically removes broken or invalid PSP/PCP points.
Supports display customization: text size, colors, and which patterns to show.
Provides correlation between symbols to gauge market synchronicity.
Alerts:
Bullish PSP
Bullish PCP
Bearish PSP
Bearish PCP
This SMT & Precision Swing Point Indicator combines smart money divergence with highly accurate swing points and candlestick pattern confirmations to provide a powerful tool for market analysis. It helps traders:
Detect divergences between key markets.
Identify high-probability reversal points.
Filter signals according to trend and precision.
Receive alerts for actionable trading opportunities without constant chart monitoring.
It is ideal for traders using Price Action, Smart Money concepts, and multi-symbol analysis.
Padrões gráficos
BISI / SIBI & Impulsive Candle Detector (Invite-Only)Smart scanner for BISI / SIBI imbalances and impulsive candles, with plotted zones, alerts, and customizable context filters.
What this indicator does
BISI / SIBI detection – Automatically spots bullish (BISI) and bearish (SIBI) imbalances (Fair Value Gaps) and highlights potential breaker zones for liquidity grabs and rebalancing.
Impulsive candles – Identifies abnormal expansion bars (by range, volatility, or volume*) that often trigger directional moves.
Zones & levels – Draws FVG/Breaker boxes (high/low), midline, and optional extension until mitigation.
Context filters – Trend filters (MA/HTF), trading sessions (Killzones), and adjustable sensitivity.
Alerts – Ready-to-use signals on zone creation, retest, mitigation, and valid impulsive setups.
Use case
Designed for traders using ICT / SMC methodologies who want:
A clean visual map of imbalances and breaker zones
Extra confirmation from impulsive moves
Alerts to catch setups without staring at the chart
Disclaimer
This script is for educational purposes only. It does not constitute financial advice. Always test thoroughly and use proper risk management.
PSP Zones With Clean Multi-Inversion + Time FilterThe PSP Zones With Clean Multi-Inversion + Time Filter indicator identifies Precision Swing Points between two correlated assets, highlighting when they diverge in direction and forming dynamic price zones. Neutral PSP zones are plotted first, then flip bullish or bearish as price breaks beyond zone boundaries, with clean handling of multiple inversions to avoid overlapping signals. An optional ATR filter ensures only higher-conviction setups are shown, while the time filter allows users to limit detection to a specific testing or trading window. With customizable colors, extended projections into the future, and automatic cleanup of old zones, this tool provides a clear and adaptive framework for studying inter-market divergences, structural flips, and correlated price action.
CALL/PUT: Arranque Seguro (MACD + EMA35) + Toggles.sugindicador usado para trabajar con opciones calls y puts
EMA–VWAP Strategy (Confirmed crosses, 1 trade/cross)Wait for 10 and 20 ema to cross
Buy between 10 and 20
wait for 20 and 50 to cross
buy at vwap
10/20/50 ema and vwap is plotted
KCandle/Boost con Filtro EMA e 75%- Engulfing candle filtered with a custom EMA.
- 75% of the candle is plotted on the right.
Sessions+Days Marker (SigmaSita)An indicator that marks the sessions and days. You can adjust session start times. Sessions are Asian, London and New York.
Asistente de Barra de Estado ADX
// This is an all-in-one indicator designed to visually represent the market environment
// based on the G2 (trend-following) and SMOG (reversal/ranging) trading systems.
// It replaces the need for a separate ADX indicator.
//
// FEATURES:
//
// 1. Multi-Timeframe ADX:
// - 5-Minute ADX (Blue Line - The "Referee"): Determines the overall market environment (Trending or Ranging).
// - 1-Minute ADX (Yellow Line - The "Trigger"): Measures immediate momentum for trade entries.
//
// 2. Environment Background Coloring:
// The indicator's own background panel changes color to provide an instant signal:
// - Green: G2 Bullish Environment (5-min ADX > 25 & Price is Trending Up)
// - Red: G2 Bearish Environment (5-min ADX > 25 & Price is Trending Down)
// - Gray: Gray Zone (Indecisive/Risky Market, 5-min ADX between 20-25)
// - Blue: SMOG Environment (Weak/Ranging Market, 5-min ADX < 20)
//
// 3. Reference Lines:
// Includes horizontal lines at the key 20 and 25 levels for easy reference.
//
// HOW TO USE:
// Use this indicator as the primary tool to decide whether to look for a G2
// (trend-following) or a SMOG (reversal) setup.
//
High/Low Break last 3 candles with trend filterThe indicator generates a triangle symbol when the high/low of the last three candles has been exceeded or fallen below the close of the candle. Three EMAs (9, 21 and 50) are used as trend filters.
Note: I do not provide any guarantee or warranty. Use of the indicator is at your own risk. By using the indicator, you agree to this condition.
Sessions — Asia / London / New York (shaded + start/end arrows)Asian Session London Session Newyork Session
- adjust time its in utc otherwise you will be trading random times
HANUMAN INDICATORThe VIKRANT INDICATOR is a powerful all-in-one TradingView tool designed for traders who want accuracy, clarity, and confidence in their trades. Built with advanced technical logic, it helps identify market trends, entry & exit points, and high-probability trade setups across Forex, Crypto, Indices, Stocks, and Commodities.
⚡ Key Features:
✅ Smart Trend Detection using multi-layer confluence (EMA / Supertrend / RSI / Volume logic)
✅ Clear Buy/Sell signals with chart labels
✅ Built-in Stop Loss (SL), Take Profit (TP), and Trailing Stop system
✅ Works on all timeframes – from scalping (1m/5m) to intraday & swing trading
✅ Backtestable strategy to check accuracy & performance
✅ Fully customizable settings for every trader’s style
Combined CE and PE Option Overlay with pending signalsBETTERMENT OF PREVIOUS VERSION WITH LONGER EXECUTION
consider that after a ce signal appears it is triggered when price crosses and closses the ce signal candle high; simialrly for pe signal if the price closes below the pe signal candle loe then the signal is considered triggered. now if a ce signal is triggerred and then the price reverses to create a pe signal but the pe signal is not triggered, and then again a new signal is generated that gets triggered then this new ce signal should be considered as the subsignal of previous ce signal and this signal label and lines should be orange in colour and both ce signals should be displayed. same vise a versa for pe signal
Globex Trap w/ percentage [SLICKRICK]Globex Trap w/ Percentage
Overview
The Globex Trap w/ Percentage indicator is a powerful tool designed to help traders identify high-probability trading opportunities by analyzing price action during the Globex (overnight) session and regular trading hours. By combining Globex session ranges with Supply & Demand zones, this indicator highlights potential "trap" areas where significant price reactions may occur. Additionally, it calculates the Globex session range as a percentage of the daily Average True Range (ATR), providing valuable context for assessing market volatility.
This indicator is ideal for traders in futures markets or other instruments traded during Globex sessions, offering a visual and analytical edge for spotting key price levels and potential reversals or breakouts.
Key Features
Globex Session Tracking:
Visualizes the high and low of the Globex session (default: 3:00 PM to 6:30 AM PST) with customizable time settings.
Displays a semi-transparent box to mark the Globex range, with labels for "Globex High" and "Globex Low."
Calculates the Globex range as a percentage of the daily ATR, displayed as a label for quick reference.
Supply & Demand Zones:
Identifies Supply & Demand zones during regular trading hours (default: 6:00 AM to 8:00 AM PST) with customizable time settings.
Draws semi-transparent boxes to highlight these zones, aiding in the identification of key support and resistance areas.
Trap Area Identification:
Highlights potential trap zones where Globex ranges and Supply & Demand zones overlap, indicating areas where price may reverse or consolidate due to trapped traders.
Customizable Settings:
Adjust Globex and Supply & Demand session times to suit your trading preferences.
Toggle visibility of Globex and Supply & Demand zones independently.
Customize box colors for better chart readability.
Set the lookback period (default: 10 days) to control how many historical zones are displayed.
Configure the ATR length (default: 14) for the percentage calculation.
PST Timezone Default:
All times are based on Pacific Standard Time (PST) by default, ensuring accurate session tracking for users in this timezone or those aligning with U.S. West Coast market hours.
Recommended Usage
Timeframes: Best used on 1-hour charts or lower (e.g., 15-minute, 5-minute) for precise entry and exit points.
Markets: Optimized for futures (e.g., ES, NQ, CL) and other instruments traded during Globex sessions.
Historical Data: Ensure at least 10 days of historical data for optimal visualization of zones.
Strategy Integration: Use the indicator to identify potential reversals or breakouts at Globex highs/lows or Supply & Demand zones. The ATR percentage provides context for whether the Globex range is significant relative to typical daily volatility.
How It Works
Globex Session:
Tracks the high and low prices during the user-defined Globex session (default: 3:00 PM to 6:30 AM PST).
When the session ends, a box is drawn from the start to the end of the session, capturing the high and low prices.
Labels are placed at the midpoint of the session, showing "Globex High," "Globex Low," and the range as a percentage of the daily ATR (e.g., "75.23% of Daily ATR").
Supply & Demand Zones:
Tracks the high and low prices during the user-defined regular trading hours (default: 6:00 AM to 8:00 AM PST).
Draws a box to mark these zones, which often act as key support or resistance levels.
ATR Percentage:
Calculates the Globex range (high minus low) and divides it by the daily ATR to express it as a percentage.
This metric helps traders gauge whether the overnight price movement is significant compared to the instrument’s typical volatility.
Time Handling:
Uses PST (UTC-8) for all time calculations, ensuring accurate session timing for users aligning with this timezone.
Properly handles overnight sessions that cross midnight, ensuring seamless tracking.
Input Settings
Globex Session Settings:
Show Globex Session: Enable/disable Globex session visualization (default: true).
Globex Start/End Time: Set the start and end times for the Globex session (default: 3:00 PM to 6:30 AM PST).
Globex Box Color: Customize the color of the Globex session box (default: semi-transparent gray).
Supply & Demand Zone Settings:
Show Supply & Demand Zone: Enable/disable zone visualization (default: true).
Zone Start/End Time: Set the start and end times for Supply & Demand zones (default: 6:00 AM to 8:00 AM PST).
Zone Box Color: Customize the color of the zone box (default: semi-transparent aqua).
General Settings:
Days to Look Back: Number of historical days to display zones (default: 10).
ATR Length: Period for calculating the daily ATR (default: 14).
Notes
All times are in Pacific Standard Time (PST). Adjust the start and end times if your market operates in a different timezone or if you prefer different session windows.
The indicator is optimized for instruments with active Globex sessions, such as futures. Results may vary for non-24/5 markets.
A typo in the label "Globe Low" (should be "Globex Low") will be corrected in future updates.
Ensure your TradingView chart is set to display sufficient historical data to view the full lookback period.
Why Use This Indicator?
The Globex Trap w/ Percentage indicator provides a unique combination of session-based range analysis, Supply & Demand zone identification, and volatility context via the ATR percentage. Whether you’re a day trader, swing trader, or scalper, this tool helps you:
Pinpoint key price levels where institutional traders may act.
Assess the significance of overnight price movements relative to daily volatility.
Identify potential trap zones for high-probability setups.
Customize the indicator to fit your trading style and market preferences.
3-Candle Reversal Pattern-vahid2star3-Candle Reversal Zones + Hammer Confirmation (with Risk Management & Alerts)
This script combines 3-candle reversal detection, hammer confirmations, and smart demand/supply zone plotting into a single tool designed for both discretionary and automated traders.
🔍 Core Logic
3-Candle Reversal Pattern
Candle-1: Strong move in one direction (big body).
Candle-2: Doji-like candle (high shadow/body ratio).
Candle-3: Reversal candle in the opposite direction (large body relative to Candle-2).
A gap after Candle-3 is required for extra confirmation.
Hammer Confirmation (Hammer-1 & Hammer-2)
After a valid 3-candle setup, the script searches for a hammer pattern near the zone.
Hammer-1: Draws a box directly on the hammer range if followed by a strong confirming candle.
Hammer-2: If another hammer forms after the confirmation candle and holds for N bars (configurable), a second hammer box is drawn.
Demand & Supply Zones
For bullish setups, a demand zone is created from the Candle-2 low to the Candle-1 low.
For bearish setups, a supply zone is created from the Candle-2 high to the Candle-1 high.
Zones extend to the right until price interacts with them.
🛠 Filters & Quality Controls
Trend filter (optional):
Only draw zones if price respects higher-timeframe EMA200 slope and LTF EMA alignment.
Market structure filter:
Require higher-high / higher-low (for bullish) or lower-high / lower-low (for bearish).
ATR filter:
Zones must have a minimum height relative to ATR.
Overlap control:
Avoid drawing zones that overlap too heavily with existing ones.
Cooldown:
Restrict consecutive zones of the same type within a user-defined bar distance.
🎯 Risk Management & Strategy
Dynamic position sizing:
Trade size is automatically calculated from account equity, risk %, and leverage.
Stop-loss & Take-profit:
SL placed just beyond the zone ± buffer ticks.
TP automatically set at user-defined Reward:Risk ratio (e.g., 3:1).
Capital protection:
Trades respect max leverage and risk per position settings.
⚡ Alerts
The script provides one-time alerts for each zone:
🔔 First Touch Alert → Triggered when price first touches a demand, supply, or hammer box.
Each zone only fires one alert, avoiding duplicates on re-touch or trade exit.
📊 Visuals
Demand zones: Green boxes.
Supply zones: Red boxes.
Hammer boxes: Blue (bullish) / Orange (bearish).
Used zones: Greyed out after price fills them.
Outcomes: Zones change to green if TP is hit, red if SL is hit.
Optional labels mark “Bullish zone ✓”, “Bearish zone ✓”, “Hammer-1 ✓”, or “Hammer-2 ✓” when confirmed.
🔧 Settings Overview
Core pattern ratios (C1/C2, C3/C2 size multipliers).
Doji definition (shadow/body ratio).
Hammer search depth, confirmation delay, and strictness.
Risk % per trade, leverage cap, stop buffer, RR ratio.
Visual styling (colors, max box count, labels).
Trend, structure, ATR, overlap, and cooldown filters.
Option to disable orders (use as indicator + alerts only).
⚠️ Disclaimer
This script is a technical analysis tool intended for educational purposes.
It does not guarantee profits. Use proper risk management and test thoroughly before applying in live trading.
✨ With its combination of 3-candle reversals, hammer confirmations, and smart filtering, this script is designed to reduce noise, highlight high-probability zones, and give traders both visual structure and actionable alerts.
ORB Breakouts with alerts"ORB Breakouts with Alerts" is a utility indicator that highlights an Opening Range Breakout (ORB) setup during a user-defined intraday time window. It allows traders to visualize price consolidation ranges and receive alerts when price breaks above or below the session high/low.
🔧 Features:
*Customizable session time (start and end), adjustable to local time using a timezone offset.
*Automatically plots:
*A shaded box around the session's high and low.
*Horizontal lines at session high and low levels.
*Optional "BUY"/"SELL" labels to mark breakout directions.
*Visual breakout signals when price crosses above or below the session range.
*Built-in alerts to notify when breakouts occur.
*Configurable styling options including box color, highlight color, and label placement.
⚙️ How It Works:
*During the defined time range, the script tracks the highest high and lowest low.
*After the session ends:
*A box is drawn to represent the opening range.
*Breakouts above the high or below the low trigger visual markers and optional alerts.
*Alerts are limited to one per direction per day to reduce noise.
⚠️ This indicator is a technical analysis tool only and does not provide financial advice or trade recommendations. Always use with proper risk management and in conjunction with your trading plan.
HorizonSigma Pro [CHE]HorizonSigma Pro
Disclaimer
Not every timeframe will yield good results . Very short charts are dominated by microstructure noise, spreads, and slippage; signals can flip and the tradable edge shrinks after costs. Very high timeframes adapt more slowly, provide fewer samples, and can lag regime shifts. When you change timeframe, you also change the ratios between horizon, lookbacks, and correlation windows—what works on M5 won’t automatically hold on H1 or D1. Liquidity, session effects (overnight gaps, news bursts), and volatility do not scale linearly with time. Always validate per symbol and timeframe, then retune horizon, z-length, correlation window, and either the neutral band or the z-threshold. On fast charts, “components” mode adapts quicker; on slower charts, “super” reduces noise. Keep prior-shift and calibration enabled, monitor Hit Rate with its confidence interval and the Brier score, and execute only on confirmed (closed-bar) values.
For example, what do “UP 61%” and “DOWN 21%” mean?
“UP 61%” is the model’s estimated probability that the close will be higher after your selected horizon—directional probability, not a price target or profit guarantee. “DOWN 21%” still reports the probability of up; here it’s 21%, which implies 79% for down (a short bias). The label switches to “DOWN” because the probability falls below your short threshold. With a neutral-band policy, for example ±7%, signals are: Long above 57%, Short below 43%, Neutral in between. In z-score mode, fixed z-cutoffs drive the call instead of percentages. The arrow length on the chart is an ATR-scaled projection to visualize reach; treat it as guidance, not a promise.
Part 1 — Scientific description
Objective.
The indicator estimates the probability that price will be higher after a user-defined horizon (a chosen number of bars) and emits long, short, or neutral decisions under explicit thresholds. It combines multi‑feature, z‑normalized inputs, adaptive correlation‑based weighting, a prior‑shifted sigmoid mapping, optional rolling probability calibration, and repaint‑safe confirmation. It also visualizes an ATR‑scaled forward projection and prints a compact statistics panel.
Data and labeling.
For each bar, the target label is whether price increased over the past chosen horizon. Learning is deliberately backward‑looking to avoid look‑ahead: features are associated with outcomes that are only known after that horizon has elapsed.
Feature engineering.
The feature set includes momentum, RSI, stochastic %K, MACD histogram slope, a normalized EMA(20/50) trend spread, ATR as a share of price, Bollinger Band width, and volume normalized by its moving average. All features are standardized over rolling windows. A compressed “super‑feature” is available that aggregates core trend and momentum components while penalizing excessive width (volatility). Users can switch between a “components” mode (weighted sum of individual features) and a “super” mode (single compressed driver).
Weighting and learning.
Weights are the rolling correlations between features (evaluated one horizon ago) and realized directional outcomes, smoothed by an EMA and optionally clamped to a bounded range to stabilize outliers. This produces an adaptive, regime‑aware weighting without explicit machine‑learning libraries.
Scoring and probability mapping.
The raw score is either the weighted component sum or the weighted super‑feature. The score is standardized again and passed through a sigmoid whose steepness is user‑controlled. A “prior shift” moves the sigmoid’s midpoint to the current base rate of up moves, estimated over the evaluation window, so that probabilities remain well‑calibrated when markets drift bullish or bearish. Probabilities and standardized scores are EMA‑smoothed for stability.
Decision policy.
Two modes are supported:
- Neutral band: go long if the probability is above one half plus a user‑set band; go short if it is below one half minus that band; otherwise stay neutral.
- Z‑score thresholds: use symmetric positive/negative cutoffs on the standardized score to trigger long/short.
Repaint protection.
All values used for decisions can be locked to confirmed (closed) bars. Intrabar updates are available as a preview, but confirmed values drive evaluation and stats.
Calibration.
An optional rolling linear calibration maps past confirmed probabilities to realized outcomes over the evaluation window. The mapping is clipped to the unit interval and can be injected back into the decision logic if desired. This improves reliability (probabilities that “mean what they say”) without necessarily improving raw separability.
Evaluation metrics.
The table reports: hit rate on signaled bars; a Wilson confidence interval for that hit rate at a chosen confidence level; Brier score as a measure of probability accuracy; counts of long/short trades; average realized return by side; profit factor; net return; and exposure (signal density). All are computed on rolling windows consistent with the learning scheme.
Visualization.
On the chart, an arrowed projection shows the predicted direction from the current bar to the chosen horizon, with magnitude scaled by ATR (optionally scaled by the square‑root of the horizon). Labels display either the decision probability or the standardized score. Neutral states can display a configurable icon for immediate recognition.
Computational properties.
The design relies on rolling means, standard deviations, correlations, and EMAs. Per‑bar cost is constant with respect to history length, and memory is constant per tracked series. Graphical objects are updated in place to obey platform limits.
Assumptions and limitations.
The method is correlation‑based and will adapt after regime changes, not before them. Calibration improves probability reliability but not necessarily ranking power. Intrabar previews are non‑binding and should not be evaluated as historical performance.
Part 2 — Trader‑facing description
What it does.
This tool tells you how likely price is to be higher after your chosen number of bars and converts that into Long / Short / Neutral calls. It learns, in real time, which components—momentum, trend, volatility, breadth, and volume—matter now, adjusts their weights, and shows you a probability line plus a forward arrow scaled by volatility.
How to set it up.
1) Choose your horizon. Intraday scalps: 5–10 bars. Swings: 10–30 bars. The default of 14 bars is a balanced starting point.
2) Pick a feature mode.
- components: granular and fast to adapt when leadership rotates between signals.
- super: cleaner single driver; less noise, slightly slower to react.
3) Decide how signals are triggered.
- Neutral band (probability based): intuitive and easy to tune. Widen the band for fewer, higher‑quality trades; tighten to catch more moves.
- Z‑score thresholds: consistent numeric cutoffs that ignore base‑rate drift.
4) Keep reliability helpers on. Leave prior shift and calibration enabled to stabilize probabilities across bullish/bearish regimes.
5) Smoothing. A short EMA on the probability or score reduces whipsaws while preserving turns.
6) Overlay. The arrow shows the call and a volatility‑scaled reach for the next horizon. Treat it as guidance, not a promise.
Reading the stats table.
- Hit Rate with a confidence interval: your recent accuracy with an uncertainty range; trust the range, not only the point.
- Brier Score: lower is better; it checks whether a stated “70%” really behaves like 70% over time.
- Profit Factor, Net Return, Exposure: quick triage of tradability and signal density.
- Average Return by Side: sanity‑check that the long and short calls each pull their weight.
Typical adjustments.
- Too many trades? Increase the neutral band or raise the z‑threshold.
- Missing the move? Tighten the band, or switch to components mode to react faster.
- Choppy timeframe? Lengthen the z‑score and correlation windows; keep calibration on.
- Volatility regime change? Revisit the ATR multiplier and enable square‑root scaling of horizon.
Execution and risk.
- Size positions by volatility (ATR‑based sizing works well).
- Enter on confirmed values; use intrabar previews only as early signals.
- Combine with your market structure (levels, liquidity zones). This model is statistical, not clairvoyant.
What it is not.
Not a black‑box machine‑learning model. It is transparent, correlation‑weighted technical analysis with strong attention to probability reliability and repaint safety.
Suggested defaults (robust starting point).
- Horizon 14; components mode; weight EMA 10; correlation window 500; z‑length 200.
- Neutral band around seven percentage points, or z‑threshold around one‑third of a standard deviation.
- Prior shift ON, Calibration ON, Use calibrated for decisions OFF to start.
- ATR multiplier 1.0; square‑root horizon scaling ON; EMA smoothing 3.
- Confidence setting equivalent to about 95%.
Disclaimer
No indicator guarantees profits. HorizonSigma Pro is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Best regards
Chervolino
Untouched ExtremesWhat it is
Untouched Extremes plots horizontal levels at green-candle highs and red-candle lows. Each level is considered “untouched” (clean liquidity) until price revisits it; on the first valid touch the line auto-deletes, keeping only live targets on your chart.
How it works (logic)
Bar close event
If close > open, the script draws a line at that bar’s high and extends it to the right.
If close < open, it draws a line at that bar’s low and extends it to the right.
(Optional) Perfect/almost-dojis can be classified as green or red via settings.
Touch & removal
A green-high line is removed when any later bar’s high ≥ level (optionally within a tick tolerance).
A red-low line is removed when any later bar’s low ≤ level (optionally within a tick tolerance).
You can delay deletion by N bars to make the touch visible before the line disappears.
Housekeeping
Maximum active lines per side and line styling are user-configurable.
Why it’s useful
Untouched highs/lows often coincide with resting liquidity and incomplete price probes. Tracking them helps:
Define targets and magnets price may seek.
Frame mean-reversion rotations after a failed push.
Keep the chart clean: only levels that have not been traded are displayed.
How to use it (trading idea)
Confirmation rule: Treat the line as a level/zone. Price can pierce it; wait for a clear reversal candle pattern (e.g., pin bar, engulfing, strong momentum shift) at or immediately after the touch.
Directional play:
If a bullish reversal pattern forms at/around a red-low line, the working assumption is that price will move toward the first untouched upper line (nearest green-high line above). Many traders use that as the primary target.
Conversely, if a bearish reversal pattern forms at/around a green-high line, expect rotation toward the first untouched lower line.
Risk management: Stops typically go just beyond the level or beyond the pattern’s wick. Consider a fixed R:R (e.g., 1:2) and partials at intermediate levels.
Settings
Doji handling: Choose how to classify close ≈ open bars (Green / Red / Ignore). A small equality margin (ticks) helps with rounding on some symbols.
Touch tolerance (ticks): Counts near-misses as touches if desired.
Deletion delay (bars): Wait N bars after creation before a line becomes eligible for deletion.
Max lines per side / width / colors: Keep the view readable.
Tips
Works on any symbol/timeframe; lower TFs produce more levels—adjust Max lines accordingly.
Combining with a trend filter (e.g., EMA-200), ATR distance, or volume clues can improve selectivity.
If spreads or wicks are noisy, increase tolerance slightly and/or use deletion delay to visualize touches.
Note: This tool provides structure and potential targets, not signals by itself. Always require your reversal pattern as confirmation and manage risk appropriately.
Strat Failed 2-Up/2-Down Scanner v2**Strat Failed 2-Up/2-Down Scanner**
The Strat Failed 2-Up/2-Down Scanner is designed for traders using The Strat methodology, developed by Rob Smith, to identify key reversal patterns in any market and timeframe. This indicator detects two specific candlestick patterns: Failed 2-Up (bearish) and Failed 2-Down (bullish), which signal potential reversals when a directional move fails to follow through.
**What It Does**
- **Failed 2-Up**: Identifies a bearish candle where the low and high are higher than the previous candle’s low and high, but the close is below the open, indicating a failed attempt to continue an uptrend. These are marked with a red candlestick, a red downward triangle above the bar, and a table entry.
- **Failed 2-Down**: Identifies a bullish candle where the high and low are lower than the previous candle’s high and low, but the close is above the open, signaling a failed downtrend. These are marked with a green candlestick, a green upward triangle below the bar, and a table entry.
- A table in the top-right corner displays the signal type ("Failed 2-Up" or "Failed 2-Down") and the ticker symbol for quick reference.
- Alerts are provided for both patterns, making the indicator compatible with TradingView’s screener for automated scanning.
**How It Works**
The indicator analyzes each candlestick’s high, low, and close relative to the previous candle:
- Failed 2-Up: `low > low `, `high > high `, `close < open`.
- Failed 2-Down: `high < high `, `low < low `, `close > open`.
When these conditions are met, the indicator applies visual markers (colored bars and triangles) and updates the signal table. Alert conditions trigger notifications for integration with TradingView’s alert system.
**How to Use**
1. Apply the indicator to any chart (stocks, forex, crypto, etc.) on any timeframe (e.g., 1-minute, hourly, daily).
2. Monitor the chart for red (Failed 2-Up) or green (Failed 2-Down) candlesticks with corresponding triangles.
3. Check the top-right table for the latest signal and ticker.
4. Set alerts by selecting “Failed 2-Up Detected” or “Failed 2-Down Detected” in TradingView’s alert menu to receive notifications (e.g., via email or app).
5. Use the signals to identify potential reversal setups in conjunction with other Strat-based analysis, such as swing levels or time-based strategies.
**Originality**
Unlike other Strat indicators that may focus on swing levels or complex candlestick combinations, this scanner specifically targets Failed 2-Up and Failed 2-Down patterns with clear, minimalist visualizations (bars, triangles, table) and robust alert functionality. Its simplicity makes it accessible for both novice and experienced traders using The Strat methodology.
**Ideal For**
Day traders, swing traders, and scalpers looking to capitalize on reversal signals in trending or ranging markets. The indicator is versatile for any asset class and timeframe, enhancing trade decision-making with The Strat’s pattern-based approach.
OB - MentorXOB - MentorX
Advanced OrderBlock Detection with Smart Alerts
🎯 Key Features:
- Smart OrderBlock Detection: Identifies bullish/bearish OrderBlocks using fractal breaks
- Multi-Timeframe Alerts: Get instant notifications on 1m, 3m, 5m, 15m, 30m, 1h, 4h
- Strength Filter: Only alerts on significant OrderBlocks (ATR-based strength)
- Visual Confirmation: Alerts sync perfectly with drawn OrderBlock lines
- Customizable Settings: Adjust line styles, colors, and alert preferences
🔔 Alert System:
How It Works:
- OrderBlock detected → Lines drawn → Alert triggered
- No false signals - only alerts when OrderBlock is visible on chart
- Strength filter prevents noise alerts on weak OrderBlocks
Alert Examples:
🔴 Bearish OrderBlock Created
Timeframe: 15m
High: 1.2345
Low: 1.2300
Strength: 2.45% ATR
🟢 Bullish OrderBlock Created
Timeframe: 1h
High: 1.2400
Low: 1.2350
Strength: 3.20% ATR
⚙️ Setup:
1. Enable "Enable Alerts" in settings
2. Select desired timeframes (1m, 3m, 5m, 15m, 30m, 1h, 4h)
3. Adjust "Minimum OB Strength" (0.1-5.0% ATR)
4. Create TradingView alert with "Any alert() function call"
🎨 Customization:
- Line styles: Solid, Dashed, Dotted
- Colors: Customize bearish/bullish line colors
- Fractal filters: 3-bar or 5-bar fractals
- FVG filtering: Optional Fair Value Gap confirmation
📊 Perfect for:
- Scalping
- Swing trading
- Multi-timeframe analysis
- Professional trading strategies
Perfect for scalping, swing trading, and multi-timeframe analysis!
Daily Start Vertical Lines (≤1H)This indicator automatically plots vertical lines at the start of each new trading day, based on the selected chart’s timezone. Unlike the default daily session boundaries (which often start at 17:00 New York time), this tool ensures that lines are drawn precisely at 00:00 midnight of the chart’s timezone.
🔹 Features:
Plots a vertical line at every new day start (midnight).
Fully time-zone aware → lines adjust automatically when you change the chart’s timezone.
Customizable line style, width, and color.
Option to limit plotting to specific timeframes (e.g., show only on ≤ 1H charts).
Lightweight & optimized (does not clutter higher-timeframe charts).
🔹 Use Cases:
Quickly identify daily boundaries for intraday analysis.
Helps scalpers and day traders align trades with new day opens.
Useful for strategies that depend on daily session resets.
This tool is especially helpful for traders who want clarity when working across different time zones.
Adaptive Rolling Quantile Bands [CHE] Adaptive Rolling Quantile Bands
Part 1 — Mathematics and Algorithmic Design
Purpose. The indicator estimates distribution‐aware price levels from a rolling window and turns them into dynamic “buy” and “sell” bands. It can work on raw price or on *residuals* around a baseline to better isolate deviations from trend. Optionally, the percentile parameter $q$ adapts to volatility via ATR so the bands widen in turbulent regimes and tighten in calm ones. A compact, latched state machine converts these statistical levels into high-quality discretionary signals.
Data pipeline.
1. Choose a source (default `close`; MTF optional via `request.security`).
2. Optionally compute a baseline (`SMA` or `EMA`) of length $L$.
3. Build the *working series*: raw price if residual mode is off; otherwise price minus baseline (if a baseline exists).
4. Maintain a FIFO buffer of the last $N$ values (window length). All quantiles are computed on this buffer.
5. Map the resulting levels back to price space if residual mode is on (i.e., add back the baseline).
6. Smooth levels with a short EMA for readability.
Rolling quantiles.
Given the buffer $X_{t-N+1..t}$ and a percentile $q\in $, the indicator sorts a copy of the buffer ascending and linearly interpolates between adjacent ranks to estimate:
* Buy band $\approx Q(q)$
* Sell band $\approx Q(1-q)$
* Median $Q(0.5)$, plus optional deciles $Q(0.10)$ and $Q(0.90)$
Quantiles are robust to outliers relative to means. The estimator uses only data up to the current bar’s value in the buffer; there is no look-ahead.
Residual transform (optional).
In residual mode, quantiles are computed on $X^{res}_t = \text{price}_t - \text{baseline}_t$. This centers the distribution and often yields more stationary tails. After computing $Q(\cdot)$ on residuals, levels are transformed back to price space by adding the baseline. If `Baseline = None`, residual mode simply falls back to raw price.
Volatility-adaptive percentile.
Let $\text{ATR}_{14}(t)$ be current ATR and $\overline{\text{ATR}}_{100}(t)$ its long SMA. Define a volatility ratio $r = \text{ATR}_{14}/\overline{\text{ATR}}_{100}$. The effective quantile is:
Smoothing.
Each level is optionally smoothed by an EMA of length $k$ for cleaner visuals. This smoothing does not change the underlying quantile logic; it only stabilizes plots and signals.
Latched state machines.
Two three-step processes convert levels into “latched” signals that only fire after confirmation and then reset:
* BUY latch:
(1) HLC3 crosses above the median →
(2) the median is rising →
(3) HLC3 prints above the upper (orange) band → BUY latched.
* SELL latch:
(1) HLC3 crosses below the median →
(2) the median is falling →
(3) HLC3 prints below the lower (teal) band → SELL latched.
Labels are drawn on the latch bar, with a FIFO cap to limit clutter. Alerts are available for both the simple band interactions and the latched events. Use “Once per bar close” to avoid intrabar churn.
MTF behavior and repainting.
MTF sourcing uses `lookahead_off`. Quantiles and baselines are computed from completed data only; however, any *intrabar* cross conditions naturally stabilize at close. As with all real-time indicators, values can update during a live bar; prefer bar-close alerts for reliability.
Complexity and parameters.
Each bar sorts a copy of the $N$-length window (practical $N$ values keep this inexpensive). Typical choices: $N=50$–$100$, $q_0=0.15$–$0.25$, $k=2$–$5$, baseline length $L=20$ (if used), adaptation strength $s=0.2$–$0.7$.
Part 2 — Practical Use for Discretionary/Active Traders
What the bands mean in practice.
The teal “buy” band marks the lower tail of the recent distribution; the orange “sell” band marks the upper tail. The median is your dynamic equilibrium. In residual mode, these tails are deviations around trend; in raw mode they are absolute price percentiles. When ATR adaptation is on, tails breathe with regime shifts.
Two core playbooks.
1. Mean-reversion around a stable median.
* Context: The median is flat or gently sloped; band width is relatively tight; instrument is ranging.
* Entry (long): Look for price to probe or close below the buy band and then reclaim it, especially after HLC3 recrosses the median and the median turns up.
* Stops: Place beyond the most recent swing low or $1.0–1.5\times$ ATR(14) below entry.
* Targets: First scale at the median; optional second scale near the opposite band. Trail with the median or an ATR stop.
* Symmetry: Mirror the rules for shorts near the sell band when the median is flat to down.
2. Continuation with latched confirmations.
* Context: A developing trend where you want fewer but cleaner signals.
* Entry (long): Take the latched BUY (3-step confirmation) on close, or on the next bar if you require bar-close validation.
* Invalidation: A close back below the median (or below the lower band in strong trends) negates momentum.
* Exits: Trail under the median for conservative exits or under the teal band for trend-following exits. Consider scaling at structure (prior swing highs) or at a fixed $R$ multiple.
Parameter guidance by timeframe.
* Scalping / LTF (1–5m): $N=30$–$60$, $q_0=0.20$, $k=2$–3, residual mode on, baseline EMA $L=20$, adaptation $s=0.5$–0.7 to handle micro-vol spikes. Expect more signals; rely on latched logic to filter noise.
* Intraday swing (15–60m): $N=60$–$100$, $q_0=0.15$–0.20, $k=3$–4. Residual mode helps but is optional if the instrument trends cleanly. $s=0.3$–0.6.
* Swing / HTF (4H–D): $N=80$–$150$, $q_0=0.10$–0.18, $k=3$–5. Consider `SMA` baseline for smoother residuals and moderate adaptation $s=0.2$–0.4.
Baseline choice.
Use EMA for responsiveness (fast trend shifts) and SMA for stability (smoother residuals). Turning residual mode on is advantageous when price exhibits persistent drift; turning it off is useful when you explicitly want absolute bands.
How to time entries.
Prefer bar-close validation for both band recaptures and latched signals. If you must act intrabar, accept that crosses can “un-cross” before close; compensate with tighter stops or reduced size.
Risk management.
Position size to a fixed fractional risk per trade (e.g., 0.5–1.0% of equity). Define invalidation using structure (swing points) plus ATR. Avoid chasing when distance to the opposite band is small; reward-to-risk degrades rapidly once you are deep inside the distribution.
Combos and filters.
* Pair with a higher-timeframe median slope as a regime filter (trade only in the direction of the HTF median).
* Use band width relative to ATR as a range/trend gauge: unusually narrow bands suggest compression (mean-reversion bias); expanding bands suggest breakout potential (favor latched continuation).
* Volume or session filters (e.g., avoid illiquid hours) can materially improve execution.
Alerts for discretion.
Enable “Cross above Buy Level” / “Cross below Sell Level” for early notices and “Latched BUY/SELL” for conviction entries. Set alerts to “Once per bar close” to avoid noise.
Common pitfalls.
Do not interpret band touches as automatic signals; context matters. A strong trend will often ride the far band (“band walking”) and punish counter-trend fades—use the median slope and latched logic to separate trend from range. Do not oversmooth levels; you will lag breaks. Do not set $q$ too small or too large; extremes reduce statistical meaning and practical distance for stops.
A concise checklist.
1. Is the median flat (range) or sloped (trend)?
2. Is band width expanding or contracting vs ATR?
3. Are we near the tail level aligned with the intended trade?
4. For continuation: did the 3 steps for a latched signal complete?
5. Do stops and targets produce acceptable $R$ (≥1.5–2.0)?
6. Are you trading during liquid hours for the instrument?
Summary. ARQB provides statistically grounded, regime-aware bands and a disciplined, latched confirmation engine. Use the bands as objective context, the median as your equilibrium line, ATR adaptation to stay calibrated across regimes, and the latched logic to time higher-quality discretionary entries.
Disclaimer
No indicator guarantees profits. Adaptive Rolling Quantile Bands is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Best regards
Chervolino
Killzones High/Low [FD] - ENGKillzones High/Low - ENG
Advanced Pine Script v5 indicator designed for ICT (Inner Circle Trader) strategies that identifies trading killzones, key support/resistance levels and midnight prices with granular controls for every element.
SETTINGS
General controls that affect all indicator elements:
Session Drawings Limit (1): Determines how many historical sessions to keep on chart for each element type. Higher values show more history but may slow performance
Timeframe Limit (30): Drawings disappear on timeframes equal or higher to avoid visual overload
Time Zone: Select reference timezone for sessions. America/New_York automatically adjusts for daylight saving, GMT options are fixed
Label Size: Controls global size of all labels (from Tiny to Huge)
Drawings Cutoff Time: Stops extension of all pivots at specified time (useful for end of trading day)
KILLZONES
Manages critical trading sessions with colored boxes and pivot lines:
General Controls
Show Boxes/Text: Enables visualization and texts in session boxes
Transparency: Controls opacity of boxes and text (0=opaque, 100=transparent)
Available Sessions
Five configurable sessions with individual controls for enabling, custom text, times and colors:
Asia (18:00-00:00): Blue by default
London (02:30-05:30): Red by default
N.Y. AM (07:00-11:30): Green by default
Lunch (11:30-13:00): Golden yellow, enabled by default
N.Y. PM (13:00-16:00): Purple by default
PDH / PDL
Manages Previous Day High and Previous Day Low levels:
Show PDH/PDL: Enables previous day's maximum/minimum
Extension: "Until Mitigation" (stops when broken) or "Most Recent Candle" (continues always)
Colors/Thickness: Visual customization of lines (dark purple by default, 1px thickness)
Labels: Shows "PDH"/"PDL" texts with customizable color (white by default)
PWH / PWL
Manages Previous Week High and Previous Week Low levels:
Show PWH/PWL: Enables previous week's maximum/minimum
Extension: Independent control of line extension
Colors/Thickness: Orange by default for both, 2px thickness
Labels: Configurable "PWH"/"PWL" texts
PMH / PML
Manages Previous Month High and Previous Month Low levels:
Show PMH/PML: Enables previous month's maximum/minimum using security()
Extension: Independent control like other systems
Colors/Thickness: Blue by default for both, 1px thickness
Labels: Customizable "PMH"/"PML" texts
MIDNIGHT PRICE LEVEL
Advanced system for multiple midnight prices:
Base Controls
Show Midnight Price: Enables line at pre-00:00 closing price (ICT strategy)
Midnight -2/-3 Days: Extends system to 2 and 3 days prior
Extension/Mitigation: "Until Mitigation" or "Most Recent Candle" with "Once" or "Multiple" mode
Customization
Separate Colors: D-1, D-2, D-3 with progressive transparency (gold by default)
Style/Thickness: Customizable lines (Solid, Dotted, Dashed)
Labels: Configurable texts (🌙1, 🌙2, 🌙3) with customizable background/text colors
Alerts: Alerts when mitigated during active killzones
KILLZONE LEVEL
Controls pivot lines and killzone labels:
Line Controls
Show Lines: Enables horizontal lines on killzone highs/lows
Break Alerts: Alerts when pivots are exceeded
Midpoints: Dashed lines at range center with stop option after mitigation
Label Offset: Moves labels ahead by 5 candles (0-20 configurable), rejoining when mitigated
Label Controls
Text Customization: Configurable labels for each session (Asia_H/L, London_H/L, etc.)
Background/Colors: Transparent or visible labels with customizable colors
Broken Labels: Additional text (❌ by default) and special colors when pivots mitigated
Extension: "Until Mitigation" or "Beyond Mitigation" with session filter ("Most Recent" or "All")
LABEL STYLES
Four dedicated sections to customize label graphic shapes:
Killzone Line Label Styles: Separate controls for killzone High/Low
PDH/PDL Label Styles: Customizable shapes for Previous Day levels
PWH/PWL Label Styles: Customizable shapes for Previous Week levels
PMH/PML Label Styles: Customizable shapes for Previous Month levels
Each section offers 15+ shape options (Arrows, Center, Circle, Square, Diamond, Triangles, Crosses, Flags, etc.)
MIDNIGHT LINES
System for vertical lines at 00:00:
Show Lines/Labels: Vertical lines with upward arrow labels
Customization: Color (gray by default), style, thickness of vertical lines
Labels: Configurable text ("00:00" by default) with customizable text color (black by default)
Label Offset: Percentage control (-10000% to +10000%) for vertical positioning
Extension: Configurable directions (None, Above, Below, Both)
Limit: Maximum number of lines maintained (4 by default, max 50)
The indicator offers granular control over every visual and functional aspect, making it possible to adapt it to any ICT trading strategy or personal setup.
Chanlun MACD中国股票期货类比较常用的macd版本,比系统自带的参考性强这边做个适配
The more commonly used MACD version for Chinese stock and futures markets is more referenceable than the one built into the system, and an adaptation is made here.