אינדיקטור

Trident Swing Projector [MarkitTick]💡 A structured swing-projection tool that automates Charles Lindsay's Trident quarter-swing method, turning a manual charting technique into a filtered, alert-ready framework for identifying retracement setups and projecting forward trade levels from a confirmed three-point swing structure.
✨ Originality and Utility
This script's value is not in reinventing pivot detection — left/right bar pivot confirmation is a known technique — but in the specific architecture built around it. The 25/50/75/100% level ladder projected from the retracement point follows the quarter-swing framework described by Charles Lindsay in his Trident work: a method of projecting Support/Resistance, Critical, and Equality points from a confirmed A-B-C swing. Everything surrounding that ladder — the pullback-depth gate, the dominant-trend filter, the ADX and higher-timeframe confluence layers, the configurable stop buffer, the armed-setup expiry, and the post-TP1 break-even handling — are MarkitTick design additions layered on top of Lindsay's original concept, not part of it.
The reason these pieces are combined rather than published separately is that a quarter-swing projection on its own is only as useful as the swing that produced it. A shallow, weak, or counter-trend retracement produces a projection ladder that is statistically less meaningful than one built from a decisive, trend-aligned impulse. The trend filter, pullback-depth window, ADX threshold, and HTF bias check all exist to answer one question before a projection is drawn: was this A-B leg significant enough to justify projecting from it? The trade-management layer (stop buffer, expiry, break-even) then exists to turn that projection into something that can be monitored and alerted on in real time, rather than only viewed as a static drawing. Each component is a gate or a consequence of the others; none of them functions as an independent indicator bolted on for its own sake.
The script is an indicator, not a strategy — it does not backtest or simulate equity. It identifies swing structures, projects levels from them, tracks whether those levels are subsequently reached, and reports all of this through a live dashboard and structured alert payloads.
🔬 Methodology and Concepts
● Confirmed Pivot Detection
Swing highs and lows are identified using a left/right bar-count pivot method: a candidate high or low is only confirmed once it has stood as the extreme point across both the bars to its left and the bars to its right, using the Pivot Left and Pivot Right settings. Because the check always references bars that have already closed, a pivot is never inferred from the currently forming bar — it is published exactly one bar after its right-side confirmation window completes. This is a deliberate implementation choice made to keep pivot detection non-repainting.
● The A-B-C Swing Structure
Once two consecutive confirmed pivots exist, the script watches for a third pivot that retraces into the prior leg:
Point A — the origin pivot (a confirmed swing low ahead of a bullish setup, or swing high ahead of a bearish one).
Point B — the impulse pivot that follows A, defining the A-B leg.
Point C — a new, opposing pivot that pulls back into the A-B leg by a percentage between the Min Pullback % and Max Pullback % settings (23.6–78.6% by default). Pullbacks shallower or deeper than this window are rejected and no setup is formed.
If the Trend Filter is enabled, the A-B leg must also break the previous confirmed swing extreme in the same direction (B must exceed the prior swing high for a bullish setup, or undercut the prior swing low for a bearish one) before a retracement at C is allowed to qualify. This restricts setups to legs that are extending the dominant swing rather than forming inside a range.
● Leg Measurement and Smoothing
The A-B leg is measured either in raw price points or as a percentage move, depending on the Swing Unit setting. Before that leg size is used to derive projection levels, it can optionally be passed through one of five smoothing methods — SMA, RMA, WMA, HMA, or VWMA — set by Signal Smoothing and Smoothing Length. The smoothing is applied as a ratio between the smoothed and raw leg size and multiplied into the current leg, so that projection distances are influenced by the recent typical swing size on the instrument rather than reacting entirely to the size of a single leg. With Signal Smoothing set to None, the raw leg size is used unmodified.
● Quarter-Swing Level Projection
From point C, four levels are projected using fixed fractions of the A-B leg, applied in the direction of the new setup:
25% of the leg → Entry level.
50% of the leg → TP1, labeled as the Critical level in Lindsay's terminology.
75% of the leg → TP2.
100% of the leg → TP3, the Equality target — a projected swing from C equal in size to the original A-B leg.
The Stop is placed at point C itself, with an optional buffer applied beyond it — either a fixed number of ticks or a fraction of the current ATR (ATR Length setting) — configured through Stop Buffer, Buffer Ticks, and Buffer ATR Fraction.
● Confluence Filters
Two independent filters can each block a setup from arming even after a valid A-B-C structure is found:
ADX Filter — requires the DMI-derived ADX value (ADX Length setting) to be at or above the ADX Threshold before a setup is allowed to arm, intended to avoid projecting swing levels during weak-trend, low directional-strength conditions.
HTF Confirmation — requests a higher timeframe's close (HTF Timeframe setting) and compares it against the prior higher-timeframe close to derive a simple directional bias. A setup is only allowed to arm if this bias agrees with the setup's direction. The higher-timeframe read uses a confirmed prior-bar close with lookahead correctly paired to that offset, so this filter does not draw on unconfirmed higher-timeframe data.
● Trade Management and State
Once a setup arms, it steps through a defined state sequence: Armed, Active (entry triggered), TP1 hit, TP2 hit, TP3 hit, Stopped, or Cancelled. Entry triggers when a confirmed close crosses the Entry level; a setup is cancelled if its Armed Expiry Bars limit is reached before entry, or if price closes back through point C first. If Stop to Breakeven after TP1 is enabled, the internally tracked stop moves to the entry price once TP1 is hit — this managed stop is reported in the dashboard and in alert payloads, but the stop line and label drawn on the chart intentionally remain at the original level, so the chart never displays a level implying a fill that did not actually occur at that price.
● Confirmation Lag Notice
Because pivot confirmation requires Pivot Right bars to elapse, and entry/cancellation logic checks a confirmed prior-bar close, every swing structure, entry trigger, and cancellation event appears with a built-in lag relative to the exact bar that produced it. This is a structural trade-off, not a defect: it is what keeps the A-B-C structure and its projected levels from repainting once drawn. Separately, TP1/TP2/TP3 target detection and the corresponding alerts monitor the current bar's high/low in real time rather than waiting for bar close, so a target can be marked and alerted as reached intrabar, before that bar has finished forming. This is standard behavior for real-time level-touch monitoring, but it means the exact moment a target fires can occur before the bar closes.
🎨 Visual Guide
A · B · C labels — small grey markers placed at the three confirmed pivots that define the active setup, drawn once the pattern is confirmed (so they sit slightly in the past relative to the bar that produced them).
Projected Leg — a dashed grey line running from point C forward to the TP3 price level, spanning a time distance matched to the original A-B leg's bar length. This shows the projection visually before price has necessarily reached it.
Entry line and label — a dashed blue line at the 25% projection level, labeled with the exact price.
Stop line and label — a solid line at point C (plus buffer, if configured), colored to match the Bearish color setting, labeled with the exact price. The label updates to show a hit confirmation and the resulting percentage move once the stop is reached, noting separately if the exit was a trend-failure stop or a break-even exit.
TP1 / TP2 / TP3 lines and labels — dashed lines at the 50/75/100% levels, each labeled with price and the resulting reward-to-risk multiple. Each label updates to show a hit confirmation and percentage move once reached.
BULL / BEAR entry marker — a small label placed at the bar where the Entry level is actually crossed, confirming the setup transitioned from Armed to Active.
Dashboard table — a live panel (toggled and positioned via the Dashboard settings) showing direction, state, entry/stop/managed-stop/target prices, reward-to-risk bars for each target, pullback depth, A-B swing size, bars since entry, HTF bias, ADX condition, and active smoothing method.
Non-standard chart warning — if the chart is displaying Heikin Ashi, Renko, Kagi, Point & Figure, Linebreak, or Range bars, a warning label appears directly on the chart, since projected price levels are not meaningful on synthetic bar types.
📖 How to Use
Wait for a confirmed A-B-C structure to complete. The A and B markers appear once a swing has formed, and the C marker (with entry/stop/target lines) appears only once a pullback within the configured percentage window is confirmed.
Treat the Entry line as the level the script is watching for a confirmed close through, not an instruction to enter immediately at C.
Use the Stop line as the invalidation level for the setup — a confirmed close back through point C cancels an armed setup outright.
Read TP1 (Critical), TP2, and TP3 (Equality) as sequential projection targets rather than a single expected outcome; the dashboard's reward-to-risk bars for each target update as price approaches or reaches them.
Check the HTF Bias and ADX rows in the dashboard if those filters are enabled, to understand why a structurally valid A-B-C pattern may not have armed.
Use the webhook alert payload's state and event fields to drive automation, rather than relying on price levels alone, since the payload also reports the managed (break-even) stop separately from the originally drawn stop.
⚙️ Inputs and Settings
● Core
Pivot Left / Pivot Right — bar counts required on each side of a swing point before it is confirmed as a pivot. Larger values produce fewer, more significant, and later-confirmed pivots.
Swing Unit — measures the A-B leg in raw price Points or as a Percent move, changing how leg size (and therefore all projected distances) is calculated.
● Filters
Trend Filter — requires the A-B leg to break the prior confirmed swing extreme in the setup's direction.
Min Pullback % / Max Pullback % — the acceptable retracement depth window for point C, as a percentage of the A-B leg.
HTF Confirmation / HTF Timeframe — requires a higher-timeframe directional bias to agree with the setup direction before arming.
ADX Filter / ADX Length / ADX Threshold — requires trend strength (via DMI/ADX) to clear a minimum threshold before arming.
Signal Smoothing / Smoothing Length — applies SMA, RMA, WMA, HMA, or VWMA smoothing to the leg magnitude used for projections.
● Trade Tools
Lock Signal — freezes the current signal and blocks any new setup from arming.
Stop Buffer / Buffer Ticks / Buffer ATR Fraction / ATR Length — adds extra distance beyond point C when placing the stop, either as a fixed tick count or a fraction of ATR.
Armed Expiry Bars — cancels an armed (not yet triggered) setup if the Entry level isn't closed through within this many bars.
Stop to Breakeven after TP1 — moves the internally tracked (managed) stop to entry once TP1 is hit, reported in the dashboard and alerts without moving the drawn stop line.
● Visuals and Dashboard
Trade Levels / A · B · C Markers / Projected Leg / Entry Markers — independent toggles for each chart element.
Keep Last N Setups — limits how many historical setups' drawings remain on the chart, to stay within drawing object limits.
Show Dashboard / Position — toggles and positions the live info panel.
● Alerts
Long / Short / Close Long / Close Short / Info Action strings — customizable text values inserted into the "action" field of the JSON alert payload, for direct use in webhook automation.
● Colors
Independent color controls for bullish/bearish/neutral tones, stop, entry, target, A·B·C markers, projected leg, label text, and dashboard header/body/text colors.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The projection ladder at the core of this script is drawn from the Trident method associated with Charles Lindsay, a framework built around measuring a swing's magnitude and projecting proportional fractions of it forward from a retracement point to derive Support/Resistance, Critical, and Equality levels. The underlying premise is that markets frequently move in self-similar proportional legs, so a retracement of a known size can be used to project plausible forward extension distances — the 50% "Critical" level and the 100% "Equality" level (a projected move matching the original leg) are the two most emphasized points in that framework, reflected here in TP1 and TP3 respectively.
The pullback-depth window applied to point C (23.6–78.6% by default) situates the acceptable retracement zone within a range commonly associated with Fibonacci retracement theory, without asserting that Fibonacci ratios themselves drive the projection math — the projection ladder here is a fixed 25/50/75/100% division of the leg, independent of the retracement percentage that qualified point C.
The ADX/DMI filter is grounded in Welles Wilder's directional movement framework, which measures trend strength by comparing the smoothed magnitude of directional price movement to overall volatility; applying a minimum threshold is a common approach to excluding range-bound conditions from directional setups, though ADX is a lagging, smoothed measure and does not itself predict continuation.
The higher-timeframe bias filter reflects multi-timeframe confluence theory: the idea that a directional bias visible on a longer aggregation of price is a useful, if imperfect, filter for shorter-timeframe setups, since it reduces (but does not eliminate) the chance of trading against the prevailing higher-timeframe trend.
The leg-smoothing step applies standard moving-average theory (simple, exponential-family, weighted, Hull, and volume-weighted variants) not to price directly, but to the derived leg-size series, an approach intended to make projected distances reflect a instrument's typical recent swing amplitude rather than the idiosyncrasies of a single leg.
⚠️ 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. אינדיקטור

Waves [LTW] v0.5📊Waves v0.5
Among all the indicators I have used, the most effective one remains the fundamental volume indicator, which represents the aggregate of buy and sell orders through column heights—a tool we are all familiar with. However, traditional volume indicators are often insufficient for detecting Market Maker (MM) intervention. This is because the MMs driving the crypto market typically utilize institutional-grade services (Prime Brokerage), such as Prime, Institutional/VIP, and OTC desks.
Does this render volume indicators obsolete? Ludwig Wittgenstein argued that our everyday language is, in fact, strictly bound to the rigorous rules of a massive 'language game.' From a similar perspective, price charts are bound by the strict rule that movement requires volume. Therefore, I believe volume remains an absolutely crucial metric.
Inspired by the meme "In the beginning, there was a sine wave," this custom indicator averages the heights of volume columns and applies mathematical filters—such as HMA (Hull Moving Average) for minimal lag and smooth curves, and ALMA (Arnaud Legoux Moving Average) for excellent noise reduction. This process visualizes volume as a smooth curve with specific periodic wavelengths and amplitudes. The indicator identifies "meaningful volume" only when a volume column breaches this wave amplitude, making it highly effective for visual analysis.
---
⚙️ Key Features (Concept)
Sine Waves
▪️ Low Volatility (Calm Waves): In consolidation phases where volume is practically nonexistent, the user-defined colored area flattens against the bottom and moves slowly. This can be interpreted as a phase where energy is being compressed for the next expansion. Alternatively, from an MM's perspective, this is an uninteresting zone with zero volume generation. As volume gradually dries up, it implies a higher probability of reverting to the price point where the previous volume peaked, potentially returning to the immediate Point of Interest (POI). In a bear market, meaningful volume typically occurs only when breaking new lows.
▪️ Volume Spike (Rising Wavelength & Amplitude): The visual representation of the wave gradually rising, hitting a peak, and then descending becomes highly distinct. Near this peak, there is a high probability of witnessing a trend climax or a Liquidity Sweep.
▪️ Measuring Momentum via Divergence (Short-term vs. Long-term Volume Waves): You can intuitively gauge the intensity of market intervention through these wave-like forms.
Divergence Analysis: If the price makes a higher high, but the peak (amplitude) of the volume wave is lower than the previous peak (Bearish Divergence), it signals that the volume momentum driving the trend is fading. This allows you to respond more swiftly to common RSI divergence traps and anticipate various variables. (For example, in Constance Brown's RSI, the median value of 50 is often more critical than standard overbought/oversold levels. It is very common for RSI to peak, rapidly revert to 50, and then continue to make new highs. Standard RSI divergence fails to analyze this "cooling down" process, leading to frequent false signals in strong, one-way trending markets.)
Pulse Waves
When a volume column breaches the wave, a horizontal extension line is drawn from the peak value of that column towards the right side of the chart until the next breakout occurs. This makes it easy to visually analyze whether subsequent volume is greater or less than the previous peak volume.
You can analyze market flow by observing how many smaller Pulse Waves form within a larger Pulse Wave. For instance, you can spot if the peak column of a large wave opened and closed as a bullish candle, but the peaks of the smaller inner waves are consistently closing as bearish candles.
The newly updated Pulse Wave label allows you to intuitively check the quantitative difference between the currently forming volume and the previous peak volume.
---
📌 Settings Guide
1. Waves Length: You can adjust the smoothing length in the settings. Entering Fibonacci numbers like 21, 34, or 55 groups the historical volume data and major market volume cycles into wavelengths. Applying a mathematical smoothing filter (e.g., ALMA) to this grouped data (default is 34) trims the noise (spiky volume columns) to create a perfectly smooth curve.
2. Smooth Mode: To accommodate different trading styles, users can select various smoothing methods. This allows for faster detection of divergences or quicker identification of volume inflows at POI (Point of Interest) zones.
3. Multiplier: This setting determines the release range of the extension line (which resembles a pulse wave) from the peak volume to the next peak volume, without decay.
---
🔥 Practical Trading Tips (Cautions)
This indicator does not provide standalone entry signals (Buy/Sell) like those used by indicator sellers. It is designed to be a supplementary tool. For optimal results, cross-verify your entry positions using professional order book and data aggregators like TapeSurf (formerly Okotoki), or slippage analysis indicators like the Kinetic Slippage Index (KSI) by HPotter. Rather than blindly trusting a single indicator, please use this to establish and refine your own unique trading style. אינדיקטור

אינדיקטור

XZ_Table_PrimitivesLibrary "XZ_Table_Primitives"
Generic Pine table construction and cell-rendering primitives for XZ scripts. Contains no trading methodology or analytical authority.
resolvePosition(key)
Resolves a normalized position key to a Pine table position.
Parameters:
key (string) : Position key: top_left, top_center, top_right, middle_left, middle_center, middle_right, bottom_left, bottom_center or bottom_right.
Returns: Pine position constant.
resolveTextSize(key)
Resolves a normalized text-size key to a Pine size constant.
Parameters:
key (string) : Text-size key: tiny, small, normal, large or huge.
Returns: Pine size constant.
create(positionKey, columns, rows, backgroundColor, frameColor, frameWidth)
Creates a table using caller-supplied presentation values.
Parameters:
positionKey (string) : Normalized table position key.
columns (int) : Number of columns.
rows (int) : Number of rows.
backgroundColor (color) : Table background color.
frameColor (color) : Table frame color.
frameWidth (int) : Table frame width.
Returns: New table handle.
clearRegion(id, firstColumn, firstRow, lastColumn, lastRow)
Clears a rectangular region of an existing table.
Parameters:
id (table) : Table handle.
firstColumn (int) : First column index.
firstRow (int) : First row index.
lastColumn (int) : Last column index.
lastRow (int) : Last row index.
Returns: True after clearing.
cell(id, column, row, cellText, textColor, backgroundColor, textSize, horizontalAlign, tooltipText)
Writes one fully specified table cell.
Parameters:
id (table) : Table handle.
column (int) : Column index.
row (int) : Row index.
cellText (string) : Cell text.
textColor (color) : Text color.
backgroundColor (color) : Cell background color.
textSize (string) : Pine text size constant.
horizontalAlign (string) : Pine text alignment constant.
tooltipText (string) : Cell tooltip text.
Returns: True after writing.
twoColumnRow(id, row, labelText, valueText, labelColor, valueColor, backgroundColor, textSize, labelTooltip, valueTooltip)
Writes one two-column label/value row.
Parameters:
id (table) : Table handle.
row (int) : Row index.
labelText (string) : Left-cell text.
valueText (string) : Right-cell text.
labelColor (color) : Left text color.
valueColor (color) : Right text color.
backgroundColor (color) : Shared cell background color.
textSize (string) : Shared Pine text size constant.
labelTooltip (string) : Left-cell tooltip.
valueTooltip (string) : Right-cell tooltip.
Returns: True after writing both cells.
twoColumnHeader(id, row, leftText, rightText, leftColor, rightColor, backgroundColor, textSize, leftTooltip, rightTooltip)
Writes one two-column header/decoder row.
Parameters:
id (table) : Table handle.
row (int) : Row index.
leftText (string) : Left-cell text.
rightText (string) : Right-cell text.
leftColor (color) : Left text color.
rightColor (color) : Right text color.
backgroundColor (color) : Shared background color.
textSize (string) : Shared Pine text size constant.
leftTooltip (string) : Left-cell tooltip.
rightTooltip (string) : Right-cell tooltip.
Returns: True after writing both cells.
mergedSection(id, row, firstColumn, lastColumn, sectionText, textColor, backgroundColor, textSize, tooltipText)
Writes one merged full-width section row.
Parameters:
id (table) : Table handle.
row (int) : Row index.
firstColumn (int) : First column to merge.
lastColumn (int) : Last column to merge.
sectionText (string) : Section text.
textColor (color) : Text color.
backgroundColor (color) : Cell background color.
textSize (string) : Pine text size constant.
tooltipText (string) : Cell tooltip.
Returns: True after writing and merging. ספרייה

50% Retrace of Previous HTF Candles50% Retrace of Previous HTF Candles
This indicator plots the 50% midpoint of the most recently completed candle on five higher timeframes: Daily, 4-Hour, 1-Hour, 30-Minute, and 15-Minute.
Each level is drawn as a horizontal line that starts at the exact close of the previous higher-timeframe candle and ends a short distance after the current bar. A clear label sits to the right of each line so you can quickly see which timeframe it belongs to.
How it works
The script pulls the high and low of the last fully closed candle on each timeframe using request.security(), then calculates the simple midpoint: (High + Low) / 2. Because it only uses completed candles, the levels do not repaint.
Why these timeframes?
These five timeframes cover a useful range of market structure:
Daily – Captures the broader daily bias and key structural levels.
4H – Common intermediate timeframe used by many day and swing traders.
1H – Bridges higher timeframes with intraday price action.
30m & 15m – Provide finer, more responsive levels for shorter-term entries and exits.
Together they give a layered view of recent higher-timeframe midpoints without cluttering the chart with every possible timeframe.
Why this is useful
Many traders watch the midpoint of recent higher-timeframe candles as potential areas of interest. Price often reacts around these 50% levels — either finding support/resistance or treating them as mean-reversion reference points. Having multiple HTF midpoints visible at once gives useful context without constantly switching timeframes.
Customization
You can toggle each timeframe on or off independently, change the colors, adjust the line width and style, and modify the labels if you prefer different wording. Everything is controlled from the indicator settings.
Currently uses a coral color palette designed to stay visible on both light and dark charts.
Simple, clean, and focused on one practical concept. אינדיקטור

XZ_Display_PrimitivesLibrary "XZ_Display_Primitives"
Generic bar-time drawing primitives for Pine scripts. Creates, updates or deletes lines, labels and boxes from caller-supplied presentation facts. Contains no trading methodology or analytical authority.
horizontalLine(id, visible, leftTime, rightTime, price, extendRight, lineColor, lineStyle, lineWidth)
Creates, updates or deletes one horizontal bar-time line.
Parameters:
id (line) : Existing line handle, or na.
visible (bool) : Whether the line should exist.
leftTime (int) : Left endpoint time.
rightTime (int) : Right endpoint time used when the line is finite and as the current anchor when projected.
price (float) : Horizontal price.
extendRight (bool) : True to project with extend.right, false for a finite segment.
lineColor (color) : Line color.
lineStyle (string) : Pine line style.
lineWidth (int) : Line width.
Returns: Updated line handle, or na when hidden/invalid.
segmentLine(id, visible, firstTime, firstPrice, secondTime, secondPrice, lineColor, lineStyle, lineWidth)
Creates, updates or deletes one finite bar-time line segment.
Parameters:
id (line) : Existing line handle, or na.
visible (bool) : Whether the line should exist.
firstTime (int) : First endpoint time.
firstPrice (float) : First endpoint price.
secondTime (int) : Second endpoint time.
secondPrice (float) : Second endpoint price.
lineColor (color) : Line color.
lineStyle (string) : Pine line style.
lineWidth (int) : Line width.
Returns: Updated line handle, or na when hidden/invalid.
priceLabel(id, visible, xTime, price, labelText, textColor, backgroundColor, labelStyle, labelSize, tooltipText, textAlign)
Creates, updates or deletes one price-anchored bar-time label.
Parameters:
id (label) : Existing label handle, or na.
visible (bool) : Whether the label should exist.
xTime (int) : Label time coordinate.
price (float) : Label price coordinate.
labelText (string) : Visible label text.
textColor (color) : Label text color.
backgroundColor (color) : Label background color.
labelStyle (string) : Pine label style.
labelSize (string) : Pine label size.
tooltipText (string) : Tooltip text.
textAlign (string) : Pine text alignment.
Returns: Updated label handle, or na when hidden/invalid.
timeBox(id, visible, leftTime, rightTime, top, bottom, extendRight, fillColor, borderColor, borderStyle, borderWidth)
Creates, updates or deletes one bar-time box.
Parameters:
id (box) : Existing box handle, or na.
visible (bool) : Whether the box should exist.
leftTime (int) : Left box time.
rightTime (int) : Right box time used when finite and as the current anchor when projected.
top (float) : Top price.
bottom (float) : Bottom price.
extendRight (bool) : True to project with extend.right, false for finite geometry.
fillColor (color) : Box fill color. May be na.
borderColor (color) : Box border color. May be na.
borderStyle (string) : Pine line style for the border.
borderWidth (int) : Border width.
Returns: Updated box handle, or na when hidden/invalid.
setBoxColors(id, fillColor, borderColor)
Applies fill and border colors to an existing box without changing geometry.
Parameters:
id (box) : Box handle.
fillColor (color) : New fill color.
borderColor (color) : New border color.
Returns: True after the no-op or update.
setBoxBorderColor(id, borderColor)
Applies only a border color to an existing box without changing geometry.
Parameters:
id (box) : Box handle.
borderColor (color) : New border color.
Returns: True after the no-op or update.
setLabelTextColor(id, textColor)
Applies text color to an existing label without changing its geometry or text.
Parameters:
id (label) : Label handle.
textColor (color) : New text color.
Returns: True after the no-op or update.
clearBoxText(id)
Clears box text without changing geometry or styling.
Parameters:
id (box) : Box handle.
Returns: True after the no-op or update. ספרייה

XZ_Core_UtilitiesLibrary "XZ_Core_Utilities"
Generic formatting, identifier parsing and neutral geometry helpers for XZ scripts. Contains no XZ methodology or analytical authority.
csvContainsPositiveInt(objectId, csvIds)
Returns true when a positive integer ID occurs as a comma-separated token.
Parameters:
objectId (int) : Positive integer to search for.
csvIds (string) : Comma-separated integer text. Spaces are ignored.
Returns: True when objectId occurs as an exact parsed token.
csvFirstPositiveInt(csvIds)
Returns the first positive integer token in comma-separated text.
Parameters:
csvIds (string) : Comma-separated integer text. Spaces are ignored.
Returns: First parsed positive integer, or 0 when none exists.
nearDuplicateBounds(lowA, highA, lowB, highB, tolerancePct)
Tests whether two low/high geometries are near-duplicates under a supplied percentage tolerance.
Parameters:
lowA (float) : First lower bound.
highA (float) : First upper bound.
lowB (float) : Second lower bound.
highB (float) : Second upper bound.
tolerancePct (float) : Tolerance as a percentage of the wider geometry.
Returns: True when both corresponding boundaries fall within the calculated tolerance.
formatDate(eventTime, timezone)
Formats a timestamp as yyyy-MM-dd in the supplied timezone.
Parameters:
eventTime (int) : UNIX timestamp in milliseconds.
timezone (string) : Timezone string accepted by str.format_time().
Returns: Formatted date, or an em dash for na.
formatPercent(value)
Formats a percentage value with up to two decimals.
Parameters:
value (float) : Percentage value.
Returns: Percentage text, or an em dash for na.
formatSignedPercent(value)
Formats a signed percentage value with up to two decimals.
Parameters:
value (float) : Percentage value.
Returns: Signed percentage text, or an em dash for na.
timeframeLabel(tf)
Converts common TradingView timeframe strings into compact readable labels.
Parameters:
tf (string) : TradingView timeframe string.
Returns: Compact label such as 1D, 1W, 4H or 15m.
formatDistance(distance, useTicks, minTick)
Formats an absolute price distance as points or ticks. Unit policy is supplied by the caller.
Parameters:
distance (float) : Raw price distance.
useTicks (bool) : True to convert distance to ticks.
minTick (float) : Instrument minimum tick.
Returns: Formatted absolute distance with explicit unit.
directionalMovePct(fromPrice, toPrice, minTick)
Calculates signed percentage move from one price to another.
Parameters:
fromPrice (float) : Chronological starting price.
toPrice (float) : Chronological ending price.
minTick (float) : Instrument minimum tick used to reject a near-zero denominator.
Returns: Signed percentage move, or na when unavailable.
normalizedPositionPct(currentValue, lowPrice, highPrice)
Calculates normalized position of a value within low-to-high geometry.
Parameters:
currentValue (float) : Value being located.
lowPrice (float) : Geometry lower bound.
highPrice (float) : Geometry upper bound.
Returns: Position percentage where 0 is the lower bound and 100 is the upper bound. Values may fall outside 0-100.
formatElapsedDays(fromTime, toTime)
Formats elapsed milliseconds between two timestamps as fractional days.
Parameters:
fromTime (int) : Starting timestamp.
toTime (int) : Ending timestamp.
Returns: Day text with singular/plural unit, or an em dash when invalid.
quartilePrice(low, high, levelIndex)
Returns one of five equally spaced 0/25/50/75/100 geometry levels.
Parameters:
low (float) : Lower geometry bound.
high (float) : Upper geometry bound.
levelIndex (int) : Integer level index from 0 to 4.
Returns: Price at the requested quartile level.
quartileText(levelIndex)
Returns the display text for quartile level index 0-4.
Parameters:
levelIndex (int) : Integer level index from 0 to 4.
Returns: 0%, 25%, 50%, 75% or 100%.
appendUniqueToken(current, token, separator)
Appends a token only when it is not already present in a separator-delimited string.
Parameters:
current (string) : Existing token string.
token (string) : Token to append.
separator (string) : Delimiter between tokens.
Returns: Original or extended token string. ספרייה

Futures Settlement [DigitalD] - LabeledFutures Settlement Levels is a market-structure tool designed to help traders identify and monitor key futures settlement prices directly on the chart.
The indicator plots Daily, Weekly, Monthly, and Quarterly settlement levels, providing clear reference points that can be used to evaluate price location, support/resistance, trend conditions, and potential areas of reaction.
Key Features
Daily Settlement — Displays the most recent daily futures settlement price.
Weekly Settlement — Tracks the current weekly settlement level.
Monthly Settlement — Provides the latest monthly settlement reference.
Quarterly Settlement — Optional quarterly settlement level for higher-timeframe analysis.
Historical Weekly & Monthly Levels — Optionally reprints previous settlement levels for additional historical context.
Settlement Averages — Optional midpoint/average of the previous two weekly or monthly settlements.
Quarterly Contract Settlements — Optional final settlement levels for quarterly futures contracts.
Chart Labels — Clearly identifies each settlement level and displays its corresponding price.
Back-Adjusted Futures Support — Provides an option for analyzing continuous back-adjusted futures data.
Non-Standard Chart Support — Designed to maintain accurate settlement references on charts such as Heikin Ashi and Renko.
How Traders Can Use It
Settlement prices can serve as important reference levels throughout the trading session. Traders can monitor whether price is:
Above settlement → potential bullish positioning/context
Below settlement → potential bearish positioning/context
Repeatedly rejecting settlement → potential support/resistance or balance area
Breaking and holding beyond settlement → potential shift in market structure
The indicator is particularly useful when combined with price action, volume, VWAP, market structure, and higher-timeframe analysis.
Important
This indicator is a reference and analysis tool, not a standalone trading system. Settlement levels should be evaluated in the context of the specific futures contract, market conditions, liquidity, and your broader trading strategy.
Designed for traders who want clean, objective futures settlement levels without cluttering the chart. אינדיקטור

Rob Hoffman IRB + MA Trend OVERVIEW
This indicator combines Rob Hoffman's Inventory Retracement Bar (IRB) setup with his moving average overlay set and "No-Trend Zone", and adds a trend gate so IRB signals only fire when the market is actually trending. The idea is simple: trade continuation in a clean trend, and stay out when price is chopping around the averages.
Everything runs on the price chart — no separate pane.
THE INVENTORY RETRACEMENT BAR (IRB)
An IRB is a bar that pushes against the prevailing trend and then closes back in a way that shows the counter-trend move is running out of steam.
- Long IRB: the bar's open AND close are both at least 45% below its high (a long upper wick in an uptrend).
- Short IRB: the bar's open AND close are both at least 45% above its low (a long lower wick in a downtrend).
IRB bars are marked with small triangles. The IRB itself is not the entry — it's the setup.
ENTRY TRIGGER
After an IRB forms, the indicator waits up to 20 bars (adjustable) for price to confirm:
- "Extreme high/low break" (default): entry when price breaks one tick beyond the IRB's high (long) or low (short). This is the classic rule.
- "Close past retracement level": an earlier, more aggressive entry that triggers when a bar closes back through the IRB's 45% retracement level.
If price instead breaks the opposite side of the IRB before triggering, the setup is cancelled. Confirmed entries are labeled "IRB L" / "IRB S".
IRBs with an unusually large range (more than 2x ATR by default) are ignored, since oversized retracement bars tend to fail more often.
MOVING AVERAGE OVERLAY
The full MA set is plotted for context:
- SMA 3 and 5 (fast speed lines)
- EMA 18 and 20 (primary trend lines — the 20 EMA is highlighted in gold)
- SMA 50, SMA 89, EMA 144, SMA 200 (longer-term trend lines)
The ribbon can be hidden if you only want the core lines.
NO-TREND ZONE
The blood-red cloud is the No-Trend Zone: a Keltner-style channel built from a 34-period EMA with a band of 0.45x the EMA-smoothed true range. When price is inside or hugging this zone, the market isn't trending and IRB signals are suppressed.
The band smoothing can be switched to RMA (Wilder ATR). If you want to match the original overlay set exactly, use length 35, multiplier 0.5, and RMA smoothing.
TREND GATE
An IRB only counts when all of these agree:
1. Price has closed outside the No-Trend Zone in the direction of the trade.
2. Price is on the correct side of the 20 EMA — or, optionally, still on the correct side of the 89 EMA anchor, so a deep pullback through the 20 doesn't cancel an otherwise healthy trend.
3. (Optional, on by default) No long IRBs below the 89 EMA anchor and no short IRBs above it.
The gate can be turned off to see every raw IRB bar shape regardless of trend.
Trend angle: Hoffman looks for the 20 EMA sloping at roughly 45 degrees. This is deliberately NOT coded — Pine Script has no access to the chart's pixel scale, so any "degrees" value would change with zoom and wouldn't match what you see. Judge the slope by eye.
TRAILING STOP REFERENCE
A yellow dotted line shows a reference stop: it starts at the IRB's low (long) or high (short) when an entry triggers, then trails at 1.5x ATR while the trend holds, and clears when hit or when the trend is lost. It's a visual guide only and does not manage any position.
ALERTS
Two alert conditions are available: "Hoffman IRB Long Entry" and "Hoffman IRB Short Entry". Signals on the live, unconfirmed bar can change until that bar closes, so "Once Per Bar Close" is recommended when creating alerts.
HOW TO USE IT
- Trade in the direction of the trigger labels only.
- When price is sitting in the red cloud, stand aside — that is the chop the zone exists to keep you out of.
- Look for a clearly sloping 20 EMA; flat averages mean weak continuation.
- Use the IRB's opposite extreme (or the trailing stop line) as a logical stop reference.
CREDITS
The Inventory Retracement Bar setup, the moving average overlay set, and the No-Trend Zone concept are Rob Hoffman's publicly taught methods. The overlay set was cross-referenced against UCSgears' open-source "Rob Hoffman - Overlay Set" script. This script is an independent implementation and is not affiliated with or endorsed by Rob Hoffman.
This indicator is for educational purposes and is not financial advice. Past signals do not guarantee future results.
אינדיקטור

FVG IFVG SMT Sweep Engine by Ticker TradingFair value gaps, their inversions, and SMT divergence against a correlated symbol, built to one specification instead of to the conventions that circulate in open Pine scripts. Where the two disagree, this follows the specification, and every disagreement is listed below.
FAIR VALUE GAPS
A gap is the three-candle pattern: candle 1 and candle 3 fail to overlap, candle 2 spans the space between. The zone runs from candle 3's high to candle 1's low on a bearish gap, and the reverse on a bullish one. The boundary that matters later is candle 1's low, or its high on a bullish gap.
You define mitigation: a wick into the zone, a touch of the midline (consequent encroachment), or a close past the far edge. Mitigated gaps then fade, delete, or stay put. Bullish and bearish gaps live in separate buckets, so "keep the last 10" means ten of each, whatever order they printed in. Gaps can also be pulled from a higher timeframe onto a lower-timeframe chart, and mitigation is still judged on the chart's own closes.
INVERTED FVG
When price closes through a gap's boundary the gap flips polarity. A bearish gap becomes support; a bullish gap becomes resistance. A close, never a wick. That is the only structural filter here, and it is why a chart in a strong rally turns green: every bearish gap gets closed through and recolours. An IFVG dies when price closes back through it, or wicks back through, your choice.
SMT DIVERGENCE
This is where the script diverges most from what is already published. Most SMT scripts run ta.pivothigh() on both symbols and need the two pivots to confirm on the same bar. When they land a bar apart, which is often, nothing prints and nothing tells you a comparison was skipped.
This one asks whether each symbol took out its own reference level. Bar timing never has to line up. Four level sources are available and can run together:
prev: the previous candle's high or low. Highest frequency by a wide margin, and the first source to switch off if the chart gets busy.
rec: the extreme of the last N closed bars.
piv: the last confirmed swing pivot. The structural read, and behind by the right-bar count by construction.
sess: the session high or low, on a clock you pick.
Four filters sit on top.
Penetration and miss distance. The sweeper has to clear its level by a set number of ticks, and the partner has to fall short of its own by a set number. The second one does the real work. If the partner missed by half a tick, both instruments did the same thing, and calling that a divergence is a lie. Public scripts test the partner with a bare inequality.
Two-candle filter. When the sweep lands on the bar immediately after the bar that set the level, one candle of disagreement is not yet a narrative, so the divergence is marked pending. A later bar has to trade back to the sweep bar's extreme or the setup dies. A three-plus candle gap confirms on the spot. Pending divergences draw dotted and go solid the moment they confirm, so you can watch one build.
Both-swept neutralisation. If the partner takes out its own level too, inside a window you set, the divergence was never real and the marker is removed.
Stale-partner guard. request.security carries the last known value forward when the partner has no bar at a given timestamp. A carried-forward high can never exceed its own level, so the partner reads as "did not sweep" and a divergence gets invented out of a data hole. This compares the partner's bar time against the chart bar's and skips the bar when they disagree.
REPAINTING
Detection on bar close is the default, and nothing repaints. Reference levels advance on closed bars only, and each bar is tested against the level as it stood before that bar ran. History therefore shows what you would have seen live. Live intrabar detection is there if you want it, and it marks a sweep the moment a wick takes the level. Those markers can appear and vanish as bars reverse.
SETUP
Point the comparison input at the correlated partner and never at the chart symbol. MNQ against MES, NQ against ES, US100 against US500. Use a real-time feed. A delayed partner is stale on the newest bars, and every divergence there is fiction.
Five alerts: bullish FVG, bearish FVG, IFVG inversion, bullish SMT, bearish SMT.
Open source. The reasoning behind each rule is in the header comments. אינדיקטור

Smart Flow Imbalance [StrixEDGE]TRADINGVIEW CATEGORIES
1. Volume
2. Trend Analysis
3. Oscillators
SEARCH TAGS (9)
smart-flow-imbalance, overlay-signals, order-flow, volume, relative-volume, buying-selling-pressure, accumulation-distribution, momentum, market-structure
DESCRIPTION
StrixEDGE Smart Flow Imbalance is Engine #06 in the StrixEDGE indicator framework. It is a flow-focused market-state tool designed to identify changes in directional quality, liquidity behavior, volatility structure and confirmation strength without relying on a single conventional oscillator.
WHAT THIS INDICATOR IS DESIGNED TO DO
Blends persistent flow, displacement and range structure into a directional participation score.
Rather than treating one input as a complete signal, StrixEDGE combines the engine's dedicated core logic with an optional DNA layer. The final result is normalized into a 0–100 Strix Score so the same framework can be read consistently across different symbols and timeframes.
HOW TO READ THE STRIX SCORE
• Above 72: bullish state / long-side trigger zone.
• Below 28: bearish state / short-side trigger zone.
• Around 50: balanced or neutral state.
• A signal is generated on a transition into a trigger zone, not on every bar that remains inside it.
SIGNAL & POSITION FRAMEWORK
When a valid state transition is detected, the overlay version can create a structured trade plan containing:
• Entry
• DCA level
• TP1
• TP2
• TP3
• Stop Loss
Each projected level includes its percentage distance from Entry. When a level is reached, the same chart label is updated with a ✓ marker. TP and SL outcome tracking is mutually controlled so the dashboard does not report contradictory terminal results for the same setup.
PROFESSIONAL DASHBOARD
The built-in StrixEDGE dashboard summarizes the active market state in a compact TradingView table, including:
• Engine and category
• Strix Score and directional bias
• Signal / market regime
• Flow pressure and trend quality
• Relative volume and ATR volatility
• Structure / VWAP context
• Active position and signal age
• Entry, DCA, TP1, TP2, TP3 and SL
• Hit status for each projected level
COMBINATION PROFILE
• CORE BALANCE
• Active DNA modules: 3
• Lookback: 24
• Smoothing: 5
• Signal threshold: 72
ENGINE DNA
• Displacement Efficiency — Directional body displacement normalized by ATR and relative volume.
• Range Structure Balance — Maps close location inside rolling high/low structure to a signed state.
• Normalized Flow Acceleration — Smooths ATR-normalized return × relative volume to estimate directional flow.
MARKET / STYLE PROFILE
• Market focus: Crypto
• Intended style: Swing
• Core engine: #06 Smart Flow Imbalance
• Category: Flow
NON-REPAINT / DATA HANDLING
By default, signals require a confirmed chart-bar close. This reduces intrabar signal fluctuation and makes historical signal placement more stable.
ALERTS
The generated script includes alert conditions for:
• Long state shift
• Short state shift
• DCA reached
• TP1 reached
• TP2 reached
• TP3 reached
• Stop Loss reached
HOW I USE IT
StrixEDGE is designed as a market-state and trade-structure tool rather than a standalone prediction system. Stronger setups generally occur when the Strix Score, market regime, flow pressure, structure and volatility context agree instead of relying on the trigger alone.
LIMITATIONS
No indicator can predict future price movement with certainty. Signals can fail during sudden news events, illiquid conditions, gaps, abnormal volatility, regime transitions or unreliable volume. DCA, TP and SL levels are systematic projections derived from the active setup and should not be interpreted as guaranteed outcomes.
Users should validate the indicator on the symbol, exchange and timeframe they trade, and should apply independent position sizing and risk management. Historical behavior does not guarantee future performance.
ORIGINALITY
StrixEDGE Engine #06 is built from generic price, volume, volatility, structure and confirmed-context primitives arranged in a dedicated engine formula and optional DNA layer. It is not intended to reproduce or rename a specific community indicator.
DISCLAIMER
For research and educational purposes only. This indicator is not financial advice and does not guarantee profitability. אינדיקטור

ESG-TH SET50 [Itto-Ryu]ESG-TH SET50
FOR ACADEMIC AND EDUCATIONAL PURPOSES ONLY. This script is a research tool that displays publicly announced sustainability data next to a price chart. It is not investment advice, not a recommendation to buy or sell any security, and not a substitute for a company's own disclosures or for the official publications of the data providers named below. Use it to study the relationship between ESG information and Thai equities, not to make trading decisions.
WHAT IT DOES
ESG-TH SET50 puts a Thai stock's sustainability profile in the corner of the chart so you can read it before you read the price. It covers the 50 SET50 constituents (H1 2026) and shows only data that the Stock Exchange of Thailand, the Thai Institute of Directors, S&P Global or the Science Based Targets initiative have published.
TABLE ROWS
- Header: ticker, rating year and the SET ESG Ratings 2025 grade (AAA / AA / A / BBB / NR).
- History 2023 -> 2024 -> 2025: grades of the last three SET rounds with an up / down / same marker versus last year.
- Peers: how many rated companies in the same SET industry group share this grade.
- Index: membership of SETESG, SET50, SET100 and the Thai ESG fund universe.
- CG score (IOD 2025): Thai IOD Corporate Governance Report level, 5 stars Excellent (90+), 4 stars Very Good (80-89), 3 stars Good (70-79). A warning mark means IOD flagged CG-related news that lowered the published range.
- S&P Yearbook 2026: S&P Global Sustainability Yearbook 2026 distinction (Top 1%, Top 5%, Top 10%, Member) or "not selected".
- SBTi climate target: net-zero year, near-term target class and year, "commitment removed", or none on the dashboard.
- Valid until: the last SET ESG Ratings round stays valid until December 2026, when FTSE Russell ESG Scores replace it.
- Index review: next SETESG semi-annual review month (June or December).
- Summary: one-line business description in English or Thai.
- Source: dataset and announcement date.
The chart background is tinted by grade (AAA green, AA teal, A blue, BBB amber, NR grey) so the rating stays visible with the table hidden.
HOW THE DATA IS BUILT
Pine Script cannot fetch external data, so everything is embedded. An open-source Python pipeline downloads the public sources, checks them against the officially announced counts, and generates the lookup as a Pine library. Nothing is estimated or modelled; every value traces to a dated public document:
- SET ESG Ratings 2025 (announced 12 Dec 2025) and the 2023-2024 history table (SET, 16 Dec 2024)
- SETESG, SET50 and SET100 constituents for H1 2026 (SET, 15 Dec 2025)
- Corporate Governance Report 2025 (Thai IOD, data as of 11 Feb 2026)
- S&P Global Sustainability Yearbook 2026 (18 Feb 2026)
- SBTi Target Dashboard export (weekly file; export date recorded in the repository)
INPUTS
- Show table (on): draw the table on the last bar.
- Background tint by grade (on): colour the chart background by grade.
- Language (EN): EN gives the English summary with years in CE; TH gives the Thai summary with years in Buddhist Era.
- Table position (top right): corner of the chart.
- Text size (small): table font size.
WHO IT IS FOR
Students, researchers and investors in Thai equities who want the ESG, governance and climate-target context on the chart, for example when studying Thai ESG fund eligibility, SETESG rebalances, or a company against its industry peers. It generates no signals and gives no buy or sell output.
HOW TO USE
1. Open any SET50 stock on a SET chart. Any timeframe works; the data is per company, not per bar.
2. Read the grade and its three-year trend first, then the peer count to see whether the grade is common in that industry.
3. Treat the CG warning mark, "commitment removed" on the SBTi row, or a grade downgrade as prompts to read the company's own disclosures.
4. Switch Language to TH for Thai text and Buddhist Era years.
COMMON MISTAKES
- Expecting live data: the values are a snapshot of the published rounds listed above and change only when the script is updated.
- Reading NR as "bad": NR means the company did not receive a 2025 rating, which can happen for eligibility reasons, not only for low scores.
- Using it outside SET50: other SET stocks show NR until the full-universe build is released; non-SET symbols show "No data".
DISCLOSURE
- Pine Script v6. Open source under the Mozilla Public License 2.0. The data pipeline and source files are in the repository linked from the author profile.
- Repaint: No. All values are static per company and the table is drawn on the last bar only. The "Index review" month is derived from the current date and simply advances with time.
- Chart type: works on any chart type and timeframe; no OHLC-based logic.
- Originality: embeds public sustainability datasets as a Pine lookup generated from a library template. No code is reused from other TradingView scripts.
- Data ownership: SET ESG Ratings and index lists are published by The Stock Exchange of Thailand; the Corporate Governance Report by the Thai Institute of Directors; the Sustainability Yearbook by S&P Global; climate targets by the Science Based Targets initiative. Only publicly announced results are reproduced. FTSE Russell ESG Scores are not included.
- Academic and educational use only. Not investment advice. Past ratings do not predict future ratings or returns.
Develop by Mr. Thiranat Ngamchitcharoen
אינדיקטור

Adaptive Hurst Cycle Engine [SpokoStocks]Adaptive Hurst Cycle Engine measures the cycles that are actually present in price, reads where the market sits inside each of them right now, projects the combined cycle forward, and scores its own cycle lows against real price lows so you can see on the chart how well it is doing. Nothing is drawn with hindsight and nothing moves once it is on the chart.
WHAT YOU SEE ON THE PRICE CHART
• A cycle-model line: price with the noise removed and the measured cycles kept. Where it hugs price, the cycles explain the movement; where it drifts, they do not.
• A dashed projected path continuing that model forward from the last bar, built from the current amplitude and phase of each cycle.
• Bars coloured by cycle position, from teal at a trough through violet to crimson at a peak.
• Composite lows scored after the fact: a teal triangle where the composite low landed on a real price low, a small grey triangle where it missed. The dashboard reports the hit rate on the chart you are looking at.
WHAT YOU SEE IN THE PANE
• The composite cycle, the sum of the measured components, with a two-tone fill.
• A diamond at each composite low, placed one bar after the turn and never moved.
• A dashed projection of the composite with the next projected low labelled.
• A background shade when two or more cycles are near a trough at the same time.
• The individual components can be switched on behind a toggle.
DASHBOARD
For each cycle: measured period, spectral power, whether it is rising or falling, and the bar count and date of its next low. Below that: the dominant period, how many cycles are synchronised near a trough, the projected composite low, and the low-accuracy score.
HOW IT WORKS
1. A roofing filter, a high-pass at the longest period and a super-smoother at the shortest, isolates the band in which cycles can exist. Both filters are from John Ehlers' published work.
2. An autocorrelation periodogram, also after Ehlers, measures spectral power for every period in the range on every bar and smooths it over time, so the spectrum reflects persistent cycles rather than single swings. Power is normalised so 100% is the strongest period seen recently.
3. The cycle set is either the strongest spectral peaks above your minimum power (Measured peaks) or Hurst's nominal model built from the dominant period in 2:1 ratios (Harmonic set). Periods are smoothed to prevent jitter. If no peak clears the threshold, the dominant period is used so the chart is never empty.
4. Each cycle is extracted with a band-pass filter tuned to its period. The output and its quadrature give the phase, which tells the script how many bars remain to the next low and peak, and the amplitude.
5. The composite is the sum of the components, Hurst's principle of summation. The projection extends each component as a cosine from its current phase and amplitude and adds them; on the price chart the same projection is placed on top of the trend with its recent slope.
6. Accuracy scoring: when the composite turns up, the previous bar is a composite low. Once the bars on both sides are known, that bar's low is compared with the lowest low of the surrounding window. A match within a quarter of an ATR is a hit. Hits and total are accumulated and shown as a percentage.
HOW TO USE IT
• Check the hit rate first. It tells you, on this symbol and timeframe, how often the composite lows have coincided with price lows.
• Read spectral power per cycle. Below about 50% a cycle is weak on this chart and its dates deserve less weight.
• The next-low column is the working forecast for each cycle; the composite low is where they combine, and the confluence shade marks the windows Hurst's model treats as the most important lows.
• Use the projected path as an expectation, and the bar colours to see at a glance which side of the cycle the market is on.
NON-REPAINTING AND LAG
All filters are recursive and use only closed bars. Composite-low diamonds are confirmed one bar after the turn and fixed. The projection is a forecast redrawn only forward of the current bar. Every causal cycle filter carries a delay of one to two bars; the phase readout and the projection exist to give notice of a low before it happens rather than to remove that delay. The hit and miss triangles are the one deliberately delayed element: they are a scorecard drawn once the surrounding window has closed, not a live signal.
LIMITATIONS
• The spectrum needs roughly twice the longest period of history to settle; the first bars on a chart are unreliable.
• Dates in the dashboard count chart bars and ignore weekends and closed sessions.
• Cycles change; a projection is only as good as the persistence of the cycles behind it.
• The hit rate is descriptive, not a guarantee, and depends on the accuracy window you set.
The roofing filter and autocorrelation periodogram follow John Ehlers, Cycle Analytics for Traders (2013). The cycle-set selection, phase-based low forecasts, composite projection on price, phase colouring and on-chart accuracy scoring are original to this script. אינדיקטור

אינדיקטור

Bollinger Bands 3STDMulti-band Bollinger overlay that plots ±1, ±2, and ±3 standard deviation bands on one chart.
What it shows
Three white band pairs (±1σ, ±2σ, ±3σ) around a shared moving-average basis (basis line is not plotted)
Soft corridor fills between 1σ→2σ and 2σ→3σ so the outer zones are easy to see without clutter
Markers when price closes outside the ±2σ bands (not wick touches)
How it works
Bands are built from a selectable basis MA (SMA, EMA, RMA, or WMA) plus standard deviation of the chosen source. Defaults match classic Bollinger settings: length 20, multipliers 1 / 2 / 3.
Alerts
Use TradingView alerts on this script:
Close above 2σ
Close below 2σ
Any 2σ close outside
Tip: set the alert to Once Per Bar Close.
Inputs
Length, source, basis MA type
StdDev multipliers (1 / 2 / 3)
Corridor fill colors
Toggle for 2σ close-outside markers
Notes
This is a volatility / stretch visualization tool, not a buy/sell signal system. Use it with your own confirmation (trend, RSI, levels, etc.). אינדיקטור

Auto Trend Channels [AFD]A trend channel is only worth drawing if price actually respected it. This script builds every channel from three confirmed swing pivots, checks each bar between the anchors against the boundaries, and puts the channel on your chart only once a bar has closed inside it. Then it marks, on the drawing itself, the exact bar it became usable - so you always know which part of the channel is history and which part you could have acted on.
WHAT IT DOES
Auto Trend Channels finds parallel channels from confirmed swing pivots and follows each one through its whole life: accepted, broken, retouched, returned or expired.
Three pivots, exact geometry - a rising channel joins two rising swing lows and runs its upper boundary parallel through the swing high between them. A falling channel joins two falling swing highs, with the parallel through the swing low between. No regression fit, no approximate parallels.
Every bar between the anchors is checked - a candidate is rejected if any bar in its span pokes past a boundary by more than your Containment allowance. Its width has to sit between your Minimum and Maximum width, both measured in units of the chart's own average range, frozen when the channel is built.
Usable means a bar closed inside it - a channel is drawn only after a confirmed close lands between its boundaries. The dotted vertical Known line marks that bar.
One active channel per layer - a newer candidate never replaces an intact channel. Turn on Longer swing channel for a second, larger layer on the same timeframe, drawn heavier and fainter so the two stay tellable apart.
HOW A CHANNEL LIVES AND DIES
Active - solid boundaries in the rising or falling colour, shaded inside, extending to the current bar. The label at the right edge reads the direction and Active.
Close outside - the first confirmed close beyond a boundary, past your Close allowance, starts a return watch. The channel switches to the history colour, goes dashed, loses its shading, and its label reads Watching above or Watching below. It keeps extending while the watch runs.
Boundary retouch - the first later bar whose high or low reaches the broken boundary while the close stays outside gets a one-time mark on that channel. Recorded once, never counted or rated.
Returned inside - a confirmed close back between the boundaries within the watch window finishes the channel as Returned inside. A finished channel never reactivates.
Watch ended - no close back inside within the window, and the channel is finished with its right edge frozen where it ended. Separately, once a channel's first anchor passes your horizon it is retired and leaves the chart, whatever state it was in.
Finished channels stay on the chart up to your Retained channels count, dashed and grey, so you can see what each channel did after it broke. Channels hidden by that count keep running their watch and still alert.
WHAT YOU GET ON THE CHART
Upper and lower boundaries, with an optional midpoint and quarter lines.
The Known marker on a dotted vertical line at the acceptance bar.
Event labels at the bar that produced them, offset clear of the candles: Close above, Close below, Boundary retouch, Returned inside.
Optional A, B and C markers on the three source pivots.
An optional Forming channel view: the candidate a layer is currently building, dotted, faint and labelled as not accepted. Off by default, because a candidate can change or vanish before it is accepted.
A corner notice stating linear-price geometry and confirmed-pivot delay, with an optional status panel: per-layer state, live boundary prices, watch counts and how many sets are drawn.
Nine colour themes, including Paper for light charts and a Colourblind safe palette built on the published Okabe-Ito blue and vermilion, plus Custom pickers.
Three display switches - Channel labels, Channel fill and Corner table - to strip the drawing down to the lines alone when you want a clean chart.
ALERTS AND THE DATA WINDOW
Ten named alert conditions - Formed, Close above, Close below, Returned inside and Boundary retouch, for each layer - plus one combined dynamic alert that lists every enabled event on the bar with its layer, the channel's anchor timestamps and its raw boundaries. Each alert switch gates both the named condition and the combined message. Twenty Data Window plots expose the live upper, mid and lower values, the acceptance bar, the event flags and the watch counts, so every number on the chart can be read and exported.
SETTINGS WORTH KNOWING FIRST
Swing length sets how many bars either side confirm a pivot: raise it for fewer, larger, later channels, lower it for more, smaller, sooner ones. Pivots searched is how far back each construction reaches. Containment allowance, Minimum width and Maximum width are all multiples of the average true range frozen at construction, so they carry across symbols and timeframes without retuning. Close allowance is how far a close must clear a boundary before it counts as outside; 0 accepts any close beyond. Return watch is how many bars a broken channel is watched for a close back inside. Most tooltips end with a concrete example of what changing that setting does.
WHAT IT WILL NOT DO
It is not a signal tool. A channel is a description of where price has already been, and a break, a retouch or a return is a description of a close that already happened. Nothing here is an entry, an exit, a target, a probability or evidence of an edge, and no channel is ranked against another. Retouches are marked, never counted.
WHAT IS DISCLOSED RATHER THAN HIDDEN
Channels appear late by design. A pivot confirms Swing length bars after it prints, and a channel is drawn only after a bar closes inside it, so a new channel first appears drawn back over earlier anchors. The Known marker shows exactly where the usable part starts: left of it is where the geometry came from, not something you could have traded.
Linear-price geometry. Boundaries are parallel in price per bar. On a logarithmic price axis they are not log-space parallels, and the script cannot detect your axis setting. Slope is per bar, so a channel keeps its slope straight across a weekend gap.
Standard time-based charts only. Renko, Kagi, Range, tick and other nonstandard charts get a corner warning and no channels.
Reconstruction can change with loaded history, session settings, data adjustments or inputs. Whether this script repaints has not been observed on a replay and is not claimed here either way; confirm it with the bar-replay tool on your own symbol and timeframe.
No request.*() calls, no higher-timeframe data, no volume. Everything is computed from the chart's own bars.
ORIGINALITY AND CREDIT
Most auto-channel scripts fit a regression line and offset it, or join two points and draw a parallel at a fixed distance. This one builds exact three-pivot geometry, validates the full span between the anchors, waits for a confirmed close inside before it calls the channel usable, marks that bar on the drawing, and follows the channel through a bounded watch after it breaks. The geometry, engine and label patterns are adapted from Auction Foundry's own Auto Trendlines, Classical Auto Chart Patterns and Zone Forge.
Open source under the Mozilla Public License 2.0. (c) Auction Foundry.
This indicator describes channel geometry built from your chart's own price history. It is not a forecast, not a signal, and not financial advice. אינדיקטור

Swing H/L + Multi TF Order BlocksFrench & english description
English
Indicator combining swing structure detection and multi-timeframe Order Blocks (OB), single-file overlay script.
Swing H/L: pivot high/low detection (ta.pivothigh/ta.pivotlow, configurable lookback length), now computed on a separate configurable timeframe (swingTF, defaults to chart TF) via request.security. Labels HH/LH (pivot highs) and LL/HL (pivot lows) plotted at the pivot bar's timestamp (xloc.bar_time), colored independently for highs/lows.
Order Blocks: detects OB formation via a rate-of-change threshold on open (sensitivity input) crossing over/under a % band. On a valid cross with a minimum bar spacing, it scans back 4-15 bars for the last opposite-color candle and uses its high/low as the OB zone. This runs independently on 4 user-configurable timeframes simultaneously (TF1-4, each with its own on/off toggle and timeframe picker), via 4 separate request.security calls, each keeping isolated per-TF state.
Box rendering: each OB is drawn as a box anchored by bar time (not bar index, so it stays aligned regardless of the TF it came from), colored by direction only (one global bullish color, one global bearish color — not per TF), with the source timeframe printed inside the box (formatted as "5M", "1H", "4H", "1D"...), text offset N bars to the right of origin (configurable), centered.
Mitigation: price returning into a zone marks it mitigated. Mitigation source (close or wick) and penetration threshold (1-100%) are both configurable and global across all 4 TFs. Mitigated OBs aren't deleted — they freeze (stop extending right) and get recolored gray (box, border, and TF text), kept visible up to the same max-count limit as active OBs (oldest gray ones drop off first).
Capacity control: maxOB input caps how many active (and separately, how many grayed-out mitigated) boxes are kept per timeframe per direction — oldest gets removed first.
Alerts: optional buy/sell alerts fire once per bar when price is inside an active bullish/bearish OB, labeled with the source timeframe.
Leftover/unused: candle-pattern description strings and a pattern user type from the original fusion are present but never referenced — dead code carried over, harmless.
Français
Indicateur combinant détection de structure swing et Order Blocks (OB) multi-timeframe, script overlay en un seul fichier.
Swing H/L : détection des pivots haut/bas (ta.pivothigh/ta.pivotlow, longueur configurable). Calculé maintenant sur une timeframe séparée configurable (swingTF, par défaut celle du chart) via request.security. Les labels HH/LH (pivots hauts) et LL/HL (pivots bas) sont placés au timestamp de la bougie pivot (xloc.bar_time), avec des couleurs indépendantes pour les hauts et les bas.
Order Blocks : détecte la formation d'un OB via un seuil de variation (rate of change) sur l'open (input sensitivity) qui croise une bande en %. Sur un croisement valide avec un espacement minimum entre bougies, l'algo cherche en arrière (4 à 15 bougies) la dernière bougie de couleur opposée et utilise son high/low comme zone d'OB. Ceci tourne indépendamment sur 4 timeframes configurables simultanément (TF1-4, chacune avec son interrupteur et son sélecteur de TF), via 4 appels request.security séparés, chacun conservant un état isolé par TF.
Affichage des box : chaque OB est dessiné comme une box ancrée sur un timestamp (pas un index de bougie, donc reste aligné quelle que soit la TF d'origine), colorée uniquement selon la direction (une couleur bullish globale, une couleur bearish globale — pas par TF), avec la timeframe source affichée dans la box (format "5M", "1H", "4H", "1D"...), texte décalé de N bougies vers la droite depuis l'origine (configurable), centré.
Mitigation : le prix qui revient dans la zone la marque comme mitigée. La source de mitigation (clôture ou mèche) et le seuil de pénétration (1-100%) sont configurables et globaux pour les 4 TF. Les OB mitigés ne sont pas supprimés — ils se figent (arrêt de l'extension à droite) et sont recolorés en gris (box, bordure et texte TF), conservés visibles jusqu'à la même limite que les OB actifs (les plus anciens gris disparaissent en premier).
Contrôle de capacité : l'input maxOB plafonne le nombre de box actives (et séparément, le nombre de box mitigées grisées) conservées par timeframe et par direction — la plus ancienne est supprimée en premier.
Alertes : alertes achat/vente optionnelles, déclenchées une fois par bougie quand le prix est dans un OB actif haussier/baissier, avec la timeframe source dans le message.
Résidus/inutilisé : les chaînes de description des patterns de bougies et un type pattern hérités de la fusion d'origine sont présents mais jamais utilisés — code mort sans impact. אינדיקטור

Smart Money Concepts [AxeAlgo]Overview
- Smart Money Concepts is a clean, non-repainting indicator designed for traders who want to identify institutional market structure without clutter.
The indicator visualizes where smart money is likely to defend, attack, and accumulate positions by displaying order blocks, fair value gaps, liquidity pools, and premium/discount dealing ranges on your chart.
What It Shows
Market Structure (CHoCH and BOS)Identifies when the market changes direction (Change of Character) and when new directional commitment breaks prior structure (Break of Structure). Each signal confirms only after a specified number of bars, ensuring no repainting.
Order BlocksHighlights the price zones where the last aggressive institutional movement originated. These are areas where smart money entered positions and often acts as support or resistance on subsequent pullbacks.
Fair Value GapsDetects imbalances between candlesticks (gaps not filled by wicks). The indicator marks these zones because institutions often return to fill them as price moves away.
Liquidity PoolsAutomatically identifies clusters of equal highs and equal lows where retail traders typically set stop losses. The indicator marks when price breaks through these pools (institutional sweeps).
Premium and DiscountDisplays whether price is trading above (premium) or below (discount) the 50% equilibrium level between the most recent swing high and low. Extreme premium or discount often precedes reversals.
How to Use It
Enable individual components using the dashboard toggles: Show Structure, Show Order Blocks, Show Fair Value Gaps, Show Liquidity Pools, Show Premium/Discount.
Turn on the dashboard to see your current swing bias, internal structure direction, and range position at a glance.
Auto-Tune automatically scales all sensitivity parameters based on your chart timeframe. Turn it off if you prefer manual tuning.
Use Simple Mode to display only swing structure without internal noise for a cleaner chart.
Key Settings
Confirmation Bars: How many bars confirm a pivot before a structure signal fires. Higher values filter out false signals but add lag. Default is 2.
Min Displacement: The minimum price movement (in ATR multiples) required for a structure signal to register. Default is 1.0 ATR.
Zone Sizing: Controls the minimum and maximum height of order blocks and FVGs. Adjust to filter noise or capture smaller opportunities.
P/D Lookback: How many bars back to scan for the swing high and low that define your premium/discount range.
Dashboard Position and Size: Choose where the info table appears and how large you want it.
Colors: Customize bullish, bearish, and gap colors to match your chart theme.
What This Indicator Is For
Smart Money Concepts is intended for traders who want to visually identify institutional order flow patterns and understand where smart money accumulates and distributes. It helps you:
Spot areas where institutions likely accumulated or distributed (order blocks and FVGs)
Recognize when price is overextended and vulnerable to reversal (premium/discount extremes)
Distinguish real structural breaks from noise during choppy consolidation
Plan entries and stops around levels where smart money defends
How It Works
The indicator uses pivot-point analysis to identify swing highs and lows, then marks the price zones where directional movement originated (order blocks). Fair value gaps are detected using standard three-candle imbalance logic. Liquidity pools are identified by clustering equal price levels within a configurable tolerance.
All signals confirm only on closed bars. Zones never repaint, but they shrink or change state as price action develops.
Limitations
The indicator shows 5 active zones at a time to keep your chart clean. If multiple institutional structures are forming simultaneously, older zones will age out. This is by design to prioritize the most recent price action.
This indicator identifies structural levels and patterns. It does not predict price direction or guaranteed support/resistance. Use it as one component of a complete trading plan, not as a standalone signal.
Fair value gaps and order blocks are useful but not infallible. Price may skip through them or reverse before reaching them.
Important Disclaimer
This indicator is for educational and analytical purposes only. It does not provide financial advice, and past performance does not guarantee future results. Trading involves risk of loss. Always use proper risk management, stop losses, and position sizing. Never risk more than you can afford to lose.
The accuracy and effectiveness of this indicator depends on your market conditions, timeframe, and trading methodology. Results vary by trader and asset class.
אינדיקטור

Moving Average Crossover Signal
Moving Average Crossover Signal
This is a customizable multi-symbol, multi-timeframe indicator that provides a compact visual signal based on the relationship between two user-defined moving averages. It is designed to function as a simple “red light” or “green light” for the current trend, allowing moving average conditions to be monitored without displaying the moving averages themselves. The signal can also track a ticker different from the active chart symbol, making it possible to monitor another market without keeping that ticker’s chart open.
The indicator calculates two independently configurable moving averages on a selected ticker and timeframe, then displays a persistent signal icon in a user-selected area of the chart. Instead of plotting historical crossover markers or moving average lines, it provides a clean at-a-glance indication of whether the configured MA condition is currently active.
Signal Logic
Two signal modes are available:
Crossover Only — the signal is active while Moving Average 1 is above Moving Average 2.
Crossover + Both MAs Sloping Up — the signal is active only while Moving Average 1 is above Moving Average 2 and both moving averages are rising over the selected slope lookback period.
The signal icon uses independently configurable colors for active, inactive, and unavailable-data conditions.
Ticker and Timeframe Selection
The signal can be calculated from a ticker that is different from the symbol currently displayed on the chart. Leaving the ticker input blank uses the active chart symbol.
A separate Signal Timeframe input allows the moving averages and signal logic to be calculated using a timeframe independent of the chart timeframe. Leaving the timeframe set to the chart interval uses the current chart timeframe.
This makes it possible, for example, to monitor a daily moving average condition while viewing an intraday chart, or to monitor one symbol's higher timeframe trend while analyzing another symbol.
Moving Average Configuration
Both moving averages can be configured independently with:
SMA
EMA
WMA
RMA
HMA
The slope-filtered mode also includes a configurable lookback period that determines whether each moving average is considered to be rising.
Signal Display
The on-chart signal is designed to remain compact and unobtrusive. Display options include:
Multiple signal icon styles
Active, inactive, and no-data colors
Automatic display of the selected ticker
Custom text that can override the ticker label
Signal icon before or after the display text
Independent icon and text sizes
Nine standard chart locations
Additional spacer rows above or below the signal for finer vertical positioning
Customizable panel background, including full transparency
The indicator does not plot the moving averages themselves, keeping the chart free of additional lines.
Alerts
A TradingView alert condition is included for the actual bullish moving average crossover event.
When Crossover + Both MAs Sloping Up is selected, the crossover must also occur while both moving averages satisfy the selected upward-slope condition.
This keeps the persistent visual signal separate from the crossover event: the icon shows the current state of the configured condition, while the alert identifies the point at which a qualifying crossover occurs.
Usage and Limitations
For the most reliable results, use a Signal Timeframe that is the same as or higher than the chart timeframe.
Lower timeframe selections may not capture every crossover that occurs between chart bars, so signals can be missed.
Higher timeframe signals may also change while that candle is still forming, so they should be considered provisional until the selected timeframe closes. אינדיקטור

TrendCloud (Tradencia Traders)TCloud — Tilson T3 Cloud with ATR Trend Line
TCloud implements the Tradencia Traders trading methodology, combining two Tilson T3 moving averages with an ATR-based Supertrend line. It overlays the price chart to help identify trend direction and show how price is positioned relative to the cloud.
This trading methodology belongs to Tradencia Traders. Indicator credits: EduWarlock — Tradencia Traders.
HOW IT WORKS
The cloud is formed by a short Tilson T3 and a long Tilson T3:
• Blue cloud: the short Tilson is above the long Tilson.
• Red cloud: the short Tilson is below or equal to the long Tilson.
Cloud colors can be customized in the settings.
CANDLE COLORS
Each candle is colored according to its closing price relative to both moving averages:
• Blue: the close is above both Tilson averages.
• Red: the close is below both Tilson averages.
• White: the close is inside the cloud or exactly on either boundary.
Candle colors are calculated independently of the cloud and ATR line colors.
ATR LINE — SUPERTREND
The line uses ATR and a multiplier to track trend direction while adapting to volatility:
• Blue line below price: an upward Supertrend state.
• Red line above price: a downward Supertrend state.
This is a price level derived from ATR, rather than the raw ATR value.
HOW TO USE IT
For a bullish reading, look for alignment between a blue cloud, blue candles, and a blue ATR line below price.
For a bearish reading, look for alignment between a red cloud, red candles, and a red ATR line above price.
White candles indicate that the closing price is within the cloud or on its boundaries. Disagreement between the cloud, candles, and ATR line may indicate a transition or a lack of directional alignment.
The ATR line can also serve as a visual reference for tracking a move and planning exits. Using it as a stop requires your own risk management rules.
SETTINGS
• Tilson Long Period: long moving average period. Default: 15.
• Tilson Short Period: short moving average period. Default: 4.
• Tilson Long Factor: long Tilson smoothing factor. Default: 0.55.
• Tilson Short Factor: short Tilson smoothing factor. Default: 0.38.
• ATR Length: ATR period used by the Supertrend. Default: 10.
• Factor: ATR multiplier. Default: 3.0.
• Mostrar Nuvem Tilson: shows or hides the cloud.
• Mostrar Linha ATR: shows or hides the Supertrend line.
Shorter moving average periods generally increase sensitivity to price changes. A larger ATR multiplier generally places the line farther from price and reduces the frequency of trend reversals.
NOTES
Values and colors can change while the current candle is forming. Wait for the candle to close when evaluating confirmed conditions.
TCloud is a visual indicator. It does not execute trades, provide backtest results, or include programmed alerts. Its components can lag behind price and change direction frequently in sideways markets. Color alignment does not guarantee trend continuation or profitable results.
Trading methodology: Tradencia Traders.
Indicator author: EduWarlock — Tradencia Traders.
Code released under the Mozilla Public License 2.0. אינדיקטור

High/Low Day + RSIHigh/Low Day + RSI
High/Low Day + RSI combines current and previous trading day extremes with a compact RSI display directly on the price chart. It provides a single view of the daily price range and momentum without requiring a separate oscillator pane.
FEATURES
• Current Day High and Low: Green and red horizontal lines track the highest and lowest prices reached during the current trading day. These levels update as the daily range expands.
• Previous Day Levels: PHD (Previous High Day) and PLD (Previous Low Day) display the previous trading day’s high and low. These levels remain fixed throughout the current day.
• On-Chart RSI: A vertical gauge appears to the right of the latest candle, showing the current RSI value and a colored diamond marker.
• Customizable Display: Show or hide the current day levels, previous day levels, and RSI independently. Choose solid, dashed, or dotted horizontal lines, customize previous day level colors, and adjust the RSI period and reference levels.
HOW THE RSI DISPLAY WORKS
RSI is calculated from closing prices on the chart’s selected timeframe, using a default period of 14.
The gauge maps the RSI scale onto the current day’s price range: RSI 0 corresponds to the daily low, and RSI 100 corresponds to the daily high. This mapping is only a visual placement method; it does not change the RSI calculation or represent a price target.
The default reference levels are 80, 50, and 20.
With the default settings, the marker colors are:
• Purple: RSI at or above 80.
• Red: RSI at or above 70 and below 80.
• Blue: RSI above 30 and below 70.
• Green: RSI above 20 and at or below 30.
• Orange: RSI at or below 20.
The outer color thresholds follow the configurable upper and lower levels. The additional 70 and 30 thresholds are fixed in the code.
HOW TO USE
1. Add the indicator to an intraday chart.
2. Use High Day and Low Day to follow the developing daily range.
3. Use PHD and PLD as reference levels when observing how price interacts with the previous trading day’s extremes.
4. Read the RSI gauge to assess momentum alongside those price levels. The middle reference defaults to 50, while the upper and lower references highlight elevated and depressed RSI readings.
5. Adjust visibility, line styles, colors, and RSI settings to suit your chart layout. Leave space to the right of the latest candle so the gauge remains visible.
CALCULATION AND BEHAVIOR
Daily levels are calculated from the bars available on the chart and reset when the script detects a new daily period. Day boundaries follow the symbol’s daily periods, rather than a custom session defined by this indicator. Chart session settings and available history can therefore affect the displayed range.
The current day’s high, low, and RSI can change while the market is active. Previous day levels are carried forward from the completed daily range tracked by the script.
The indicator is designed primarily for intraday charts. It displays the latest daily levels and current RSI gauge rather than preserving a historical set of daily lines.
This is a visual analysis indicator. It does not generate automated buy or sell signals, execute trades, include a backtesting strategy, or define alert conditions. Extreme RSI readings alone do not confirm a reversal. אינדיקטור

Edge Sweep | Ismael BorgesMy strategy is called Edge Sweep. It is based on the high and low of a configurable session range.
First, the system creates a box using the selected session time. After the box is completed, Trade 1 looks for a liquidity sweep outside either side of the box. If price sweeps above the box, the strategy enters a short position. If price sweeps below the box, it enters a long position.
If Trade 1 reaches take profit, the strategy activates Trade 2, which is another liquidity sweep at the opposite side of the box. The entry can be placed slightly inside or outside the box using a configurable tick offset.
If Trade 2 also reaches take profit, Trade 3 becomes available. Trade 3 is another sweep at the opposite side of Trade 2. Therefore, a possible sequence would be: Trade 1 short, Trade 2 long, and Trade 3 short.
The stop-loss sequence is different. If Trade 1 hits stop loss or is force-closed with a negative result, the next trade is a retest setup instead of another sweep. After that retest trade closes, the trading cycle is complete. Trade 3 is only released after two consecutive profitable sweep trades.
If no trade occurs during the regular Trade 1 window, the strategy can carry the original box into an extended trading window. During that extended window, it is allowed to execute only one trade. After that trade closes—whether by take profit, stop loss, or force close—the strategy waits for the next session and a new box.
Every trade has independent settings for entry window, entry type, contracts, tick offset, stop loss, take profit, trailing stop, buy/sell permission, and force close.
The strategy also includes an optional martingale contract progression. A stop loss or negative force close increases the number of contracts for the next trade, up to a configurable maximum. A take profit resets the progression.
It supports Sweep, Retest, and Breakout entry modes, works with different assets by using the instrument’s minimum tick size, and includes webhook compatibility for automated execution.
אינדיקטור
