OneHolo-TGAPSNRTGAPSNR: Multi time frame - Trend Gap Stop And Reverse strategy/Study PnL. This script outlines a systematic approach to generating buy and sell signals by combining Fair Value Gaps (FVGs), specific market structures, and three different trend direction methods (Swing, Gravity, and FVG Inverse direction). The strategy incorporates multiple entry modes, such as Hyper Mode, Swiper Mode, and a Custom mode, allowing users to tailor signal conditions, alongside extensive logic for trade management, higher time frame analysis, and various visual indicators for plotting trend, pivots, and profit and loss information.
I. Core Trend Direction Consensus (The Three-Pillar System)
The primary method for determining market bias is a three-pillar consensus model, requiring all directional methods to align before the overall Trend Direction is established (up or down). This ensures high conviction for trend signals.
• Pillar 1: Swing Direction: Determines market direction based on classic price action, specifically checking for continuous higher highs and higher lows for an upward bias, or lower lows and lower highs for a downward bias.
• Pillar 2: Gravity Direction (Peak and Valley): This uses specific market structure pivots. Direction is set based on whether the close price successfully crosses the established recent Peak High (indicating upward momentum) or crosses under the recent Valley Low (indicating downward pressure).
• Pillar 3: FVG Inverse Direction: This relies on Fair Value Gaps (FVGs), defined as a gap between the current bar's price and the price two bars prior. Direction shifts occur when the Close price crosses the midpoint of the last relevant FVG. For instance, crossing above the midpoint of the last FVG Down signals a potential inverse long trade.
II. Flexible Signal Generation Modes
The strategy offers several pre-configured and highly detailed entry modes, plus a powerful Custom Mode:
• Session Open Range Break (ORB) Mode: Uses the high/low of the session's first bar to generate initial signals, then defaults to the Three-Pillar Trend Direction after the ORB session concludes.
• Swiper Mode: Designed to identify continuations, combining a confirmed Trend Direction with a Stop and Reverse signal (SnR) while actively avoiding confirmed pivot breaks.
• Hyper/Aggressive Modes: These modes use broad combinations of signals, allowing for earlier entry based on momentum and structural breaks (like PeakCrossLong, SnRtrapLong, or FVG signals).
• Custom Query Mode (The Seven-Slot Logic): This non-redundant system allows the user to define complex, tailored entry conditions by selecting any combination of 14 core patterns across seven distinct slots.
◦ AND/OR Combination: For each of the seven slots, the user determines if the chosen pattern must be met (AND component) or if it can serve as an alternative trigger (OR component).
◦ The final signal requires that all configured AND conditions are true and then integrates the result of the OR conditions, allowing for highly specific "hook queries" (e.g., "Condition A AND Condition B, OR Condition C").
III. Advanced PnL and Mobile App Diagnostics
A key proprietary element is the implementation of a dual PnL system and customized visualization features:
• Dual PnL Display (Strategy PnL vs. Study PnL): Users can choose to view either the native platform's strategy performance data or the script's internal, proprietary Study PnL. The Study PnL calculates profits/losses based strictly on the close price and tracks performance using Pine Script® arrays, providing a transparent, diagnostic view of performance independent of broker/platform simulation biases.
• Lower Panel Visualization: Both PnL types are displayed on the lower panel using detailed bar plots (style=plot.style_columns), which color according to profitability, and include labels that show current open profit and total net profit.
• Detailed Trade Labels: The script generates detailed, customizable labels on both the chart (above/below bars) and the lower PnL panel, providing historical PnL, number of trades, and real-time profit information for each entry or exit.
IV. Higher Time Frame (HTF) Context and Lookahead Prevention
The strategy integrates multi-time frame analysis using strict methodology to prevent lookahead bias:
• HTF Bias Filtering: When enabled, the strategy uses the position calculated on a user-defined higher time frame (HTF) as a mandatory filter. A long signal on the current chart is only executed if the HTF is also in a long position, and vice-versa.
• Lookahead Prevention: To maintain integrity, all HTF data requests use a mandatory lookback index (often ) to ensure the script only accesses confirmed data from the prior completed bar on the higher timeframe.
• HTF Visual Mode: The user can opt to display key structural elements—such as the Gravity Pivots and the Trend Direction blocks—as calculated on the HTF, overlaying this higher-level context onto the current chart for visual analysis.
The TGAPSNR: Multi time frame - Trend Gap Stop And Reverse strategy/Study PnL script, despite its complexity, intentionally excludes realistic considerations such as fees, slippage, and explicit risk management settings (like fixed stop-loss or take-profit rules) from its primary logic.
Here is an explanation of why these elements are omitted in the strategy's current implementation and why they must be applied by the user for real-world application, drawing on the context of the sources:
1. Absence of Realistic Fees, Commissions, and Slippage
The primary function of the TGAPSNR script is to execute intricate signal generation and diagnostic PnL calculation based on its three-pillar trend system and Custom Mode logic.
However, the strategy's backtesting results, particularly those displayed by the internal Study PnL feature, are based purely on price difference (e.g., (close - lse) * syminfo.pointvalue * IUnits).
• Strategy Result Requirements: TradingView explicitly states that strategies published publicly should strive to use realistic commission AND slippage when calculating backtesting results to avoid misleading traders.
• User Responsibility: Since the script currently focuses on signal integrity and uses a fixed contract size (IUnits = 1) without configurable commission/slippage inputs shown in the source, the user must manually configure these fees within the Pine Script® Strategy Tester settings (Properties tab) to ensure the strategy results are reflective of actual trading costs.
2. Omission of Built-in Risk Management (Stop-Loss and Take-Profit)
The TGAPSNR strategy's core focuses on entry signals and trend confirmation. Exits are primarily governed by:
• Reversal signals (BuyStop or SellStop).
• End-of-Day (EOD) session closures (EODStop).
• HTF bias opposition.
What is Missing: The script does not include explicit, hard-coded risk management parameters for traditional stop-loss (SL) or take-profit (TP) levels (e.g., risk percentage or ATR-based exits).
• Viable Risk: TradingView guidelines stipulate that strategies should generally risk sustainable amounts of equity, usually not exceeding 5-10% on a single trade, and trade size must be appropriate.
• User Application: To ensure the strategy operates within realistic risk boundaries, users must apply their own risk management rules. This includes:
◦ Implementing realistic stops and profit targets, which can be added via Pine Script® code or manually managed during live trading.
◦ Sizing trades to only risk sustainable amounts of equity. The current default unit size (IUnits = 1) is unrealistic for risk assessment unless the symbol is micro-sized.
3. Execution Quality (Fills)
The strategy is set to fill_orders_on_standard_ohlc = true and operates on confirmed bar closes (barstate.isconfirmed).
• Fill Assumption: This suggests the strategy primarily uses close price or the HTF close price (EntryPrice = HTFClose) for execution.
• Real-World Limitation: In volatile markets, obtaining a fill price equal to the close of the bar is rare. The user must be aware that the simulated fill price shown in backtesting may differ significantly from actual execution prices due to market action and chosen order type, reinforcing the importance of applying slippage settings.
In summary, while the script provides highly detailed and unique signal generation and internal PnL diagnostics, users must exercise caution and apply their own realistic parameters for fees, slippage, and explicit risk controls to prevent misleading performance results and ensure viable trading
樞軸點和水平
Session LevelsMarks the highs and lows of the previous day New York session and the following Asian and London sessions.
Behdad v2 Daily Weekly Monthly HLC & SessionsThis indicator plots the highest and lowest as well as the closing price of the market for daily, weekly and monthly periods. It is also a great help for trading by identifying the range of sessions and fractals.
High Time Frame (HTF) Swing PointsIdentify and display swing highs and lows across multiple higher timeframes on a chart, overlaying horizontal lines and customizable labels at these swing points.
Timeframes
Five user-defined higher timeframes (default settings: 5-minute, 15-minute, 1-hour, 4-hour, and daily)
Manually show/hide individual timeframes
When chart’s timeframe is set higher than one of the five configured, the indicator will automatically hide it. This helps to prevent clutter when navigating between timeframes on the chart
Swing Levels
Configure the line color, opacity, width and weather it’s solid/dotted/dashed
Once swing levels are identified, the indicator will look for the chart candle where the line starts
When price crosses the swing level, the line will be terminated
Tags
Customize the tag text for each individual timeframe, using blank if a tag is not desired for that timeframe
A tag text color can be set for all tags or base it on the line color
Set tag text size based on: Auto, Tiny, Small, Normal, Large
Choose how far to the right of the line the tag text should appear, as an integer representing the size of a candle
Choose to clear the tag or leave it in place after price crosses a swing level
Use Cases
Visualize key swing points from higher timeframes to identify potential reversal or breakout zones
Identify possible low resistance liquidity run (LRLR) areas
Use swing points for stop placement or as targets or draws on liquidity
Kornél CCI Divergence — Price Overlay (All levels + EMA50) v6English/Hungarian
🔎 Overview
This is a CCI divergence indicator that looks for discrepancies (divergences) between the price and the CCI (Commodity Channel Index) and plots them on the chart with lines and labels.
⚙️ How it works
It searches for pivot points in the price:
Pivot High (local high)
Pivot Low (local low)
It uses the ta.pivothigh() and ta.pivotlow() functions for this.
For these pivots, it checks the CCI value on the same candle.
Then it compares two consecutive pivots:
Bullish divergence (green):
Price makes a lower low (LL)
CCI makes a higher low (HL)
Price is above the EMA50 (uptrend)
Bearish divergence (red):
Price makes a higher high (HH)
CCI makes a lower high (LH)
Price is below the EMA50 (downtrend)
If a divergence is detected:
Draws a line connecting the two pivots
Adds a label (“BullDiv” or “BearDiv”)
Sets an alert to notify the user
EMA50 trend filter:
Accepts bullish divergences only if price is above EMA50
Accepts bearish divergences only if price is below EMA50
This filters out “false” signals
Keeping the chart clean:
Stores a maximum of X lines and labels at a time (maxLines), deleting older ones
📈 Practical meaning
If the price makes a new low but the CCI does not → Bullish Divergence (price weakness, potential upward reversal)
If the price makes a new high but the CCI does not → Bearish Divergence (trend exhaustion, potential drop)
So it tries to provide reversal signals.
Thanks to the EMA50, it only highlights divergences that align with the current trend → a trend-following divergence filter.
👉 In short:
This indicator plots pivot-based divergences between CCI and price, and only signals when the divergence aligns with the trend indicated by the EMA50.
Magyar:
🔎 Áttekintés
Ez egy CCI divergencia indikátor, amely a CCI (Commodity Channel Index) és az ár közötti eltéréseket (divergenciákat) keresi, és vonalakkal és címkékkel ábrázolja a grafikonon.
⚙️ Hogyan működik
Keresi a pivot pontokat az árban:
Pivot High (helyi csúcs)
Pivot Low (helyi mélypont)
Ehhez a ta.pivothigh() és ta.pivotlow() függvényeket használja.
Ezeknél a pivot pontoknál megnézi a CCI értékét ugyanazon a gyertyán.
Ezután összehasonlít két egymást követő pivotot:
Bullish divergencia (zöld):
Az ár alacsonyabb mélypontot (LL) csinál
A CCI magasabb mélypontot (HL) csinál
Az ár az EMA50 fölött van (emelkedő trend)
Bearish divergencia (piros):
Az ár magasabb csúcsot (HH) csinál
A CCI alacsonyabb csúcsot (LH) csinál
Az ár az EMA50 alatt van (csökkenő trend)
Ha divergencia történik:
Vonalat húz a két pivot pont között
Címkét ad hozzá („BullDiv” vagy „BearDiv”)
Értesítést (alertet) állít be a felhasználónak
EMA50 trend szűrő:
Bullish divergenciát csak akkor fogad el, ha az ár EMA50 fölött van
Bearish divergenciát csak akkor fogad el, ha az ár EMA50 alatt van
Ez kiszűri a „hamis” jeleket
A grafikon tisztán tartása:
Egyszerre maximum X vonalat és címkét tárol (maxLines), a régebbieket törli
📈 Gyakorlati jelentés
Ha az ár új mélypontot ér el, de a CCI nem → Bullish Divergence (árgyengülés, potenciális emelkedés)
Ha az ár új csúcsot ér el, de a CCI nem → Bearish Divergence (trend kifulladása, potenciális csökkenés)
Tehát az indikátor fordulós jeleket próbál adni.
Az EMA50 segítségével csak az aktuális trenddel összhangban lévő divergenciákat emeli ki → trendkövető divergencia szűrő.
👉 Röviden:
Ez az indikátor a CCI és az ár pivot pontjai közötti divergenciákat ábrázolja, és csak akkor jelez, ha a divergencia összhangban van az EMA50 által jelzett trenddel.
Liquidity Zones - Joe v1This script lets you plot liquidity/order levels (similar to what you see on Bookmap) directly on your TradingView chart.
It is designed to help traders spot support/resistance levels where large limit orders sit and to visualize whether those liquidity pools are still active, already taken, or being replenished.
Key Features
Session-based
Works during a defined trading session.
Resets automatically at the first bar of the session.
Up to 8 Liquidity Zones, each of which includes:
Price level
Size (affects line thickness)
Status (Active, Taken, Re-Stocking, or Automatic).
Zone Statuses
Active → Untouched liquidity (potential support/resistance).
Taken → Liquidity consumed after price trades through it.
Re-Stocking → Level is being reloaded with fresh orders.
Automatic → Updates dynamically (switches to Taken when crossed, otherwise stays Active).
Visual Representation
Zones are drawn as horizontal lines.
Labels show price + size (e.g., 4010 (200k)).
Customizable line styles and colors:
Active = solid red
Taken = gray dashed
Re-Stocking = purple dotted
Dynamic Updates
Levels automatically update during the session.
If price crosses a zone → it’s marked as Taken.
Labels, line styles, and colors adjust live.
Line thickness = zone size ÷ 10 → visually represents liquidity strength.
How this indicator is Used
Upon market open, the order book tends to fill with limit orders. Using Bookmap, you can see where these orders are placed at each relative price point, along with their sizes. The most important ones to focus on are the larger levels, which are typically highlighted in reddish tones (depending on your Bookmap settings).
I then manually enter these levels into this indicator. It only takes a few seconds, and since there’s no direct way to connect TradingView to Bookmap, this method works as an effective workaround. Once entered, the levels will stay visible on your TradingView chart.
This seemingly simple script is very powerful and provides a strong edge. More often than not, price action gravitates toward these larger liquidity levels. Remember, the price of a security is influenced by market makers whose role is to fill orders and earn commissions on transactions. They have little interest in arbitrarily pushing price higher or lower; instead, their primary function is to guide price toward liquidity—where the large orders sit.
Of course, this is a general principle, and many other variables can affect price movement. Still, by keeping this concept in mind, you’ll often find yourself on the right side of the market.
Palat Trading System Entry Prices (Bear)This script gives you the entry points for 4,5,6,7 consecutive candles which got up closing vs last trading day.
Palat Trading System Entry Prices (Bull)This script gives you the entry points for 4,5,6,7 consequetive candles which got down closing vs last trading day.
CPR by Hexaurum LearningCPR (Central Pivot Range) Indicator Summary
Formula:
The CPR consists of three levels calculated from the previous period's price data:
Central Pivot (P) = (High + Low + Close) / 3
Bottom Central (BC) = (High + Low) / 2
Top Central (TC) = (High - Low) / 2 + Central Pivot
Note: TC can also be written as: 2 × Pivot - BC
The CPR range is the area between TC and BC (shown as a box in the indicator).
Key Features:
Multiple Timeframes: Daily, Weekly, and Monthly CPR levels
Developing CPR: Real-time CPR that updates as the current period forms
Fixed CPR: Static CPR from the completed previous period
Benefits & Trading Applications:
Trend Identification
Narrow CPR = Strong trending move likely (breakout expected)
Wide CPR = Consolidation or range-bound market
Support & Resistance
CPR acts as a strong support/resistance zone
Price tends to respect these levels for reversals or bounces
Breakout Trading
Price breaking above TC = Bullish signal
Price breaking below BC = Bearish signal
The narrower the CPR, the more explosive the breakout
Intraday Direction
If price opens above CPR = Bullish bias for the day
If price opens below CPR = Bearish bias for the day
Price within CPR = Neutral/range-bound
Multiple Timeframe Analysis
Higher timeframe CPR (Weekly/Monthly) provides major S/R zones
Daily CPR helps with precise entry/exit points
Confluence of multiple CPR levels increases reliability
Risk Management
Clear levels for stop-loss placement (beyond TC or BC)
Defined risk-reward zones for position sizing
Popular Strategy: Trade the CPR breakout with volume confirmation, using BC/TC as stop-loss levels.
Developing Camarilla Pivots by Hexaurum LearningMathematical Foundation
The Camarilla Formula
The Camarilla pivot levels are derived from the following key price parameters of the preceding trading session:
C = Prior day's closing price
H = Prior day's high price
L = Prior day's low price
Resistance Levels:
H5 = (H / L) × C (proprietary derivation for identifying extreme
resistance)
H4 = (H 3 L) × 1.1 / 2 + C
H3 = (H 3 L) × 1.1 / 4 + C
H2 = (H 3 L) × 1.1 / 6 + C
H1 = (H 3 L) × 1.1 / 12 + C
Support Levels:
L1 = C 3 (H 3 L) × 1.1 / 12
L2 = C 3 (H 3 L) × 1.1 / 6
L3 = C 3 (H 3 L) × 1.1 / 4
L4 = C 3 (H 3 L) × 1.1 / 2
L5 = C 3 (H5 3 C) (symmetrical derivation mirroring H5)
The Significance of the 1.1 Multiplier
The inclusion of a 1.1 multiplier in the formula incorporates a buffer for anticipated volatility expansion. The sequential divisors (2, 4, 6, 12) generate a
series of levels with decreasing incremental distances from the closing price, with each level delineating distinct probabilistic trading zones for potential
mean reversion or trend continuation.
Camarilla - Hexaurum LearningMonthly, Weekly, Daily
Camarilla Levels
The Camarilla pivot levels are derived from the following key price parameters of the preceding trading session:
C = Prior day's closing price
H = Prior day's high price
L = Prior day's low price
Resistance Levels:
H5 = (H / L) × C (proprietary derivation for identifying extreme
resistance)
H4 = (H 3 L) × 1.1 / 2 + C
H3 = (H 3 L) × 1.1 / 4 + C
H2 = (H 3 L) × 1.1 / 6 + C
H1 = (H 3 L) × 1.1 / 12 + C
Support Levels:
L1 = C 3 (H 3 L) × 1.1 / 12
L2 = C 3 (H 3 L) × 1.1 / 6
L3 = C 3 (H 3 L) × 1.1 / 4
L4 = C 3 (H 3 L) × 1.1 / 2
L5 = C 3 (H5 3 C) (symmetrical derivation mirroring H5)
The Significance of the 1.1 Multiplier
The inclusion of a 1.1 multiplier in the formula incorporates a buffer for anticipated volatility expansion. The sequential divisors (2, 4, 6, 12) generate a
series of levels with decreasing incremental distances from the closing price, with each level delineating distinct probabilistic trading zones for potential
mean reversion or trend continuation.
Round Number Analyzer v3Round Number Analyzer v3 is an indicator designed to analyze how price interacts with round number levels (levels spaced at fixed intervals in points or pips).
The indicator does not generate entry/exit signals, but provides detailed statistics to better understand market dynamics around these key levels.
✨ Key Features
Cross Counting: detects every time the price crosses a round number level (up = Long, down = Short).
Continuations & Reversals: classifies each cross as:
Continuation: the move continues in the same direction as the previous sequence.
Reversal: the move changes direction compared to the previous sequence.
Sequence Classification (L1…L5+): each level is labelled based on its position within the consecutive cross sequence:
L1 = first level of the sequence,
L2 = second consecutive,
…
L5+ = fifth or higher.
Comprehensive Stats Table (top right corner):
Total crosses (Long, Short, Totals).
Total continuations + breakdown by L1…L5+.
Total reversals + breakdown by L1…L5+.
Percentages calculated against the proper denominator, displayed directly inside the cells next to the absolute values.
Date range of analysis (user-defined).
Customizable Step: Works in both points and pips, making the indicator suitable for indices and forex.
⚙️ Main Inputs
Start date / End date → sets the analysis period.
Step mode → Points or Pips.
Step value → distance between round levels.
Pip size → pip size (default = 0.0001, typical for forex).
📈 How to Interpret
A high continuation percentage after L1–L2 suggests the market tends to extend multiple times beyond the first breakout levels.
Higher reversal percentages at advanced levels (L4–L5+) may signal trend exhaustion.
The analysis helps estimate the probability of continuation or reversal depending on how many consecutive levels have already been crossed.
🔎 Practical Applications
Support for breakout or mean-reversion strategies.
Comparative analysis across different markets (e.g. indices vs forex) or different time periods.
📝 Notes
The indicator is timeframe-robust, as it accounts for multiple steps within the same candle, ensuring results do not depend on the selected timeframe (except for TradingView’s historical data limits).
It does not provide automatic trading signals, but serves as a quantitative analysis tool to refine your strategies.
---
Round Number Analyzer v3 è un indicatore pensato per analizzare come il prezzo interagisce con i livelli di round number (livelli a distanza fissa in punti o pips).
L’indicatore non genera segnali di ingresso/uscita, ma fornisce statistiche dettagliate utili per comprendere la dinamica del mercato attorno a questi livelli.
✨ Funzionalità principali
Conteggio dei Cross: rileva ogni volta che il prezzo attraversa un livello round (verso l’alto = Long, verso il basso = Short).
Continuations & Reversals: classifica ogni attraversamento come:
Continuation: il movimento prosegue nella stessa direzione della sequenza precedente.
Reversal: il movimento inverte la direzione rispetto alla sequenza precedente.
Classificazione per sequenza (L1…L5+): ogni livello è etichettato in base alla sua posizione nella sequenza di cross consecutivi:
L1 = primo livello della sequenza,
L2 = secondo consecutivo,
…
L5+ = quinto o superiore.
Statistiche complete in tabella (in alto a destra):
Cross totali (Long, Short, Totals).
Continuations totali + breakdown per L1…L5+.
Reversals totali + breakdown per L1…L5+.
Percentuali calcolate sul denominatore corretto, mostrate direttamente dentro le celle accanto ai valori assoluti.
Date range di analisi (impostabile dall’utente).
Step personalizzabile: puoi lavorare sia in punti che in pips, così l’indicatore è adatto sia per indici che per forex.
⚙️ Input principali
Start date / End date → imposta l’intervallo temporale di analisi.
Step mode → punti o pips.
Step value → ampiezza tra i livelli round.
Pip size → dimensione del pip (default = 0.0001, tipico per il forex).
📈 Come interpretarlo
Una percentuale di continuation molto alta dopo L1–L2 indica che il mercato tende a proseguire più volte oltre i primi livelli di breakout.
Percentuali di reversal più elevate nei livelli avanzati (L4–L5+) possono suggerire esaurimento della spinta.
L’analisi permette di stimare la probabilità che un movimento in corso continui o si inverta in base a quanti livelli sono già stati attraversati consecutivamente.
🔎 Applicazioni pratiche
Supporto per strategie di breakout o mean reversion.
Analisi comparativa tra mercati (es. indici vs forex) o tra periodi temporali diversi.
📝 Note
L’indicatore è timeframe-robust: il conteggio tiene conto di multipli step dentro la stessa candela, così i risultati non dipendono dal timeframe scelto (salvo i limiti di caricamento storico di TradingView).
Non fornisce segnali operativi automatici, ma è un tool di analisi quantitativa per affinare le proprie strategie.
RTH & ETH High/Low (Today & Prev)RTH and ETH High Low Indicator. This draws a line for the ETH and RTH highs and lows for todays session and yesterdays session. it allows you to toggle off any of the 8 potential levels as well as change the colour of the 8 levels. WIP
ATH Line with Date (Editable)Overview:
This indicator draws a continuous horizontal line at the instrument’s All-Time High (ATH) and annotates it with a label that shows the date the ATH was set in dd-mmm-yyyy format. The label is fully configurable (text prefix, side, position, colors, vertical offset), and you can optionally append the ATH price formatted as $ 1.234,56. Built for Pine Script™ v6 and works on any symbol or timeframe.
How it works
• Maintains a running maximum of high.
• Detects the bar where the current ATH occurred and extracts its date.
• Renders a horizontal line extended both sides at the ATH level.
• Places an optional label on the last bar or on the ATH bar.
• Triggers an optional alert when a new ATH is printed.
Inputs
• Line color / width / style – customize the ATH line appearance.
• Show label – toggle label on/off.
• Label text (prefix) – default ATH ►.
• Label text color / background – visual customization for the tag.
• Label side – left or right-anchored label.
• X location – Last bar or ATH bar.
• Label vertical offset (%) – moves the label above/below the line.
• Show price – appends the ATH price in the format $ 1.234,56
Notes & behavior:
• Repainting: The ATH level is stable until a higher high appears. When a new ATH is set, the line and date update accordingly—this is expected behavior.
• The ATH is computed from the chart’s current timeframe/history. If the symbol has limited history on your chart, the ATH reflects only the available data.
• No external libraries; no user data is collected.
Alerts:
• Includes New ATH alert condition. Fire it to be notified when price sets a new all-time high.
Tips:
• Use Last bar placement to keep the label visible at the right edge while scrolling.
• If the label overlaps candles or drawings, add a small positive vertical offset.
Version:
• Pine Script™ v6. Indicator only; no trading signals or orders.
Disclaimer:
For educational purposes only. This script does not constitute financial advice or a recommendation to buy or sell any security. Always do your own research and manage risk appropriately.
Predictive Pivot Matrix OHLC data, integrates volume profile for POC/Value Area tracking (including virgin POC), applies rule-based "ML" scoring to evaluate pivot strength via factors like proximity, volume, touches, trend, and confluence, monitors adaptive success rates, projects 5-day future pivots using trend/volatility, detects overlapping confluence zones, and generates visuals (lines, labels, table), alerts, and buy/sell signals on key crossings.
KISS Pivot LinesWhat it does
• Automatically finds pivot highs and pivot lows on your chart.
• Draws clean horizontal lines (no messy labels, price or text).
• Filters out weak swings using an ATR filter and merge tolerance so only the bigger turning points stay.
• Keeps just the last N levels (you choose how many) so your chart never gets overloaded.
⸻
How to use
Support & Resistance
• Red lines (highs): potential resistance. Price often retests (“kisses”) these before reversing or breaking through.
• Teal lines (lows): potential support. Price often bounces here or breaks down if momentum is strong.
Trade setups
• Trend trades: Use pivots in confluence with VWAP, EMA, or your trend filter.
• Reversals: Watch for rejection candles or divergence right at a pivot line.
• Breakouts: If price slices cleanly through a pivot line, the old support often flips to resistance (and vice versa).
⸻
Suggested settings
• Left/Right = 6–10 bars → balanced pivots on intraday charts.
• ATR filter = 0.5–1.0× → keeps only strong swings.
• Merge ticks = 2–4 (ES), 8–12 (NQ) → merges nearby levels into one clean line.
• Max lines = 6 highs / 6 lows → keeps things readable.
⸻
⚡ Tip: Price loves to “kiss” these levels on the way back. Don’t just take them blindly—wait for price action or confluence to confirm whether it’s bouncing, rejecting, or breaking.
Advanced Institucional Trading IndicatorThe Advanced Institutional Trading Indicator is a comprehensive technical analysis tool that combines four institutional trading concepts to identify where large market participants hunt liquidity, establish positions, and create supply/demand imbalances. The indicator integrates pivot-based reversal signals, liquidity sweep detection, volumetric order blocks, and equal highs/lows identification into a unified framework for analyzing institutional footprints in the market.
What It Detects
Pivot-Based Reversal Signals: Swing highs/lows marking potential trend reversals
Liquidity Sweeps: False breakouts indicating institutional stop-hunting
Volumetric Order Blocks: Supply/demand zones with buying vs selling pressure ratios
Equal Highs/Lows (EQH/EQL): Liquidity pools where stops cluster
In Practice
Traders can watch for equal highs/lows near order blocks, wait for sweeps of these levels as confirmation of liquidity capture, then look for reversal signals to time entries with the expectation that institutions have now positioned themselves and the true directional move can begin.
Logic used
Pivots: Standard functions with configurable periods, signals when swing type alternates
Sweeps: Detects brief violations of swing levels with cooldown filter
Order Blocks: Three-candle volume split into buying/selling pressure, filtered by ATR
Equal Levels: Compares consecutive pivots within ATR-based threshold
Visual representation
Reversal Signals: Green "Buy-point"/red "Sell-point" labels.
Sweeps: Dashed lines with "Sweep" text and swing markers.
Order Blocks: Colored boxes with volumetric bars and percentages.
Equal Levels: Golden lines with $ symbols.
Customization options
Pivot Length, Cooldown Period, Swing Length, Zone Count (1/3/5/10), ATR Multiplier, Threshold, customizable colors and styles.
Recommendations for use: Lower timeframes use smaller parameters (5-15 pivot, 20-35 swing). Higher timeframes use larger (20-50 pivot, 50-100 swing). Adjust for volatility.
Originality and value
While this indicator utilizes established concepts from institutional trading methodology (particularly Smart Money Concepts and ICT principles), its value proposition includes:
- Integration: Combines four complementary analysis tools into a single cohesive framework rather than requiring multiple separate indicators
- Volumetric Enhancement: Adds quantitative volume analysis to order blocks, showing not just where institutions positioned but how much buying vs selling pressure existed
- Automated Zone Management: Intelligently combines overlapping order blocks to reduce visual noise while preserving essential information
- Intelligent Filtering: Uses ATR-based thresholds for equal highs/lows and maximum order block size, adapting to market volatility
- Coordinated Signaling: All components reference similar swing detection logic, creating alignment between different institutional footprint indicators
Disclaimer
This indicator is a technical analysis tool and does not constitute financial advice.
/////Descripcion en español/////
El Advanced Institutional Trading Indicator combina cuatro conceptos institucionales—reversiones por pivotes, barridos de liquidez, bloques volumétricos y niveles iguales—para identificar dónde grandes participantes cazan liquidez y establecen posiciones.
Qué detecta
1. Reversiones por Pivotes: Máximos/mínimos marcando cambios de tendencia
2. Barridos de Liquidez: Falsas roturas indicando caza de stops institucional
3. Bloques Volumétricos: Zonas oferta/demanda con ratios presión compradora/vendedora
4. Niveles Iguales (EQH/EQL): Pools de liquidez donde se agrupan stops
Cómo usarlo
Observar niveles iguales cerca de bloques, esperar barridos como confirmación de captura de liquidez, entrar con señales de reversión cuando instituciones se han posicionado.
Lógica utilizada
- Pivotes: Funciones estándar configurables, señaliza cuando alternan
- Barridos: Detecta violaciones breves con filtro de enfriamiento
- Bloques: Volumen de tres velas dividido en presión compradora/vendedora, filtrado por ATR
- Niveles Iguales: Compara pivotes consecutivos dentro de umbral ATR
Representación visual
Señales: Etiquetas "Buy/Sell-point" verdes/rojas. Barridos: Líneas punteadas con "Sweep" y marcadores swing. Bloques: Cajas con barras volumétricas y porcentajes. Niveles: Líneas doradas con símbolo $.
Configuraciones clave
Pivot Length, Cooldown Period, Swing Length, Zone Count (1/3/5/10), ATR Multiplier, Threshold, colores y estilos personalizables.
Consejos: Marcos menores usan parámetros pequeños (5-15 pivot, 20-35 swing). Marcos mayores usan grandes (20-50 pivot, 50-100 swing). Ajustar según volatilidad.
Originalidad
Integra cuatro herramientas en un marco. Añade análisis volumétrico a bloques. Combina automáticamente zonas superpuestas. Usa filtrado adaptativo basado en ATR. Alinea componentes con lógica unificada basada en Smart Money/ICT.
Descargo
Herramienta de análisis técnico, no asesoramiento financiero.
VWAP Multi Sessions + EMA + TEMA + PivotThis indicator combines several technical tools in one, designed for both intraday and swing traders to provide a complete view of market dynamics.
- VWAP Multi Sessions: calculates and plots five independent VWAPs, each based on a specific time range. This allows you to better identify value zones and price evolution during different phases of the trading day.
- Moving Averages (EMA): three strategic EMAs (55, 144, and 233 periods) are included to track the broader trend and highlight potential crossovers.
- TEMA (Triple Exponential Moving Average): two TEMAs (144 and 233 periods) offer a more responsive alternative to EMAs, reducing lag while filtering out some market noise.
- Daily Levels: the previous day’s open, close, high, and low are plotted as key support and resistance references.
- Pivot Point (P): also included is the classic daily pivot from the previous session, calculated as (High + Low + Close) / 3, which acts as a central level around which price often gravitates.
In summary, this indicator combines:
- intraday value references (session VWAPs),
- trend indicators (EMA and TEMA),
- and daily reference points (OHLC and Pivot).
It is particularly suited for intraday, scalping, and swing trading strategies, helping traders anticipate potential reaction zones in the market more effectively.
Pivot Triangles High/Low (anchored)“It is used to detect price action pivots. You can choose the number of candles before a pivot is marked. It is useful for identifying trends.”
Auto Fibonacci Retracements with Alerts [SwissAlgo]AUTO-FIBONACCI RETRACEMENT: LEVELS, ALERTS & PD ZONES
Automatically maps Fibonacci retracement levels with Premium/Discount (PD) zones and configurable alerts for technical analysis study.
------------------------------------------------------------------
FEATURES
Automatic Fibonacci Levels Detection
Identifies swing extremes (reference high and low to map retracements) from a user-defined trend start date and trend indication automatically
Calculates 20 Fibonacci levels (from -2.618 to +2.618) automatically
Dynamically updates Fib levels as price action develops, anchoring the bottom (in case of uptrends) or the top (in case of downtrends)
Detects potential Trend's Change of Character automatically
Premium/Discount (PD) zone visualization based on trend and price extremes
Visual Components
Dotted horizontal lines for each Fibonacci level
'Premium' and 'discount' zone highlighting
Change of Character (CHoCH) marker when a trend anchor breaks (a bottom is broken after an uptrend, a top is broken after a downtrend)
Adaptive label colors for light/dark chart themes
Alert System
Configurable alerts for all Fibonacci levels
Requires 2 consecutive bar closes for confirmation (reduces false signals)
CHoCH alert when a locked extreme is broken
Set up using "Any alert() function call" option
------------------------------------------------------------------
USE CASES
Two Primary Use Cases:
1. PROSPECTIVE TREND MAPPING (Real-Time Tracking)
Set start date at or just before an anticipated swing extreme to track levels as the trend develops:
For Uptrend : Place start date near a bottom. The bottom level locks after consolidation, while the top updates in real-time as the price climbs higher
For Downtrend : Place start date near a top. The top-level locks after consolidation, while the bottom updates in real-time as the price falls lower
This mode tracks developing price action against Fibonacci levels as the swing unfolds.
2. RETROSPECTIVE ANALYSIS (Historical Swing Study)
Set the start date at a completed swing extreme to analyze how the price interacted (and is interacting) with the Fibonacci levels:
Both high and low are already established in the historical data
Levels remain static for analysis purposes
Useful for analyzing price behavior relative to Fibonacci levels, studying retracement dynamics, and assessing a trading posture
------------------------------------------------------------------
HOW TO USE
Set 'Start Date' : Select Start Date (anchor point) at or just before the swing extreme (bottom for uptrend, top for downtrend)
Choose Trend Direction (Up or Down): direction is known for retrospective analysis, uncertain for prospective analysis
Update the start date when significant structure breaks occur to begin analyzing a new swing cycle.
Configure alerts as needed for your analysis
------------------------------------------------------------------
TECHNICAL DETAILS
♦ Auto-Mapped Fibonacci Retracement Levels:
2.618, 2.000, 1.618, 1.414, 1.272, 1.000, 0.882, 0.786, 0.618, 0.500, 0.382, 0.236, 0.118, 0.000, -0.272, -0.618, -1.000, -1.618, -2.000, -2.618
♦ Premium/Discount (PD) Zones:
Uptrend: Green (discount zone) = levels 0 to 0.5 | Red (premium zone) = levels 0.5 to 1.0
Downtrend: Red (premium zone) = levels 0 to 0.5 | Green (discount zone) = levels 0.5 to 1.0
The yellow line represents the 0.5 equilibrium level
♦ Lock Mechanism:
The indicator monitors for new extremes to detect a Change of Character in the trend (providing visual feedback and alerts). It locks the anchor swing extreme after a timeframe-appropriate consolidation period has elapsed (varies from 200 bars on second charts to 1 bar on monthly charts) to detect such potentially critical events.
------------------------------------------------------------------
IMPORTANT NOTES
This is an educational tool for technical analysis study. It displays historical and current price relationships to Fibonacci levels but does not predict future price movements or provide trading recommendations.
DISCLAIMER: This indicator is for educational and informational purposes only. It does not constitute financial advice or trading signals. Past price patterns do not guarantee future results. Trading involves substantial risk of loss. Always conduct your own analysis and consult with qualified financial professionals before making trading decisions. By using this indicator, you acknowledge and agree to these limitations.
MK_OSFT-Momentum Confluence DetectorMOMENTUM CONFLUENCE DETECTOR - Trading Indicator Overview
What This Indicator Does
The Momentum Confluence Detector is a comprehensive Pine Script indicator designed to identify high-probability trading opportunities by detecting momentum bars that align with multiple confluence factors. It combines traditional technical analysis with advanced Smart Money Concepts to filter out noise and highlight the most significant price movements.
CORE FUNCTIONALITY
📊 Momentum Bar Detection Identifies unusual volume and bar size expansion using customizable multipliers
Detects bullish, bearish, and neutral momentum bars based on OHLC relationships
Uses moving averages to establish baseline volume and bar size thresholds
🔄 Multi-Filter Confluence System
The indicator employs up to 5 different filter types to validate momentum signals:
Level Concept Filter - Choose between:
- Support/Resistance Levels : Traditional pivot-based S/R zones with touch counting and break tracking
- Smart Money Concepts : Institutional order flow analysis including Order Blocks, Fair Value Gaps (FVGs), and market structure breaks
Trend Filter : EMA/SMA-based trend direction confirmation with alignment requirements
Breakout Filter : Detects price breakouts beyond recent highs/lows with percentage thresholds
Volatility Filter : ATR expansion confirmation to ensure signals occur during active market conditions
Market Session Filter : Filters signals to specific trading sessions (Tokyo, London, New York)
ADVANCED FEATURES
🎯 Smart Money Concepts Integration
Order Blocks : Identifies institutional supply/demand zones from major and minor structure breaks
Fair Value Gaps (FVGs) : Detects price imbalances and tracks their evolution through partial fills and inversions
Market Structure : Recognizes Break of Structure (BOS) and Change of Character (CHoCH) patterns
Retracement Patterns : Tracks HLH (Higher-Low-Higher) and LHL (Lower-High-Lower) institutional patterns
📈 Support/Resistance System
Multi-timeframe pivot detection (3, 5, 7-bar spans)
Volume-weighted strength calculation for level importance
Dynamic level merging and break tracking
Automatic level type classification (Support/Resistance/Flip zones)
⚙️ Intelligent Filtering Logic
ALL Mode : Requires all enabled filters to pass (high precision)
ANY Mode : Requires at least one filter to pass (higher frequency)
Real-time filter status tracking and visualization
Visual Features
Signal Markers : Clear triangular markers for qualified momentum bars
Unfiltered Signals : Optional display of raw momentum bars for comparison
Level Visualization : Dynamic S/R level boxes and lines with strength indicators
Structure Lines : BOS/CHoCH break visualization with major/minor classification
Fair Value Gaps : Color-coded boxes showing bullish/bearish FVGs with partial fill tracking and IFVG conversion
Order Blocks : Institutional supply/demand zones displayed as colored boxes with major/minor classification
Information Table : Real-time display of signal details and filter status
Session Boxes : Visual representation of active trading sessions
Practical Applications
✅ Swing Trading : Identify high-probability reversal and continuation setups
✅ Day Trading : Spot intraday momentum shifts with institutional backing
✅ Multi-Timeframe Analysis : Combine major and minor structure analysis
✅ Risk Management : Filter out low-quality setups using confluence requirements
✅ Educational : Understand market structure and institutional order flow
Customization Options
Adjustable momentum thresholds for different market conditions
Comprehensive filter settings with individual enable/disable controls
Visual customization for colors, sizes, and display preferences
Alert system with detailed signal information
Performance optimization settings for different chart timeframes
Who Should Use This Indicator
This indicator is suitable for traders who:
Want to combine multiple technical analysis approaches
Seek to understand institutional market behavior
Prefer confluence-based trading setups
Need customizable filtering for different market conditions
Value comprehensive signal validation over high-frequency alerts
The Momentum Confluence Detector transforms complex market analysis into clear, actionable signals by requiring multiple forms of confirmation before highlighting trading opportunities.
Bappa Swing L/H [Shubho Bijoya] I found this indicator good for scalping on shorter TFs like 3-5 minutes. However it also, works on higher TFs.
It works on Pivots points HH-LH / LL-HL






















