Triple Supertrend Confluence [MarkitTick]💡 A triple-layer Supertrend confluence system that fuses adaptive volatility bands, multi-timeframe bias, momentum strength, volume conviction, and a cooldown throttle into a single, high-confidence trend signal — then automates the entire trade plan around it with ATR-scaled stop-loss and three staged take-profit levels.
✨ Originality and Utility
Most Supertrend implementations on the platform are single-instance: one ATR period, one multiplier, one line. This script restructures the classic Supertrend into a voting system. Three independently parameterized Supertrend instances (a primary "core" trend and two auxiliary "fast" and "slow" trackers) are calculated in parallel from the same underlying price source, and a signal is only treated as valid when a configurable number of these instances agree on direction. This confluence layer is what separates the tool from a standard Supertrend plot — it is designed to filter out the single biggest weakness of trend-following overlays: getting whipsawed by a solitary indicator flipping on marginal price action.
On top of the consensus layer, the script lets traders stack up to four independent, optional confirmation filters (trend strength via ADX/DMI, higher-timeframe directional bias, relative volume, and a bar-count cooldown) before a signal is considered "confirmed." Each filter can be toggled independently, so the tool scales from a bare-bones single Supertrend up to a fully gated, multi-condition trend-following system. A real-time dashboard keeps every filter's pass/fail state visible at a glance, and an automated trade-planning layer converts each confirmed flip into a structured entry/stop/three-tier-target plan, plotted directly on the chart and exposed through webhook-ready JSON alert payloads.
🔬 Methodology and Concepts
• Core Supertrend Engine
The underlying trend engine follows the standard Supertrend construction: an ATR-derived envelope is built around a price source, with an upper band (source plus a multiple of ATR) and a lower band (source minus a multiple of ATR). These bands are "ratcheted" bar to bar — the lower band can only rise or reset if price closes below the prior lower band, and the upper band can only fall or reset if price closes above the prior upper band. The active trend line switches between the lower band (uptrend) and upper band (downtrend) whenever price closes through the opposite band, producing the familiar stepped Supertrend line. This engine is reused three times with different parameters to build the confluence system described below.
• Adaptive Source Smoothing
Rather than feeding raw HL2 price directly into the Supertrend engine, the script offers eight optional smoothing methods to pre-condition the source: Simple, Exponential, and Wilder's Moving Averages; a Double-Pass Weighted Moving Average; a Triple-Pass Volume-Weighted Moving Average; a Hull Moving Average; a custom slope-adjusted average (LLAMA) that blends a simple mean with a linear slope projection over the lookback window; and a single-state Kalman Filter that recursively updates an estimate and its error covariance bar by bar to produce a noise-adaptive average. Smoothing the source before it reaches the Supertrend calculation reduces false flips caused by single-bar noise spikes, at the cost of some responsiveness.
• Adaptive Volatility Factor
Instead of using a fixed ATR multiplier for the core Supertrend band width, the script can compute a percentile rank of current ATR against its own recent history (a lookback window of your choosing). This rank is then mapped linearly onto a user-defined minimum/maximum multiplier range. In practice, this means the band automatically widens during historically high-volatility regimes (reducing whipsaw) and tightens during historically low-volatility regimes (increasing sensitivity), rather than using one static multiplier across all conditions.
• Triple Consensus Voting
Two additional Supertrend instances — a faster-reacting pair (shorter ATR length, smaller multiplier) and a slower-reacting pair (longer ATR length, larger multiplier) — run alongside the core engine on the same smoothed source. When consensus mode is enabled, a signal is only marked confirmed if at least two of the three instances (including the core) agree on direction. This is a simple majority-vote filter designed to suppress signals that are specific to one particular band setting rather than representative of the broader trend structure.
• ADX / DMI Trend Strength Filter
An optional Average Directional Index filter, calculated using Wilder's Directional Movement methodology, requires ADX to be at or above a user-defined threshold before a flip is confirmed. This is a standard technique for distinguishing genuine directional moves from choppy, non-trending price action, since Supertrend-style systems are known to underperform in low-ADX ranging conditions.
• Higher-Timeframe Bias Filter
An optional filter pulls the trend direction of the same Supertrend engine calculated on a higher, user-selected timeframe, and only confirms a signal if it aligns with that higher-timeframe bias. The higher-timeframe value is read from the prior, fully closed bar on that timeframe to avoid any intra-bar recalculation, ensuring the filter reflects only confirmed historical structure rather than an in-progress bar.
• Volume Confirmation Filter
An optional filter compares current bar volume against its own moving average, requiring volume to exceed the average by a user-defined multiple before a signal is confirmed. This is a simple conviction check: trend changes accompanied by above-average participation are treated as more reliable than those occurring on thin volume.
• Cooldown Guard
An optional bar-count throttle prevents a new confirmed signal in the same direction as a recent prior signal if too few bars have elapsed since that prior signal within the same directional segment, reducing rapid re-signaling during choppy transition periods.
• Confirmation Lag Notice
All confirmation logic (consensus vote, ADX filter, HTF bias, volume filter, cooldown guard) and the resulting BULL/BEAR labels, alerts, and trade-level plotting are evaluated strictly on confirmed, closed bars using barstate.isconfirmed. This means every signal displayed or alerted is final and will not repaint once printed. However, users should be aware that a signal is only confirmed one bar after the actual Supertrend flip occurs, since the confirmation checks (particularly the higher-timeframe bias filter) require a fully closed bar to evaluate safely. This introduces a small, deliberate one-bar lag between the raw trend flip and the confirmed signal in exchange for eliminating repainting.
• Automated Trade Level Engine
On every confirmed flip, the script calculates a full trade plan from the entry price (the confirmed close), an ATR-scaled stop-loss (a user-defined multiple of ATR away from entry), and three take-profit levels defined as user-configurable risk:reward multiples of the initial stop distance. These levels are drawn as extending lines and labels, with shaded risk and reward zones between them, and refresh automatically on each new confirmed signal unless the signal is manually locked.
🎨 Visual Guide
Stepped trend line (color reflects the Up/Down Color inputs): traces the active Supertrend band. It plots along the lower band while price is in an uptrend and the upper band while price is in a downtrend.
Muted/gray trend line: when a filter is active but not yet satisfied, the trend line temporarily switches to the Unconfirmed Color to signal that the raw trend has flipped but confirmation is still pending.
Soft background fill (Up Fill / Down Fill colors): a translucent shaded region behind price reinforcing the current trend direction.
Heatmap candles: when enabled, candle bodies and wicks are recolored using the Heatmap Up/Down colors to match the current trend direction, offering an at-a-glance visual of trend state independent of the line itself.
"BULL" / "BEAR" labels: printed below or above the bar respectively, only on confirmed flips that pass every active filter.
Gray cooldown background: a shaded band that appears across the chart while the Cooldown Guard is actively suppressing new signals.
Trade level lines: a solid red Stop-Loss line, a dashed blue Entry line, and three dashed teal Take-Profit lines (TP1 lightest, TP3 most opaque), each extending to the right of the current bar with a price label attached, shown only when Show Trade Levels is enabled.
Shaded risk/reward zones: a light red fill between Stop-Loss and Entry (the risk zone) and a light teal fill between Entry and TP3 (the reward zone).
On-chart dashboard table: displays symbol/timeframe, Lock status, current Trend direction, Confirmed state, ADX value with a color-coded strength percentage, active Adaptive Filter type, Consensus vote count, HTF Bias direction and pass/fail, Volume filter pass/fail, and remaining Cooldown bars — all updating on the most recent bar.
📖 How to Use
Use the stepped trend line and background fill as the primary trend read: price above the line with an up-colored fill suggests an uptrend context; price below with a down-colored fill suggests a downtrend context.
Treat a "BULL" or "BEAR" label as the actionable signal rather than the raw line flip — labels only appear once every enabled filter has passed, meaning the signal has already been screened for trend strength, higher-timeframe alignment, volume conviction, and cooldown status.
If the trend line is showing the Unconfirmed Color, the underlying trend has technically flipped but is still waiting on one or more active filters — treat this as a "watch" state rather than a trade trigger.
Check the dashboard on each new bar to see exactly which filter(s) are passing or failing before a signal can confirm; this is useful for understanding why an expected signal did not appear.
When Show Trade Levels is enabled, use the plotted Stop-Loss, Entry, and TP1/TP2/TP3 lines as a starting reference for structuring a trade around a confirmed signal — adjust position sizing and targets to your own risk tolerance.
Enable Lock Signal to freeze the current trade-level plot in place (useful for screenshots or reviewing a specific setup) without it being overwritten by a new signal.
The JSON alert payloads are formatted for direct use in webhook-based automation, carrying action, ticker, timeframe, direction, and price fields for long entries, short entries, and their corresponding close-position triggers.
⚙️ Inputs and Settings
ATR Len / Factor: the ATR lookback and multiplier for the core Supertrend engine; higher Factor values produce a looser band and fewer, larger-magnitude signals.
Adaptive Factor (and Min/Max/Rank Len): when enabled, replaces the fixed Factor with a volatility-percentile-driven multiplier that ranges between Factor Min and Factor Max based on where current ATR sits within its own recent history.
Use ADX Filter / ADX Threshold / ADX Length: gates signal confirmation on trend strength; raise the threshold to demand stronger directional conviction before confirming.
Adaptive Filter / Adaptive Filter Len: selects the source-smoothing method applied before the Supertrend calculation, and its lookback length.
Use HTF Confluence / HTF: requires the selected higher timeframe's own Supertrend direction to agree before confirming a signal.
Use Volume Filter / Volume Avg Len / Volume Mult: requires current volume to exceed its moving average by the given multiple before confirming.
Use Cooldown Guard / Cooldown Bars: suppresses new same-direction signals for a set number of bars following a recent prior signal in the same directional segment.
Use Triple Consensus / Fast Factor / Fast ATR Len / Slow Factor / Slow ATR Len: enables the majority-vote filter and configures the auxiliary fast and slow Supertrend instances used to build consensus.
Lock Signal: freezes the currently plotted trade levels, preventing them from updating on a new signal.
Show Trade Levels: toggles the automated Entry/SL/TP1-3 line and label plotting.
SL ATR Mult: the ATR multiple used to place the stop-loss distance from entry.
TP1/TP2/TP3 R:R: the risk:reward multiples used to place each take-profit level relative to the stop distance.
Heatmap Candles / BULL-BEAR Labels / Show Dashboard / Position: visual display toggles and dashboard placement.
Long/Short/Close Long/Close Short Action: customizable string values embedded in the JSON alert payload's "action" field, for mapping to specific webhook automation commands.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
• Volatility-Based Trend Following (Supertrend / ATR Envelopes)
The core engine descends from the broader family of volatility-adjusted trend-following bands, which use Average True Range (a measure of typical price movement magnitude popularized by J. Welles Wilder) to scale a trailing stop-and-reverse line to prevailing market volatility rather than a fixed price distance. The ratcheting band logic ensures the line never moves against the prevailing trend, which is the defining mechanical property of a trailing-stop-style trend system as opposed to a simple moving average crossover.
• Percentile Ranking for Regime Adaptation
The adaptive factor mechanism applies percentile rank normalization — expressing current ATR as its standing relative to a distribution of its own recent historical values — as a way of contextualizing volatility without relying on a fixed absolute threshold, which allows the same logic to be meaningfully applied across instruments and timeframes with very different baseline volatility levels.
• Ensemble / Majority-Vote Filtering
The Triple Consensus mechanism is a straightforward application of ensemble logic: combining multiple independent estimators (in this case, differently parameterized instances of the same underlying model) and requiring agreement among a majority before acting. This is a well-established technique for variance reduction in signal processing and forecasting contexts, on the premise that independent estimators are less likely to agree by chance during noise-driven, non-trending conditions than during genuine directional moves.
• Wilder's Directional Movement / ADX
The ADX filter is drawn directly from J. Welles Wilder's Directional Movement System, which decomposes price movement into positive and negative directional components and derives a smoothed index (ADX) representing trend strength independent of direction. ADX below common threshold levels is widely associated with range-bound, non-trending conditions in technical analysis literature.
• Recursive State Estimation (Kalman Filtering)
The optional Kalman Filter smoothing method applies a simplified single-state form of the Kalman recursive estimation framework from control theory and signal processing, in which a running estimate is continuously updated by weighting new observations against the estimate's own error covariance, producing a smoothing average that adapts its responsiveness based on recent prediction error rather than using a fixed lookback window.
• Slope-Adjusted Trend Extrapolation (LLAMA)
The LLAMA smoothing option combines a simple arithmetic mean with a linear slope term derived from the change in price over the lookback window, projecting the average forward along the recent trend direction — a lightweight application of linear extrapolation principles used to reduce the inherent lag of simple averaging methods.
• Volume as a Conviction Proxy
The volume filter reflects the broader technical-analysis principle that price movements accompanied by above-average participation carry more informational weight than those on thin volume, a concept with roots in classical volume-price analysis dating back to early technical analysis literature (e.g., Dow Theory's treatment of volume as a confirming factor).
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Wskaźnik

Smart Money Liquidation Exploits [AlgoAlpha]🟠 OVERVIEW
Smart Money Liquidation Exploits maps recent swing highs and lows as liquidity levels, then watches how price reacts when these levels are reached. It focuses on liquidity sweeps where price moves beyond a prior swing with the wick but the candle body remains on the other side of the level.
The indicator combines pivot-based liquidity mapping, wick rejection signals, and structure-based take-profit levels. This helps traders separate a liquidity sweep from a simple break through a previous high or low.
It can use the current chart timeframe or a selected higher timeframe. This lets traders view liquidity and sweep signals from broader market structure while staying on a lower-timeframe chart.
🟠 CONCEPTS
Liquidity Level — A price level formed from a confirmed pivot high or pivot low. Pivot highs represent potential buy-side liquidity, while pivot lows represent potential sell-side liquidity.
Liquidity Sweep — A move where the wick crosses a liquidity level but the candle body stays beyond neither side of that level. A sweep below a pivot low is treated as bullish, while a sweep above a pivot high is treated as bearish.
Pivot Structure — Confirmed swing highs and lows defined by the Pivot Length setting. Consecutive pivots in the same direction are updated when a more extreme high or low forms.
Take-Profit Level — A target created after a valid sweep. For bullish sweeps, the target is the midpoint between the swept low and the latest swing high. For bearish sweeps, it is the midpoint between the swept high and the latest swing low.
Level Expiry — The period during which a liquidity or take-profit level remains active. Levels stop extending after they are reached or after the selected number of bars expires.
🟠 FEATURES
Liquidity Levels — Displays active pivot-based liquidity levels above and below price.
Sweep Signals — Marks bullish sweeps with ▲ and bearish sweeps with ▼ when price wicks through a liquidity level without the candle body crossing it.
Take-Profit Levels — Displays a dotted target after a valid liquidity sweep when an opposing swing is available.
Target Confirmation — Marks completed take-profit targets with a ✅ and connects the original sweep to the target hit.
Higher-Timeframe Mode — Allows liquidity levels, sweeps, targets, and expiry periods to use structure from a selected higher timeframe.
🟠 HOW TO USE
Watch the active liquidity levels around price to identify recent swing highs and lows that price may test.
Look for a ▲ below price when sell-side liquidity is swept. This shows that price moved below a pivot low but the candle body remained above the level.
Look for a ▼ above price when buy-side liquidity is swept. This shows that price moved above a pivot high but the candle body remained below the level.
After a valid sweep, use the dotted take-profit level as the indicator's structure-based target.
Watch for a ✅ when price reaches an active target. The connecting dotted line shows which sweep produced the completed target.
Increase Pivot Length to focus on broader swings, or reduce it to detect smaller local swings.
Enable Higher Timeframe mode when you want the liquidity structure and signals to come from a broader timeframe than the current chart.
Adjust Level Expiry Bars to control how long untouched liquidity and take-profit levels remain active.
🟠 CONCLUSION
Smart Money Liquidation Exploits combines pivot-based liquidity levels, wick-defined liquidity sweeps, and structure-based take-profit targets. It gives traders a visual way to identify rejected liquidity runs and track the price objective associated with each valid sweep. Wskaźnik

Sattam Supply | DemandSATTAM Supply | Demand Zones (Multi-Timeframe)
OVERVIEW
This indicator maps supply and demand zones from a timeframe you choose and draws them on your current chart. Instead of marking every swing point, it only accepts a swing that is followed by a genuine displacement move away from that level, measured against volatility (ATR). The goal is a chart with a small number of meaningful zones rather than dozens of overlapping boxes. Zones are drawn as boxes with a 50% midline, extended to the right until price invalidates them.
HOW A ZONE IS CREATED
A zone is created in two stages.
1) Pivot detection
The script looks for a pivot high (for supply) or a pivot low (for demand) on the selected timeframe. A pivot needs "Pivot Length" bars on each side to confirm, so the swing is a completed structural turning point and not a temporary extreme.
2) Displacement confirmation
A confirmed pivot is not enough on its own. After the pivot confirms, the script watches the next few bars ("Displacement Window") for a decisive close away from the level:
- Supply: a close below the pivot candle's low by more than ATR(14) x displacement factor
- Demand: a close above the pivot candle's high by more than ATR(14) x displacement factor
The ATR value used is the one captured at the pivot bar itself, so the confirmation threshold reflects the volatility that existed when the level formed, not the volatility at the moment of the breakout. If no qualifying close appears inside the window, the pivot is discarded and no zone is drawn.
The displacement factor is derived from the "Sensitivity" input: max(0.10, 1.15 - Sensitivity x 0.10). Higher sensitivity means a smaller required move, which produces more zones. Lower sensitivity demands a stronger reaction and produces fewer, more selective zones.
ZONE BOUNDARIES
Each zone is anchored at the pivot candle's own time, so the box starts where the level actually formed.
- Supply: the top is the pivot high, the bottom is the pivot candle's body top, min(open, close).
- Demand: the bottom is the pivot low, the top is the pivot candle's body bottom, max(open, close).
If that body-to-wick distance is unusually thin, the height is expanded to a volatility-based minimum (ATR at the pivot x width factor) so the zone stays usable on quiet candles. The "Width" input scales that minimum.
ZONE MANAGEMENT
Overlap filter: a new zone is rejected if it overlaps an existing zone by more than 45% of the smaller zone's height, or if it forms close in time with a nearly identical midpoint. This prevents clusters of near-duplicate boxes around the same level.
Zone limit: "Max Zones Per Side" caps how many supply and demand zones stay on the chart. When the limit is reached, the oldest zone is removed.
Invalidation: with "Hide Invalidated Zones" enabled, a supply zone is deleted after a close above its top and a demand zone after a close below its bottom. Disable it to keep broken zones visible for context.
Extension: active zones extend to the right by "Zones Offset" bars of the current chart so they stay visible ahead of price.
REPAINTING
Zones are committed only from closed bars of the selected timeframe. When a new higher-timeframe bar opens, the script reads the signal produced by the bar that just closed, and request.security is called with lookahead_off. A zone that has been drawn will not move or disappear on a later refresh, and no zone appears from a still-forming higher-timeframe bar.
Because of this, a zone always appears with a delay of at least "Pivot Length" bars plus the displacement bars on the selected timeframe. That delay is inherent to pivot-based confirmation.
SETTINGS
Source
- Timeframe: the timeframe the zones are calculated from (default 4H). Leave empty to use the chart timeframe.
- Pivot Length: bars required on each side of a swing for it to count as a pivot.
- Sensitivity: 1 to 10. Higher values loosen the displacement filter and allow more zones.
- Displacement Window: how many bars after a pivot confirms the script keeps waiting for a displacement close before discarding the pivot.
Zones
- Width: scales the volatility-based minimum zone thickness.
- Zones Offset: how far zones extend to the right.
- Max Zones Per Side: maximum simultaneous supply and demand zones.
- Hide Invalidated Zones: remove zones after price closes through them.
Style : fill and border colors for supply and demand, plus midline style (dashed, dotted, solid).
Timeframe Label : an on-chart label showing which timeframe the zones come from, with position, size and color options.
HOW TO USE IT
Set the Timeframe higher than your chart timeframe, for example 4H zones on a 15m chart, so you keep a structural reference while working on a lower timeframe. Zones mark areas where an imbalance formed and price left the level quickly. They are areas of interest for observing price behaviour, not signals in themselves.
Reduce Sensitivity and raise Pivot Length on noisy or lower timeframes if too many zones appear. Raise Sensitivity on higher timeframes or slow instruments if too few appear.
ALERTS
Two alert conditions are available: New Supply Zone and New Demand Zone. Both fire when a zone is confirmed from a closed higher-timeframe bar.
NOTES AND LIMITATIONS
- The indicator describes structure that has already formed. It does not predict direction and produces no buy or sell signals.
- Zone quality depends on the selected timeframe and instrument. Settings that work on one market will not automatically suit another.
- Very illiquid symbols or timeframes with wide gaps may produce fewer valid displacement confirmations.
This script is published for educational and analytical purposes only. It is not financial advice and does not guarantee any result. Always test any tool on your own instruments and timeframes before relying on it.
مؤشر مناطق العرض والطلب - متعدد الفريمات
نظرة عامة
يرسم المؤشر مناطق العرض والطلب من فريم تختاره أنت ويعرضها على الشارت الحالي. بدلاً من تعليم كل قمة وقاع، لا يقبل المؤشر السوينق إلا إذا تبعته حركة اندفاع حقيقية بعيداً عن المستوى، تُقاس نسبةً إلى تذبذب السوق عبر ATR. الهدف شارت فيه عدد قليل من المناطق المهمة بدل عشرات الصناديق المتداخلة. تُرسم المنطقة على شكل صندوق مع خط منتصف عند 50% ويمتد لليمين حتى يُبطله السعر.
كيف تتكوّن المنطقة
المرحلة الأولى: البحث عن قمة بيفوت للعرض أو قاع بيفوت للطلب على الفريم المختار. يحتاج البيفوت إلى عدد الشموع المحدد في Pivot Length على كل جانب حتى يتأكد، حتى يكون نقطة انعكاس بنيوية مكتملة لا مجرد طرف مؤقت.
المرحلة الثانية: البيفوت وحده لا يكفي. بعد تأكده يراقب المؤشر الشموع التالية خلال Displacement Window بحثاً عن إغلاق حاسم بعيداً عن المستوى:
- العرض: إغلاق أسفل قاع شمعة البيفوت بمسافة أكبر من ATR(14) مضروباً في معامل الاندفاع.
- الطلب: إغلاق أعلى قمة شمعة البيفوت بمسافة أكبر من ATR(14) مضروباً في معامل الاندفاع.
قيمة ATR المستخدمة هي القيمة المسجّلة عند شمعة البيفوت نفسها، أي أن حد التأكيد يعكس التذبذب الذي كان قائماً وقت تكوّن المستوى لا وقت الاختراق. وإذا لم يظهر إغلاق مؤهّل داخل النافذة يُلغى البيفوت ولا تُرسم منطقة.
معامل الاندفاع مشتق من إدخال Sensitivity بالمعادلة: max(0.10, 1.15 - Sensitivity x 0.10). كلما ارتفعت الحساسية قلّت المسافة المطلوبة وزاد عدد المناطق، وكلما انخفضت تطلّب المؤشر رد فعل أقوى وأعطى مناطق أقل وأكثر انتقائية.
حدود المنطقة
المنطقة مثبّتة على وقت شمعة البيفوت نفسها، فيبدأ الصندوق من حيث تكوّن المستوى فعلاً.
- العرض: القمة هي قمة البيفوت، والقاع هو أعلى جسم الشمعة أي min(open, close).
- الطلب: القاع هو قاع البيفوت، والقمة هي أسفل جسم الشمعة أي max(open, close).
وإذا كانت هذه المسافة رفيعة بشكل غير معتاد يُوسَّع الارتفاع إلى حد أدنى مبني على ATR عند البيفوت مضروباً في معامل العرض، حتى تبقى المنطقة قابلة للاستخدام على الشموع الهادئة. ويتحكم إدخال Width في هذا الحد الأدنى.
إدارة المناطق
فلتر التداخل: تُرفض أي منطقة جديدة تتداخل مع منطقة قائمة بأكثر من 45% من ارتفاع الأصغر بينهما، أو تتكوّن قريباً منها زمنياً بمنتصف شبه مطابق. هذا يمنع تراكم صناديق شبه مكررة حول المستوى نفسه.
حد المناطق: يحدّد Max Zones Per Side أقصى عدد للمناطق على كل جهة، وتُحذف الأقدم عند تجاوز الحد.
الإبطال: مع تفعيل Hide Invalidated Zones تُحذف منطقة العرض بعد إغلاق فوق قمتها، ومنطقة الطلب بعد إغلاق تحت قاعها. ويمكن تعطيله للإبقاء على المناطق المكسورة كسياق.
الامتداد: تمتد المناطق النشطة لليمين بمقدار Zones Offset من شموع الشارت الحالي لتبقى ظاهرة أمام السعر.
إعادة الرسم
تُعتمد المناطق من الشموع المغلقة فقط على الفريم المختار. عند فتح شمعة جديدة على الفريم الأعلى يقرأ المؤشر الإشارة الناتجة عن الشمعة التي أُغلقت للتو، وتُستدعى request.security بخيار lookahead_off. لذلك المنطقة بعد ظهورها لا تتحرك ولا تختفي عند التحديث، ولا تظهر أي منطقة من شمعة لم تُغلق بعد.
ونتيجة لذلك تظهر المنطقة متأخرة بمقدار شموع البيفوت زائد شموع الاندفاع على الفريم المختار، وهو تأخير ملازم لأي تأكيد مبني على البيفوت.
الإعدادات
المصدر
- Timeframe: الفريم الذي تُحسب منه المناطق، والافتراضي 4 ساعات. اتركه فارغاً لاستخدام فريم الشارت.
- Pivot Length: عدد الشموع المطلوبة على كل جانب لاعتماد البيفوت.
- Sensitivity: من 1 إلى 10، والقيم الأعلى تخفف فلتر الاندفاع وتسمح بمناطق أكثر.
- Displacement Window: عدد الشموع التي يواصل المؤشر خلالها انتظار إغلاق الاندفاع بعد تأكد البيفوت قبل إلغائه.
المناطق
- Width: يتحكم في الحد الأدنى لسماكة المنطقة المبني على التذبذب.
- Zones Offset: مدى امتداد المناطق لليمين.
- Max Zones Per Side: أقصى عدد متزامن لمناطق العرض والطلب.
- Hide Invalidated Zones: حذف المناطق بعد إغلاق السعر خلالها.
الستايل: ألوان التعبئة والحدود للعرض والطلب، ونمط خط المنتصف متقطع أو منقّط أو متصل.
مؤشر الفريم: لوحة صغيرة على الشارت تبيّن الفريم الذي جاءت منه المناطق، مع خيارات الموضع والحجم واللون.
طريقة الاستخدام
اجعل الفريم في الإعدادات أعلى من فريم الشارت، مثل مناطق 4 ساعات على شارت 15 دقيقة، لتحتفظ بمرجع بنيوي وأنت تعمل على فريم أصغر. المناطق تعلّم أماكن تكوّن اختلال في التوازن غادر السعر مستواها بسرعة، وهي مناطق اهتمام لمراقبة سلوك السعر لا إشارات بحد ذاتها.
خفّض Sensitivity وارفع Pivot Length على الفريمات الصغيرة أو الأسواق المزعجة إذا ظهرت مناطق كثيرة، وارفع Sensitivity على الفريمات الكبيرة أو الأدوات البطيئة إذا كانت المناطق قليلة.
التنبيهات
تنبيهان متاحان: منطقة عرض جديدة، ومنطقة طلب جديدة، ويُطلقان عند تأكيد المنطقة من شمعة مغلقة على الفريم الأعلى.
ملاحظات وحدود
- المؤشر يصف بنية سعرية تكوّنت بالفعل، ولا يتنبأ بالاتجاه ولا يعطي إشارات شراء أو بيع.
- جودة المناطق تعتمد على الفريم والأداة المختارة، والإعدادات التي تناسب سوقاً لا تناسب غيره تلقائياً.
- الرموز ضعيفة السيولة أو الفريمات ذات الفجوات الواسعة قد تعطي تأكيدات اندفاع أقل.
يُنشر هذا المؤشر لأغراض تعليمية وتحليلية فقط، وليس نصيحة مالية ولا يضمن أي نتيجة. اختبر أي أداة على أدواتك وفريماتك قبل الاعتماد عليها. Wskaźnik

Support & Resistance Zones [HexaTrades]
This indicator automatically finds the price levels where the market has turned around before the places where buyers stepped in (support) and where sellers took over (resistance) and draws them as clean rectangular zones on your chart.
Instead of a thin line, each level is drawn as a zone with real thickness, because support and resistance are never one exact price; they are areas where price reacts. The zones update live, extend forward as long as they are valid, and turn into light "ghost" boxes once price finally breaks through them, so you always keep the full picture of the market's history.
Bitcoin 4h: the indicator marking support and resistance zones
How it works
- Finds swing points. A swing high is a candle whose high is higher than the 10 candles on each side of it (the "Swing Length" setting). A swing low is the same idea upside down. These are the exact spots where the market turned.
- Builds a zone from the candle. The zone covers the candle's wick from the extreme tip to the candle body. That wick is where orders actually pushed price back, so it becomes the zone.
- Keeps zone size sensible. Very small wicks get padded to a minimum height, and no zone can grow taller than a maximum height (both measured in ATR, so they adapt automatically to each market's volatility).
- Merges duplicate levels. If a new swing forms at a level that already has a zone, the two are combined into one box instead of stacking clutter on your chart.
- Watches for breaks. When a candle closes beyond a zone, the zone is "broken." what happens next is up to you (see below).
What happens after a zone breaks?
The indicator provides three different zone-management options.
Keep As Past Zone: The broken zone stops extending and remains visible as a faded historical zone. This makes it easier to review how price behaved around previous levels.
Flip Support/Resistance: A broken resistance zone becomes support, while a broken support zone becomes resistance.
This is useful for studying the common market concept of role reversal, where old resistance may act as new support and old support may act as new resistance.
Delete Zone: The zone is completely removed after it breaks. This option is useful for traders who prefer a cleaner chart showing only active zones.
Optional volume filter:
Volume-Confirmed Zones Only can be enabled to filter out lower-volume swing points.
When enabled, the volume of the swing candle must be higher than: Average Volume × Volume Multiplier
For example, with a Volume Multiplier of 1.2, the swing candle’s volume must be greater than 120% of its average volume.
The volume filter is automatically ignored when volume data is unavailable. Volume quality can vary between markets, exchanges and brokers.
Indicator settings
- Swing Length: Controls how significant a swing must be. Lower values create more zones, while higher values create fewer but potentially more significant zones.
- Maximum Zones: Limits the number of active zones displayed. When the limit is exceeded, the oldest active zone is removed.
- ATR Length: Sets the calculation period used to measure volatility.
- Minimum Zone Height: Sets the minimum zone thickness as a multiple of ATR.
- Maximum Zone Height: Prevents zones from becoming excessively wide.
- Merge Overlapping Zones: Combines overlapping or nearby active zones.
- Merge Distance: Controls the ATR-based distance used when deciding whether zones should be merged.
- Maximum Past Zones: Limits how many broken historical zones remain on the chart.
- Past Zone Transparency: Controls how clearly broken zones are displayed.
Alerts
- Built-in alerts
- Zone Touched — price entered a support or resistance zone.
- Resistance Broken — a candle broke above a resistance zone.
- Support Broken — a candle broke a support zone below.
- Set them up from TradingView's alert dialog: Create Alert → Condition → S/R Zones.
How to use it in trading
🔶Bounce trades: when price falls into a support zone and prints a rejection candle, that's a long setup with a stop just below the zone.
A blue support zone represents an area where buyers previously entered the market.
When price returns to support:
- Wait for price to enter or test the zone.
- Look for evidence that buyers are responding.
- Consider an entry only after confirmation.
- Place the stop beyond the opposite side of the zone, with an appropriate buffer.
- Use the next resistance zone as a possible target.
Possible bullish confirmation includes:
- A candle rejecting the lower part of the zone.
- A long lower wick followed by a bullish close.
- A bullish engulfing candle.
- Price closing back above the support zone.
- Increasing volume during the reaction.
- A higher low forming near the zone.
A support touch by itself is not a long signal. Price can move directly through the zone, especially during a strong downtrend.
Example image below:
🔶Rejection from resistance
A pink resistance zone represents an area where sellers previously entered the market.
When price reaches resistance:
- Wait for price to test the zone.
- Look for signs of selling pressure.
- Consider an entry only after bearish confirmation.
- Place the stop beyond the upper edge of the zone, with a suitable buffer.
- Use the next support zone below as a possible target.
Possible bearish confirmation includes:
- A long upper wick inside the resistance zone.
- A bearish engulfing candle.
- Price entering the zone and closing back below it.
- A lower high forming near resistance.
- Increasing selling volume during the rejection.
A resistance touch alone is not a short signal. Strong bullish momentum can break through resistance without producing a meaningful reversal.
Example image:
🔶Trading a breakout
A breakout occurs when price moves beyond an active zone.
- A break above resistance may indicate increasing bullish strength.
- A break below support may indicate increasing bearish strength.
For more conservative confirmation, select Close under Break Confirmation. In this mode, a resistance zone breaks only after a candle closes above it, while a support zone breaks only after a candle closes below it.
The Wick option reacts as soon as price trades beyond the zone. It responds faster but is more sensitive to temporary spikes and false breakouts.
Before considering a breakout trade, traders may look for:
- A strong candle closing beyond the zone.
- A candle body that closes clearly outside the zone.
- Higher-than-average volume.
- Momentum in the breakout direction.
- Alignment with the broader market trend.
- A successful retest of the broken zone.
🔶Trading a role reversal
Support and resistance can sometimes exchange roles after a breakout.
-Broken resistance may later act as support.
- Broken support may later act as resistance.
Select Flip Support/Resistance under the When Broken setting to display this behaviour automatically.
For example, after price closes above a pink resistance zone, the indicator converts that area into a blue support zone. If price later returns to it, traders can watch for a bullish reaction.
Similarly, when price breaks below blue support, the indicator converts the zone into pink resistance. A later retest may provide an area to watch for bearish confirmation.
Role reversal is a commonly observed price-action concept, but it does not occur successfully after every breakout. Wait for confirmation instead of entering only because price has returned to a flipped zone.
🔶Using zones for targets and stops
Zones can also help organise trade management.
For a long setup:
- A stop may be placed below the support zone.
- The next resistance zone may be used as an initial target.
- A higher resistance zone may be considered as a secondary target if momentum remains strong.
For a short setup:
- A stop may be placed above the resistance zone.
- The next support zone may be used as an initial target.
- A lower support zone may be considered as a secondary target.
Avoid placing the stop exactly on the edge of a zone. Price may briefly move beyond the boundary before reacting. The appropriate buffer depends on the symbol, timeframe, volatility and the trader’s risk plan.
Always calculate the potential risk and reward before entering a trade. A visible zone does not automatically make a setup worth taking.
🔶 Using multiple timeframes
Higher-timeframe zones can provide broader market context, while lower timeframes can help refine entries.
A simple process is:
- Identify important support and resistance on a higher timeframe.
- Determine whether the broader structure is bullish, bearish or ranging.
- Move to the preferred trading timeframe.
- Wait for price to reach a relevant zone.
- Use candle structure, volume or momentum for confirmation.
Higher timeframes generally produce fewer but more widely watched zones. Lower timeframes produce more zones and may contain more market noise.
Support and Resistance Zones help traders identify and manage important price areas with less chart clutter. Its volatility-based sizing, zone merging, break confirmation, role reversal, and alerts make it suitable for different markets and timeframes. Use the zones as areas to watch—not automatic trade signals and always combine them with price confirmation, broader market structure and proper risk management.
We would love to hear your suggestions. If you have ideas for new features, indicators, analytics, or improvements, please share your feedback. Your input helps guide future updates and improve the indicator for all traders.
Wedge pattern detector indicator is for educational and analytical purposes only. It is not financial advice. Trading involves risk. Always use proper risk management and combine this indicator with your own analysis before taking any trade.
Wskaźnik

KC Liquidity Reaction EngineKC Liquidity Reaction Engine is a price-action research tool designed to evaluate what happens after a liquidity sweep rather than treating the sweep itself as a complete trading signal.
Many liquidity-based tools focus primarily on identifying highs or lows that price has taken. This script approaches the problem differently. Once a qualifying buy-side or sell-side liquidity event is detected, the engine tracks the subsequent reaction as a structured lifecycle and evaluates several independent characteristics of that reaction.
Core Concept
A liquidity sweep does not automatically imply reversal or continuation.
The purpose of this indicator is therefore to separate:
Liquidity Event → Reaction → Reclaim → Confirmation → Follow-Through → Final Outcome
This allows the user to evaluate whether the market actually responded meaningfully after liquidity was taken.
Liquidity Sweep Detection
The engine identifies two directional liquidity events:
BSL Sweep — Buy-Side Liquidity Sweep
Price trades through a qualifying prior high and creates a reaction event around that liquidity level.
SSL Sweep — Sell-Side Liquidity Sweep
Price trades through a qualifying prior low and creates the corresponding opposite-side event.
The detected sweep becomes the reference point from which the reaction lifecycle is evaluated.
Reaction Score
After a sweep, the script calculates a Reaction Score from 0 to 100.
The score is not a probability of a profitable trade and should not be interpreted as a win rate. It is an internal quality measurement used to summarize the characteristics of the observed post-sweep reaction.
The dashboard translates this measurement into four descriptive quality grades:
STRONG
GOOD
MODERATE
WEAK
Quality Grade and Final Outcome are intentionally kept separate. A reaction can display certain strong characteristics without necessarily producing a successful completed sequence.
Reclaim State Machine
A central feature of the engine is its reclaim lifecycle.
Rather than marking every temporary movement back through a reference level as confirmation, the script distinguishes between:
NONE — No qualifying reclaim has been detected.
DETECTED — Initial reclaim conditions exist, but the required confirmation sequence has not yet completed.
CONFIRMED — The reclaim has satisfied the configured confirmation requirements.
EXPIRED — A reclaim was detected during the reaction lifecycle but did not achieve confirmation before that lifecycle completed.
This distinction is designed to reduce ambiguity between an initial reclaim attempt and a confirmed reclaim.
Reclaim Score
Reclaim strength is displayed on a 0–100 scale.
A detected but unconfirmed reclaim remains provisional and cannot display the same terminal score as a confirmed reclaim.
For example, the dashboard may show:
Reclaim: 40/100
Reclaim State: DETECTED
Confirm Closes: 0/2
Reclaim Logic: PROVISIONAL
A completed sequence that never satisfies the confirmation requirement is instead archived as:
Reclaim State: EXPIRED
Reclaim Logic: UNCONFIRMED
A fully confirmed reclaim is classified separately.
Displacement
The Displacement measurement evaluates the strength of directional movement associated with the reaction.
It is normalized into a 0–100 internal score so reactions occurring under different volatility conditions can be compared more consistently.
A high displacement reading by itself does not constitute a trade signal. It describes one component of the reaction structure.
Follow-Through
Follow-Through evaluates whether the initial reaction develops additional movement in its expected direction.
This is deliberately measured separately from displacement.
A market can produce strong initial displacement but limited subsequent continuation. Keeping these measurements independent helps expose that distinction.
Favorable and Adverse Excursion
The engine also tracks reaction excursion relative to ATR.
Max Favorable measures the maximum favorable movement observed during the tracked reaction.
Adverse Before measures adverse movement occurring before a qualifying reclaim.
Adverse After measures adverse movement after the reclaim stage when applicable.
ATR normalization is used so these measurements describe movement relative to prevailing volatility rather than only in absolute price units.
Reaction Lifecycle
Each detected reaction progresses through an internal lifecycle.
The dashboard distinguishes an actively developing reaction from the last completed reaction using Reaction Mode.
CURRENT represents the active tracked event.
LAST represents the most recently completed reaction retained for analysis.
Once a lifecycle is completed, unfinished reclaim logic is not left appearing as an active pending confirmation. An incomplete detected reclaim is classified as EXPIRED / UNCONFIRMED.
Final Outcome
The Final Outcome field summarizes the terminal state of the tracked reaction.
This field is intentionally independent of Quality Grade.
For example, a low-scoring completed reaction may display:
Quality Grade: WEAK
Final Outcome: FAILED
Lifecycle: COMPLETED
This separation prevents reaction quality, confirmation state, and final lifecycle outcome from being represented as the same concept.
Dashboard Interpretation
The dashboard provides the following information:
Reaction Mode — Current or last completed reaction
Sweep Type — BSL or SSL sweep
Reaction Bias — Direction associated with the tracked reaction
Reaction Score — Composite reaction-quality measurement
Quality Grade — Descriptive classification of the Reaction Score
Reclaim — Current reclaim measurement
Reclaim State — None, Detected, Confirmed, or Expired
Confirm Closes — Progress toward reclaim confirmation
Reclaim Logic — Current state of reclaim validation
Displacement — Initial directional movement strength
Follow-Through — Subsequent continuation measurement
Max Favorable — Maximum favorable excursion in ATR units
Adverse Before — Adverse excursion before reclaim
Adverse After — Adverse excursion after reclaim
Final Outcome — Terminal reaction classification
Lifecycle — Current lifecycle status
Failed Reaction — Indicates whether failure criteria were reached
Sequence Logic — Current stage of the reaction/reclaim sequence
What Makes This Script Different
The indicator is not designed merely to plot liquidity levels or label every sweep as a reversal.
Its primary purpose is post-liquidity-event evaluation.
The script combines a state-based reaction lifecycle with reclaim confirmation, displacement analysis, follow-through measurement, volatility-normalized excursion tracking, quality classification, and completed-event persistence.
These components are evaluated as stages of one reaction sequence rather than presented as unrelated indicators.
The result is intended to help discretionary traders study an important question:
After liquidity was taken, what did price actually do?
Suggested Use
The indicator can be used as a contextual research layer alongside a trader's existing market-structure methodology.
For example, users can compare:
strong versus weak post-sweep reactions,
detected versus confirmed reclaims,
initial displacement versus subsequent follow-through,
favorable versus adverse excursion,
active versus completed reaction sequences.
It can also be useful for reviewing historical liquidity reactions and studying how different instruments or timeframes behave around liquidity events.
Important Limitations
This indicator does not predict future price movement.
Liquidity identification depends on the script's structural rules and settings, and different definitions of liquidity may produce different results.
Reaction scores are internal measurements, not probabilities, historical win rates, expected returns, or guarantees.
ATR-normalized excursion describes historical price movement during the tracked reaction and should not be interpreted as a profit target or stop-loss recommendation.
Market regime, volatility, news events, execution costs, slippage, and higher-timeframe context can materially affect real-world trading outcomes.
The tool is intended for technical analysis, market research, and educational use. Trading decisions and risk management remain the responsibility of the user.
Wskaźnik

TEWMA Trend Strength - [JTCAPITAL]TEWMA Trend Strength - is a modified way to use Triple Exponentially Weighted Moving Averages (TEMA), Weighted Moving Averages (WMA), Average True Range (ATR), and EMA smoothing to measure the strength and direction of a trend.
Instead of simply determining whether price is above or below a single moving average, the indicator measures how far the current closing price is positioned from a composite trend baseline and normalizes that distance by market volatility using ATR. This produces a dimensionless trend-strength value that can be compared across different volatility environments.
The indicator combines two independently calculated TEWMA structures using different lengths. The first TEWMA is built from the selected source using the primary length, while the second uses a longer dynamically calculated length. These two TEWMA values are then averaged into one composite baseline.
The resulting distance between price and this composite baseline is divided by ATR. This normalization is important because a fixed price distance does not have the same meaning in every market or volatility regime. A move of 500 points can be extremely significant during a quiet market while being relatively insignificant during a highly volatile market. By measuring the distance relative to ATR, the indicator expresses the displacement in terms of the market's recent typical movement range.
A second, EMA-smoothed version of this strength measurement is also calculated. This provides a slower representation of the underlying trend-strength state while the raw strength value remains more responsive to current price movement.
The result is an oscillator designed to show both trend direction and relative trend strength in a single framework.
The indicator works by calculating in the following steps:
Selecting the Price Source
The script begins with a user-selectable source, which defaults to the closing price.
This source is used as the foundation for the entire trend calculation. Because the source is configurable, the underlying calculation does not have to be restricted to the close. The selected source can be changed to other available price series depending on how the user wants the trend baseline to respond to market data.
Using a configurable source makes the underlying TEWMA calculation adaptable without changing the mathematical structure of the indicator.
Defining the Primary TEWMA Length
The user specifies the primary moving-average length through the Length parameter.
This length controls the first trend component of the indicator. A shorter length makes the underlying moving averages react more quickly to price changes, while a longer length produces a slower and more stable representation of the underlying trend.
The default value is 50.
Creating the Second TEWMA Length
The script then creates a second length by multiplying the primary length by the Multiplier parameter.
The calculation is:
Second Length = Primary Length × Multiplier
The resulting value is rounded to the nearest whole number because the moving-average functions require an integer length.
With the default settings:
50 × 2 = 100
Therefore, the first TEWMA uses a length of 50 while the second TEWMA uses a length of 100.
This creates two different trend perspectives: one more responsive and one slower.
Calculating the First Weighted Moving Average
The selected source is first processed through a Weighted Moving Average using the primary length.
A WMA assigns progressively different weights to the observations within its calculation window, giving more importance to more recent observations than older ones.
This means the WMA can react to recent price changes more quickly than a traditional SMA while still providing a smoother representation of price than using raw closing prices.
The first WMA therefore acts as the input into the first TEMA calculation.
Calculating the Second Weighted Moving Average
The same process is repeated using the dynamically calculated second length.
Because this length is normally larger than the primary length, the second WMA represents a slower-moving version of the underlying price structure.
With the default settings, the first WMA uses 50 periods while the second uses 100 periods.
This creates two different smoothing horizons before the data reaches the TEMA calculations.
Applying Triple Exponential Moving Average to the First WMA
The first WMA is passed through a Triple Exponential Moving Average (TEMA).
TEMA uses multiple stages of exponential smoothing to reduce the lag associated with conventional moving averages.
Conceptually, TEMA can be represented as:
TEMA = 3 × EMA1 - 3 × EMA2 + EMA3
Where:
EMA1 is the first EMA of the input.
EMA2 is an EMA of EMA1.
EMA3 is an EMA of EMA2.
The combination of these three stages is designed to reduce lag while retaining smoothing characteristics.
In this indicator, however, TEMA is not applied directly to raw price. It is applied to the already weighted price series produced by the WMA.
This creates a two-stage structure:
Price Source → WMA → TEMA
The resulting value is the first TEWMA component.
Applying Triple Exponential Moving Average to the Second WMA
The second WMA is independently passed through another TEMA calculation using the longer second length.
This produces the second TEWMA component.
The second component reacts more slowly because its underlying WMA uses a longer period. Consequently, it provides a broader representation of the market's trend structure.
The two components therefore serve different purposes within the same baseline:
* The shorter TEWMA provides a more responsive representation of the current trend.
* The longer TEWMA provides a slower representation of the broader trend structure.
Combining the Two TEWMA Components
The two TEWMA values are then averaged together.
The calculation is:
TEWMA = (TEWMA1 + TEWMA2) / 2
This creates a composite trend baseline rather than relying on only one moving-average length.
The benefit of averaging two different smoothing horizons is that the resulting baseline incorporates both a faster and a slower view of price structure.
The shorter component helps keep the baseline responsive, while the longer component provides additional stability.
This combination can reduce the dependence on a single arbitrary moving-average period and creates a more balanced representation of the underlying trend.
Calculating Average True Range
The script independently calculates Average True Range (ATR) using the user-defined ATR Length .
The default ATR length is 40.
ATR measures the recent trading range of the market while accounting for gaps between consecutive bars through the concept of True Range.
True Range is based on the greatest of:
* Current High minus Current Low
* Absolute value of Current High minus Previous Close
* Absolute value of Current Low minus Previous Close
ATR then smooths these True Range values over the selected period.
In this indicator, ATR is not being used as a traditional stop-loss or entry mechanism. Instead, it is used as a volatility normalization factor.
Calculating the Raw Trend Strength
The script measures the distance between the current closing price and the composite TEWMA.
The calculation is:
Strength = (Close - TEWMA) / ATR
This is one of the most important calculations in the indicator.
First, the script calculates:
Close - TEWMA
This determines whether price is above or below the composite trend baseline and by how much.
If the result is positive, the closing price is above the TEWMA.
If the result is negative, the closing price is below the TEWMA.
The difference is then divided by ATR.
This converts the raw price distance into a volatility-adjusted measurement.
For example, a distance of 100 price units does not have the same significance in a market with an ATR of 20 as it does in a market with an ATR of 200.
When ATR is 20:
100 / 20 = 5
When ATR is 200:
100 / 200 = 0.5
The same absolute price distance therefore produces very different strength readings depending on the market's volatility.
This is the primary reason for incorporating ATR into the strength calculation.
Interpreting the Zero Line
Because the strength calculation is based on Close - TEWMA , the zero line has a direct mathematical meaning.
When:
Strength > 0
the closing price is above the composite TEWMA.
When:
Strength < 0
the closing price is below the composite TEWMA.
Therefore, the zero line represents the point where price and the composite TEWMA are equal.
This makes the zero line the central directional reference of the oscillator.
Smoothing the Strength Measurement
The raw strength value is then passed through an Exponential Moving Average.
The smoothing period is controlled by Smoothing Length , which defaults to 50.
The calculation can therefore be represented as:
Smoothed Strength = EMA(Strength, Smoothing Length)
Unlike the raw strength measurement, which reacts directly to changes in the current price-to-TEWMA relationship, the smoothed line incorporates previous strength values.
Because EMA gives greater weight to more recent observations, it remains responsive while filtering out some of the shorter-term fluctuations in the raw oscillator.
This creates two complementary views:
* Raw Strength shows the more immediate price displacement from the TEWMA.
* Smoothed Strength shows a slower representation of the underlying strength condition.
Assigning the Raw Strength Trend Color
The raw strength line changes color according to whether its value is above or below zero.
When strength is positive, the line uses the bullish color.
When strength is negative, the line uses the bearish color.
The color therefore directly corresponds to the mathematical relationship between price and the composite TEWMA.
It does not represent a separate calculation or additional signal filter.
Assigning the Smoothed Strength Trend Color
The same directional concept is applied to the smoothed strength line.
When the smoothed strength is above zero, it receives the bullish color.
When the smoothed strength is below zero, it receives the bearish color.
This makes it possible to visually distinguish the current normalized strength state from the slower smoothed state.
Plotting the Raw Strength
The raw strength value is plotted as the primary oscillator.
Because the indicator is declared with overlay = false , the oscillator is displayed in its own pane rather than directly over the price chart.
The raw strength plot uses a thicker line to emphasize the more responsive component of the calculation.
Filling Between Raw Strength and Zero
The script also creates an invisible zero reference plot and fills the area between the raw strength line and zero.
The fill follows the same bullish or bearish color assignment as the raw strength line.
This makes positive and negative deviations visually easier to identify.
When the oscillator is above zero, the area between the strength line and zero represents positive displacement from the TEWMA.
When it is below zero, the corresponding area represents negative displacement.
Plotting the Smoothed Strength
The smoothed strength is plotted separately using a thinner line.
Because this line is an EMA of the raw strength, it reacts more gradually to changes.
This makes it useful for visually separating short-term fluctuations in normalized trend strength from the broader strength condition represented by the smoothed value.
Filling Between Smoothed Strength and Zero
The indicator also fills the area between the smoothed strength line and zero.
The fill color follows whether the smoothed strength is positive or negative.
Consequently, the oscillator visually contains two layers of information:
* The raw strength component.
* The smoothed strength component.
Defining the Upper Strength Threshold
The Upper parameter defines a positive threshold for the background strength condition.
Its default value is 1.
The script checks whether the raw strength exceeds this threshold:
Strength > Upper
When that condition is true, the chart background receives a bullish background highlight.
The same upper threshold is also applied to the smoothed strength:
Smoothed Strength > Upper
This means the background can identify situations where normalized strength has moved beyond the selected positive threshold.
Defining the Lower Strength Threshold
The Lower parameter defines the negative threshold.
Its default value is -1.
The raw strength is checked against:
Strength < Lower
and the smoothed strength is checked against:
Smoothed Strength < Lower
When either respective condition is met, the corresponding bearish background condition is applied.
The default range therefore places the main strength thresholds at approximately +1 and -1 ATR of normalized displacement from the composite TEWMA.
Background Regime Visualization
The script uses the threshold calculations to create background highlights on the chart.
The raw strength produces a bullish background condition when it exceeds the upper threshold and a bearish background condition when it falls below the lower threshold.
The smoothed strength uses the same threshold framework.
Values between the upper and lower thresholds do not receive the bullish or bearish threshold highlight.
This creates a visual distinction between ordinary positive/negative displacement and stronger normalized displacement.
Buy and Sell Conditions:
This indicator does not contain explicit buy or sell conditions, entries, exits, alerts, or trade execution logic.
Instead, it is designed as a trend-strength oscillator .
The primary directional interpretation comes from the zero line:
* When the raw strength is above 0, price is above the composite TEWMA.
* When the raw strength is below 0, price is below the composite TEWMA.
* When the smoothed strength is above 0, the smoothed trend-strength state is positive.
* When the smoothed strength is below 0, the smoothed trend-strength state is negative.
The upper and lower thresholds provide an additional measurement of the magnitude of the normalized displacement:
* Strength above the upper threshold indicates that price is positioned more than the selected positive ATR multiple above the composite TEWMA.
* Strength below the lower threshold indicates that price is positioned more than the selected negative ATR multiple below the composite TEWMA.
The smoothed line can be used to observe whether the broader strength condition agrees with the raw strength measurement.
For example, a user may choose to interpret a positive raw strength together with positive smoothed strength as stronger directional alignment than a positive raw strength value occurring while the smoothed measurement remains negative.
However, these are interpretations of the indicator's measurements rather than coded buy or sell rules. The script itself does not automatically define a trade entry simply because one of these conditions occurs.
This distinction is important because the indicator measures market structure and normalized trend strength rather than providing a complete trading strategy.
Features and Parameters:
* Source - Selects the price series used as the input for the WMA calculations. The default source is Close.
* Length - Defines the primary length used for the first WMA and TEMA calculation. The default value is 50.
* Multiplier - Multiplies the primary length to determine the second TEWMA length. The default value is 2. With a Length of 50, this produces a second length of 100.
* ATR Length - Determines the period used to calculate ATR for volatility normalization. The default value is 40.
* Smoothing Length - Determines the EMA period used to smooth the raw strength measurement. The default value is 50.
* Upper - Defines the positive normalized-strength threshold used for the bullish background condition. The default value is 1.
* Lower - Defines the negative normalized-strength threshold used for the bearish background condition. The default value is -1.
* Raw Strength - Displays the current ATR-normalized distance between closing price and the composite TEWMA.
* Smoothed Strength - Displays an EMA-smoothed version of the raw strength measurement.
* Zero Line - Represents the point where closing price is equal to the composite TEWMA.
* Threshold Backgrounds - Visually highlights situations where raw or smoothed strength exceeds the configured upper or lower thresholds.
Specifications:
Weighted Moving Average (WMA)
The Weighted Moving Average is a moving average that assigns different weights to the observations within its calculation period.
More recent values receive greater influence than older values.
Compared with a Simple Moving Average, which gives every observation the same weight, WMA emphasizes the more recent portion of the selected price history.
In this indicator, WMA is used as the first smoothing stage before the data enters the TEMA calculation.
This creates a smoother input for TEMA while retaining greater responsiveness to recent price changes than an equally weighted average.
Triple Exponential Moving Average (TEMA)
Triple Exponential Moving Average is a multi-stage exponential smoothing method designed to reduce the lag that can occur with conventional moving averages.
The underlying calculation uses three consecutive EMA stages:
EMA1 = EMA(Input)
EMA2 = EMA(EMA1)
EMA3 = EMA(EMA2)
These are combined approximately as:
TEMA = 3 × EMA1 - 3 × EMA2 + EMA3
The mathematical combination attempts to compensate for some of the lag introduced by repeated exponential smoothing.
In this indicator, TEMA is applied after WMA rather than directly to price.
This creates the specific structure:
Selected Source → WMA → TEMA
That combination is the basis of the indicator's TEWMA concept.
TEWMA
TEWMA in this script refers to the combination of a Weighted Moving Average and a Triple Exponential Moving Average.
Each TEWMA component is therefore produced through a WMA followed by TEMA.
The script creates two separate TEWMA values using different lengths.
The first uses the primary length.
The second uses the primary length multiplied by the user-defined multiplier.
The two resulting values are then averaged.
This gives the final baseline a combination of a faster and slower trend perspective.
Dual-Length TEWMA Structure
The indicator does not rely on a single TEWMA.
Instead, it calculates:
TEWMA1 = TEMA(WMA(Source, Length), Length)
and:
TEWMA2 = TEMA(WMA(Source, Length2), Length2)
where:
Length2 = round(Length × Multiplier)
The two values are then averaged.
This is important because a single moving-average length represents only one smoothing horizon.
The dual-length structure allows the composite baseline to incorporate both a more responsive trend component and a slower trend component.
The averaging process creates a single reference value from those two perspectives.
Composite TEWMA
The final TEWMA is calculated as:
TEWMA = average(TEWMA1, TEWMA2)
or mathematically:
TEWMA = (TEWMA1 + TEWMA2) / 2
This composite value acts as the central trend baseline of the entire indicator.
Every raw strength value is calculated relative to this baseline.
Therefore, the TEWMA is not simply plotted as a moving average for visual reference; it directly determines the numerator of the strength calculation.
Average True Range (ATR)
Average True Range is a volatility measurement that estimates the typical trading range of the market over a selected period.
It is based on True Range, which accounts for both the current candle's high-low range and gaps relative to the previous closing price.
The ATR is used here as a normalization factor .
This is a critical part of the indicator because the raw distance between price and TEWMA is not directly comparable across different volatility conditions.
Dividing the price displacement by ATR expresses the distance in volatility-adjusted terms.
The resulting value can therefore be interpreted as the approximate number of ATR units that price is positioned above or below the composite TEWMA.
ATR Normalization
The core normalization is:
(Close - TEWMA) / ATR
The numerator determines direction and absolute displacement.
The denominator determines the scale of the market's recent volatility.
This combination allows the indicator to transform a raw price difference into a normalized strength measurement.
A positive result means price is above the TEWMA.
A negative result means price is below the TEWMA.
The magnitude indicates how large that displacement is relative to ATR.
Strength
Strength is the primary oscillator produced by the script.
Its exact calculation is:
Strength = (Close - TEWMA) / ATR
This value combines three important concepts:
* Price direction relative to the trend baseline.
* Distance from the trend baseline.
* Current market volatility.
The result is a normalized oscillator rather than a value expressed directly in price units.
Zero Line
The zero line is mathematically significant because it represents the point where:
Close = TEWMA
If the closing price moves above the TEWMA, strength becomes positive.
If the closing price moves below the TEWMA, strength becomes negative.
The zero line therefore separates positive and negative trend displacement.
EMA
The Exponential Moving Average assigns more weight to recent observations while retaining information from previous values.
In this script, EMA is used to smooth the calculated strength rather than the original price.
This distinction is important.
The indicator first calculates the complete ATR-normalized strength measurement and only then applies EMA smoothing.
The structure is therefore:
Price → TEWMA → ATR Normalized Strength → EMA
This allows the smoothing process to operate directly on the final trend-strength measurement.
Smoothed Strength
Smoothed strength is calculated as:
EMA(Strength, Smooth Length)
Because the input to the EMA is already normalized by ATR, the smoothed line represents the smoothed evolution of volatility-adjusted distance from the composite TEWMA.
This can help distinguish persistent strength from shorter-lived fluctuations in the raw oscillator.
The smoothing length determines how quickly the line responds.
A shorter smoothing length causes the smoothed measurement to react more quickly, while a longer smoothing length makes it more gradual.
Upper Threshold
The upper threshold determines when the strength measurement is considered sufficiently positive to trigger the bullish background condition.
With the default value of 1, the condition is:
Strength > 1
Because strength is normalized by ATR, this means the closing price is more than approximately one ATR above the composite TEWMA according to the current ATR calculation.
The same threshold is applied independently to the smoothed strength.
The threshold itself does not create a buy signal.
Lower Threshold
The lower threshold determines when the strength measurement enters the corresponding negative threshold region.
With the default value of -1, the condition is:
Strength < -1
This means the closing price is positioned more than approximately one ATR below the composite TEWMA.
The same concept is applied to the smoothed strength.
The lower threshold therefore acts as a normalized downside-strength boundary rather than a coded sell signal.
Volatility Normalization
Volatility normalization is one of the key concepts behind the indicator.
Without ATR normalization, the calculation would simply measure:
Close - TEWMA
That value is expressed in absolute price units.
By dividing it by ATR, the script asks a different question:
"How large is the price displacement relative to the market's recent typical range?"
This makes the strength value dependent on both price displacement and volatility.
That combination is particularly relevant when comparing periods in which the market's volatility changes substantially.
Trend Direction
The directional component of the indicator comes directly from the sign of the normalized strength.
Positive values indicate that price is above the composite TEWMA.
Negative values indicate that price is below the composite TEWMA.
The indicator therefore does not require a separate bullish/bearish calculation. Direction is inherently contained within the numerator of the strength formula.
Trend Strength
Trend strength is represented by the magnitude of the normalized value.
A value close to zero indicates that price is relatively close to the composite TEWMA when measured against ATR.
A larger positive value indicates greater positive displacement relative to ATR.
A larger negative value indicates greater negative displacement relative to ATR.
It is therefore important to distinguish direction from magnitude :
* The sign indicates which side of the TEWMA price is on.
* The magnitude indicates how far price is displaced relative to ATR.
Raw Strength vs. Smoothed Strength
The two oscillator components provide different information.
The raw strength responds directly to the latest relationship between closing price, TEWMA, and ATR.
The smoothed strength incorporates previous strength values through EMA smoothing.
This creates a useful distinction between immediate and persistent conditions.
A rapidly changing raw strength can reveal a developing change in the price-to-trend relationship, while the smoothed value can provide a slower representation of whether that change is becoming established.
The script therefore combines responsiveness and stability without requiring a second independent indicator.
Why Combine WMA and TEMA?
WMA and TEMA perform different roles in the calculation.
WMA provides weighted smoothing that places greater emphasis on recent observations.
TEMA then applies a multi-stage exponential smoothing structure intended to reduce lag compared with conventional moving averages.
Using them sequentially creates a trend baseline that is smoothed while still designed to remain responsive to changes in price.
The purpose is not simply to combine two moving-average names, but to create a specific transformation of the selected source before it is used in the strength calculation.
Why Use Two TEWMA Lengths?
A single moving-average length forces the indicator to represent trend using one specific time horizon.
The dual-length structure provides two different perspectives.
The shorter TEWMA can respond more quickly to changes in price structure.
The longer TEWMA changes more gradually and represents a broader trend component.
Averaging them produces the composite TEWMA used by the strength calculation.
This makes the baseline less dependent on a single smoothing horizon and combines faster and slower trend information into one reference value.
Why Combine TEWMA With ATR?
The TEWMA establishes the trend reference.
ATR establishes the volatility scale.
These measurements answer different questions.
The TEWMA asks:
"Where is the smoothed trend baseline?"
ATR asks:
"How large are the market's typical recent price movements?"
The strength calculation combines those two concepts by measuring the distance between price and trend baseline in ATR units.
This is what transforms the indicator from a simple moving-average distance oscillator into a volatility-adjusted trend-strength measurement.
Why Add EMA Smoothing to the Strength Measurement?
The raw strength calculation can fluctuate as price moves around the composite TEWMA.
Applying an EMA after normalization provides a second representation of that strength.
Importantly, the EMA is not smoothing the original price before the TEWMA calculation. It is smoothing the completed strength measurement.
This means the smoothed line represents the recent history of the normalized trend-strength state itself.
The combination therefore creates two layers:
Raw Strength = current normalized displacement
Smoothed Strength = smoothed normalized displacement
How the Components Work Together
The complete calculation can be simplified into the following chain:
Selected Source
↓
WMA using Primary Length
↓
TEMA using Primary Length
↓
TEWMA 1
And simultaneously:
Selected Source
↓
WMA using Primary Length × Multiplier
↓
TEMA using the Longer Length
↓
TEWMA 2
The two are then combined:
TEWMA 1 + TEWMA 2
↓
Average
↓
Composite TEWMA
At the same time:
High, Low and Close
↓
True Range
↓
ATR
The final strength calculation then becomes:
(Close - Composite TEWMA) / ATR
The resulting strength value is finally passed through:
EMA(Strength, Smoothing Length)
to create the smoothed strength measurement.
The entire indicator can therefore be summarized as:
Weighted price smoothing → TEMA lag reduction → dual-length trend baseline → ATR volatility normalization → strength oscillator → EMA strength smoothing
Visual Interpretation
The indicator uses several visual elements to make the calculations easier to interpret.
The raw strength line changes color according to whether it is above or below zero.
The smoothed strength line independently changes color according to its own relationship with zero.
The areas between each oscillator and the zero line are filled using the corresponding directional color.
The background highlights are reserved for conditions where the selected upper or lower threshold is exceeded.
This creates a visual hierarchy:
* Zero line = directional reference.
* Raw strength = immediate normalized displacement.
* Smoothed strength = slower strength state.
* Upper/lower thresholds = stronger normalized displacement regions.
* Background highlights = visual identification of threshold conditions.
Using the Indicator
The indicator can be used as a contextual trend-strength tool rather than as a standalone automated trading system.
The zero line can be used to identify whether price is currently above or below the composite TEWMA.
The raw strength can be observed when a trader wants a more responsive measurement of changes in the price-to-trend relationship.
The smoothed strength can be observed when a trader wants a slower representation of that same relationship.
The upper and lower thresholds can be adjusted to change how extreme a normalized displacement must become before the background highlights the condition.
Increasing the absolute threshold values makes the highlighted conditions more selective because a larger normalized displacement is required.
Reducing the absolute threshold values makes the threshold conditions easier to reach.
Similarly, changing the TEWMA lengths changes the responsiveness of the underlying trend baseline, while changing the ATR length changes the volatility reference used for normalization.
The smoothing length controls how quickly the smoothed strength responds to changes in the raw strength.
These parameters therefore influence different parts of the calculation rather than simply changing the same signal in different ways.
Important Considerations
This indicator measures the relationship between price, a composite TEWMA trend baseline, and ATR-based volatility.
It does not predict future prices and does not guarantee that a trend will continue after a strength condition appears.
A strong positive strength value means that price is currently positioned substantially above the composite TEWMA relative to the calculated ATR. It does not mathematically guarantee that price will continue higher.
Likewise, a strong negative value means that price is substantially below the composite TEWMA relative to ATR, but it does not guarantee continued downside movement.
The indicator also does not contain position sizing, stop-loss, take-profit, trade execution, or backtesting logic.
It should therefore be understood as a trend-strength and market-context tool , rather than a complete trading strategy.
Default Calculation Structure
With the default parameters, the indicator uses:
* Source: Close
* Primary Length: 50
* Multiplier: 2
* Secondary Length: 100
* ATR Length: 40
* Smoothing Length: 50
* Upper Threshold: 1
* Lower Threshold: -1
This results in a composite trend baseline constructed from 50-period and 100-period WMA-to-TEMA structures, followed by ATR normalization using a 40-period ATR and EMA smoothing of the resulting strength value using a 50-period EMA.
The default +1 and -1 thresholds represent positive and negative normalized displacement levels around the composite TEWMA.
Summary
TEWMA Trend Strength combines multiple calculations into one normalized trend-strength framework.
Rather than using a single moving average and simply checking whether price is above or below it, the script first constructs two TEWMA components using different lengths, averages them into a composite trend baseline, measures the distance between closing price and that baseline, and then normalizes that distance by ATR.
The result is a strength value where both direction and magnitude are meaningful.
The zero line identifies the side of the composite TEWMA on which price is currently positioned.
The magnitude of the value expresses that displacement relative to recent volatility.
The additional EMA smoothing provides a slower view of the strength condition, while the configurable upper and lower thresholds provide a visual way to identify larger normalized deviations.
The combination of WMA + TEMA creates the underlying trend representation, the dual-length structure combines faster and slower trend information, ATR converts the price displacement into a volatility-adjusted measurement, and EMA smoothing provides a second, slower representation of the resulting strength.
Together, these components form a single oscillator designed to help visualize trend direction, normalized trend strength, and the persistence of that strength within one calculation framework.
Enjoy!
Wskaźnik

SMC Analytics Pro Hey traders! 👋
Finding a clean, non-lagging Smart Money Concepts (SMC) indicator on TradingView can be frustrating. Most public scripts end up squishing your chart scale , lagging your browser, or cluttering your screen with hundreds of overlapping boxes. 😩
So I decided to code a complete, ultra-precise Smart Money Concepts engine in Pine Script v5—rebuilt from the ground up to keep your charts smooth, clean, and 100% accurate! 🚀✨
The Core Idea: Institutional trading isn't about guessing where price is going—it's about tracking where bank liquidity lives. This indicator maps out market structure, institutional order blocks, and imbalance gaps without crowding your price action.
🔥 Key Features That Make This Unique
Dual Structure Architecture: Automatically plots both Internal Structure (micro scalp breaks) and Swing Structure (macro trend breaks) so you never trade against the major market trend.
Structure-Triggered Order Blocks (OB): No more clutter! OBs are drawn only when a real Break of Structure (BOS) or Change of Character (CHoCH) occurs at the origin of the impulse move.
Real-Time Mitigation Engine: When price retraces and touches an Order Block or fills a Fair Value Gap (FVG), the zone automatically vanishes in Present Mode to keep your chart tidy.
Fixed Chart Scale Guarantee: Unlike other SMC scripts that distort your vertical price scale and make candles look flat, this indicator keeps your chart scaling perfectly proportioned on every single timeframe! 📈
Fair Value Gaps (FVG): Identifies genuine 3-candle imbalance gaps where big money stepped in with aggressive market orders.
Liquidity Pools (EQH / EQL): Highlights Equal Highs and Equal Lows where retail stop losses are sitting waiting to be swept.
Dynamic Equilibrium (50%) Level: Displays the exact 50% midpoint of the active swing range so you always know if you're buying in Discount or selling in Premium .
🛠️ How to Use This in Your Trading Setup
Identify the Macro Trend: Look for solid green/red BOS lines and check if swing points are making Higher Highs (HH) or Lower Lows (LL).
Wait for Price to Enter a Zone: Look for price to retrace back down into an unmitigated Bullish Order Block or fill a Bullish FVG below the Equilibrium (50%) line.
Look for Internal Confirmation: Drop down to a lower timeframe and wait for a dashed iBOS / CHoCH break in your direction before taking the trade! 🎯
⚡ Multi-Timeframe Compatibility
Whether you are scalping the 1-minute chart on CAPITALCOM:NAS100 , day trading Forex on the 15-minute, or swing trading Crypto on the Daily, the logic adapts dynamically to any market and timeframe! 🌍
Inputs can be customized in the settings panel—feel free to tweak the pivot lookbacks to match your personal trading style.
If you find this indicator helpful for your daily analysis, please hit the Boost button 🚀 and leave a comment below! Happy trading! 🙌 Wskaźnik

Wskaźnik

[core convexity] annualized projectionold project
a volatility framework for mapping expected price movement around an anchor using annualized implied and realized volatility.
the core idea is pretty simple: volatility is expressed on a yearly basis, then scaled down to whatever amount of time has actually passed. if annualized volatility is v, the expected standard deviation over some fraction of a year is approximately v × √t. the bands then translate that volatility into price space around the selected anchor using a lognormal-style exponential projection.
that lets the same volatility estimate be used consistently across different horizons. a 20% annualized volatility input does not mean price is expected to move 20% today — it means the one-year standard deviation is roughly 20%, and shorter horizons are scaled by the square-root-of-time relationship.
realized volatility uses the yang-zhang estimator only. it combines overnight moves, open-to-close variance and the rogers-satchell range component, which makes it useful for markets where gaps and intraday range both matter. the result is annualized using the selected number of rv periods per year.
implied volatility can come from an automatically selected volatility proxy, a manual symbol, or a fixed percentage. the volatility model can use iv only, yang-zhang rv only, or blend the two. conceptually, iv represents what the options market is pricing forward while rv represents what the underlying has actually been realizing.
in anchored cone mode, volatility expands outward from a fixed price anchor as elapsed time increases. the width grows with √t, so the cone naturally widens more slowly over time rather than linearly.
in rolling bands mode, the structure behaves more like live volatility bands: the center follows current price and the envelope continuously expands or contracts as the active volatility estimate changes. instead of asking “how far could price move from this old anchor by now?”, it asks “given volatility right now, what does the current expected-move envelope look like?”
standard bands are expressed in sigma multiples, with optional fibonacci-style deviation levels for finer subdivisions. these are volatility-based reference levels, not probability guarantees or directional forecasts.
yang-zhang can run on its own timeframe independently of the chart, including lower-timeframe rv sampling when used on a higher-timeframe chart. the anchor and cone geometry remain separate from the rv timeframe so changing the volatility sampling resolution does not redefine where the cone starts.
forward projection extends the current structure beyond the last bar. anchored mode continues widening from the original anchor, while rolling mode projects the current recalculated envelope as a live snapshot.
all plot colors are implemented with compile-time constant colors so tradingview keeps the normal color controls available in settings → style. Wskaźnik

Wskaźnik

Equalhigh Trend Propulsion TunnelEQUALHIGH — TREND PROPULSION TUNNEL v2
OVERVIEW
Trend Propulsion Tunnel is a multi-horizon trend-following indicator designed to distinguish between:
• A trend beginning to accelerate
• A healthy established trend
• A powerful but advanced trend
• A rising price with deteriorating propulsion
• A confirmed bearish reversal
Instead of relying on moving-average crossovers, the indicator models a trend as a moving system with five components:
• Direction
• Propulsion
• Coherence
• Friction
• Trend Reserve
The results are displayed directly on the price chart through an adaptive colored tunnel, a luminous trend core, a regime ribbon and event markers.
HOW IT WORKS
The indicator applies linear regression to the logarithm of price over three horizons:
• Fast horizon: 13 bars
• Medium horizon: 26 bars
• Slow horizon: 52 bars
Each regression slope is normalized by realized return volatility. The three normalized slopes are then combined into a single Direction score.
The default weighting is:
• Fast horizon: 45%
• Medium horizon: 35%
• Slow horizon: 20%
This gives greater importance to recent information while preserving the influence of the longer-term trend.
THE PROPULSION TUNNEL
The tunnel is centered on the slow logarithmic regression trend.
Its width adapts to:
• Average True Range
• Trend friction
• Multi-horizon coherence
The tunnel expands when the price path becomes noisy or unstable. It contracts when the trend becomes cleaner and more coherent.
The tunnel is not intended to operate as conventional support or resistance. It visualizes the estimated trend path and its current structural uncertainty.
TREND CORE
The luminous central line represents the slow regression trend.
Its color changes according to the active propulsion regime.
Price above the core is not automatically bullish, and price below it is not automatically bearish. Direction, propulsion and coherence must be interpreted together.
REGIME RIBBON
The colored ribbon below the candles provides a compact historical view of the detected regimes.
• Violet: Ignition
• Blue: Launch
• Cyan: Cruise
• Gold: Overdrive
• Orange: Engine Failure
• Red: Reversal
The ribbon can be disabled independently from the tunnel.
COCKPIT METRICS
DIRECTION
Direction measures the combined orientation of the fast, medium and slow regression slopes.
• Positive values indicate an upward trend structure.
• Negative values indicate a downward trend structure.
• Larger absolute values indicate stronger directional alignment.
Direction is not the same as propulsion. A trend can remain positive while losing acceleration.
PROPULSION
Propulsion measures the smoothed change in the Direction score.
• Positive propulsion: the trend is strengthening.
• Near zero: the trend is moving at a relatively stable speed.
• Negative propulsion: the trend is losing strength.
A declining Propulsion score can therefore warn of deterioration before Direction becomes negative.
COHERENCE
Coherence measures how broadly the trend is supported.
It combines:
• Agreement between the three regression horizons
• Percentage of recent returns moving with the dominant direction
High coherence means the trend is broadly distributed across timeframes and bars.
Low coherence suggests that the movement may depend on only a small number of exceptional candles.
FRICTION
Friction measures the amount of noise opposing the useful movement.
It is derived from path efficiency:
Efficiency = Net displacement ÷ Total distance travelled
Friction = 1 − Efficiency
• Low friction: clean and directional movement
• High friction: unstable, erratic or range-bound movement
Higher friction causes the tunnel to widen.
TREND RESERVE
Trend Reserve is a composite score between 0% and 100%.
It combines:
• Coherence
• Path efficiency
• Propulsion support
• Price extension from the slow regression trend
A high Reserve score indicates that the current trend remains structurally supported.
A low Reserve score indicates that the trend may be vulnerable, even if price has not yet reversed.
Trend Reserve is not a forecast of how many bars the trend will continue.
REGIME DEFINITIONS
IGNITION — VIOLET
The first signs of positive direction and acceleration are appearing.
The structure is not yet sufficiently strong or coherent for confirmation.
Typical use:
• Add the asset to a watchlist
• Check fundamentals and valuation
• Wait for Launch or Cruise confirmation
LAUNCH — BLUE
A new accelerating bullish trend has been confirmed.
Default requirements include:
• Direction at or above the Launch threshold
• Propulsion at or above the minimum threshold
• Coherence at or above 70%
• Efficiency at or above 25%
• Price extension below the maximum permitted level
• Completed chart bar
A blue “L” marker identifies the first confirmed Launch bar.
Launch is the earliest fully confirmed bullish regime, but it is not an automatic buy signal.
CRUISE — CYAN
The trend is positive, coherent and structurally healthy, while acceleration has normalized.
Cruise often represents a more stable phase than Launch.
A cyan “C” marker appears when the indicator newly enters Cruise.
Potential interpretation:
• Existing position: trend-following hold
• New position: possible pullback or reinforcement phase
• Risk management: monitor Reserve and Propulsion
OVERDRIVE — GOLD
The trend has reached a very high Direction score with strong coherence and sufficient Reserve.
Overdrive represents exceptional trend strength, but the move may already be advanced.
It should not automatically be interpreted as the best entry point.
ENGINE FAILURE — ORANGE
Price direction remains positive, but the underlying trend engine is deteriorating.
Engine Failure can be triggered by:
• Strongly negative propulsion
• Trend Reserve below 30%
• Coherence below 50%
An orange “!” marker identifies the beginning of this condition.
This is the indicator’s principal early-warning signal. It may appear while price is still rising.
BEAR FADE — GREEN/TURQUOISE
A previously negative trend begins losing bearish propulsion.
This does not yet confirm a bullish reversal. It indicates that bearish pressure is weakening.
BEAR DRIVE — RED/PINK
The downward trend is accelerating with sufficient coherence and efficiency.
This is the bearish counterpart of Launch.
REVERSAL — RED
A confirmed negative multi-horizon trend structure is present.
A red “R” marker appears when Reversal becomes newly active on a completed bar.
Reversal should be treated as a risk-management signal rather than an automatic short entry.
EVENT MARKERS
L — LAUNCH
New accelerating bullish trend confirmed.
C — CRUISE
New stable and coherent bullish regime.
! — ENGINE FAILURE
Direction remains positive, but propulsion, coherence or Reserve has deteriorated.
R — REVERSAL
Bearish multi-horizon reversal confirmed.
RECOMMENDED SETTINGS
WEEKLY INVESTING PROFILE
• Fast horizon: 13
• Medium horizon: 26
• Slow horizon: 52
• Propulsion smoothing: 3
• Minimum Launch Direction: 28
• Minimum Launch Propulsion: 4
• Minimum Coherence: 70%
• Minimum Efficiency: 25%
• Maximum Extension: 2.50 Z
• Engine Failure Propulsion: −3
• Tunnel width: 1.80 ATR
This is the recommended starting configuration for medium- and long-term stock analysis.
DAILY SWING PROFILE
• Fast horizon: 10
• Medium horizon: 21
• Slow horizon: 50
• Propulsion smoothing: 3–5
• Minimum Coherence: 70%
• Minimum Efficiency: 25–30%
Shorter settings generate earlier but potentially noisier signals.
CONSERVATIVE PROFILE
For fewer and stronger signals:
• Increase Minimum Launch Direction
• Increase Minimum Launch Propulsion
• Increase Minimum Coherence to 75–80%
• Increase Minimum Efficiency to 30%
• Keep the maximum extension filter enabled
PRACTICAL WORKFLOW
A preferred bullish sequence is:
Ignition → Launch → Cruise → Overdrive
A typical deterioration sequence is:
Overdrive or Cruise → Engine Failure → Reversal
A complete investment process may use the indicator as follows:
1. Confirm that company fundamentals are stable or improving.
2. Estimate fair value and the available margin of safety.
3. Look for Ignition, Launch or a healthy Cruise regime.
4. Avoid chasing excessively extended prices.
5. Monitor Propulsion, Coherence and Reserve after entry.
6. Reassess the position when Engine Failure appears.
7. Review the thesis and risk exposure after a confirmed Reversal.
The indicator is designed to improve timing and trend monitoring. It does not replace fundamental analysis or valuation.
DISPLAY SETTINGS
SHOW PROPULSION TUNNEL
Displays the adaptive channel around the regression trend.
SHOW LUMINOUS TREND CORE
Displays the central trend line and its glow.
SHOW REGIME RIBBON
Displays the historical sequence of trend regimes below price.
SHOW EVENT MARKERS
Displays the L, C, ! and R markers.
SHOW COCKPIT
Displays the current Direction, Propulsion, Coherence, Friction and Reserve values.
COLOR CHART BARS
Applies the current regime color to the chart candles.
BASE TUNNEL WIDTH
Controls the tunnel’s initial width in ATR units.
A higher value produces a wider and less sensitive tunnel.
RIBBON DISTANCE
Controls the distance between the regime ribbon and the candle lows.
ALERTS
Four alert conditions are included:
• TPE — Launch Confirmed
• TPE — Cruise Entry
• TPE — Engine Failure
• TPE — Reversal Confirmed
For reliable notifications, configure TradingView alerts using:
Once Per Bar Close
NON-REPAINTING BEHAVIOR
The indicator uses:
• No future pivots
• No negative plotting offsets
• No lookahead data
• No future-bar confirmation
• Event markers confirmed only at bar close
Values may naturally change while the current realtime candle is still open. Confirmed markers are only generated when that candle closes.
LIMITATIONS
Trend Propulsion Tunnel does not:
• Calculate fair value
• Analyse company fundamentals
• Predict earnings or news events
• Guarantee that a trend will continue
• Provide automatic investment recommendations
• Replace position sizing or risk management
Signals may be delayed after large price gaps. The indicator may also be less reliable on illiquid assets or during highly discontinuous market conditions.
DISCLAIMER
This indicator is provided for educational and analytical purposes only. It does not constitute financial, trading or investment advice. Past statistical relationships do not guarantee future results.
Wskaźnik

Hybrid Breakout | VCP-Inspired TrendTrend Squeeze Breakout
Trend Squeeze Breakout is a trend-following momentum strategy designed to identify stocks in strong established uptrends that are consolidating into relatively tight trading ranges before attempting a breakout.
The strategy combines a simplified Minervini-style trend template, volatility contraction, volume confirmation, and stop-entry breakout execution. It is designed primarily for swing trading and is intended to participate in strong upward price expansions while filtering out many breakouts occurring in weak or declining trends.
Strategy Explanation
The strategy follows a simple sequence:
Identify a strong uptrend
A long setup requires:
Price above the 50-period SMA
50 SMA above the 150 SMA
150 SMA above the 200 SMA
200 SMA rising
200 SMA continuing to rise over the selected lookback period
50 SMA not declining
This establishes that the stock is already in a structurally bullish environment before considering an entry.
Identify a volatility contraction
The strategy looks for periods where recent price movement has become unusually tight.
It evaluates both:
Recent high-low range
Recent closing-price range
The high-low range is also compared with its historical percentile over the selected lookback period. This allows the strategy to identify relatively quiet consolidation periods rather than relying on a fixed volatility threshold alone.
Confirm volume
When the volume filter is enabled, breakout volume must exceed the moving-average volume baseline by the selected multiplier.
The default requirement is:
Volume > 20-period average volume × 1.2
This is intended to provide additional confirmation that the breakout is supported by meaningful participation.
Enter on a breakout
When the trend, contraction, and volume conditions are satisfied, the strategy places a stop-entry order above the recent high.
The default breakout lookback is 3 bars, allowing the strategy to attempt to enter as price moves through the recent consolidation high rather than simply buying while the stock remains inside the range.
Manage the position
Positions use tiered profit-taking:
25% closed at +10%
50% closed at +20%
Remaining position closed at +30%
Default stop loss at -8%
This allows the strategy to realize some profits during the initial move while maintaining exposure to larger momentum extensions.
Features
Trend Filter — 50/150/200 SMA bullish alignment
Long-Term Trend Confirmation — Requires the 200 SMA to be rising
Volatility Squeeze Detection — Identifies unusually tight recent ranges
Range Percentile Filter — Compares current volatility with historical volatility
Close-Range Filter — Detects tight price consolidation
Volume Confirmation — Optional volume expansion requirement
Stop-Entry Breakout — Enters only when price breaks the recent high
Tiered Profit Taking — Three configurable profit targets
Percentage-Based Stop Loss — Adjustable downside protection
Date Filter — Allows users to restrict backtests to a specific period
Configurable Parameters — Trend, volatility, volume, breakout, and risk settings can all be adjusted
Tips for Use
Use on liquid stocks
The strategy is generally better suited to liquid stocks and ETFs with sufficient trading volume. Extremely illiquid securities can produce unrealistic backtest results because of spreads and execution differences.
Start with daily charts
The strategy is particularly suited to identifying multi-day or multi-week momentum breakouts. Daily charts are a good starting point when evaluating the strategy.
Avoid optimizing every parameter
The many adjustable parameters make it possible to overfit the strategy to a particular stock or historical period. Test parameter changes across multiple securities and different market environments rather than optimizing exclusively for one chart.
Treat the volume filter as confirmation, not a guarantee
High volume can strengthen a breakout signal, but it does not guarantee that the breakout will succeed.
Test across different market conditions
Trend-following breakout systems typically perform differently during strong bull markets, corrections, sideways markets, and high-volatility periods. Evaluate results across multiple market regimes before relying on the strategy.
Pay attention to execution
The strategy uses stop-entry orders above recent highs. In live trading, gaps, slippage, spreads, and intrabar price movement can cause actual execution prices to differ from backtested results.
Important Note
This strategy is inspired by trend-template and volatility-contraction concepts, but it is not a complete implementation of a textbook VCP. It uses a simplified statistical contraction model rather than explicitly identifying multiple successive contractions, contraction depths, and their associated volume characteristics.
Backtest results are hypothetical and do not guarantee future performance. Always consider commissions, slippage, liquidity, position sizing, and market conditions when evaluating a strategy.
Recommended starting configuration: Daily timeframe, liquid stocks, default trend filter, volume confirmation enabled, and the default tiered risk-management settings.
Strategia

Wskaźnik

Order Flow Footprint & DeltaOrder Flow Footprint & Delta
OVERVIEW
Order Flow Footprint & Delta is a candle + volume proxy scanner for the Order Flow playbook on TradingView.
It marks three educational setups — OF1 Continuation, OF2 Absorption reversal, and OF3 Break & retest — using structure bias, volume impulse, absorption proxies, and break/retest logic.
Important: TradingView does not provide true bid/ask footprint data for most symbols. This script uses candle and volume proxies. The on-chart dashboard shows Proxy = no footprint.
Built by the Xcelerate Trade team.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BEST USED WITH
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Works much better together with:
→ “Fluid Liquidity Zones - CHoCH + Mitigation + HTF | Xcelerate Trade”
(or “Fluid Liquidity Zones - CHoCH | Xcelerate Trade”)
Use SUPPLY / DEMAND zones + CHoCH / market structure first, then OF labels as confirmation.
CONCEPT
Order flow tools help traders read aggression and reaction around levels. On TradingView, those ideas are approximated from open/high/low/close and volume.
Use this indicator as confirmation after higher-level context (supply/demand or liquidity zones + market structure), not as a standalone entry system.
GOLDEN RULE
Zone (SUPPLY/DEMAND) + structure first → then OF1/OF2/OF3 as confirmation — never the reverse.
Recommended timeframes: 15m–1h. Lower timeframes (1m/3m) are noisier and produce more false signals.
HOW THE SETUPS WORK
OF1 — CONTINUATION (cyan)
Idea: trend + stacked impulse + pullback + continuation.
Long OF1 when:
1) Bull bias (HH/HL structure + optional HTF up filter)
2) A bullish impulse / stacked strong bars existed
3) Price pulled back into the impulse zone
4) Confirmation (bullish bar / positive delta proxy)
Short OF1 is the mirror for bearish continuation.
OF2 — ABSORPTION REVERSAL (violet)
Idea: sweep of a level + absorption + reclaim.
Long OF2 when:
1) Sweep below a low / level (wick down)
2) Absorption (high volume, little progress)
3) Reclaim above the level with upside aggression
Short OF2 is the mirror after a sweep above a high.
OF3 — BREAK & RETEST (green long / red short)
Idea: volume break → retest → rejection.
Long OF3: break up → retest broken level as support → rejection up.
Short OF3: break down → retest as resistance → rejection down.
FEATURES
• Toggle OF1 / OF2 / OF3 independently
• Structure bias with optional HTF filter for OF1
• Volume / delta / imbalance / absorption proxies
• Optional break level lines
• Live dashboard (bias, delta proxy, stack status, setup wait/active)
• Alerts for each OF1/OF2/OF3 long and short condition
HOW TO USE (WITH FLUID LIQUIDITY ZONES)
1) Read bias / structure (HH HL / LH LL, CHoCH) for higher-level direction
2) Note where price is: DEMAND = long bias area, SUPPLY = short bias area
3) Then use OF labels:
• DEMAND + OF2 or green OF3 → long candidates
• SUPPLY + OF2 or red OF3 → short candidates
• OF1 only with the trend (not counter-trend in a range)
4) Dashboard “wait” means no signal on the current bar; older labels remain on history
SKIP / AVOID
• Bias = RANGE and you are not clearly on a zone
• Labels in the middle of a range with no level
• OF1 against SUPPLY/DEMAND
• Chaotic OF1+OF2+OF3 overlap with no clear level
• Acting on a label alone with no zone/structure context
EXAMPLES
• DEMAND + green OF3 / OF2 → look for LONG after reclaim/confirm
• SUPPLY + red OF3 / OF2 → look for SHORT
• Cyan OF1 in uptrend, pullback into DEMAND → continuation LONG
• Label only, no zone/structure → do not enter
LIMITATIONS
• This is not real footprint / DOM / bid-ask data. Signals are proxies and can be wrong.
• Especially noisy on 1m/3m charts.
• The script does not place trades and does not guarantee results.
• Always combine with your own risk management and market context.
Wskaźnik

Consolidation Ranges & Breakout Map [MQLSoftware]Consolidation Ranges & Breakout Map reads the market's sideways regime as a measurable object. It detects compression with an authored Range Compression Index, fixes the consolidation box only after enough confirmed evidence, tracks how the box resolves — breakout, measured-move projection reached, false break, or expiry — and reports the measured base rates of those outcomes counted on the chart's own history.
This is a visual analytical tool for chart study. It does not execute trades and does not provide financial advice.
Key Features
Consolidation boxes fixed on confirmed evidence only: a candidate must hold the compression threshold for a minimum number of confirmed bars before it becomes a live range — borders never move backwards once fixed
Amber forming frame while compression is still building, so you see the candidate before it commits
Breakouts by confirmed CLOSE beyond the border plus an ATR buffer — wicks and gaps alone never trigger a breakout
Measured-move projections (1× and 1.618× the range height by default) drawn from the broken border — a geometric reference derived from the range's own size
Outcome tracking on confirmed bars: ✓ printed when the 1× projection is reached, ✕ false break when price closes back inside within the fakeout window, quiet expiry when the resolution window runs out
Range invalidation discipline: a box that "breathes" beyond its edge-update budget or outgrows the maximum width is annulled and excluded from the statistics, so pseudo-ranges never contaminate the base rates
Measured base rates in the panel: share of upside breakouts, share that reached the 1× projection, share of false breaks, median bars to 1×, median range length — each with its sample size
Higher-timeframe context band (rolling HTF high/low), optional volume-expansion quality gate, four panel modes, five confirmed-bar alerts plus one dynamic JSON alert
Core Concept — what is original here
TradingView has many box-drawing and Darvas-style tools; most fix a rectangle from a simple highest/lowest lookback and leave the interpretation to the reader. This script makes the detector itself measurable and then closes the loop by counting what actually happened. Three specific algorithmic elements:
1. The Range Compression Index (RCI). A 0–100 composite authored for this script: RCI = 100 · (0.40 · ineff + 0.35 · vc + 0.25 · cont), where ineff = 1 − min(ER, 1) is movement inefficiency (the inverse Kaufman efficiency ratio — net displacement over the evaluation window divided by the bar-to-bar path traveled), vc is volatility compression (short ATR against a 4× longer ATR window, rescaled to 0..1), and cont is containment — the share of closes inside the central 90% of the candidate box. Each component measures a different facet of "sideways": no net progress, contracting volatility, clustering closes. A candidate also has to pass a geometry gate — its width may not exceed a configurable multiple of ATR. The sensitivity presets set the RCI threshold (Low 70, Normal 62, High 55).
2. The consolidation → breakout state machine. SEEKING → FORMING → LIVE → BREAK UP / BREAK DOWN → RESOLVED / FALSE BREAK / EXPIRED, with every transition on confirmed bars only. The box is fixed only after the minimum number of confirmed compression bars. A fixed border may be widened by a wick within the edge tolerance a limited number of times — each update on a confirmed bar and counted; beyond the budget the box is invalidated and never enters the statistics. A breakout requires a confirmed close beyond the border plus the ATR buffer; a bar that pierces both borders resolves by its close; a close back inside within the fakeout window is classified as a false break (checked before the projection within the same bar, deliberately conservative). The resolution window defaults to three times the range's own duration, capped at 200 bars.
3. Measured base rates. The panel reports observed frequencies counted on this chart's loaded history: how often ranges broke upward, how often the breakout reached the 1× measured-move projection, how often the break turned out false, the median bars to 1× and the median range length — each with its sample size. Below a minimum sample the panel prints the sample gate instead of a percentage, so small-sample noise is never dressed up as a statistic. Observed frequencies, not assumptions, and no claims attached to them.
Anatomy of the Display
Live range box — steel border with a faint fill, header with the range's duration and height in ATR; midline optional
Amber dashed frame — a FORMING candidate: compression is building but the box is not yet committed
▲ / ▼ breakout markers on the confirmed breakout bar (Descriptive or Compact style)
Dashed projection lines from the broken border with 1× and 1.618× labels at the right edge
✓ 1× printed where the projection is reached, ✕ false break where price closed back inside
Translucent higher-timeframe band with the rolling HTF high/low and a timeframe tag
Panel (Off / Minimal / Normal / Large): state in plain words (SEEKING / COMPRESSING n/m / RANGE LIVE / BROKE UP / BROKE DOWN / FALSE BREAK), the live Range Compression Index with a five-block meter, range height and duration, position inside the range, and in Large mode the measured base-rate section
Notes on Repainting
All state transitions, breakout/outcome markers, statistics counters and alerts fire on confirmed bars only and never move once printed
Box borders are fixed on the confirming bar and never move backwards; the only permitted change is a forward widening within the edge tolerance, on a confirmed bar, a limited number of times
The live box's right edge, the FORMING candidate frame and the panel's live rows update intrabar — visual context, not signals
The higher-timeframe band uses one request.security call with lookahead off and reads the previous confirmed HTF value — no future data anywhere
Display inputs only gate drawing; they never change the state machine, the counters or the alerts
Typical Analysis Workflow
Watch the panel's Compression row: a rising RCI with an amber forming frame means a candidate is building
When RANGE LIVE prints, read the box header — a 40-bar range 1.2 ATR tall is a different regime than an 8-bar pause
Treat the breakout marker as a measured event, not an invitation: the base rates tell you how often breakouts on this chart reached the projection versus failed back into the box
Use the false-break share as regime context — some markets punish breakout chasing far more often than others, and the panel will say so with a sample size
Check the higher-timeframe band: a local range at the edge of the senior range is a different situation than one in the middle of it
Configuration
Range Detection — compression sensitivity preset (RCI threshold), evaluation window, minimum confirmed bars to fix a box, maximum width in ATR, containment threshold, edge tolerance and the edge-update budget
Breakout — ATR buffer for the confirmed close, fakeout window, both projection multiples, resolution window (auto = 3× range duration), optional volume-expansion gate with its multiple
Higher-Timeframe Context — band on/off, HTF (empty = auto: 4× chart timeframe capped at 1W), HTF range length
Statistics — base-rate section on/off, minimum sample to display a percentage
Visual — panel size and position, marker style (Descriptive / Compact), projections, midline, how many past ranges to keep, and the four identity colors (all inputs; dark-theme defaults)
Markets and Timeframes
Any symbol and timeframe. All thresholds are expressed in ATR and percentiles of the chart's own behavior, so the detector self-calibrates per instrument. On symbols without volume data the volume gate is ignored automatically and the panel says so. On slow timeframes (1D/1W) the sample gate will hide the percentages until enough ranges have resolved — that is the honesty rule, not a defect.
Alerts
Range confirmed · Range breakout up · Range breakout down · False break · 1× projection reached — all evaluated on confirmed bars from the same event flags that draw the markers, plus one dynamic alert() with a JSON payload (event, symbol, timeframe, box borders, break level, height in ATR). Wskaźnik

Wskaźnik

Wskaźnik

VCP - Minervini Style v6VCP - Minervini Style v6
Bu gösterge, Mark Minervini'nin VCP (Volatility Contraction Pattern) yaklaşımını Pine Script v6 ile modelleyerek, bir hissenin kırılım öncesi tipik "sıkışma" davranışını tespit etmeye çalışır. Yükseliş hareketinden önce fiyat dalgalanmaları ve hacim genellikle art arda küçülen bacaklar halinde daralır; bu daralmanın sonunda hacimle desteklenen güçlü bir mum geldiğinde kırılım olasılığı artar.
Nasıl Çalışır?
Gösterge 4 bağımsız koşulu aynı anda değerlendirir:
Daralma — üç ardışık, birbiriyle örtüşmeyen fiyat bacağının aralığı küçülüyor mu (Bacak1 > Bacak2 > Bacak3)?
Sıkı Aralık — en son bacak, tanımlanan eşiğin altında yeterince dar mı?
Hacim Daralması — kısa dönem hacim ortalaması, uzun dönem ortalamanın altında mı?
Güçlü Mum — son mum, ortalama gövde büyüklüğünün belirgin üzerinde bir gövdeyle mi kapandı?
Dördü birden sağlandığında sinyal onaylanır. Diğer birçok VCP taramasından farklı olarak, bu script'teki üç fiyat bacağı gerçekten ardışık ve örtüşmeyen pencerelerdir — yani "son 5 bar, son 10 bar, son 20 bar" gibi iç içe geçmiş pencerelere bakmaz (bu yaklaşım küçülme testini matematiksel olarak anlamsızlaştırır). Bunun yerine her bacak, kendinden önceki bacağın bittiği yerden başlar; böylece gerçek bir aşamalı sıkışma testi yapılır.
Görsel Özellikler
Sinyal onaylandığında mumun altında "VCP" etiketi belirir
Ana grafikte, en güncel formasyonun üç bacağı gerçek high/low kutuları olarak çizilir
Sağ üstte, her koşulun canlı değerini ve durumunu (✓/✗) gösteren bir tablo bulunur
Alt panelde, her koşulun geçmişte ne zaman aktif olduğunu gösteren renkli bir durum şeridi ve açıklama tablosu yer alır
Screener uyumlu kolonlar (anlık/onaylı sinyal, hazırlık skoru, önceki bar karşılaştırması) dahildir — birçok sembolü aynı anda taramak için kullanılabilir
Kullanım
Tüm parametreler (bacak uzunlukları, eşik değerleri, sinyal tekrarı kontrolü, görsel ayarlar) ayarlar panelinden özelleştirilebilir. Gösterge herhangi bir zaman diliminde çalışır; parametreler günlük grafik varsayılanlarına göre ayarlanmıştır, farklı zaman dilimlerinde test edip kalibre etmeniz önerilir.
Sınırlamalar
Bu gösterge geriye bakan (ta.highest/ta.lowest) fonksiyonlar kullanır, lookahead içermez — repaint riski yoktur; onaylı sinyal bar kapandıktan sonra değişmez. Bununla birlikte bu bağımsız bir tarama/gözlem aracıdır; pozisyon yönetimi veya giriş/çıkış stratejisi içermez, sadece bir paternin oluşup oluşmadığını tespit eder.
Bu gösterge yalnızca eğitim ve analiz amaçlıdır, yatırım tavsiyesi niteliği taşımaz. Geçmiş performans gelecekteki sonuçların garantisi değildir. Herhangi bir işlem kararı vermeden önce kendi araştırmanızı yapmanız ve gerekirse bir finansal danışmana başvurmanız önerilir.
-------------------------------------------------------------------------------------------------------------------
VCP - Minervini Style v6
This indicator models Mark Minervini's VCP (Volatility Contraction Pattern) approach in Pine Script v6, aiming to detect the typical "tightening" behavior a stock exhibits before a breakout. Ahead of an upward move, price swings and volume typically contract in a series of progressively narrower legs; once that contraction ends with a strong, volume-backed candle, the probability of a breakout increases.
How It Works
The indicator evaluates 4 independent conditions simultaneously:
Contraction — is the range of three consecutive, non-overlapping price legs shrinking (Leg1 > Leg2 > Leg3)?
Tight Range — is the most recent leg narrow enough, below the defined threshold?
Volume Contraction — is the short-term volume average below the long-term average?
Strong Candle — did the last candle close with a body meaningfully larger than the average body size?
A signal is confirmed when all four conditions are met simultaneously. Unlike many other VCP scanners, the three price legs in this script are genuinely consecutive and non-overlapping windows — it does not look at nested ranges like "last 5 bars, last 10 bars, last 20 bars" all measured back from the current bar (that approach makes the contraction test mathematically meaningless, since nested windows are almost guaranteed to shrink). Instead, each leg starts exactly where the previous one ends, producing a genuine test of staged, progressive tightening.
Visual Features
A "VCP" label appears below the bar when a signal is confirmed
On the main chart, the three legs of the most recent formation are drawn as actual high/low boxes
A table in the top-right shows the live value and status (✓/✗) of each condition
A separate panel below the chart displays a color-coded status ribbon showing when each condition was historically active, plus a legend table explaining the colors
Screener-compatible columns are included (live/confirmed signal, readiness score, previous-bar comparison) — useful for scanning many symbols at once
Usage
All parameters (leg lengths, threshold values, signal repeat control, visual settings) can be customized from the settings panel. The indicator works on any timeframe; default parameters are calibrated for the daily chart, so testing and recalibrating for other timeframes is recommended.
Limitations
This indicator uses backward-looking functions (ta.highest/ta.lowest) and does not use lookahead — there is no repainting risk; the confirmed signal never changes once the bar has closed. That said, this is a standalone scanning/observation tool; it does not include position management or an entry/exit strategy, and only detects whether a pattern has formed.
This indicator is intended for educational and analytical purposes only and does not constitute investment advice. Past performance is not indicative of future results. Please conduct your own research and consult a financial advisor if needed before making any trading decisions. Wskaźnik

TTG Brick Strategy This indicator is a **dual-session range projection tool** designed to map the market’s most important intraday and overnight price ranges into three equal zones.
For Day Trading **Toggle 1** measures the full **after-hours + premarket range from 4:00 PM to 9:30 AM ET**. Once that range is established, the indicator uses it as the center rectangle, then automatically projects an identical rectangle above and below it.
For Futures Overnight **Toggle 2** measures the **regular trading session from 9:30 AM to 4:00 PM ET**. The center rectangle expands dynamically as the session develops, then freezes at 4:00 PM and continues projecting to the right. Just like Toggle 1, an equal-size target zone is projected above and below the measured range.
Each of the three rectangles includes a **customizable midpoint line**. The midpoint is displayed in red by default and represents the exact 50% level of that individual rectangle. The upper, center, and lower zones all have their own midpoint.
The indicator also reacts to price location. When price trades into the upper projected zone, that rectangle can highlight in a customizable bullish color. When price trades into the lower projected zone, it can highlight in a customizable bearish color. Rectangle colors, transparency, borders, midpoint color, and midpoint thickness can all be adjusted in the settings.
Built-in TradingView alerts allow you to monitor the important levels without constantly watching the chart. Alerts are available when price **crosses a rectangle midpoint, crosses above the top of a rectangle, or crosses below the bottom of a rectangle**. Alerts can also be configured to require a candle close across the level for additional confirmation.
The indicator is designed to display only the **current active range structure**, removing the previous session’s rectangles when a new session begins so the chart stays clean.
In short, it turns the overnight and regular-session ranges into a simple **three-zone roadmap**:
This makes it useful for identifying range breaks, midpoint reactions, continuation targets, rejection areas, and potential intraday or swing expansion levels.
Wskaźnik

Wskaźnik

Volatility Regime Trend Ribbon [Pineify]Volatility Regime Trend Ribbon
Overview
This overlay adapts smoothing as markets change. It ranks ATR, selects a regime, and adjusts trend speed and ribbon width.
Key Features
Three ATR percentile regimes.
Regime-specific trend lengths and band scales.
Optional colors, confirmed markers, and alerts.
How It Works
ATR is ranked over a rolling window. Low ranks select low volatility, high ranks select high volatility, and middle ranks select normal volatility. Warm-up uses the normal state.
The selected length drives a recursive EMA-style center. Ribbon edges equal the center plus or minus ATR times the base multiplier and regime scale. This is a price boundary, not a statistical confidence interval. Direction turns bullish after a confirmed close above the upper edge, bearish below the lower edge, and otherwise retains its prior state.
Trading Ideas and Insights
Colors separate quiet, ordinary, and elevated ranges. A band exit can frame a direction change; movement inside stays unresolved. Gaps or thin trading can add lag and false transitions. No output is an automatic trade.
How Multiple Indicators Work Together
ATR measures range, percentile rank adds context, adaptive smoothing changes speed, and the band supplies the direction threshold. They form one engine without external data.
Unique Aspects
The original design links volatility to smoothing speed and band scale, not just color. Retained direction inside the band adds hysteresis; alerts distinguish regime and direction changes.
How to Use
Apply it to a liquid market and let the percentile window warm up.
Tune lengths and band scales for the symbol and timeframe.
Read center color as direction and ribbon color as regime.
Use confirmed alerts with independent risk controls.
Customization
ATR Length controls range sensitivity; Percentile Lookback controls context. Thresholds define states, lengths set speed, and band inputs set transition distance. Display layers are optional. Current values can change intrabar; markers and alerts require a confirmed close.
Conclusion
This ribbon organizes volatility regime and ATR percentile context for 15-minute to daily charts. It uses past and present data, remains lagging and parameter-sensitive, and makes no performance claim.
Wskaźnik

BIST30 to SP 500 ATR Momentum RiderBIST30 to S&P 500 — ATR Momentum Rider
BIST30 to S&P 500 — ATR Momentum Rider is a long-only daily strategy built to test a compact and auditable trend-following structure across index futures.
The name describes the research scope—from BIST30 to S&P 500 and other major index futures. It does not mean that the public parameters were optimized on BIST30. Parameter selection used Mini-DAX, E-mini S&P 500, E-mini Russell 2000, EURO STOXX 50, and Nikkei 225 Mini futures. Turkish index futures were kept outside parameter selection and used only as transferability stress tests.
Entry logic
The raw SET event occurs when HMA 8 > HMA 9 > HMA 20 becomes true for the first time. On that same daily close, the strategy calculates the three-day HMA20 slope in ATR units:
(HMA20 - HMA20 ) / (3 × ATR14)
The setup is accepted only when this value is at least -0.180 ATR per day. The threshold does not require a rising HMA20; it permits a mild decline and rejects setups where the slow trend is deteriorating more sharply. The filter is evaluated only on the first establishment of the HMA order. A rejected setup does not enter later inside the same uninterrupted regime.
An accepted setup creates a market order for the next available session open. The decision uses only values known at the daily close.
Exit logic
The strategy has one public exit stage:
K1-A: activation threshold. Maximum favorable excursion is divided by the ATR value known when the entry order is created. Default: 1.50 ATR.
K1-T: trail distance from the highest high observed during the campaign. Default: 5.75%.
K1-W: minimum waiting interval before a K1 close decision can act. Default: 4 sessions.
Once K1 is active, its absolute trail can only rise. An activation reached on the current bar becomes actionable from the next bar, so the activation bar cannot stop itself retroactively. A daily close at or below the active K1 line creates a market exit for the next available open. If a fresh accepted SET appears while a position is open, the campaign is refreshed at the next open.
Research process and held-out results
The K1 values were selected on January 2020–December 2023 data using equal-weight, percentage-normalized metrics across the five international contracts. Keeping the K1 engine fixed, the three-day slope threshold was then scanned from -0.400 to +0.050 ATR/day in 0.001 steps on the same development interval. The exact PF-priority plateau peak was -0.176; the operational value was rounded and locked at -0.180 to avoid publishing a fragile, over-precise threshold.
January 2024–July 2026 was not used to select the slope threshold. In this held-out interval:
Raw setups: 153
Accepted setups/trades: 102 (33.3% reduction)
Positive international instruments: 5 of 5
Median profit factor: 3.46 versus 1.94 without the slope filter
Median normalized net return: 39.3% versus 37.9% without the slope filter
Median return/max-drawdown ratio: 2.32 versus 2.16 without the slope filter
These figures use one adverse minimum tick per market fill and no commission, tax, funding, or roll cost. They are historical research results, not a forecast.
The held-out BIST stress test remained weak: the three Turkish contracts had a median profit factor of 0.77 with the slope filter. Therefore, this public version is better viewed as an international index-futures research strategy. It is not a replacement for a dedicated BIST30 live system.
Use the strategy on standard daily candles. Review each symbol's contract multiplier, session, continuous-contract construction, commissions, roll costs, and margin settings before interpreting Strategy Tester results. Changing the HMA, ATR, K1, or execution settings creates a different, unvalidated configuration.
This script is a research and educational tool, not investment advice. Past performance does not guarantee future results.
BIST30 to S&P 500 — ATR Momentum Rider
HMA 8/9/20 kuruluşunu, sabit ATR-normalize HMA20 eğim filtresini ve yalnız yukarı taşınan tek tepe trailini birleştiren açık kaynak, long yönlü günlük strateji.
BIST30 to S&P 500 — ATR Momentum Rider, farklı endeks vadelilerinde sade ve denetlenebilir bir trend takip yapısını sınamak amacıyla hazırlanmış, yalnız long çalışan günlük bir stratejidir.
İsim, araştırmanın BIST30'dan S&P 500'e ve diğer büyük endeks vadelilerine uzanan kapsamını anlatır. Açık kaynak parametrelerinin BIST30 üzerinde optimize edildiği anlamına gelmez. Parametre seçiminde Mini-DAX, E-mini S&P 500, E-mini Russell 2000, EURO STOXX 50 ve Nikkei 225 Mini vadeli kontratları kullanılmıştır. Türkiye endeks vadelileri parametre seçiminin dışında tutulmuş ve yalnız taşınabilirlik stres testi olarak değerlendirilmiştir.
Giriş mantığı
Ham SET olayı, HMA 8 > HMA 9 > HMA 20 sıralamasının ilk kez oluştuğu günlük kapanışta doğar. Strateji aynı kapanışta HMA20'nin üç günlük eğimini ATR cinsinden hesaplar:
(HMA20 - HMA20 ) / (3 × ATR14)
Kuruluş yalnız bu değer -0,180 ATR/gün veya daha yüksekse kabul edilir. Eşik HMA20'nin mutlaka yükselmesini istemez; hafif gerilemeye izin verir, yavaş trendin daha belirgin bozulduğu kuruluşları eler. Filtre yalnız HMA sıralamasının ilk kuruluşunda değerlendirilir. Reddedilen kuruluş, aynı kesintisiz rejimin sonraki günlerinde gecikmeli girişe dönüşmez.
Kabul edilen kuruluş, sonraki uygun seans açılışı için piyasa emri oluşturur. Karar yalnız günlük kapanışta bilinen değerlerle verilir.
Çıkış mantığı
Stratejide tek bir açık kaynak çıkış katmanı vardır:
K1-A: aktivasyon eşiği. Azami olumlu hareket, giriş emri oluşturulurken bilinen ATR değerine bölünür. Varsayılan: 1,50 ATR.
K1-T: kampanya boyunca görülen en yüksek fiyattan itibaren trail mesafesi. Varsayılan: %5,75.
K1-W: K1 kapanış kararının uygulanabilmesi için gereken asgari bekleme süresi. Varsayılan: 4 seans.
K1 aktif olduktan sonra mutlak trail seviyesi yalnız yukarı hareket eder. Bir barda ulaşılan aktivasyon eşiği sonraki bardan itibaren uygulanabilir; aktivasyon barı geriye dönük biçimde kendi kendisini durduramaz. Günlük kapanış aktif K1 çizgisinde veya altında gerçekleşirse sonraki uygun açılış için piyasa çıkışı oluşturulur. Pozisyon açıkken yeni ve kabul edilmiş bir SET doğarsa kampanya sonraki açılışta yenilenir.
Araştırma süreci ve ayrılmış dönem sonuçları
K1 değerleri Ocak 2020–Aralık 2023 döneminde beş yabancı kontrat üzerinde; endeksler eşit ağırlıklı ve fiyat ölçekleri yüzdeyle normalize edilerek seçildi. K1 motoru sabit tutulduktan sonra üç günlük eğim eşiği aynı geliştirme döneminde -0,400 ile +0,050 ATR/gün arasında 0,001 adımla tarandı. PF öncelikli platonun matematiksel tepe noktası -0,176 oldu; aşırı hassas bir değer yayımlamamak için operasyonel eşik -0,180 olarak yuvarlanıp sabitlendi.
Ocak 2024–Temmuz 2026 dönemi eğim eşiğinin seçiminde kullanılmadı. Bu ayrılmış dönemde:
Ham kuruluş: 153
Kabul edilen kuruluş/işlem: 102 (%33,3 azalış)
Pozitif yabancı endeks: 5/5
Medyan profit factor: eğim filtresi olmadan 1,94, filtreyle 3,46
Medyan normalize net getiri: filtresiz %37,9, filtreyle %39,3
Medyan getiri/azami düşüş oranı: filtresiz 2,16, filtreyle 2,32
Bu rakamlar her piyasa dolumunda bir minimum fiyat adımı ters slippage içerir; komisyon, vergi, fonlama ve vade geçiş maliyeti içermez. Tarihsel araştırma sonucudur, gelecek tahmini değildir.
BIST stres testi zayıf kalmıştır: eğim filtresiyle üç Türkiye kontratının medyan profit factor değeri 0,77 olmuştur. Bu nedenle açık kaynak sürümü yabancı endeks vadelileri için bir araştırma stratejisi olarak değerlendirmek daha doğrudur; özel BIST30 canlı motorunun yerine geçmez.
Stratejiyi standart günlük mumlarda kullanın. Strategy Tester sonucunu yorumlamadan önce sembolün kontrat çarpanını, seansını, sürekli-vade oluşturma yöntemini, komisyonunu, vade geçiş maliyetini ve teminat ayarlarını kontrol edin. HMA, ATR, K1 veya emir yürütme ayarlarını değiştirmek doğrulanmamış farklı bir model oluşturur.
Bu kod araştırma ve eğitim amaçlıdır; yatırım tavsiyesi değildir. Geçmiş performans gelecekteki sonuçları garanti etmez. Strategia

NY 9-10 Candle High/Low//@version=6
indicator("NY 9-10 Candle High/Low", overlay = true, max_lines_count = 500)
// ───── Settings ─────
string nyTimeZone = "America/New_York"
sessionInput = input.session("0900-1000", "NY Time Window")
extendBars = input.int(3, "Extend High/Low For Next Candles", minval = 1, maxval = 20)
highlightColor = input.color(color.new(color.yellow, 35), "Candle Highlight")
highColor = input.color(color.green, "High Line")
lowColor = input.color(color.red, "Low Line")
// ───── Check 9:00 - 10:00 New York session ─────
bool inNYWindow = not na(time(timeframe.period, sessionInput, nyTimeZone))
// First bar of window
bool sessionStart = inNYWindow and not inNYWindow
// First bar after window
bool sessionEnd = not inNYWindow and inNYWindow
// ───── Store High & Low ─────
var float sessionHigh = na
var float sessionLow = na
var int startBar = na
if sessionStart
sessionHigh := high
sessionLow := low
startBar := bar_index
else if inNYWindow
sessionHigh := math.max(sessionHigh, high)
sessionLow := math.min(sessionLow, low)
// ───── Highlight candles ─────
barcolor(inNYWindow ? highlightColor : na)
bgcolor(inNYWindow ? color.new(highlightColor, 80) : na)
// ───── Draw High / Low when session finishes ─────
if sessionEnd
int lastSessionBar = bar_index - 1
line.new(
x1 = startBar,
y1 = sessionHigh,
x2 = lastSessionBar + extendBars,
y2 = sessionHigh,
xloc = xloc.bar_index,
color = highColor,
width = 2)
line.new(
x1 = startBar,
y1 = sessionLow,
x2 = lastSessionBar + extendBars,
y2 = sessionLow,
xloc = xloc.bar_index,
color = lowColor,
width = 2) Wskaźnik
