Momentum Candle + Immediate FVG Mitigation Pullbackhighlight fair value gaps as a form of support and trade opportunity target as you are tradingИндикатор Pine Script®от marsjohnson2
DCA Leverage Analyzer v27The Core Concept: Leveraged DCA & Trend-Following Engine This Pine Script is a comprehensive backtesting tool designed to simulate a Dollar-Cost Averaging (DCA) strategy on a synthetically generated leveraged asset. It combines regular monthly investments with a trend-following safety mechanism (EMA filter) and risk management rules (cooldowns) to optimize returns and reduce drawdowns. Here is the step-by-step breakdown of the underlying logic: 1. Synthetic Leverage Calculation Instead of relying on an existing leveraged ETF ticker (which might lack historical data), the script mathematically creates a virtual leveraged asset based on the underlying chart. It calculates the daily percentage return of the base asset. It multiplies this return by a user-defined Leverage Factor (e.g., 2.0 for 2x leverage). It subtracts an Annual Cost Rate (e.g., 3.5%) distributed daily, simulating the borrowing costs and management fees of real leveraged ETFs. The result is a simulated OHLC (Open, High, Low, Close) chart starting at an index value of 100. 2. The DCA Engine (Monthly Injections) The script simulates a regular savings plan. On the first trading day of every new month, a fixed amount of capital (e.g., $1,000) is injected into the portfolio. Depending on the current market trend (see EMA Filter), this money is either immediately used to buy shares of the synthetic asset or stored safely in a cash reserve. 3. Trend Following (EMA Filter & Executions) To protect the portfolio from severe bear markets, the strategy uses an Exponential Moving Average (EMA) to determine the market regime. Bull Market (Price > EMA): Regular monthly DCA injections are immediately invested into the asset. Bear Market (Price < EMA): Regular monthly DCA injections are blocked from entering the market and are instead saved into the cash reserve. The Sell Trigger (Crossunder): If the price drops below the EMA, an active sell order is triggered. The portfolio liquidates its shares (e.g., 100% of holdings) and moves the capital into the cash reserve to prevent further losses. The "All-In" Buy Trigger (Crossover): If the price rises back above the EMA, indicating a trend reversal, the script triggers a "Buy All" event. It takes the entire accumulated cash reserve (which includes proceeds from the previous sell, skipped monthly DCA payments, and accrued interest) and reinvests it into the market at once. 4. The Cooldown Mechanism (Whipsaw Protection) A common issue with moving average strategies is getting "whipsawed" in sideways markets (rapid, consecutive buy and sell signals resulting in high fees and losses). Whenever a Sell is executed, a Cooldown Timer (e.g., 30 days) starts. During this cooldown period, the script is forbidden to buy. Even if the price crosses back above the EMA, the buy signal is ignored. Any monthly DCA injections during this time go straight to cash. Delayed Entry: Once the cooldown expires, the script checks if the price is still above the EMA. If it is, the "Buy All" order is executed belatedly. This ensures the trend is somewhat stable before re-entering the market. 5. Cash Management & Interest Capital sitting on the sidelines isn't dead money. Any uninvested capital in the Cash Reserve accrues interest daily based on a user-defined Annual Interest Rate (e.g., 2.0%). This mimics putting the cash into a high-yield savings account or a money market fund while waiting out a bear market. 6. Trading Costs (Slippage & Fees) To ensure realistic backtest results, the script applies a Trade Cost Percentage (e.g., 0.02%) to every simulated transaction. When buying, the execution price is marked up by the fee percentage. When selling, the execution price is reduced by the fee percentage. 7. Performance Tracking & Dashboard The script continuously calculates the absolute Portfolio Value (Total Shares * Current Synthetic Price + Cash Reserve) and provides a comprehensive dashboard: Total Invested: The raw out-of-pocket capital injected via the monthly DCA. Net Profit & ROI: Absolute profit and Return on Investment. CAGR: The Compound Annual Growth Rate, calculated precisely based on the time elapsed since the very first investment. Max Drawdown: The maximum percentage drop from the portfolio's all-time high. Time in Market: The percentage of time the capital was actually exposed to the market versus sitting safely in cash.Индикатор Pine Script®от shitholed6
MSL Liquidity TailsMSL Liquidity Tails is a liquidity reaction indicator based on long candle wicks. It helps detect strong pin bar rejection candles and automatically projects potential supply and demand zones directly on the chart. The indicator identifies candles with unusually long dominant wicks, filters them through volatility, candle-structure and signal-spacing conditions, and then builds visual zones from areas where price was strongly rejected. A long upper wick creates a Sell Pressure zone. A long lower wick creates a Buy Pressure zone. Broken zones can remain visible as gray Ghost Zones, showing historical areas of previous price reaction. The main purpose of the indicator is not to predict the market, but to highlight zones where price has already shown a noticeable reaction. These areas can be used as references for retests, market structure analysis, support/resistance work, and trade scenario planning. 1. Core idea Many important market reactions begin with a failed price movement. Price moves higher or lower, forms a long wick, and then closes away from the extreme. This type of candle often shows that the market tested a specific area, met strong opposition, and failed to hold that level. MSL Liquidity Tails automatically marks these areas on the chart. The indicator helps answer several practical questions: • where price was sharply rejected; • where buyers or sellers showed activity; • which zones may be worth watching on a future retest; • which broken zones may remain relevant as historical levels; • where a support/resistance flip may appear after a zone break. 2. What the indicator shows Sell Pressure zones A red zone appears after a candle with a long upper wick. This means price moved higher, but the move was rejected before the candle closed. This zone can be used as a potential supply, resistance, or sell-pressure reference area. Important: a red zone does not mean price must fall. It only marks an area where sellers previously showed a noticeable reaction. Buy Pressure zones A green zone appears after a candle with a long lower wick. This means price moved lower, but the move was rejected before the candle closed. This zone can be used as a potential demand, support, or buy-pressure reference area. Important: a green zone does not mean price must rise. It only marks an area where buyers previously showed a noticeable reaction. Ghost Zones If price fully moves through an active zone, it can turn gray when Keep broken zones is enabled. This zone is no longer treated as a fresh active reaction zone, but it remains on the chart as a historical reference. In some cases, broken zones may later work as support/resistance flip areas, but this scenario should always be confirmed with additional context. 3. Detection logic The indicator uses several filters to avoid marking every random wick on the chart. A new zone appears only when the candle passes all key conditions at the same time. ATR filter The wick must be large enough relative to current volatility. The indicator uses ATR for this. This makes the detection adaptive to the selected instrument and timeframe: a quiet market is evaluated with one volatility context, while a more active market is evaluated with another. Wick/Body filter The wick must be large enough relative to the candle body. This filter helps identify pin bar-style rejection candles rather than ordinary wide-range candles with balanced movement. Wick Dominance filter The active wick must be larger than the opposite wick. For a Sell Pressure zone, the upper wick should dominate. For a Buy Pressure zone, the lower wick should dominate. This helps filter out unclear candles where neither side has a clearly expressed advantage. Min Gap filter A minimum number of bars must pass between new zones. This filter reduces repeated zones and helps keep the chart cleaner, especially on volatile instruments. 4. Zone structure Each active zone consists of several elements. Zone body The colored rectangle shows the wick area where price reaction was detected. For Sell Pressure, the zone is built from the candle high to the upper edge of the candle body. For Buy Pressure, the zone is built from the lower edge of the candle body to the candle low. Mid-line Each active zone has a dashed middle line. It marks the 50% level of the zone and can be used as an additional reference during retests. Volume label The zone label shows the volume of the candle that created the zone. Volume does not guarantee the strength of the level, but it provides useful context. Higher volume may indicate a more significant reaction when confirmed by price behavior, timeframe, and broader market structure. Retest counter The label also shows how many times price has returned to the zone. Examples: S: 261K x4 The Sell Pressure zone was formed on a candle with 261K volume, and price has returned to this zone four times. B: 704K x3 The Buy Pressure zone was formed on a candle with 704K volume, and price has returned to this zone three times. 5. Zone lifecycle Active zone A new zone remains active until price fully breaks through it. An active zone extends to the right side of the chart, keeps its color, displays the mid-line, and continues tracking retests. Broken zone If price fully moves through an active zone, the indicator treats it as broken. If Keep broken zones is enabled, the zone becomes a gray ghost zone. If Keep broken zones is disabled, the broken zone is removed from the chart. Expired zone Any zone is automatically removed after the value set in Max Age. This helps prevent the chart from becoming overloaded with old areas that may no longer be relevant. 6. How to use the indicator MSL Liquidity Tails is not a standalone trading system and does not provide ready-made buy or sell signals. It is an analysis tool that highlights areas of interest. Trading decisions should only be made with additional context, such as market structure, trend direction, support and resistance levels, volume behavior, price action, and personal risk-management rules. Potential LONG scenario A LONG scenario may become interesting when price returns to an active green Buy Pressure zone, holds that area, and shows a buyer reaction. The zone itself is not an entry point. It only marks an area where a trader may look for confirmation. Potential SHORT scenario A SHORT scenario may become interesting when price returns to an active red Sell Pressure zone, fails to hold above it, and shows a seller reaction. The zone itself is not an entry point. It only marks an area where a trader may look for confirmation. Potential FLIP scenario A gray Ghost Zone can be used as a historical reference. If price returns to a broken zone from the opposite side, this area may sometimes work as a support/resistance flip. This scenario also requires confirmation through price action and broader market context. 7. Suitable markets and timeframes The indicator is best used on liquid instruments with enough volatility and clear price reactions. Cryptocurrencies Examples: BTC, ETH, SOL, ARB Suggested timeframes: 15m, 1H, 4H, 1D Crypto markets often produce long wicks, sharp sweeps, and fast price returns, so wick-based rejection zones can be useful for analysis. US stocks Examples: NVDA, TSLA, COIN, AAPL Suggested timeframes: 1H, 4H, 1D Liquid stocks often form strong rejection zones around news events, session opens, gaps, and strong intraday movements. Forex majors Examples: EURUSD, GBPUSD, USDJPY Suggested timeframes: 1H, 4H Major currency pairs can be useful for analyzing reactions around local extremes and key areas. Indices Examples: SPX, NDX, DAX Suggested timeframes: 4H, 1D Higher timeframes help reduce noise and make significant reaction zones easier to read. Commodities Examples: Gold, Oil Suggested timeframes: 1H, 4H, 1D Commodities often produce sharp spike movements during news, macro events, and session volatility, which can create clear rejection zones. 8. Main settings ATR Period The ATR period used to measure current volatility. ATR Mult Defines how large the wick must be relative to ATR. Lower values create more zones but may add noise. Higher values create fewer zones but apply stricter filtering. Wick/Body Defines the minimum wick-to-body ratio. Higher values focus on cleaner pin bar-style structures. Wick Dominance Defines how strongly the active wick must dominate the opposite wick. Higher values make the filter stricter and reduce the number of signals. Min Gap The minimum number of bars between new zones. This helps avoid excessive signals and zone clustering. Max Age The number of bars after which a zone is automatically removed from the chart. Opacity Controls the transparency of active zones. Keep broken zones When enabled, broken zones remain visible as gray Ghost Zones. When disabled, broken zones are removed after the break. 9. How to read the chart It is best to read the chart with the indicator step by step. First, identify active red and green zones. Then check where price is relative to those zones. When price returns to a zone, evaluate the reaction: hold, break, false break, or rejection. Check whether the reaction aligns with the broader market structure. Use additional confirmation before making any trading decision. On the BTCUSDT chart, red zones show areas where price moved higher but was rejected. These zones can be watched as potential supply or resistance areas during future retests. Green zones show areas where price moved lower but was bought back. These zones can be watched as potential demand or support areas. Gray zones show older broken areas. They help identify where the market previously reacted and where future price interest may appear again. 10. Practical summary MSL Liquidity Tails makes wick-based liquidity reactions easier to see and track. The indicator is useful for: • detecting strong rejection candles; • building potential supply and demand zones; • tracking live retests; • keeping historical broken-zone context; • analyzing support/resistance flips; • building a cleaner market context around liquidity reactions. The indicator works best as part of a complete analysis process, not as a mechanical signal generator. Important notice This indicator is intended for educational and analytical use only. It is not financial or investment advice, does not provide guaranteed trading signals, and does not predict future price movement. All zones displayed on the chart are analytical references and should be evaluated together with market context, confirmation signals, and risk-management rules. Trading involves risk. Users are fully responsible for their own trading decisions. Индикатор Pine Script®от MarketStructureLab55123
Backtesting de Failure Swing Pro - Manuel Leiva 3050Esta herramienta fue diseñada para todos los estudiantes de ICT y SMC, espero que lo disfruten.. Saludos desde Argentina Muchas Bendiciones..!!!! Atte: Manuel de Jesus LeivaИндикатор Pine Script®от anuelmanueldejesusleiva2
Silver Driver Strength IndexSilver Driver Strength Index This indicator compares Silver with the macro forces that often influence its move It helps separate price strength from driver strength Silver can rise because the backdrop is supportive But that is not the same as Silver showing strength beyond its usual drivers The index uses Gold, dollar strength, yields, real yields, inflation expectations, and volatility Above 0 means Silver is showing strength beyond its drivers Below 0 means the drivers are doing more of the work Around 0 means Silver is moving broadly with the macro backdrop This is not a buy or sell signal It is a market context toolИндикатор Pine Script®от CuriousMacroX6
XAUUSD High Probability Signals per Gram v6Indicator created based on the price per gram of 24K gold Use only on the XAUUSD pair with a 15-minute timeframe Configuration: 0,05 3 5 1 Индикатор Pine Script®от robb678691123
MohdTZ Trade Journal Dashboardএটা আপনার Pine Script (trade_journal_indicator.pine)। এটি একটি TradingView Trade Journal Dashboard Indicator — চার্টের উপর একটি dashboard/table দেখায় যেখানে: Trade Counts Total trades Win Loss Breakeven Running trades Money Management Starting balance Risk per trade Risk:Reward ratio Auto Calculations Win rate % Loss rate % Breakeven % Gross profit Gross loss Net P&L Current balance ROI % Expectancy per trade (EV) Customizable UI Table position (Top/Bottom/Center) Text size Background opacity Show/hide percentage Show/hide money section Show/hide breakeven row সমস্যা/নোট:Индикатор Pine Script®от mohdtz1
ICT Dealing Range [EmpArchitect]█ OVERVIEW ICT Dealing Range auto-detects the active confirmed swing range and maps premium, discount, equilibrium, and directional OTE context directly on your chart. No manual Fibonacci drawing. No signals. No entries. No targets. This is a clean dealing-range framework for ICT, SMC, and price-action workflows. The tool answers one question: Where is price trading within the active range? █ WHAT IT SHOWS The script draws: • Active confirmed swing range • Premium zone • Discount zone • 50% equilibrium • Directional OTE zone • Range high and range low • Compact dashboard state Premium and discount are always based on the active range: • Premium = above equilibrium • Discount = below equilibrium • Equilibrium = 50% midpoint of the range █ DIRECTIONAL OTE OTE is directional. In Bull Pullback mode, the range is measured Low → High and the OTE zone is drawn inside discount. In Bear Rally mode, the range is measured High → Low and the OTE zone is drawn inside premium. Default OTE levels: • 62% • 70.5% • 79% The 70.5% midpoint is shown inside the OTE zone. █ RANGE DETECTION The indicator uses confirmed pivot highs and lows to define the active dealing range. Auto mode uses the most recent valid alternating pivot sequence: • Low → High = Bull Pullback • High → Low = Bear Rally A minimum ATR range-size filter helps reject noisy micro-ranges on lower timeframes. Auto-Update can be turned off to freeze the current range. █ DASHBOARD The top-right dashboard summarizes current range context: • Mode: Bull Pullback / Bear Rally • Zone: Premium / Discount / EQ / Above Range / Below Range • Bull OTE / Bear OTE: Inside / Above / Below • Range: size in ATR, or Broken Low / Broken High if price exits the range • Age: bars since the range formed If price breaks below a bullish range low or above a bearish range high, the dashboard marks the broken-range state clearly. █ RANGE MODE Available modes: • Auto — uses the latest valid alternating pivot sequence • Bull Pullback — forces Low → High range, OTE in discount • Bear Rally — forces High → Low range, OTE in premium █ VISUAL SYSTEM The color system matches the EmpArchitect suite: • Premium = amber • Discount = teal • OTE = subtle white / silver • EQ = gray dashed line Line hierarchy: • EQ = dashed, width 2 • Range edges = solid, thin • OTE levels = dotted, thin Right-edge labels show: • 100% High • 50% EQ • 0% Low • Bull OTE / Bear OTE █ ALERTS Included factual alerts: • Price entered premium • Price entered discount • Price crossed equilibrium • Price entered directional OTE • Price left directional OTE Alerts are context alerts only. They are not trade signals. █ NON-REPAINTING LOGIC Ranges are based on confirmed pivots. Pivot-based ranges confirm only after the required right-side bars have closed. This is structural confirmation by design. Once a range is confirmed, it remains stable until a new valid confirmed range replaces it, or Auto-Update is disabled to freeze the current range. █ PAIRS WITH Smart Liquidity Map — liquidity context HTF Context Overlay — higher-timeframe reference levels Liquidity Trap Zones — failed reversal / trap context CISD tools — displacement confirmation context █ NOTES • Works on all instruments and timeframes • Best on 15M–4H charts • Pine Script v6 • Open-source • Built by EmpArchitect Educational context tool only. Not financial advice. Not a signal service.Индикатор Pine Script®от EmpArchitect14
BW Ultimate Master V12.35 - The Final Mastery (PERFECT FULL)1. Precision Entry Logic (Signal Triggers)The system identifies high-probability entry points through two primary methodologies:Trend-Following (Perfect Buy/Sell): Signals are triggered when at least 3 out of 4 "pillars" align: a Breakout of Structure (BOS), a Price Action confirmation (such as Engulfing or Pin Bar patterns), a price pullback to the EMA 30, and synchronization with Higher Timeframe (HTF) trends. Institutional Reversal (SMC Special): This advanced logic detects "Smart Money" behavior by identifying a Liquidity Sweep (price dipping below old lows to hunt stop losses) followed by a Market Structure Shift (MSS/CHoCH). To prevent chasing the move, the indicator waits for a retest of the 50% Order Block level before issuing a signal. 2. Market Structure & VisualizationsMajor Swing Peak Markers: Key structural points are automatically labeled (HH, HL, LH, LL) using a 15-bar fractal filter, allowing you to see the trend hierarchy at a glance. SW ZONE (Accumulation Box): The indicator highlights yellow consolidation zones when the market is in a "sleeping" phase (determined by a low Alligator line spread). SWEEP RISK: It dynamically calculates potential "Stop Hunt" levels above and below consolidation zones, warning you of price areas where reversals are likely to occur after a fake breakout. Dynamic Session Boxes: Visualizes the opening and closing ranges for the Asia, London, and New York markets to help identify specific session-based volatility. 3. Smart Control Dashboards07:00 Daily Compass: Compares the Asia 07:00 open price with the actual daily close to establish a clear directional bias for the trading day. Institutional Pressure Score: Aggregates momentum data from 7 different timeframes (Weekly down to 1-Minute) into a 1,400-point score. It identifies "RSI Tension" and warns if higher and lower timeframes are in conflict, which typically precedes a sharp market correction. Live Market Summary: Provides a real-time assessment of the market phase, distinguishing between Accumulation, Trending Up, Trending Down, or high-risk Chop Zones. 4. Signal Integrity & Risk FilteringAnti-Spam Mechanism: The code includes a "locking" feature that prevents the indicator from firing multiple repetitive signals during a single market swing. Range Safety Filter: Automatically blocks "Buy" signals if the price is at the extreme top of a narrow range or "Sell" signals if at the extreme bottom, ensuring you never "chase" a move into a potential reversal pointИндикатор Pine Script®от guinty46
Gold Driver Strength IndexDriver Strength Index This indicator compares Gold or Silver with the macro forces that often influence their move It helps separate price strength from driver strength Price can rise because the backdrop is supportive But that is not the same as showing strength beyond the usual drivers The index uses dollar strength, yields, real yields, inflation expectations, and volatility Above 0 means the asset is showing strength beyond its drivers Below 0 means the drivers are doing more of the work Around 0 means price is moving broadly with the macro backdrop This is not a buy or sell signal It is a market context toolИндикатор Pine Script®от CuriousMacroXОбновлено 5
Bullmarket Support Band + ADXAdición del ADX para H1 al indicador Bull Market Support Band, además de más opciones para mayor personalización.Индикатор Pine Script®от elenocaballeroОбновлено 0
Session Open Range [PRO]Session Open Range is a customizable TradingView indicator designed to mark key market sessions and their opening ranges directly on the chart. The indicator highlights the Asia, London, New York, and custom trading sessions with adjustable session times, opening range duration, labels, boxes, borders, and open lines. It helps traders quickly identify session highs/lows, opening range levels, and important intraday price zones. Features: • Asia, London, New York, and Custom session support • Adjustable session times • Custom opening range duration • Session open line • Opening range box • Session box and border styling • Custom colors for each session • Optional labels and visual controls • Useful for intraday, scalping, and session-based trading strategies This tool is useful for traders who track session opens, opening range breakouts, liquidity sweeps, and market behavior around major trading sessions.Индикатор Pine Script®от tehseen007Обновлено 6
Silver Volatility Pulse vs GoldSilver Volatility Pulse vs Gold When is silver acting normal and when is it moving out of character? This indicator compares silver’s volatility with gold’s normal volatility relationship Blue bars mean silver is moving with extra force versus gold Grey bars mean silver is moving quieter than usual versus gold It is not a direction signal It is a behavior signal It helps show whether silver is calming down or starting to move out of character againИндикатор Pine Script®от CuriousMacroX2
Extra TimelineAre you tired of the default time axis getting cluttered, or do you need to keep track of a specific timezone (like your local time or a specific market session) directly on your chart? Extra Timeline is a minimalist, highly customizable secondary time axis designed to keep your charts clean and readable, no matter how much you zoom in or out. It solves the common issue of overlapping text labels by using a "Smart Hide" feature that prioritizes full hours over minute intervals when space gets tight. Key Features: Smart Anti-Overlap System: Automatically hides minute intervals (like 15 or 30) when you zoom out, ensuring that the full hours always remain visible and the timeline never turns into an unreadable mess. Minimalist & Clean Format: Removes unnecessary clutter. Full hours are displayed as a simple number (e.g., 9 instead of 09:00), and minute intervals show only the minutes (e.g., 30 instead of 09:30). Visual Hierarchy: Fully customize the size and color of full hours versus minute intervals. Make full hours large and bright to stand out, while keeping minute markers small and subtle. Custom Timezones: Easily offset the time to match any GMT timezone you need. Flexible Intervals: Choose exactly where your time anchors are placed (5m, 10m, 15m, 30m, 1H, 2H, or 4H). Optional Date Display: Toggle the current date on or off alongside the time markers. How to Use: Simply apply the indicator to your chart and adjust the Timezone to your preference. If you notice labels starting to overlap when zooming, just increase the "Minimum Space (in bars)" setting in the indicator options to give the labels more room to breathe. Perfect for day traders and scalpers who need a precise, distraction-free sense of time across different market sessions!Индикатор Pine Script®от Jakylnet0
Super RSI StrategySuper RSI Strategy.This is a trend-following + momentum confirmation strategy.Стратегия Pine Script®от paridhipatel10
Super RSI StrategySupertrend with RSI Strategy. This is a trend-following + momentum confirmation strategy.Стратегия Pine Script®от paridhipatel2
Liquidity Sweep Quality Score [TradeDots]Liquidity Sweep Quality Score Summary This indicator detects liquidity-sweep events on the chart timeframe and assigns each event a 0 to 100 composite quality score with an A+, A, B, C, D, or Weak letter grade. A liquidity sweep here is defined precisely: the current bar prints beyond a confirmed swing pivot (below a prior swing low for a bullish sweep, or above a prior swing high for a bearish sweep) and closes back inside the prior range. The composite score is built from six independent factors that quantify how decisively the rejection occurred and how supportive the surrounding context is. The grade label is drawn on the bar immediately after the sweep so that the score includes the first piece of follow-through evidence. What is original here Detecting liquidity sweeps from pivot geometry is straightforward and is already common across public scripts. Where most scripts stop at binary detection ("a sweep happened"), this script adds a multi-factor quality layer on top. The originality is in the scoring methodology: six measurable factors, each normalized to a 0 to 100 scale so that raw units do not dominate, combined as a weighted average with a regime-aware penalty applied at the end. All weights and thresholds are exposed as inputs so that the model is auditable and tunable. The contribution is not the detection but the explicit, transparent scoring layer that lets traders rank sweeps rather than treat them as uniformly meaningful. How it works Pivots are tracked with the standard pivot-high and pivot-low primitives using a user-configurable symmetric left/right lookback. The most recently confirmed swing high and swing low are held in memory. A bullish sweep registers when the current bar's low prints below the most recent swing low and the current close finishes above it. A bearish sweep is the symmetric case. A wick-to-body ratio gate filters trivial events where the rejection wick is too small relative to the candle body. Signal evaluation is gated by barstate.isconfirmed, so signals only finalize at bar close. When a sweep is detected, the six factors below are computed. 1. Wick rejection strength. The size of the rejection wick on the sweep candle relative to the candle body. A larger wick relative to body indicates a more decisive intrabar rejection of the swept level. Scaled by the user's minimum acceptable wick-to-body ratio. 2. Relative volume. The rolling percentile rank of the sweep bar's volume within a configurable lookback (default 100 bars). Sweeps occurring on volume in the upper percentiles score higher than sweeps on quiet bars. 3. Failed-break decisiveness. The distance between the swept pivot and the close, expressed in ATR units. A close that recovers a full ATR back inside the prior range scores higher than a marginal recovery. 4. Higher-timeframe level proximity. The distance between the close and the nearest of the prior higher-timeframe bar's high or low, expressed in ATR units. Sweeps near a major higher-timeframe level score higher than sweeps at intra-range pivots. 5. Follow-through confirmation. The bar immediately after the sweep is inspected. A directionally consistent follow-through (a green bar after a bullish sweep, a red bar after a bearish sweep) earns full credit. Because this factor requires the next bar, the composite is finalized one bar after the sweep candle and the grade label is drawn on the follow-through bar, not on the sweep bar itself. This is documented behaviour, not a defect. 6. Regime penalty. Computed from ADX and the EMA-50 / EMA-200 alignment. When a sweep occurs against the direction of a strongly trending market (ADX above the user threshold and the sweep direction conflicts with the EMA alignment), a fixed user-configurable penalty is subtracted from the composite. A bullish sweep in a strong downtrend is structurally the same pattern as a bullish sweep in a balanced range, but the prior probability of follow-through differs. The penalty makes that difference visible in the score. The composite is the weighted average of factors 1 through 5, with factor 6 applied as a post-weighting deduction. Tier mapping: A+ : score 90 or higher A : score 80 to 89 B : score 70 to 79 C : score 60 to 69 D : score 50 to 59 Weak : below 50 Repainting and data integrity All sweep detection, scoring, label placement, and alert triggers are gated by barstate.isconfirmed. Signals do not appear or change intrabar. The higher-timeframe level is fetched with request.security() using the prior-bar source (high and low ) together with the barmerge.lookahead_on flag. This combination is the established non-repainting form for higher-timeframe reads: the index requests the value from the prior higher-timeframe bar, and the lookahead flag ensures that value is returned consistently in both historical and real-time evaluation. This pattern does not access future data. It returns the last confirmed higher-timeframe bar's extremes, which are already history at the moment they are read. How to read the chart A small triangle is plotted at the sweep bar itself: below the bar for bullish sweeps, above the bar for bearish sweeps. This marks the detection event. A directional grade label is drawn on the next bar (the follow-through bar), with text showing the letter grade and the numeric composite score. The label color shifts on a red-to-green gradient based on the score. A configurable dashboard panel shows the most recent sweep's direction, each of the six sub-factor scores with gradient cells, the regime-penalty status, the composite score, and the letter grade. All sub-scores are also output as hidden plots so that they are accessible from the Data Window and may be referenced in alert messages. Inputs Inputs are grouped into five sections. Core Settings : swing pivot lookback, minimum wick-to-body ratio, ATR length, volume percentile lookback. Filters : higher-timeframe reference, ADX length and threshold for the regime check, regime-penalty enable toggle. Score Tuning : a 0 to 1 weight for each of the five positive factors and the regime-penalty magnitude in points. Visual Settings : panel position, panel size, label cap, marker and label toggles. Any Alert() function call conditions : per-signal boolean toggles to enable individual alerts. Alerts Six alert conditions are provided: A+ Setup, A Setup, B Setup, Bullish Sweep with quality at or above 70, Bearish Sweep with quality at or above 70, and Any Sweep with score at or above 80. Each alert is declared via alertcondition() for native TradingView alert configuration and is also fired programmatically through alert() when its corresponding input toggle is enabled. All programmatic alerts use alert.freq_once_per_bar_close to prevent intrabar re-triggers. The alertcondition() message templates include {{ticker}}, {{interval}}, and {{close}} placeholders for webhook integrations. How to use this script This script is a quality filter for reversal-style entries. It is not a complete trading system. Identify a discretionary or systematic reversal context — a higher-timeframe level retest, a range extreme, a divergence, or any structure already in your plan. Wait for a sweep marker to print. Read the dashboard at bar close on the follow-through bar. Treat B-grade or better as candidate setups. Treat C and Weak as information only. If the regime-penalty row indicates the sweep is fighting a strong trend, weight the signal toward "pullback rejection inside a continuing trend" rather than "trend reversal." Position sizing, stop placement, and target selection remain entirely the user's responsibility. Limitations and honest caveats The composite score is a heuristic evidence weighting. It is not a statistically calibrated probability. An A grade means a sweep has more of the listed evidence factors than a C grade. It does not imply a specific likelihood of follow-through. Pivot detection has inherent right-bar confirmation lag. A swing pivot is only confirmed after the configured right lookback has elapsed. The higher-timeframe proximity factor uses only the prior higher-timeframe bar's high and low. Other structurally relevant levels — anchored VWAPs, weekly opens, user-marked supply or demand, prior session highs and lows — are not part of this factor. The regime penalty uses ADX, which is a lagging measure of trend strength and will not flag fast regime shifts immediately. The grade label is drawn one bar after the sweep bar by design (see factor 5 above). Traders who require the label on the sweep bar itself should be aware that this would mean publishing a score before the follow-through evidence exists. The script is an indicator, not a strategy. It does not size positions, manage stops, or backtest entries. Disclaimer This script is published for informational and educational purposes. It is not investment advice and is not a recommendation to buy or sell any instrument. Past appearance of any pattern, including high-grade sweep setups, does not guarantee future behaviour. Users are solely responsible for their own trading decisions and risk management. Индикатор Pine Script®от tradedots67
Super RSI StrategySupertrend with RSI Strategy this is a trend following + confirmation strategy.Стратегия Pine Script®от paridhipatel0
Box Breakout Strategy ( DT4B TRADER ) Turtle Box Liquidity Breakout Strategy Institutional Trading Model Inspired by Richard Dennis + Smart Money Concepts In this video, we break down a complete professional trading system that combines: Richard Dennis Turtle Trading Darwin Box Breakout Strategy Liquidity Sweeps Volume Confirmation Institutional Market Structure Trend Following Logic Risk Management Principles This strategy is designed to help traders stop chasing random entries and start understanding how professional money moves in the market. You’ll learn how institutions use: consolidation boxes breakout traps stop-loss liquidity momentum expansion volume confirmation to engineer high-probability moves. ━━━━━━━━━━━━━━━ WHAT YOU’LL LEARN ✅ How to draw institutional trading boxes ✅ How Richard Dennis traded breakouts ✅ How liquidity sweeps trap retail traders ✅ How to identify real vs fake breakouts ✅ How to combine volume with price action ✅ High probability entry confirmation ✅ Stop loss placement techniques ✅ Professional risk management ✅ Trade management and trailing concepts ✅ Complete TradingView strategy code setup ━━━━━━━━━━━━━━━ STRATEGY COMPONENTS 📌 Higher Timeframe Trend 📌 Darwin Box Consolidation 📌 Turtle Breakout Levels 📌 Liquidity Sweep Detection 📌 Volume Expansion Confirmation 📌 ATR-Based Risk Control 📌 Box Projection Targets ━━━━━━━━━━━━━━━ BEST MARKETS FOR THIS STRATEGY NIFTY BANKNIFTY Forex Gold Crypto Indices Swing Trading Intraday Trading ━━━━━━━━━━━━━━━ IMPORTANT TRADING LESSON The market is not random. Most traders lose because they: trade emotionally enter inside consolidation ignore liquidity chase fake breakouts Professional traders wait for: ➡️ liquidity ➡️ confirmation ➡️ expansion ➡️ momentum That is the foundation of institutional trading. ━━━━━━━━━━━━━━━ RISK DISCLAIMER This content is for educational purposes only. I am not a financial advisor. Trading involves risk, and you should always do your own research before taking any trade. ━━━━━━━━━━━━━━━ SUPPORT THE CHANNEL If this video helps you understand the market better: 👍 Like the video 💬 Comment your biggest takeaway 🔔 Subscribe for more institutional trading educationСтратегия Pine Script®от daytrader4beginners16
Market Structure Break & Order Block - Improved By SPARTANThis indicator combines market structure break detection with Order Block and Breaker Block zone mapping into a single, cohesive tool. It is built on the open-source MSB-OB concept by EmreKb (Mozilla Public License 2.0, ) and has been substantially rewritten with a focus on accuracy, practicality, and removing several logical flaws present in similar tools. HOW IT WORKS Market structure is identified through a zigzag algorithm that tracks swing highs and lows over a user-defined lookback period. A bullish Market Structure Break (MSB) is confirmed when price takes out the previous significant swing high by a minimum threshold expressed as a fraction of the prior swing range — the Fib Factor setting. A bearish MSB requires the equivalent to the downside. All structure breaks are confirmed only on bar close to prevent repainting. Once a structure break is confirmed, the indicator identifies the relevant Order Block: the last candle of the opposite colour in the swing that preceded the break. For a bullish MSB, this is the last bearish candle in the prior downswing. For a bearish MSB, it is the last bullish candle in the prior upswing. This candle's high-to-low range is drawn as a zone and tracked going forward. Breaker Blocks are also identified: these are zones from a prior swing that price has since broken through and is now returning to, flipping the original supply or demand area to the opposite role. The indicator distinguishes between Breaker Blocks (full structural flip) and Mitigation Blocks (partial), and labels them accordingly. ZONE MANAGEMENT Each zone is tracked individually. The indicator monitors whether price closes inside, outside, or through each zone every bar. Zones are removed from the chart when price closes beyond them, keeping the chart clean and relevant. A cap on the maximum number of active zones per zone type can be set by the user. When the cap is reached, the oldest zone is removed automatically. This prevents the indicator from silently hitting TradingView's hard object limits on long charts or active markets. The zone extension mode can be set to either dynamic (zones stretch to the right until broken) or fixed-length (zones extend a set number of bars and stop). ZONE QUALITY FEATURES Each zone is scored at creation using the ratio of the forming candle's body size to the 14-period ATR. Zones are classified as Strong, Moderate, or Weak based on user-adjustable thresholds. Stronger candles produce more opaque zone fills so higher-quality zones are visually prominent without cluttering the chart. Zones formed on above-average volume (relative to the 20-bar simple moving average) are flagged with a Vol+ tag. High-volume Order Blocks tend to represent periods of significant institutional activity and are generally more likely to hold on a return. Each zone displays a tap count that tracks how many times price has entered it. The count increments only on an outside-to-inside transition based on closing price, not on every bar that price happens to spend inside the zone. A zone that has never been entered is marked as pristine. First touches of untested zones are generally the highest-probability setups. When price wicks into a zone — including cases where the wick passes entirely through the zone — but the bar closes on the correct side, the zone border switches to dashed. This signals that the zone has been tested without being invalidated, which is a meaningful distinction from a zone that has never been touched. A dashed CE line (Consequent Encroachment) is drawn at the exact midpoint of each zone. This is the 50% level of the Order Block range, which is commonly used as a precise entry reference within the zone. When an Order Block and a Breaker Block of the same direction overlap, a compact confluence marker is placed at the left edge of the Order Block zone. Overlapping supply or demand areas are generally considered stronger than isolated ones. The marker fires only once per zone pair regardless of how long both zones remain active. FAILED MSB DETECTION When a structure break occurs and price reverses within a configurable number of bars, the indicator can flag this as a Failed MSB. To reduce false positives, the reversal must also exceed a minimum magnitude expressed as a fraction of the prior swing range. A reversal that retraces less than this threshold — which may just be normal noise after the break — is ignored. Failed MSBs are a common setup for counter-trend moves and fakeout entries. HIGHER TIMEFRAME REFERENCE An optional higher timeframe reference line can be enabled. This draws a horizontal line at the midpoint of the most recent bar on the selected higher timeframe. The line is extended across the chart and can be used as a broad directional bias reference. The line is redrawn only when the higher timeframe midpoint changes, not on every bar, avoiding unnecessary flickering on live charts. ALERTS Alert conditions are available for: any MSB, bullish MSB only, bearish MSB only, Failed MSB, and individual zone entries (Bu-OB, Be-OB, Bu-BB, Be-BB). Zone entry alerts fire once per bar close on first touch only. SETTINGS OVERVIEW Core Settings: zigzag length, fib factor threshold, label text size, broken zone deletion toggle. Block Display: separate toggles for Order Blocks and Breaker Blocks, fixed vs dynamic extension, block length in bars, max active zones per type. OB Strength: strength label toggle, volume flag toggle, adjustable strong and weak body/ATR thresholds. Zone Tap Counter: toggle for pristine and tap count display. Mitigation Visuals: toggle for dashed border on wick-tested zones. CE Level: toggle and color for the 50% midpoint line. Confluence: toggle, color, text color, and size for the confluence marker. MSB Labels: toggle for MSB labels, Failed MSB toggle, lookback bars, and minimum reversal percentage. Multi-Timeframe: HTF level toggle, timeframe selection, line style, color, width, and bars back. Colors: fully customizable fill, border, and text colors for each of the four zone types. NOTES This script is published open-source under the Mozilla Public License 2.0. It is a derivative of EmreKb's original MSB-OB indicator and credit is given accordingly. The original concept has been significantly reworked at the logic level: zone deletion direction for Breaker Blocks has been corrected, tap counting has been rebuilt to track transitions rather than bar presence, the Failed MSB filter now requires a magnitude condition alongside the bar count, confluence labeling is guarded against duplicate firing, and higher timeframe line rendering no longer redraws unnecessarily every bar. This script is intended as an analytical tool and does not constitute financial advice. Past zone reactions do not guarantee future behaviour.Индикатор Pine Script®от SpartanH4727
SMC Premium + VNP Signal System [v3]phiên bản V1 đây là phiên bản đầu tiên dành cho chiến lược break out các nhà giao dịch futureИндикатор Pine Script®от LETRONGTUANKTS198711
IPO Lockup Markers (Conditional Age)IPO Lockup Markers (Conditional Age). IPO Lockup Markers (Conditional Age) IPO Lockup Markers (Conditional Age) IPO Lockup Markers (Conditional Age) IPO Lockup Markers (Conditional Age)IPO Lockup Markers (Conditional Age)Индикатор Pine Script®от FundamentalChartist2
Mutual Info Decoupler [forexobroker]Mutual Info Decoupler measures the information-theoretic dependence between price returns and volume over a rolling window. High MI = price moves explained by volume (informed flow). Low MI = price and volume decoupled (noise). Signals fire on EMA cross within a coupled regime, where the move is statistically grounded. 🔶 ALGORITHM 1. Bin returns into 3 quantile classes (low / mid / high) using +/- 0.5 sigma boundaries. 2. Bin volume into 3 classes (low / mid / high) using volume_avg * 0.7 and 1.3 boundaries. 3. Build 3x3 joint count matrix; derive marginals P(r) and P(v). 4. MI = sum_{r,v} P(r,v) * log( P(r,v) / (P(r) * P(v)) ) in nats. 5. Coupled regime when MI >= threshold. 🔶 SIGNAL LOGIC - Buy: coupled AND close > SMA AND close crosses EMA up AND not already long AND cooldown elapsed AND barstate.isconfirmed. - Sell: coupled AND close < SMA AND close crosses EMA down. - Position-lock state machine. 🔶 INPUTS - MI Window (default 60) - Pullback EMA Length (default 8) - Min MI (default 0.05 nats) - Cooldown Bars (default 4) - Visual: dashboard, glow, EMA toggle, buy / sell colors 🔶 ALERTS MID Buy, MID Sell, MID Any Signal, MID Coupled On, MID Coupled Off, MID High MI, MID Cross Up, MID Cross Down, MID Webhook JSON. 🔶 LIMITATIONS - 3x3 binning is coarse; finer resolution needs much more history to avoid empty cells. - Forex tick volume is broker-aggregated and noisy; instruments with reliable volume produce more meaningful MI. - MI is symmetric and dimension-free but does not tell direction; directional gating uses SMA bias. - Window N = 60 is a balance between estimator stability and adaptiveness; longer windows produce smoother MI but slower regime detection. Индикатор Pine Script®от forexobroker8