Pivot Sniper Method [trade_w_samet]🎯 Pivot Sniper Method
Pivot Sniper Method is a confirmed pivot-reversal, signal-quality, session-filtering, trade-mapping, alert, and loaded-history statistics indicator designed to convert confirmed price pivots into a structured chart-review workflow.
The script is built around one central idea:
Not every confirmed pivot should be treated as an equal-quality reversal setup.
Instead of displaying every pivot as an identical signal, Pivot Sniper Method evaluates each confirmed pivot through a five-part Signal Strength model, applies the selected directional and session rules, maps a complete Entry / Stop Loss / TP1 / TP2 / TP3 structure, manages optional Break-Even behavior, and records the result through an internal R-based tracker.
When an eligible pivot is confirmed, the script can:
• Display a confirmed BUY or SELL label
• Show the calculated Signal Strength percentage directly below the direction label
• Evaluate Pivot Distance, Wick Quality, Confirmation Candle, Volume Participation, and Trend Alignment
• Apply Bullish, Bearish, or Both directional bias
• Restrict new signals to London, New York, London + New York, All Sessions, or a Custom session
• Apply an adjustable signal cooldown
• Calculate the Entry at the confirmation-candle close
• Calculate Stop Loss using ATR, Pivot Level, Pivot + ATR Buffer, or Signal Candle
• Calculate independently adjustable TP1, TP2, and TP3 targets
• Move the active Stop Loss to Break-Even after TP1 or TP2
• Add an optional favorable Break-Even tick offset
• Replace the current active tracked trade when a new eligible signal appears
• Display active Entry, Stop / Break-Even, TP1, TP2, and TP3 lines and labels
• Remove the separate Entry line and label after Break-Even becomes active
• Display compact tooltips containing signal, price, risk, target, and status information
• Track Trades, Win Rate, NET R, Average R, TP1 / TP2 / TP3 hit rates, and Break-Even results
• Display a compact premium desktop dashboard
• Display a reduced Phone Mode dashboard
• Move the dashboard to any chart corner
• Support Auto, Dark, Light, and Phone visual modes
• Support static alertcondition() events
• Support one combined “Any alert() function call” workflow
• Include symbol, timeframe, strength, Entry, Stop, targets, Stop Loss mode, Break-Even mode, and session context in dynamic alerts
The purpose of the script is to provide a transparent framework for studying confirmed pivots, setup quality, session context, predefined risk, multiple reward targets, Break-Even behavior, and bar-based historical outcomes.
It is not financial advice.
It is not an automated trading system.
It does not execute broker orders.
It does not calculate position size.
It does not guarantee that a confirmed pivot will produce a reversal.
It does not guarantee that historical Win Rate or NET R will continue in future market conditions.
It does not include spread, commission, slippage, latency, financing, taxes, partial fills, or broker-specific execution.
It does not reconstruct the exact intrabar path inside historical candles.
━━━━━━━━━━━━━━━━━━━━━━
📌 OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━
At a high level, Pivot Sniper Method performs the following sequence:
• Searches price for confirmed pivot lows and pivot highs.
• Requires the selected number of completed candles on the right side of a pivot.
• Rejects simultaneous bullish and bearish pivot confirmation on the same calculation.
• Evaluates the selected Trend Bias.
• Evaluates the selected Trading Session.
• Evaluates the signal cooldown.
• Calculates a 0–100 Signal Strength score.
• Rejects signals below the selected minimum strength when the strength filter is enabled.
• Displays a BUY or SELL label only when all active signal rules pass.
• Opens a tracked trade at the close of the confirmation candle.
• Selects a Stop Loss using the active Stop Loss Mode.
• Uses ATR as a safety fallback when a structural Stop Loss is invalid.
• Calculates TP1, TP2, and TP3 from the actual Entry-to-Stop risk distance.
• Tracks target and stop touches from the candle after entry.
• Moves the active Stop Loss to Break-Even after the selected target condition.
• Replaces an active tracked trade at the current close when a new eligible signal appears.
• Records each completed trade in R.
• Updates a compact dashboard with state, trade, performance, and quality information.
• Generates static and dynamic TradingView alert events.
The script does not use machine learning.
It does not claim to predict every market reversal.
Its dashboard is not TradingView Strategy Tester.
Its statistics are calculated internally from the script’s own confirmed-signal, OHLC-touch, replacement-exit, and Break-Even rules.
━━━━━━━━━━━━━━━━━━━━━━
🧠 CORE IDEA
━━━━━━━━━━━━━━━━━━━━━━
A pivot low identifies a price point that is lower than the selected number of candles on both sides.
A pivot high identifies a price point that is higher than the selected number of candles on both sides.
Confirmed pivots can provide useful reversal context, but a pivot alone does not answer:
• whether the setup agrees with the selected directional bias
• whether the setup occurs during the selected trading session
• whether the pivot candle contains a meaningful rejection wick
• whether price has moved sufficiently away from the confirmed pivot
• whether the confirmation candle supports the intended direction
• whether volume participation is elevated or ordinary
• whether price and the selected EMA structure support the direction
• where Stop Loss should be placed
• how the trade should be mapped in R
• when Break-Even should become active
• how a new signal should affect an existing tracked trade
• how the setup behaved under the script’s historical bar-touch rules
Pivot Sniper Method therefore treats the pivot as the first stage of a complete process rather than the final decision.
The complete workflow is:
potential pivot
→ right-side pivot confirmation
→ same-bar conflict rejection
→ directional-bias validation
→ session validation
→ cooldown validation
→ five-part quality scoring
→ minimum-strength validation
→ BUY or SELL signal
→ confirmation-candle Entry
→ Stop Loss selection
→ TP1 / TP2 / TP3 mapping
→ active-trade management
→ optional Break-Even
→ TP3, Stop, Break-Even, or replacement exit
→ internal R result
→ dashboard update
→ alert event
━━━━━━━━━━━━━━━━━━━━━━
🧩 WHY THIS IS NOT A SIMPLE PIVOT MARKER
━━━━━━━━━━━━━━━━━━━━━━
A basic pivot script can stop after placing a shape on a confirmed swing high or swing low.
Pivot Sniper Method continues beyond pivot detection.
Each eligible setup passes through a coordinated structure:
confirmed price pivot
→ 0–100 quality evaluation
→ bias and session permission
→ structured Entry
→ selectable Stop Loss model
→ independent TP1, TP2, and TP3 targets
→ optional Break-Even transition
→ live target-status updates
→ active-trade replacement logic
→ historical R accounting
→ compact statistics dashboard
→ static and dynamic alerts
The pivot module defines the confirmed reversal location.
The Signal Strength module evaluates quality.
The Trend Bias module controls permitted directions.
The Time Filter controls when new setups may be accepted.
The trade-mapping module converts the setup into explicit price levels.
The Break-Even module changes active risk only after the selected target is confirmed.
The statistics module summarizes the exact results produced by those rules.
The alert module communicates signal and trade-management events.
These modules are not unrelated indicators placed together.
They form one process for identifying, filtering, mapping, monitoring, and reviewing confirmed pivot-reversal setups.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ HOW THE SCRIPT WORKS
━━━━━━━━━━━━━━━━━━━━━━
The script runs directly on the main price chart.
It calculates confirmed price pivots using independently adjustable left-side and right-side lengths for highs and lows.
The default pivot configuration is:
• Pivot High Left Bars: 10
• Pivot High Right Bars: 10
• Pivot Low Left Bars: 10
• Pivot Low Right Bars: 10
The signal engine then combines:
• confirmed pivot status
• Bullish / Bearish / Both bias permission
• selected session permission
• Signal Strength threshold
• cooldown permission
• same-bar dual-pivot rejection
• confirmed chart-bar status
A BUY signal is based on a confirmed pivot low.
A SELL signal is based on a confirmed pivot high.
The signal label is placed on the confirmation candle, not on the original historical pivot candle.
The Entry is also stored at the close of the confirmation candle.
This separation is important:
Pivot Price
The historical swing level that became confirmed after the selected right-side bars.
Signal Candle
The later candle where the script knows the pivot exists and all active filters pass.
Entry Price
The close of that later signal-confirmation candle.
━━━━━━━━━━━━━━━━━━━━━━
🔍 PIVOT DETECTION MODEL
━━━━━━━━━━━━━━━━━━━━━━
Pivot High Left Bars determines how many candles to the left must have lower highs than a potential pivot high.
Pivot High Right Bars determines how many completed candles must form to the right before the potential pivot high is confirmed.
Pivot Low Left Bars determines how many candles to the left must have higher lows than a potential pivot low.
Pivot Low Right Bars determines how many completed candles must form to the right before the potential pivot low is confirmed.
Higher left and right values generally identify larger and less frequent swing structures.
Lower values generally identify smaller and more frequent structures.
The high and low settings are independent.
This allows users to study symmetrical configurations such as 10 / 10 for both directions, or asymmetrical configurations when market behavior requires different sensitivity for pivot highs and pivot lows.
The central pivot calculation is:
float confirmedPivotHigh = ta.pivothigh(
high,
leftHighInput,
rightHighInput
)
float confirmedPivotLow = ta.pivotlow(
low,
leftLowInput,
rightLowInput
)
bool rawBuySignal =
barstate.isconfirmed and
not na(confirmedPivotLow)
bool rawSellSignal =
barstate.isconfirmed and
not na(confirmedPivotHigh)
These functions return a confirmed pivot value only after the required right-side bars exist.
A confirmed pivot does not automatically become a signal.
It must still pass:
• same-bar conflict rejection
• Trend Bias
• Trading Session
• Signal Strength
• cooldown
━━━━━━━━━━━━━━━━━━━━━━
⏳ PIVOT CONFIRMATION AND SIGNAL TIMING
━━━━━━━━━━━━━━━━━━━━━━
This section is essential for correct interpretation.
The script uses confirmed pivot functions.
A pivot is not known on the original pivot candle.
For example, with Pivot Low Right Bars set to 10:
• the potential pivot low occurs
• ten additional candles must complete to its right
• the pivot becomes confirmed on the later calculation candle
• the BUY candidate can then be evaluated
The signal label is displayed on the later confirmation candle.
The trade Entry is stored at the close of that confirmation candle.
The script does not backdate the BUY or SELL trade label to the original pivot candle.
This means:
• the pivot price belongs to an earlier historical candle
• the signal becomes available later
• the displayed Entry reflects the later confirmation close
• increasing right-side bars increases confirmation delay
• decreasing right-side bars confirms smaller structures earlier
The script also requires barstate.isconfirmed for raw pivot candidates.
Signals are therefore based on completed chart candles.
This reduces unfinished current-candle changes, but it does not remove the inherent delay required by pivot confirmation.
━━━━━━━━━━━━━━━━━━━━━━
🟢 CONFIRMED BUY LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A BUY candidate begins when a pivot low is confirmed.
The candidate is rejected when a pivot high is also confirmed on the same calculation.
The remaining BUY candidate must satisfy:
• Trend Bias is Bullish or Both
• the selected Trading Session is active
• the BUY Signal Strength meets the minimum threshold when filtering is enabled
• the cooldown is ready
• the chart bar is confirmed
When accepted, the script displays:
▲ BUY
strength%
The strength percentage appears on the second line to keep the label compact.
The compact two-line BUY label is constructed as:
string buyLabelText =
showStrengthOnSignalInput
? "▲ BUY " + str.tostring(buySignalStrength) + "%"
: "▲ BUY"
The SELL label uses the mirrored ▼ SELL format.
The label is placed below the signal candle.
The BUY tooltip can display:
• Confirmed BUY
• Signal Strength
• Confirmed Pivot price
The tracked Entry is the signal-confirmation candle close.
The BUY Stop Loss is placed below Entry using the selected Stop Loss Mode.
TP1, TP2, and TP3 are calculated above Entry from the actual Entry-to-Stop risk distance.
━━━━━━━━━━━━━━━━━━━━━━
🔴 CONFIRMED SELL LOGIC
━━━━━━━━━━━━━━━━━━━━━━
A SELL candidate begins when a pivot high is confirmed.
The candidate is rejected when a pivot low is also confirmed on the same calculation.
The remaining SELL candidate must satisfy:
• Trend Bias is Bearish or Both
• the selected Trading Session is active
• the SELL Signal Strength meets the minimum threshold when filtering is enabled
• the cooldown is ready
• the chart bar is confirmed
When accepted, the script displays:
▼ SELL
strength%
The strength percentage appears on the second line.
The label is placed above the signal candle.
The SELL tooltip can display:
• Confirmed SELL
• Signal Strength
• Confirmed Pivot price
The tracked Entry is the signal-confirmation candle close.
The SELL Stop Loss is placed above Entry using the selected Stop Loss Mode.
TP1, TP2, and TP3 are calculated below Entry from the actual Entry-to-Stop risk distance.
━━━━━━━━━━━━━━━━━━━━━━
💪 SIGNAL STRENGTH MODEL
━━━━━━━━━━━━━━━━━━━━━━
Signal Strength is a 0–100 quality score.
The final score contains five components worth up to 20 points each:
1. Pivot Distance
2. Wick Quality
3. Confirmation Candle
4. Volume Participation
5. Trend Alignment
The score is intended to compare the internal characteristics of confirmed pivot setups under the same script rules.
It is not a probability forecast.
A 75% label does not mean there is a guaranteed 75% probability of profit.
It means the setup received 75 points out of the script’s 100-point quality model.
The Minimum Signal Strength input controls the required score.
Default:
55
When the filter is enabled:
• scores below the minimum are rejected
• scores equal to or above the minimum are eligible
• lower thresholds generally create more signals
• higher thresholds generally create fewer signals
The strength percentage can be hidden from the BUY / SELL label without disabling the strength filter.
The five component values are combined into the final score:
int buySignalStrength = int(math.round(
math.min(
buyPivotDistanceScore +
buyWickScore +
buyCandleScore +
volumeScore +
buyTrendScore,
100.0
)
))
int sellSignalStrength = int(math.round(
math.min(
sellPivotDistanceScore +
sellWickScore +
sellCandleScore +
volumeScore +
sellTrendScore,
100.0
)
))
A score is therefore the sum of five internal measurements, capped at 100.
━━━━━━━━━━━━━━━━━━━━━━
📏 PIVOT DISTANCE COMPONENT
━━━━━━━━━━━━━━━━━━━━━━
Pivot Distance evaluates how far the confirmation-candle close is from the confirmed pivot relative to ATR.
For BUY candidates, the model measures the distance from the confirmed pivot low to the current close.
For SELL candidates, it measures the distance from the current close to the confirmed pivot high.
The normalized value is capped internally.
The maximum contribution is 20 points.
This component does not claim that a larger distance is always better.
It only measures the amount of price separation used by this quality model.
━━━━━━━━━━━━━━━━━━━━━━
🕯️ WICK QUALITY COMPONENT
━━━━━━━━━━━━━━━━━━━━━━
Wick Quality evaluates the rejection wick on the original pivot candle.
For BUY candidates:
• lower wick size is compared with the full pivot-candle range
For SELL candidates:
• upper wick size is compared with the full pivot-candle range
A larger relevant wick can contribute more points, up to 20.
This component attempts to represent rejection behavior at the confirmed swing.
A large wick does not guarantee reversal continuation.
━━━━━━━━━━━━━━━━━━━━━━
📊 CONFIRMATION CANDLE COMPONENT
━━━━━━━━━━━━━━━━━━━━━━
The Confirmation Candle component evaluates the candle where the pivot becomes confirmed and the signal is processed.
The model considers:
• body size relative to the full candle range
• bullish close direction for BUY candidates
• bearish close direction for SELL candidates
The body ratio contributes most of the component score.
A directional close can add an additional internal bonus.
The maximum contribution is 20 points.
The confirmation candle is not the original pivot candle.
━━━━━━━━━━━━━━━━━━━━━━
🔊 VOLUME PARTICIPATION COMPONENT
━━━━━━━━━━━━━━━━━━━━━━
Volume Participation compares current volume with an adjustable volume average.
Default volume length:
20
Higher relative volume can contribute more points, up to 20.
The component is internally capped.
When usable volume data is unavailable, the script applies a neutral fallback contribution instead of automatically assigning zero.
Volume behavior differs across asset classes and data feeds.
For some symbols, displayed volume can represent exchange volume.
For others, it can represent tick activity or a provider-specific value.
━━━━━━━━━━━━━━━━━━━━━━
📈 TREND ALIGNMENT COMPONENT
━━━━━━━━━━━━━━━━━━━━━━
Trend Alignment uses an adjustable EMA.
Default EMA length:
50
For BUY candidates, the component evaluates:
• whether price is above the EMA
• whether the EMA is rising
For SELL candidates, it evaluates:
• whether price is below the EMA
• whether the EMA is falling
Each condition contributes part of the 20-point component.
This EMA is used as one component of Signal Strength.
It is not a separate hard directional filter.
A setup can still receive points from the other four components when Trend Alignment is weak.
━━━━━━━━━━━━━━━━━━━━━━
🧭 TREND BIAS
━━━━━━━━━━━━━━━━━━━━━━
Trend Bias controls which signal directions are permitted.
Available modes:
• Bullish
• Bearish
• Both
Bullish
Allows only confirmed BUY signals.
Bearish
Allows only confirmed SELL signals.
Both
Allows confirmed signals in both directions.
Trend Bias does not change pivot detection.
It changes which confirmed candidates are allowed to become signals and tracked trades.
The final signal gate combines pivot confirmation, directional permission, session permission, Signal Strength, and cooldown:
bool buySignal =
buyCandidate and
bullishBiasAllowed and
timeFilterPassed and
buyStrengthPassed and
cooldownReady
bool sellSignal =
sellCandidate and
bearishBiasAllowed and
timeFilterPassed and
sellStrengthPassed and
cooldownReady
Only candidates that pass every active condition become BUY or SELL signals.
━━━━━━━━━━━━━━━━━━━━━━
🕒 SESSION FILTER
━━━━━━━━━━━━━━━━━━━━━━
The Trading Session input controls when new signals can be accepted.
Available modes:
• All Sessions
• London
• New York
• London + New York
• Custom
London uses:
08:00–17:00
Europe/London time
New York uses:
09:30–16:00
America/New_York time
London + New York accepts signals during either defined session.
Custom allows the user to define a session and select:
• Exchange
• UTC
• Europe/London
• America/New_York
• Europe/Istanbul
• Asia/Tokyo
The session filter affects new entries only.
An already active tracked trade continues to be managed outside the selected session.
The dashboard displays whether the current session rule is OPEN or CLOSED.
━━━━━━━━━━━━━━━━━━━━━━
⏳ COOLDOWN AND CONFLICT HANDLING
━━━━━━━━━━━━━━━━━━━━━━
Signal Cooldown Bars defines the minimum number of completed candles required between accepted signals.
Default:
0
A value of 0 disables additional cooldown filtering.
Higher values reduce how frequently new signals can be accepted.
When a pivot high and pivot low are both confirmed on the same calculation, the script rejects both candidates.
This prevents contradictory BUY and SELL signals from being accepted on the same candle.
━━━━━━━━━━━━━━━━━━━━━━
🎯 ENTRY AND ACTIVE-TRADE REPLACEMENT MODEL
━━━━━━━━━━━━━━━━━━━━━━
The Entry is stored at the close of the accepted signal candle.
The script maintains one active tracked trade.
However, new eligible signals are not ignored while a trade is active.
When a new eligible BUY or SELL signal appears:
• the current active trade is valued at the new signal candle’s close
• its current R result is added to statistics
• its active lines and labels are removed
• the new signal opens a new tracked trade
This behavior applies to eligible same-direction and opposite-direction signals.
The replacement exit is not a broker fill.
It is an internal close-based accounting rule used to keep only one active tracked trade.
Because replacement exits can occur before TP3, Stop Loss, or Break-Even, NET R can include partial positive or negative R outcomes.
━━━━━━━━━━━━━━━━━━━━━━
🛑 STOP LOSS SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes four Stop Loss modes:
• ATR
• Pivot Level
• Pivot + ATR Buffer
• Signal Candle
ATR
BUY:
Entry − ATR × multiplier
SELL:
Entry + ATR × multiplier
Default ATR length:
14
Default ATR multiplier:
2.0
Pivot Level
BUY:
confirmed pivot low
SELL:
confirmed pivot high
Pivot + ATR Buffer
BUY:
confirmed pivot low − ATR × pivot buffer
SELL:
confirmed pivot high + ATR × pivot buffer
Default pivot buffer:
0.25 ATR
Signal Candle
BUY:
signal candle low
SELL:
signal candle high
The script validates the selected Stop Loss.
For BUY, Stop Loss must be meaningfully below Entry.
For SELL, Stop Loss must be meaningfully above Entry.
When the selected structural stop is invalid, the script uses the ATR Stop Loss as a safety fallback.
The actual risk distance is:
absolute difference between Entry and the validated Stop Loss
That distance becomes 1R for all target calculations.
The requested Stop Loss is selected from the active mode:
requestedStopPrice :=
stopLossModeInput == "ATR"
? activeEntryPrice - atrFallbackDistance
: stopLossModeInput == "Pivot Level"
? confirmedPivotLow
: stopLossModeInput == "Pivot + ATR Buffer"
? confirmedPivotLow - atrValue * pivotBufferATRInput
: low
For SELL trades, the same logic is mirrored above Entry.
The script then validates the requested structural stop.
When the selected price is not on the correct side of Entry, ATR is used as the fallback.
━━━━━━━━━━━━━━━━━━━━━━
🏆 TP1 / TP2 / TP3 SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
TP1, TP2, and TP3 are independently adjustable.
Default values:
• TP1: 1R
• TP2: 2R
• TP3: 3R
For BUY:
target = Entry + risk distance × selected R multiple
For SELL:
target = Entry − risk distance × selected R multiple
TP1 and TP2 are intermediate target events.
TP3 is the final target and closes the active tracked trade.
When TP3 is touched:
• TP1 is also recorded if it was not already recorded
• TP2 is also recorded if it was not already recorded
• TP3 is recorded
• the trade closes at the selected TP3 R value
Users should normally keep:
TP1 < TP2 < TP3
The script allows independent values, so users are responsible for maintaining a logical target sequence.
After the validated Stop Loss is stored, the script defines 1R and calculates each target:
activeRiskDistance :=
math.max(
math.abs(activeEntryPrice - activeStopPrice),
syminfo.mintick
)
activeTP1Price :=
activeTradeDirection == 1
? activeEntryPrice + activeRiskDistance * tp1RRInput
: activeEntryPrice - activeRiskDistance * tp1RRInput
activeTP2Price :=
activeTradeDirection == 1
? activeEntryPrice + activeRiskDistance * tp2RRInput
: activeEntryPrice - activeRiskDistance * tp2RRInput
activeTP3Price :=
activeTradeDirection == 1
? activeEntryPrice + activeRiskDistance * tp3RRInput
: activeEntryPrice - activeRiskDistance * tp3RRInput
The target calculations therefore remain proportional to the actual Entry-to-Stop distance.
━━━━━━━━━━━━━━━━━━━━━━
🟡 BREAK-EVEN SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
Break-Even Mode includes:
• Off
• After TP1
• After TP2
After TP1
The Stop Loss moves to Entry after the TP1-touch candle closes.
After TP2
The Stop Loss moves to Entry after the TP2-touch candle closes.
The updated Break-Even stop applies from the following candle.
An optional favorable tick offset can be added.
For BUY:
Break-Even = Entry + offset
For SELL:
Break-Even = Entry − offset
When Break-Even becomes active:
• the Stop Loss line changes to the Break-Even color
• the Stop label changes from SL to BE
• the separate Entry line is deleted
• the separate Entry label is deleted
• only the BE level remains at or near Entry
This prevents Entry and Break-Even labels from overlapping at the same price.
A Break-Even stop with zero offset produces approximately 0R.
A positive favorable offset can produce a small positive R result.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ SAME-CANDLE STOP AND TARGET HANDLING
━━━━━━━━━━━━━━━━━━━━━━
Historical OHLC candles do not reveal the exact sequence of all intrabar price movement.
A candle can include both the active Stop price and one or more target prices.
When the active Stop and a target are both touched inside the same historical candle, the script uses a conservative rule:
The active Stop receives priority.
This applies to the original Stop Loss and the active Break-Even stop.
Trade-management checks begin on the candle after Entry.
The Entry candle cannot immediately close the new tracked trade.
The conservative priority rule can produce different results from lower-timeframe reconstruction or tick-level execution data.
━━━━━━━━━━━━━━━━━━━━━━
📐 ACTIVE TRADE VISUAL SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
While a tracked trade is active, the script can display:
• Stop Loss or Break-Even line
• Entry line
• TP1 line
• TP2 line
• TP3 line
• Stop Loss or Break-Even label
• Entry label
• TP1 label
• TP2 label
• TP3 label
The lines project to the right by the selected number of bars.
Default:
20 bars
Stop and Entry use solid lines.
Targets use dashed lines.
After TP1 or TP2 is reached:
• the corresponding target label changes to a completed state
• the corresponding line becomes more transparent
After Break-Even activates:
• the Entry line and Entry label disappear
• the active Stop line and label become BE
When the trade closes or is replaced:
• active trade lines are deleted
• active trade labels are deleted
The script does not preserve completed trade lines as permanent historical drawings.
━━━━━━━━━━━━━━━━━━━━━━
🏷️ LABELS, TOOLTIPS, AND TEXT
━━━━━━━━━━━━━━━━━━━━━━
BUY and SELL labels use two lines when strength display is enabled:
direction
strength%
Available Label Size values:
• Tiny
• Small
• Normal
• Large
• Huge
The setting controls:
• BUY
• SELL
• Entry
• Stop Loss
• Break-Even
• TP1
• TP2
• TP3
Phone Mode overrides the selected label size with Tiny.
Visible chart labels use bold and italic formatting.
Signal tooltips can show:
• direction
• strength
• pivot price
Trade-level tooltips can show:
• Entry strength
• risk distance
• Stop Loss mode
• Stop or BE price
• target R value
• target price
• target status
• Break-Even tick offset
Tooltips are informational chart elements.
They do not represent broker orders.
━━━━━━━━━━━━━━━━━━━━━━
📟 COMPACT PREMIUM DASHBOARD
━━━━━━━━━━━━━━━━━━━━━━
The desktop dashboard is divided into four sections:
STATE
• symbol and timeframe
• active signal and strength
• current trade status
• session status
TRADE
• active Stop Loss mode
• Entry and Stop / Break-Even
• TP1 / TP2 / TP3 scale
• live R
PERFORMANCE
• total trades started
• closed trades
• Win Rate
• NET R
• Average R
• TP1 / TP2 / TP3 hit rates
QUALITY
• latest strength
• Trend component
• Volume component
• Wick component
• Confirmation Candle component
• Pivot Distance component
• Trend Bias
• Break-Even mode
• Minimum Strength
Quality components are displayed in a compact format:
T = Trend
V = Volume
W = Wick
C = Candle
P = Pivot Distance
The dashboard can be positioned at:
• Top Right
• Bottom Right
• Top Left
• Bottom Left
The selected input is translated into a TradingView table position:
string dashboardTablePosition =
dashboardPositionInput == "Top Right" ? position.top_right :
dashboardPositionInput == "Top Left" ? position.top_left :
dashboardPositionInput == "Bottom Left" ? position.bottom_left :
position.bottom_right
if barstate.islast
table.set_position(
statisticsTable,
dashboardTablePosition
)
━━━━━━━━━━━━━━━━━━━━━━
📊 STATISTICS METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━
The statistics are produced by the script’s internal bar-based tracker.
They are not imported from a broker.
They are not verified account results.
They are not TradingView Strategy Tester results.
Total Trades Started
Number of accepted signals that opened a tracked trade.
Total Trades Closed
Number of tracked trades closed by:
• Stop Loss
• Break-Even
• TP3
• active-trade replacement
TP1 Hit Rate
TP1 touches divided by Total Trades Started.
TP2 Hit Rate
TP2 touches divided by Total Trades Started.
TP3 Hit Rate
TP3 touches divided by Total Trades Started.
NET R
Sum of all recorded closed-trade R outcomes.
Average R
NET R divided by Total Trades Closed.
Win Rate
Positive-R trades divided by positive-R plus negative-R trades.
Exact 0R Break-Even results are excluded from the Win Rate denominator.
A favorable Break-Even offset can produce a small positive R result and can therefore be classified as a positive-R trade.
Replacement exits use the close of the new signal candle and can contribute partial R.
Statistics depend on:
• loaded chart history
• symbol
• timeframe
• exchange or broker feed
• left and right pivot settings
• Trend Bias
• session setting
• cooldown
• strength threshold
• EMA and volume lengths
• ATR settings
• Stop Loss mode
• target settings
• Break-Even settings
• replacement-signal sequence
Changing any of these inputs can change historical results.
━━━━━━━━━━━━━━━━━━━━━━
🎨 THEME SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes:
• Auto
• Dark Mode
• Light Mode
• Phone Mode
Auto
Detects the chart background and selects the corresponding light or dark visual palette.
Dark Mode
Uses:
• darker green and red signal colors
• dark dashboard surfaces
• white chart-label text
• dark Entry color
• muted dashboard text
• red brand header
Light Mode
Uses:
• brighter green and red signal colors
• light dashboard surfaces
• dark BUY text where required
• adjusted Entry and dashboard colors
• red brand header
Theme selection changes presentation.
It does not change pivot detection, Signal Strength, trade levels, statistics, or alerts.
━━━━━━━━━━━━━━━━━━━━━━
📱 PHONE MODE
━━━━━━━━━━━━━━━━━━━━━━
Phone Mode is designed for smaller chart areas.
It uses:
• Tiny signal labels
• Tiny active-trade labels
• one-pixel trade-level lines
• dark visual palette
• compact dashboard text
• reduced dashboard rows
The Phone Mode dashboard displays:
• Signal and Strength
• Status
• Win Rate and NET R
• Session
The compact layout intentionally removes most desktop details.
Phone Mode changes presentation only.
It does not change calculations.
━━━━━━━━━━━━━━━━━━━━━━
🚨 ALERT SYSTEM
━━━━━━━━━━━━━━━━━━━━━━
The script includes static TradingView alert conditions for:
• Confirmed BUY
• Confirmed SELL
• Stop Loss Hit
• Break-Even Activated
• Break-Even Hit
• TP1 Hit
• TP2 Hit
• TP3 Hit
Static BUY and SELL messages can include:
• exchange
• ticker
• timeframe
• Signal Strength
• Entry
• Stop
• TP1
• TP2
• TP3
The script also includes dynamic alert() events for:
• BUY signal
• SELL signal
• Stop Loss hit
• Break-Even activation
• Break-Even hit
• TP1 hit
• TP2 hit
• TP3 hit
Dynamic signal messages can include:
• trade_w_samet identifier
• event type
• direction
• symbol
• timeframe
• Signal Strength
• Entry
• Stop
• TP1
• TP2
• TP3
• Stop Loss Mode
• Break-Even Mode
• Trading Session
• session OPEN / CLOSED state
Dynamic trade-management messages preserve the active trade’s stored values before the trade state is reset.
Alert events use once-per-bar-close frequency.
A dynamic signal message is assembled from the stored trade values:
string buyEntryAlertMessage =
"trade_w_samet | Pivot Sniper Method" +
" Event: BUY SIGNAL" +
" Direction: BUY" +
" Symbol: " + syminfo.tickerid +
" Timeframe: " + timeframe.period +
" Strength: " + str.tostring(buySignalStrength) + "%" +
" Entry: " + str.tostring(activeEntryPrice, format.mintick) +
" SL: " + str.tostring(activeStopPrice, format.mintick) +
" TP1: " + str.tostring(activeTP1Price, format.mintick) +
" TP2: " + str.tostring(activeTP2Price, format.mintick) +
" TP3: " + str.tostring(activeTP3Price, format.mintick)
alert(
message=buyEntryAlertMessage,
freq=alert.freq_once_per_bar_close
)
The complete live message also includes Stop Loss Mode, Break-Even Mode, and session context.
Alerts are monitoring tools.
They do not execute or modify broker orders.
━━━━━━━━━━━━━━━━━━━━━━
🔔 HOW TO USE ALERTS
━━━━━━━━━━━━━━━━━━━━━━
For a specific static event:
1. Add Pivot Sniper Method to the chart.
2. Open TradingView’s Create Alert window.
3. Select the indicator as the condition.
4. Select the required BUY, SELL, Stop, Break-Even, TP1, TP2, or TP3 event.
5. Select the notification method.
6. Test the alert before relying on it.
For one combined dynamic workflow:
1. Add the indicator to the chart.
2. Open Create Alert.
3. Select Pivot Sniper Method .
4. Select Any alert() function call.
5. Configure the delivery method.
6. Test signal and trade-management messages.
TradingView saves a snapshot of the script, its inputs, and chart context when an alert is created.
After materially changing the script, symbol, timeframe, or inputs, delete and recreate the alert so it uses the intended configuration.
━━━━━━━━━━━━━━━━━━━━━━
🧪 PRACTICAL WORKFLOW
━━━━━━━━━━━━━━━━━━━━━━
A practical review process:
1. Add Pivot Sniper Method to a standard candlestick chart.
2. Select Auto, Dark, Light, or Phone Mode.
3. Start with symmetrical pivot settings.
4. Observe how right-side bars affect confirmation delay.
5. Select Both Trend Bias when studying raw signal behavior.
6. Select Bullish or Bearish when reviewing one direction only.
7. Begin with All Sessions when studying general behavior.
8. Test London, New York, or Custom session filtering.
9. Begin with the default Minimum Signal Strength.
10. Compare signal frequency at higher and lower thresholds.
11. Review the strength percentage below each BUY or SELL label.
12. Use the tooltip to inspect the confirmed pivot price.
13. Compare the five quality components in the dashboard.
14. Select the preferred Stop Loss Mode.
15. Verify that the structural stop is logically positioned.
16. Review the ATR fallback behavior.
17. Set TP1, TP2, and TP3 in increasing order.
18. Select the Break-Even rule.
19. Review when the Entry label disappears and BE replaces it.
20. Observe how new eligible signals replace an active tracked trade.
21. Review Live R and historical NET R.
22. Review failed setups as well as successful setups.
23. Create and test alerts.
24. Define personal position size independently.
25. Account for spread, commission, liquidity, news, and execution conditions.
The indicator is designed for structured study and monitoring.
It should not be treated as an automatic decision-maker.
━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━
📈 Trend Bias
Trend Bias
• Bullish
• Bearish
• Both
━━━━━━━━━━━━━━━━━━━━━━
⚙️ Pivot Settings
Pivot High Left Bars
Default:
10
Pivot High Right Bars
Default:
10
Pivot Low Left Bars
Default:
10
Pivot Low Right Bars
Default:
10
━━━━━━━━━━━━━━━━━━━━━━
🚨 Signal Settings
Show BUY / SELL Signals
Shows or hides signal labels.
Signal Cooldown Bars
Default:
0
━━━━━━━━━━━━━━━━━━━━━━
🕒 Time Filter
Trading Session
• All Sessions
• London
• New York
• London + New York
• Custom
Custom Session
Default:
08:00–17:00
Custom Session Time Zone
• Exchange
• UTC
• Europe/London
• America/New_York
• Europe/Istanbul
• Asia/Tokyo
━━━━━━━━━━━━━━━━━━━━━━
💪 Signal Strength
Enable Signal Strength Filter
Default:
On
Minimum Signal Strength
Default:
55
Show Strength on Signal
Default:
On
Strength Trend Length
Default:
50
Strength Volume Length
Default:
20
━━━━━━━━━━━━━━━━━━━━━━
📦 Trade Levels
Show Active Trade Levels
Default:
On
Stop Loss Mode
• ATR
• Pivot Level
• Pivot + ATR Buffer
• Signal Candle
ATR Length
Default:
14
Stop Loss ATR Multiplier
Default:
2.0
Pivot ATR Buffer
Default:
0.25
TP1 Risk / Reward
Default:
1.0R
TP2 Risk / Reward
Default:
2.0R
TP3 Risk / Reward
Default:
3.0R
Level Projection Bars
Default:
20
━━━━━━━━━━━━━━━━━━━━━━
🟡 Break-Even
Break-Even Mode
• Off
• After TP1
• After TP2
Default:
After TP1
Break-Even Offset Ticks
Default:
0
━━━━━━━━━━━━━━━━━━━━━━
📊 Statistics Dashboard
Show Statistics Dashboard
Default:
On
Dashboard Position
• Top Right
• Bottom Right
• Top Left
• Bottom Left
━━━━━━━━━━━━━━━━━━━━━━
🎨 Visual Settings
Theme Mode
• Auto
• Dark Mode
• Light Mode
• Phone Mode
Label Size
• Tiny
• Small
• Normal
• Large
• Huge
Phone Mode always uses Tiny.
━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Settings
Enable BUY Alerts
Default:
On
Enable SELL Alerts
Default:
On
Enable Dynamic Alerts
Default:
On
All public input values are hidden from TradingView’s status line to reduce chart-header clutter.
━━━━━━━━━━━━━━━━━━━━━━
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
━━━━━━━━━━━━━━━━━━━━━━
Pivots, ATR, EMA, volume comparison, session filters, risk/reward levels, Break-Even, alerts, and performance statistics are established technical-analysis concepts.
These concepts are not unique by themselves.
The originality of Pivot Sniper Method lies in the coordinated implementation applied to them:
confirmed high and low pivots
→ same-bar directional-conflict rejection
→ Bullish / Bearish / Both permission
→ session filtering
→ cooldown
→ five-part 0–100 quality model
→ minimum-quality acceptance
→ compact two-line BUY / SELL labels
→ confirmation-close Entry
→ four selectable Stop Loss models
→ ATR structural-stop validation fallback
→ independently adjustable TP1 / TP2 / TP3
→ target-state visual updates
→ TP1- or TP2-based Break-Even
→ Entry-to-BE visual replacement
→ active-trade replacement at current close
→ internal partial-R accounting
→ desktop and Phone dashboards
→ theme-aware colors
→ dashboard-corner selection
→ detailed static and dynamic alerts
Distinctive implementation features include:
• using five quality dimensions inside one pivot-reversal workflow
• separating pivot confirmation from Entry timing
• using the original pivot candle for wick quality
• using the later confirmation candle for candle quality and Entry
• applying session control only to new entries
• supporting four Stop Loss construction methods
• validating structural stops and falling back to ATR when required
• removing the Entry visual after Break-Even replaces it
• tracking replacement exits in R
• showing latest quality components in a compact dashboard
• supporting both individual events and one combined dynamic-alert workflow
The script is not a collection of unrelated indicators.
Every component supports the same objective: evaluating and managing a confirmed pivot-reversal setup under explicit, reviewable rules.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT PRACTICAL NOTES
━━━━━━━━━━━━━━━━━━━━━━
Signal frequency depends on:
• symbol
• timeframe
• data provider
• pivot left and right settings
• Trend Bias
• selected session
• cooldown
• minimum strength
• EMA length
• volume length
• ATR availability
• historical data availability
Higher right-side pivot values increase confirmation delay.
Higher strength thresholds reduce accepted signals.
Session filtering can remove otherwise valid setups.
The strength score is not a probability forecast.
The Trend component is part of the score, not a separate hard trend filter.
The script replaces an active tracked trade when a new eligible signal appears.
The script does not retain completed trade lines historically.
Dashboard statistics use loaded chart history only.
Different exchanges, brokers, and data feeds can produce different:
• highs
• lows
• closes
• pivots
• wick measurements
• volume values
• ATR values
• EMA values
• signals
• stop levels
• target levels
• replacement exits
• historical statistics
Changing available history can change the first eligible setup and later active-trade sequencing.
━━━━━━━━━━━━━━━━━━━━━━
⚠️ LIMITATIONS AND SHORTCOMINGS
━━━━━━━━━━━━━━━━━━━━━━
This script has important limitations.
It does not guarantee profitable trades.
It does not predict future price movement with certainty.
It does not execute orders.
It does not place broker Stop Loss orders.
It does not place broker Take Profit orders.
It does not calculate position size.
It does not calculate account risk.
It does not include spread.
It does not include commission.
It does not include slippage.
It does not include latency.
It does not include swap or financing.
It does not include taxes.
It does not model partial fills.
It does not model order rejection.
It does not model contract specifications.
It does not model tick-by-tick execution.
It uses historical OHLC bars.
It cannot always determine whether Stop or target occurred first inside one candle.
It resolves same-candle ambiguity in favor of the active Stop.
It begins trade-management checks on the candle after Entry.
It requires right-side pivot confirmation.
It cannot identify a confirmed pivot on the original pivot candle.
It can react with delay when larger right-side values are used.
It rejects simultaneous high and low pivot confirmation.
It can reject setups through bias, session, strength, or cooldown rules.
It replaces an active tracked trade when a new eligible signal appears.
A replacement exit can close a trade before its mapped Stop or TP3.
Its Signal Strength is an internal score, not a probability.
Its volume component depends on available volume data.
Its dashboard is not Strategy Tester.
Its statistics are not audited.
Its Win Rate excludes exact 0R Break-Even results.
A positive Break-Even offset can classify a BE hit as positive R.
Its target hit rates use total trades started.
Its statistics depend on loaded chart history.
Changing settings recalculates historical behavior.
Alerts depend on TradingView and user configuration.
Alerts do not guarantee broker execution.
━━━━━━━━━━━━━━━━━━━━━━
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
━━━━━━━━━━━━━━━━━━━━━━
This script may be useful for traders who:
• understand pivot confirmation
• want BUY and SELL signals based on confirmed price pivots
• prefer a quality score instead of equal treatment for every pivot
• want separate Bullish and Bearish direction controls
• want London, New York, or Custom session filtering
• want selectable ATR or structural stops
• want independently adjustable R targets
• want TP1- or TP2-based Break-Even
• want active trade levels on the chart
• want compact tooltips
• want loaded-history R statistics
• want a compact desktop dashboard
• want a reduced Phone Mode
• want detailed TradingView alerts
• understand that historical chart results are not verified execution
It may be less suitable for users who:
• want signals on the original unconfirmed pivot candle
• want no pivot delay
• want tick-level backtesting
• want multiple simultaneous tracked trades
• want new signals ignored while a trade is active
• want historical completed-trade lines preserved
• want automatic broker execution
• want position sizing
• want commission and slippage modeling
• want guaranteed reversal signals
• interpret Signal Strength as win probability
• expect historical Win Rate to continue unchanged
━━━━━━━━━━━━━━━━━━━━━━
🧭 BEST-PRACTICE SUGGESTIONS
━━━━━━━━━━━━━━━━━━━━━━
For studying pivot sensitivity:
• begin with equal high and low pivot settings
• compare smaller and larger left / right values
• remember that right-side values directly affect delay
For studying raw signal behavior:
• use Both Trend Bias
• use All Sessions
• use a moderate minimum strength
• review every accepted BUY and SELL
For directional study:
• use Bullish or Bearish
• compare results separately
• do not assume one direction will remain superior
For session-based review:
• compare All Sessions with London or New York
• use the exchange’s actual liquidity characteristics
• remember that active trades remain managed outside the session
For Signal Strength:
• begin with 55
• compare frequency at 45, 55, and 65
• review the five components
• do not interpret the percentage as guaranteed probability
For risk mapping:
• begin with ATR 14 and 2.0 multiplier
• compare ATR with Pivot Level
• compare Pivot Level with Pivot + ATR Buffer
• maintain logical TP1 < TP2 < TP3 values
For Break-Even:
• compare Off with After TP1
• test After TP2 for wider trade development
• keep the tick offset realistic for the instrument
For chart clarity:
• use Auto for general use
• use Dark or Light when manual control is preferred
• use Phone Mode on smaller screens
• move the dashboard away from important price action
• adjust label size according to chart density
Always:
• wait for confirmed signals
• review broader market structure
• review liquidity and volatility
• review news risk
• define personal account risk
• calculate position size independently
• test the exact symbol, timeframe, and data feed
• inspect failed trades as well as successful trades
• recreate alerts after important configuration changes
━━━━━━━━━━━━━━━━━━━━━━
🔓 PUBLICATION NOTE
━━━━━━━━━━━━━━━━━━━━━━
Pivot Sniper Method is published as an educational pivot-confirmation, signal-quality, session-filtering, risk-mapping, Break-Even, statistics, and alert tool.
The purpose of this description is to explain:
• how pivots are confirmed
• why signals appear after the original pivot
• how BUY and SELL candidates are formed
• how simultaneous pivot conflicts are rejected
• how Trend Bias affects eligibility
• how session filtering affects new entries
• how cooldown affects frequency
• how the five Signal Strength components work
• why Signal Strength is not a probability
• how Entry is defined
• how each Stop Loss Mode works
• how invalid structural stops fall back to ATR
• how TP1, TP2, and TP3 are calculated
• how Break-Even activates
• why Entry disappears after BE becomes active
• how same-candle Stop / target ambiguity is handled
• how active trades are replaced by new eligible signals
• how internal R statistics are calculated
• what the dashboard displays
• how Phone Mode differs
• what alerts include
• what the script does not simulate
• why historical results can change
The script is designed to support structured review.
It does not promise profitable results.
It does not remove market risk.
It does not replace independent analysis.
It does not replace personal risk management.
━━━━━━━━━━━━━━━━━━━━━━
🕒 REPAINTING, BACKPLOTTING, AND TIMING DISCLOSURE
━━━━━━━━━━━━━━━━━━━━━━
Pivot Sniper Method uses confirmed price pivots.
Pivot confirmation requires future candles relative to the original pivot location.
The number of required right-side candles is controlled independently for pivot highs and pivot lows.
The script does not know that a pivot exists on the original pivot candle.
After the required right-side candles complete:
• the pivot becomes confirmed
• the candidate is evaluated
• Signal Strength is calculated
• filters are applied
• the BUY or SELL label can appear on the confirmation candle
• the tracked Entry can open at the confirmation-candle close
The BUY or SELL trade label is not plotted back on the original pivot candle.
The Entry is not backdated.
Signals require confirmed chart bars.
This reduces unfinished current-bar variation.
It does not remove:
• pivot confirmation delay
• differences between historical OHLC and tick sequence
• data-feed differences
• changes caused by settings
• changes caused by loaded history
• market risk
Historical results can change when:
• pivot settings change
• Trend Bias changes
• session settings change
• cooldown changes
• strength settings change
• ATR settings change
• Stop Loss Mode changes
• target settings change
• Break-Even settings change
• symbol changes
• timeframe changes
• exchange or broker feed changes
• available chart history changes
Users should interpret the original pivot price as historical structure and the later BUY / SELL candle as the actual confirmed signal timing.
━━━━━━━━━━━━━━━━━━━━━━
🛡️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━
Pivot Sniper Method is provided for educational and informational purposes only.
It does not constitute financial, investment, trading, legal, accounting, or tax advice.
No indicator can guarantee future results.
Markets are uncertain.
Price structure changes.
Volatility changes.
Liquidity changes.
Volume behavior changes.
Session behavior changes.
Historical chart behavior does not ensure future performance.
Every user is responsible for their own:
• analysis
• validation
• symbol selection
• timeframe selection
• pivot settings
• directional bias
• session selection
• quality threshold
• Stop Loss selection
• target planning
• Break-Even selection
• position sizing
• risk management
• alert configuration
• trading decisions
• broker execution
• legal obligations
• tax obligations
The pivots, BUY labels, SELL labels, Signal Strength values, Entry levels, Stop Loss levels, Break-Even levels, TP1 levels, TP2 levels, TP3 levels, active lines, labels, tooltips, dashboard values, Win Rate, NET R, Average R, target hit rates, and alerts are visual analysis tools only.
A confirmed pivot is not a guaranteed reversal.
A high Signal Strength value is not a guaranteed winning trade.
A TP label is not proof of an actual broker fill.
A Stop Loss event is not proof of an actual broker fill.
The dashboard is not verified account performance.
The statistics are not audited.
The script does not include spread, commission, slippage, latency, financing, taxes, partial fills, order rejection, position sizing, account equity, or broker-specific execution.
Use the script as a structured pivot-reversal review, trade-mapping, and monitoring framework—not as a promise of profitability or a substitute for independent judgment.
אינדיקטור

Probabilistic ProjectionMost projection tools extend the recent trend or calculate a single average return. Probabilistic Projection uses a more comprehensive approach: it examines the full range of returns that followed comparable historical conditions.
The method can be understood through one question:
When this market had a similar trend and level of volatility in the past, what happened over the following 6 months, 1 year or 2 years?
The indicator collects these historical forward returns, builds a complete probability distribution, and displays:
• The median historical outcome
• A configurable central range of outcomes
• The quality of the available sample
Similar historical conditions receive additional weight, but they are never allowed to dominate the model. At least 65% of the calculation always comes from the complete historical distribution.
This balance is important. Using only a few similar periods can produce unstable conclusions, while using only a long-term average ignores the current market environment. Probabilistic Projection combines both sources of information while automatically reducing the influence of unreliable samples.
WHY THIS APPROACH IS ROBUST
The model is designed to reduce several common sources of error:
• It evaluates a distribution of outcomes instead of producing one deterministic target.
• It uses confirmed daily data rather than incomplete higher-timeframe values.
• It remains independent of the chart timeframe.
• It limits the influence of trend and volatility conditioning.
• It gives less weight to conditional information when the sample is insufficient.
• It pulls unstable estimates back toward the global historical median.
• It widens the projection range when data quality is lower.
• It distinguishes sample quality from prediction accuracy.
• It uses standard market prices, including on non-standard charts.
A one-year projection therefore remains approximately one year whether the indicator is viewed on a 5-minute, daily or weekly chart.
HOW THE DISTRIBUTION IS BUILT
Three projection horizons are available:
• 6 months: 126 trading days
• 1 year: 252 trading days
• 2 years: 504 trading days
For each monthly projection step, the script measures what the market actually returned over the same forward horizon at different points in its history.
Historical sample endpoints are separated by approximately 21 trading days. The script can use up to 225 observations at each step, depending on the available history.
The final distribution combines three components:
1. Complete historical distribution
Every valid observation contributes to the baseline. This ensures that the model retains information from different market environments, including periods that do not resemble the current one.
2. Trend context
The latest confirmed daily close is compared with a 202-day simple moving average.
Historical observations that began in the same broad trend state can receive additional weight. Trend conditioning cannot contribute more than 12% of the total calculation.
3. Volatility context
The model calculates realized volatility from 21-day daily returns and ranks it over approximately three years.
Historical periods with a similar volatility rank can also receive additional weight. Volatility conditioning cannot contribute more than 28%.
The combined conditional contribution is capped at 35%. The complete historical distribution always retains at least 65% of the total weight.
If too few comparable observations are available, the corresponding trend or volatility weight is automatically reduced or disabled.
READING THE PROJECTION
Solid central line
The solid line represents the median of the reliability-adjusted distribution.
Because expected returns are less stable than return dispersion, the conditioned median is partially pulled back toward the global historical median. This limits the influence of temporary or poorly represented market conditions.
Dashed boundaries
The dashed lines represent a configurable central range:
• 60%: P20 to P80
• 70%: P15 to P85 (default)
• 80%: P10 to P90
The 60% setting focuses on more central outcomes. The 80% setting includes a broader range of historical scenarios.
When data quality is lower, the distance between the median and the boundaries is expanded. The projection becomes more cautious rather than displaying the same apparent precision with a weaker sample.
Shaded range
The optional shaded area makes the distribution easier to read. It represents a percentile-derived range of historical scenarios, not a confidence interval or guaranteed future coverage.
Each point is calculated from the return distribution corresponding to its own horizon. The connected lines help visualize how the median and dispersion evolve over time; they are not individual simulated market paths.
INFORMATION PANEL
Annualized median projection
The median return at the selected terminal horizon is converted into an annualized percentage. This makes the six-month, one-year and two-year projections easier to compare.
It describes the center of the modeled historical distribution. It is not an expected return or a performance promise.
Data quality
The data-quality score evaluates whether enough historical information is available. It considers:
• The number of valid observations
• The overlap between long-horizon observations
• An estimate of the effective independent sample size
• The minimum sample required to display the projection
This score measures the strength of the historical sample, not the probability that the projection will be correct.
CONFIRMED DATA AND LIVE PRICES
The statistical model uses completed daily observations. The optional regime channel also uses confirmed source-timeframe values.
The projected returns are rescaled to the live standard-market close. The displayed price levels can therefore move while the current chart bar is open, but the underlying historical distribution remains based on confirmed data.
On Heikin Ashi and other non-standard charts, the model uses the standard instrument rather than synthetic candle prices.
OPTIONAL REGIME CHANNEL
The optional regime channel provides separate higher-timeframe context and does not alter the probabilistic projection.
It evaluates:
• Price relative to fast and slow moving averages
• Momentum
• Direction of the slow moving average
• Percentage distance from the slow average
• ATR-based expansion
Its boundaries use the larger of a minimum percentage distance or an ATR-based distance. Optional smoothing changes only the visual transition between confirmed levels.
INTENDED USE
Probabilistic Projection is designed primarily for medium- and long-term analysis of broad equity indices.
It can help users:
• See the range of outcomes that historically followed comparable conditions
• Compare potential upside and downside asymmetry
• Understand how uncertainty expands with the projection horizon
• Identify when the historical evidence is limited
• Add a statistical framework to portfolio and risk decisions
No historical method can know the future. Market distributions change, long-horizon samples overlap, and unprecedented events cannot be represented.
Probabilistic Projection is a descriptive probability model, not a price target, trading signal or standalone trading system.
אינדיקטור

Session Liquidity Architecture [MQLSoftware]Session Liquidity Architecture reads the trading day as a repeating structure of sessions — and instead of restating fixed session folklore, it measures how the instrument on your chart actually behaves inside that structure.
Most session tools draw boxes and stop there. This indicator adds three algorithmic elements on top of the session-box base, and every number it prints is derived from the chart's own history.
Key Features
Self-calibrating session range model — every completed session range is ranked as a percentile of that session's own trailing distribution. The active session shows a live read: current range, % of its median, and the percentile it has already reached. No pip or point thresholds, no magic numbers — the model adapts to any symbol and timeframe by construction.
Session liquidity state machine — each session's High and Low arm at session close and are then tracked through explicit states: armed → swept → rejected or accepted. A sweep is only registered on a confirmed bar; the rejection read compares the sweep bar's close against the level. Levels that survive until the next same-session open are marked expired.
Measured base rates — the panel reports observed frequencies from the loaded history: how often London actually sweeps the Asia High or Low on this chart, how often New York sweeps the London extremes, and how often price closes back inside after each sweep. These are counted events with the sample size shown (n), not assumptions — and below a minimum sample the panel says "collecting" instead of quoting a percentage.
Three configurable sessions (Asia, London, New York) with per-session IANA timezones, so daylight-saving shifts are handled automatically.
Previous Day High / Low tracked through the same armed → swept state machine.
Day separators, per-session colors, and a compact statistics panel.
Core Concept — what is original here
Session boxes are common. The original contribution of this script is that it treats the session map as a measurement problem :
1. Percentile-ranked session ranges. A "big" or "quiet" session is only meaningful relative to that session's own recent distribution. Ranking the live range against the last N completed ranges of the same session produces a self-calibrating expansion read that works identically on FX majors, indices, or crypto — without any instrument-specific settings.
2. A liquidity state machine instead of static lines. Session extremes are treated as objects with a lifecycle (armed, swept, rejected/accepted, expired). Because state transitions happen only on confirmed bars, the sweep history you see on the chart is exactly the history the statistics are built from.
3. Base rates instead of narratives. The common claims about session behavior ("London takes out the Asia range", "the sweep reverses") become testable numbers here. A counted event is strictly defined: a sweep is the first confirmed-bar break of an armed level while the later session is active, and it counts as "rejected" when the sweep bar closes back inside the level. On some instruments the measured frequencies are strongly asymmetric; on others (for example 24/7 crypto) they hover near a coin flip — and the panel will honestly show you that. The point is to replace assumption with measurement on the exact chart you trade.
Anatomy of the Display
Session boxes — one box per session per day, labelled with the session name; completed boxes append the final range and its percentile (e.g. "LONDON 0.00421 · P63").
Level lines — each session's High/Low extends right from the moment it arms at session close. A red ✕ mark shows where it was swept. Untouched levels turn dotted when they expire at the next same-session open.
PDH / PDL — dashed lines for the previous day's extremes, same sweep marking.
Statistics panel — one row per session (live or last range + percentile, and the state of its levels; states shown during a live session are prefixed "prev" because they belong to the previous cycle), followed by the measured base-rate block with sample sizes.
Notes on Repainting
Sweep events, rejection reads, base-rate counters and all alerts fire on confirmed bars only and do not repaint.
Session boxes, the live range and the live percentile update intrabar while a session is open — they are visual context for the current session, not signals.
No security() calls, no lookahead: everything is computed from the chart's own bars.
Boxes and level lines are drawing objects anchored to past bars by design (a session box spans its session, a level line starts at the bar of the extreme). This affects only how history is displayed, never the event logic.
Typical Analysis Workflow
Check the panel: how much of its typical range has the active session already used? A session at 40% of median is quiet by its own history; one at P90 has already been unusually wide for that session. These numbers describe the distribution so far — they do not predict what the next bar will do.
Watch the armed levels from the prior session and the previous day: they are the objective reference points the state machine is tracking.
When a sweep prints, read the rejection/acceptance tag and compare it with the measured base rate for that exact scenario on this chart.
Configuration
Session hours and timezone per session (defaults: Tokyo 09:00–18:00 JST, London 08:00–17:00 UK, New York 09:30–16:00 ET). Futures/FX traders can widen them or repurpose a slot as a killzone.
Rendering depth, box transparency, day separators, PDH/PDL on/off.
Sweep marks: Minimal (small ✕ text) or Pill, and how many days of marks to keep.
Stats lookback (sessions) for the percentile model; panel position and text size.
Markets and Timeframes
Intraday timeframes only (the script tells you if the chart is not intraday). Best readability from 5m to 1h. Works on FX, indices, futures, stocks and crypto — on 24/7 markets the session definitions matter more than the defaults, so adjust the hours to your venue.
Alerts
Liquidity swept — any session extreme or PDH/PDL taken (confirmed bar). The alert() message names the exact level and outcome, e.g. "EURUSD 60 — liquidity swept: ASIA H (rejected)".
Session range expansion — the active session crossed the 80th percentile of its own history.
Session opened.
This is a visual analytical tool for chart reading and session-structure context. It does not generate buy/sell signals, does not execute trades, and does not provide financial advice. אינדיקטור

Ultimate Deep Fibonacci & Institutional Chart Matrix ProUltimate Deep Fibonacci and Institutional Chart Matrix Pro
Overview
The Ultimate Deep Fibonacci and Institutional Chart Matrix Pro is a comprehensive visual framework designed for Pine Script v6. It combines Smart Money Concepts, dynamic support and resistance zones, session liquidity levels, and structural Fibonacci pricing into a unified chart layout.
This tool maps market structure transitions, identifies key institutional high and low swing levels, tracks Asian session ranges, and visualizes overall price flow through a custom smooth wave with integrated volume price background fill.
Core Features
Natural Price Wave and Shadow Fill
Maps underlying market momentum using a smoothed wave calculation.
Dynamically fills the space between the current close price and the wave line to visualize expanding or contracting momentum.
Color coded green for bullish conditions and red for bearish conditions.
Deep Institutional Fibonacci Matrix
Plots critical institutional Fibonacci levels based on recent market swings:
0.50 Equilibrium (EQ): The midpoint balance level.
0.618 Golden Zone: A primary level for premium or discount interest.
0.786 Deep Discount: A deep structural reversal or continuation level.
Dynamic Support and Resistance Zones
Automatically draws extended resistance and support boxes using dynamic pivot points and Average True Range buffering.
Labels automatically project forward on the chart without obscuring live price action.
Major ITH and ITL Badges
Identifies significant Intermediate Term Highs (ITH, colored Red) and Intermediate Term Lows (ITL, colored Green).
Configurable lookback parameters filter out minor noise, focusing solely on major swing structural points.
Smart Money Concepts Structure
Detects and plots structural breaks:
BOS (Break of Structure): Signals trend continuation.
CHoCH (Change of Character): Signals potential market trend shifts.
Asian Session Liquidity Tracking
Tracks the high and low levels established during the Asian trading session.
Plots dotted projection lines until price breaks or sweeps these liquidity levels.
Dynamic Projection Arrow and Low Resistance Liquidity
Projects short term expected direction using Average True Range volatility metrics.
Highlights major liquidity pools based on key high and low boundaries.
On Screen Live Dashboard
Displays real time market stats in the top right corner, including Market Flow, Golden Zone values, Asian Session status, Volatility, and Market Structure Alignment.
Settings Breakdown
Price Wave and Shadow Settings
Show Natural Price Wave and Fill Shadow: Enables or disables the wave line and its background fill.
Wave Sensitivity: Adjusts the lookback period for the wave calculation (Default: 20).
Shadow Transparency (0-100): Controls the background fill opacity.
Deep Fibonacci Matrix
Show Deep Institutional Fib: Enables or disables structural Fibonacci lines.
Fib Swing Lookback: Determines the number of bars evaluated for top and bottom Fibonacci anchors (Default: 40).
Dynamic Support and Resistance Box Zones
Show Dynamic Box S/R Zones: Toggles support and resistance box zones.
S/R Sensitivity: Controls the pivot detection length for drawing zones (Default: 20).
Major ITH and ITL Settings
Show Major ITH and ITL Badges: Toggles ITH and ITL visual markers.
Major ITH and ITL Lookback: Controls swing sensitivity to filter minor noise (Default: 20).
Projection and Liquidity Settings
Show Direction Projection Arrow: Toggles the forward projection arrow.
Arrow Forward Bars: Controls how far ahead the arrow projects (Default: 12).
Show Low Resistance Liquidity: Toggles liquidity baseline highlights.
Asian Liquidity and SMC Settings
Show Active Asian High / Low: Toggles Asian range tracking lines.
Show BOS and CHoCH Structure: Enables market structure labels.
Structure Sensitivity: Controls pivot lookback for structural breaks.
How to Use
Context Identification: Look at the Market Flow and Price Wave Fill Shadow to determine the directional bias (Bullish = Green, Bearish = Red).
Key Zone Mapping: Identify price interaction with the Support Zone or Resistance Zone. Monitor how price behaves near the 0.618 Golden Zone or 0.786 Deep Discount lines.
Structure Confirmation: Confirm structural updates via BOS or CHoCH markers. Look for ITH (Red) or ITL (Green) labels to mark key swing pivots.
Session Liquidity: Monitor the ASIA H and ASIA L dotted lines for potential liquidity sweeps during peak trading hours.
Things to Avoid
Avoid Over-Leveraging at Single Levels: Never rely on a single line or zone in isolation; always seek confluence across structural breaks and dynamic zones.
Avoid High Sensitivity on Low Timeframes: Setting swing sensitivities too low on lower timeframes can lead to excessive noise. Adjust lookback values according to your target timeframe.
Avoid Trading directly into major Resistance or Support: Exercise caution when opening new directional positions directly inside established Resistance or Support boxes.
Disclaimer
Trading financial markets involves significant risk and can result in the loss of your capital. This indicator is designed strictly for educational and analytical purposes to assist with visual market structure identification. It is not financial advice, investment recommendation, or a signal service. Always manage your risk responsibly, conduct your own independent research, and follow your own personalized trading plan. אינדיקטור

Jurik Velocity Index Approximation🚀 JURIK VELOCITY INDEX APPROXIMATION (VEL)
The Jurik Velocity Index Approximation (VEL), engineered by gunebak4n, is an advanced, ultra-smooth, zero-lag momentum oscillator framework designed for TradingView. Built upon the legendary signal-processing principles conceptualized by Mark Jurik (Jurik Research), this open-source implementation transforms classical price momentum into a noise-free, highly responsive velocity curve that pinpoints trend direction, momentum shifts, and market acceleration with surgical precision.
Classical momentum indicators suffer from a severe noise-versus-lag tradeoff: raw rate-of-change lines zig-zag violently, producing false alarms, while standard smoothing filters (such as moving averages) introduce unacceptable signal lag that degrades trade timing. VEL solves this by routing raw price momentum through an integrated Jurik Moving Average (JMA) engine. The result is an exceptionally smooth, lag-free velocity curve that detects directional reversals well ahead of traditional trend indicators.
💡 CORE DESIGN PRINCIPLES
🧭 Zero-Lag Smooth Momentum Engine
Classical momentum relies on raw price differentials, resulting in high-frequency noise. VEL strips out market chatter without adding lag, revealing the true underlying velocity of price movement.
🎛️ JMA Adaptive Filtering Engine
By passing the momentum input through a multi-stage Jurik filter, market noise is suppressed while preserving sharp turning points and critical reversal signals.
🎚️ Modular Phase & Power Control
Provides modular fine-tuning controls:
• Phase (-100 to +100): Adjusts the balance between lag reduction and overshoot prevention. Positive values accelerate responsiveness for fast-moving markets, while negative values yield smoother curves.
• Power: Controls the acceleration exponent of the smoothing curve, allowing traders to customize how aggressively the filter adapts to price velocity.
💡 KEY FEATURES
• ATR Normalization Engine: Optional volatility normalization scales momentum relative to ATR, making VEL scale-independent across Crypto, Forex, Equities, and Indices.
• Momentum Acceleration Histogram: Displays the difference between VEL and a secondary JMA signal line in a faded, visually discreet histogram to measure true momentum acceleration and deceleration.
• Multi-Timeframe (MTF) Integration: Fetch higher-timeframe velocity directly onto your execution chart for seamless macro trend alignment.
• Automated Divergence Detection: Built-in pivot scanner detects Bullish and Bearish divergences between price action and velocity oscillations.
• Dynamic Trend & Bar Coloring: Automatically colors chart price bars and the VEL curve based on real-time momentum direction.
• Comprehensive Alert Engine: Equipped with pre-configured, non-repainting alertcondition events for zero crossovers, signal crossovers, and divergence alerts.
🔬 MATHEMATICAL ARCHITECTURE
• Raw Momentum = Price - Price
• Volatility Scaling = (Enable ATR Norm) ? (Raw Momentum / ATR(14)) * 100 : Raw Momentum
• Derive Beta & Alpha Coefficients from Length and Power
• Apply Multi-Stage Recursive JMA Filter with Phase Ratio adjustment
• JMA(Normalized Momentum) => Primary VEL Output
• Signal Line = JMA(VEL, Signal Length, Signal Phase, Signal Power)
• Acceleration Histogram = VEL - Signal Line
🛠️ USAGE FRAMEWORK
1. Zero Line Crossovers (Velocity Shift)
• VEL Crossing Above 0: Confirms positive price velocity (bullish momentum). Focus on long entries or trend continuations.
• VEL Crossing Below 0: Confirms negative price velocity (bearish momentum). Focus on short entries or trend continuations.
2. Histogram Slopes (Momentum Acceleration)
• Expanding Histogram: Indicates accelerating momentum in the current trend direction.
• Shrinking Histogram: Early warning of momentum decay before price actually turns.
3. Divergence Analysis
• Bullish Divergence: Lower price lows paired with higher VEL lows indicate seller exhaustion and an impending bullish reversal.
• Bearish Divergence: Higher price highs paired with lower VEL highs indicate buyer exhaustion and an impending bearish reversal.
⚙️ SYSTEM CHARACTERISTICS
• Zero Repainting: All calculations strictly evaluate on closed historical bar states.
• Fully Parameterized Inputs: Customize period length, phase, power, ATR normalization, MTF timeframes, divergence lookbacks, bar coloring, and color themes.
• Asset-Agnostic Engine: Operates with scale-independent precision across Equities, Forex, Crypto, Commodities, Futures, and Indices.
• Clean & Modern UI: Built to Pine Script v6 standards and optimized for visual clarity on both dark and light chart themes.
📌 CREDIT & ATTRIBUTION
The Jurik Velocity Index Approximation script is engineered and published by gunebak4n on TradingView.
This indicator is based on the mathematical concepts of the Jurik Velocity Index (VEL) originally conceptualized by Mark Jurik (Jurik Research).
⚠️ DISCLAIMER
This script is an open-source community implementation and mathematical approximation of the VEL concept. It is not affiliated with, officially supported by, or endorsed by Mark Jurik or Jurik Research. This indicator is a technical analysis visualization tool and does not provide financial advice, automated trading signals, or profit guarantees. Always perform thorough backtesting and practice strict risk management. אינדיקטור

Multi-Confluence Signal Engine [MarkitTick]💡 A confluence-weighted signal engine that scores trend, momentum, volume, and market-structure conditions independently, then blends them into two composite 0–100 readings — a Bull Score and a Bear Score — to identify moments where multiple independent forces align in the same direction. Rather than reacting to one indicator crossing one line, this script asks four different questions about price behavior at once and only flags a signal when the weight of evidence clears a threshold you control.
✨ Originality and Utility
Most confluence or "confirmation" scripts on TradingView work by checking a fixed list of conditions and requiring all of them, or a majority of them, to be true — a rigid AND/OR gate. This script instead builds four independent sub-scores (Trend, Momentum, Volume, Structure), each internally weighted by the relative importance of its own components, and then combines those four legs using user-defined percentage weights into a single continuous score. The practical difference is that a trader can decide, for example, that market structure matters twice as much as volume for their instrument, and the engine will respect that priority mathematically rather than treating every condition as equally binary.
The engine does not stop at "yes/no." Each leg produces a 0–100 magnitude, visible individually on the dashboard, so a trader can see not just that a signal fired but which of the four legs was doing the heavy lifting. A signal driven primarily by Structure (a break of a swing high with rising highs and lows) has a different character than one driven primarily by Volume (a spike on an up-close candle), even if both produce the same final score. This decomposition is what separates the tool from a simple scoring checklist: the score is diagnostic, not just directional.
On top of scoring, the script layers a full trade-management shell: ATR-based stop placement, three R:R-defined take-profit levels, a minimum-bar-gap cooldown to prevent signal clustering, a minimum score-gap requirement between the bull and bear reading to avoid firing on a coin-flip, an optional higher-timeframe trend filter, and an optional ATR-based volatility filter to suppress signals during dead, choppy conditions. This turns a scoring model into a usable end-to-end signal-and-management framework rather than a standalone oscillator.
🔬 Methodology and Concepts
• Trend Leg
The trend component is built from three EMAs — Fast, Slow, and Macro — calculated with a manual recursive EMA function rather than the built-in, giving explicit control over the smoothing seed. Four conditions are checked: whether the Fast EMA sits above (or below) the Slow EMA, whether price trades above (or below) the Macro EMA, and whether the Fast and Slow EMA slopes (measured as simple rate-of-change over a lookback window) are rising or falling. Each condition contributes a fixed point value toward either the bullish or bearish trend sub-score, weighted so that the Fast/Slow EMA relationship and the price-vs-Macro relationship carry the most influence, with slope direction acting as a secondary confirmation.
• Momentum Leg
Momentum blends RSI positioning relative to a configurable midline, MACD line-vs-signal crossover state, and MACD histogram direction (rising or falling versus the prior bar). Each of the three contributes roughly a third of the momentum sub-score, meaning momentum only reads as strongly bullish or bearish when oscillator position, trigger-line relationship, and histogram acceleration all agree.
• Volume Leg
Volume scoring looks for two things: whether current volume exceeds a multiple of its moving average (a "spike") occurring on a candle that closed in the corresponding direction, and whether volume is simply expanding bar-over-bar in that same direction. A volume spike on a directional candle carries the larger weight, since an expanding-but-unspiked volume reading is a weaker signal of conviction than an outright surge.
• Structure Leg
This is a swing-based market-structure read. Pivot highs and lows are detected with a symmetric lookback window (a bar must be the extreme point within a window of bars on both sides to qualify), and the script tracks the two most recent pivot highs and two most recent pivot lows. A bullish structure state requires both the pivot highs and pivot lows to be printing progressively higher (higher highs, higher lows); a bearish state requires the mirror condition. Separately, the script tracks a "break of structure" — price closing beyond the last confirmed pivot high or low in a direction that differs from the currently tracked structural bias — as an additional, heavier-weighted structural signal.
• Composite Scoring
The four leg scores are combined using a weighted average, where the weights (Trend / Momentum / Volume / Structure) are fully configurable and normalized against their own sum, so the four percentages do not need to add to exactly 100 to remain internally consistent. The result is a Bull Score and a Bear Score, each independently ranging from 0–100, which are then bucketed into Strong, Medium, Weak, or None tiers based on two adjustable thresholds.
• Signal Confirmation Logic
A raw long or short condition requires the relevant score to clear the Medium threshold, the gap between the bull and bear scores to exceed a minimum separation (preventing signals when both sides are nearly tied), an optional higher-timeframe trend agreement check, an optional minimum-volatility check using ATR as a percentage of price, and a minimum bar-count since the last signal in that direction. Signals are only confirmed on a closed bar (barstate.isconfirmed), so the plotted signal state does not repaint on the current, still-forming bar.
• Higher-Timeframe Filter
When enabled, the script requests the prior, fully closed value of price and a slow EMA from a higher timeframe using an offset lookback, which is the standard non-repainting method for pulling higher-timeframe context — it deliberately reads the last confirmed HTF bar rather than the in-progress one, so this filter does not introduce forward-looking bias.
🎨 Visual Guide
• Heatmap Candles
When enabled, candle bodies, wicks, and borders are recolored using the Bull/Bear/Neutral color inputs based on which composite score currently leads and whether it clears the Medium tier — teal-family for a leading bull score at or above Medium, red-family for a leading bear score at or above Medium, and gray for anything below that threshold on both sides.
• EMA Lines
Three plotted lines track the Fast EMA (blue by default), Slow EMA (orange by default), and Macro EMA (purple by default). Their relative position and slope are the visual counterpart of the Trend Leg's underlying math.
• Score Labels
When a long signal fires, a label appears below that bar showing the rounded Bull Score. When a short signal fires, a label appears above that bar showing the rounded Bear Score. These give an at-a-glance read of how strong the triggering signal was without opening the dashboard.
• Trade Levels
On a confirmed signal, the script draws a full set of horizontal levels: a Stop-Loss line (red, with an "✕ SL" label), an Entry line (blue dashed, "▶ Entry" label), and three Take-Profit lines at increasing R:R multiples (teal dashed, "◆ TP1", "✦ TP2", "◆ TP3" labels, with opacity increasing from TP1 to TP3). Shaded fills connect Entry-to-Stop (risk zone) and Entry-to-TP3 (reward zone) so the risk/reward geometry is visible at a glance. These levels extend forward automatically as new bars form and are replaced whenever a fresh signal fires, unless the Lock Signal input is enabled, in which case the current level set is frozen and new signals are suppressed from redrawing them.
• Dashboard
An optional on-chart table (position configurable to any corner) summarizes, per bar: the current lock state, the Bull Score and Bear Score as filled progress bars with a percentage, the Bull Tier and Bear Tier classification, each of the four leg scores as its own progress bar, the current volume ratio versus its moving average, and the current ATR as a percentage of price. The progress bars use a three-color scale (teal / amber / red) based on how far the underlying reading sits from its maximum, giving a quick visual read of leg strength without needing to interpret raw numbers.
📖 How to Use
A long condition is flagged only when the Bull Score clears the Medium threshold, leads the Bear Score by at least the configured minimum gap, and passes whichever optional filters (HTF trend, volatility) are enabled — the mirror logic applies to short conditions. The dashboard's per-leg bars are useful for judging signal quality beyond the headline score: a Strong-tier signal backed by all four legs reading high is generally a more complete confluence than one where the composite score is inflated mostly by a single leg such as Volume.
The Lock Signal input is intended for reviewing a specific historical signal's levels without them being overwritten as price continues to move — enable it to freeze the current Entry/SL/TP level set in place, and disable it to resume normal level updates on the next fresh signal.
Because trade levels are geometric projections from ATR and R:R inputs at the moment of signal, not a guarantee of price reaching those levels, they should be read as a structured reference for planning position size and exits rather than a forecast.
⚙️ Inputs and Settings
• Core Settings
Strong and Medium thresholds define the score tiers; the Minimum Bars Gap enforces a cooldown between signals in the same direction; the Minimum Score Gap requires clear separation between Bull and Bear scores before either can fire; the four Leg Weight inputs control how much each of Trend, Momentum, Volume, and Structure contributes to the composite score.
• Trend Leg
Fast, Slow, and Macro EMA lengths, plus the lookback window used to measure EMA slope direction.
• Momentum Leg
RSI length and midline, plus MACD fast/slow/signal lengths.
• Volume Leg
The moving-average length volume is compared against, and the multiplier that defines a "spike."
• Structure Leg
The symmetric lookback window used to confirm a swing pivot high or low.
• Filters
Optional higher-timeframe trend agreement filter (with selectable timeframe) and an optional ATR-based minimum-volatility filter, each of which can independently suppress signals that would otherwise fire.
• Trade Tools
ATR multiplier for stop distance, R:R multiples for the three take-profit levels, a toggle to show or hide the drawn levels, and the Lock Signal toggle to freeze the current level set.
• Visuals
Toggles for heatmap candle coloring, EMA line visibility, and score labels on signals.
• Dashboard
Toggle to show or hide the on-chart summary table and a dropdown to choose which corner it docks to.
• Alerts
Custom text strings for the long, short, close-long, and close-short alert JSON payloads, letting the alert output be adapted to match the syntax expected by an external webhook or automation endpoint.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
• Trend-Following Theory
The EMA-based trend leg draws on the long-standing empirical observation, formalized in academic momentum and trend-following literature, that asset prices exhibit serial correlation over intermediate horizons — trends, once established, have historically had a higher-than-random probability of persisting over the following period. Dual and triple moving-average crossover systems are among the earliest systematized expressions of this idea, and the slope-of-the-average component reflects the concept of trend "velocity" used in later technical and quantitative trend-strength research.
• Oscillator and Convergence-Divergence Theory
RSI, developed by J. Welles Wilder, is grounded in the idea that the ratio of average gains to average losses over a lookback window reflects the relative strength of buying versus selling pressure, oscillating within bounds that can indicate overbought/oversold conditions or, as used here, simple directional bias relative to a midline. MACD, developed by Gerald Appel, formalizes convergence and divergence between two exponential averages of differing sensitivity; the histogram (the difference between the MACD line and its own signal line) captures acceleration or deceleration in that relationship, which is the specific behavior this script isolates when checking histogram direction.
• Volume-Price Confirmation Theory
The volume leg reflects classical Dow Theory and later volume-price-analysis principles holding that price moves accompanied by above-average volume carry more conviction than moves on thin volume, since volume is treated as a proxy for the degree of market participation and consensus behind a price change.
• Market Structure and Price-Action Theory
The structure leg operationalizes the concept of market structure as used in classical Dow Theory (a sequence of higher highs and higher lows defining an uptrend, and the reverse for a downtrend) and its more recent "break of structure" formalization in price-action and smart-money-concept methodologies, where a close beyond a prior swing point is treated as evidence of a shift in the controlling side of the market.
• Weighted Multi-Factor Aggregation
Combining independently normalized sub-scores via user-adjustable weights mirrors the logic of multi-factor models in quantitative finance, where distinct signal families (trend, momentum, volume, structure/mean-reversion) are each scored on a common scale and then blended, rather than relying on any single factor in isolation — the underlying premise being that signal families with low correlation to one another produce more robust composite readings than any single family alone.
⚠️ 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. אינדיקטור

Previous Day / Week / Month Highs & LowsPrevious Day / Week / Month Highs & Lows.
A precision multi-period key-level tool that automatically draws previous-period highs and lows from the Daily, Weekly and Monthly timeframes — plus optional midpoints, an optional grid of psychological round-number levels around price, and a compact right-side info table with distance-to-price for every visible level. Built for intraday, scalping and swing traders who want a clean, opinionated read of the reference levels that institutional desks actually watch.
How it works:
The indicator pulls the previous completed candle from D, W and M via request.security and anchors each level line at the exact open time of that source bar — so a Weekly line starts on last week's Monday, not on the current week's first bar. Lines stay live and extend to the right through the chart's future offset area, so the reference points from yesterday, last week and last month are always visible on the current bar. The optional round-number grid re-anchors to price on every bar, so the closest N round levels above and below are always in view.
What it calculates:
- Previous Day High / Low + optional Midpoint (PDH, PDL, PD MID)
- Previous Week High / Low + optional Midpoint (PWH, PWL, PW MID)
- Previous Month High / Low + optional Midpoint (PMH, PML, PM MID)
- Psychological round-number grid centered on the current price, with adjustable step and count
- Live distance from the current close to every enabled level (in %)
Key features:
- Per-period visibility toggles: enable exactly the levels you use, hide everything else
- Configurable history depth — keep 1 to 20 previous daily / 1 to 12 weekly / 1 to 6 monthly sessions on the chart
- Auto-hide only when the chart timeframe strictly exceeds the level period: Daily levels stay on 1D, Weekly stay on 1W, Monthly never hide
- Lines anchored at the source bar (open time of the previous D/W/M candle), not at the first bar of the new period — you see the actual range the level came from
- Label anti-collision system: each label sits on its own horizontal slot in the right-offset area, with configurable Label Spacing — PDH / PWH / PMH texts never overlap even when their prices are close together
- Compact right-side info table with three columns (level name, price, +/- % distance to close), positioning across 6 chart corners, three text sizes, adjustable background transparency
- Three line styles (Solid / Dashed / Dotted) applied independently to main lines, midpoints and round levels
- Adjustable line width, label size and label visibility for a clean or a dense look
- Line extension modes: Right (default), Both, or None
- Fully customizable color per period — defaults follow a heat-scale palette (Daily = yellow, Weekly = orange, Monthly = red — nearest to furthest horizon)
- Round-number step tuned per asset class (BTC / ETH / FX / index / equities)
- Built-in alerts: PDH / PDL touched, same for weekly and monthly
- Auto-adapts to any instrument and any chart timeframe
Who it's for:
Intraday, scalping and swing traders — SMC / ICT, price-action, order-flow, or classical technicals — who want the exact levels institutional desks pin their orders around, cleanly drawn, without the visual noise of a dozen overlapping tools. אינדיקטור

Support Resistance AI [PickMyTrade]Every support/resistance tool answers "where are the levels." None answer the question a trader actually has when price arrives at one: does THIS test look like the ones that held, or like the ones that broke?
――――――――――――――――――――――――――――――――――――――
🔷 WHAT IT MEASURES
🔸 Confirmed swing pivots, clustered into zones and merged as new evidence accumulates
🔸 Eight properties of every ARRIVAL at a zone — approach speed, relative volume, prior test count, zone age, trend pressure, zone width, pivot count, and cumulative touches
🔸 A broken level isn't discarded — it flips role once (broken support becomes candidate resistance) and only a second failure retires it
🔸 A live Previous Day/Week High/Low reference map, shown only when price is within range
――――――――――――――――――――――――――――――――――――――
🔷 THE CLASSIFIER
🔸 An online Gaussian Naive Bayes model, trained continuously as tests resolve — no repainting, no lookahead
🔸 Nothing about a level's price is used as a feature — only how price approached it
🔸 The classic claim that "a level tested repeatedly grows weaker" is measured on each chart's own history here, rather than assumed
🔸 Below a configurable warmup sample count, the script shows the chart's running hold rate instead and reads LEARNING — it never guesses early
――――――――――――――――――――――――――――――――――――――
🔷 SIGNALS AND DISPLAY
🔸 Zone boxes colored by role (support/resistance) and shaded by live conviction, with worded verdicts ("similar arrivals held X%") instead of a bare number
🔸 Rank-based visibility — only the nearest zones to current price are drawn, so old or distant levels never stretch the chart's scale
🔸 Test history ticks stamped inside each zone at the bar where its own tests resolved
🔸 An info table with Nearest Support/Resistance, model accuracy, and sample counts
🔸 3 alertconditions, worded as observations of what the classifier's reading — never as trade instructions
――――――――――――――――――――――――――――――――――――――
🔷 INPUTS
Pivot Left/Right Bars — swing detection window. Default 10/10.
Zone Width / Merge Distance — band thickness and clustering tolerance, in ATR. Default 0.5 / 0.75.
Break Buffer / Rejection Distance — how far price must close beyond or travel back from a zone to resolve a test. Default 0.25 / 0.75 ATR.
Post-Flip Cooldown — bars a flipped zone must survive before a break can retire it. Default 5.
Warmup Samples — resolved tests required before the classifier is trusted. Default 25.
Conviction Threshold — probability at which a zone is shown at full conviction. Default 0.62.
Max Live Zones / Show Distance — how many nearby zones are drawn and how far (in ATR) before one is hidden.
Show Trend EMA, Zen Mode — display toggles; Zen Mode hides labels and the table for clean screenshots.
――――――――――――――――――――――――――――――――――――――
🔷 REQUIREMENTS AND LIMITATIONS
🔸 Pivots confirm only after the right-side lookback bars close — a level appears on the chart later than the swing that created it, by design
🔸 One thing does refine retroactively: when a later pivot merges into an existing zone, its band re-centers toward the weighted average — a zone with an open test is never re-centered, so no in-progress outcome is affected
🔸 Early on a fresh chart, or for a zone with only one or two tests, its own read is thin — the model's overall sample count travels with every verdict so that's never hidden
🔸 This script reports how historical arrivals resolved. It does not predict, and it is not a trading system on its own.
――――――――――――――――――――――――――――――――――――――
Built in Pine Script v6. Open source — Mozilla Public License 2.0. אינדיקטור

Multi-Symbol Volume Anomaly Tape [The_lurker]Multi-Symbol Volume Anomaly Tape شريط شذوذ الحجم متعدّد الرموز
Forty symbols in one live tape, at one-second resolution , It does not show volume. It shows only what is abnormal about it.
⚠ READ FIRST — LIVE MONITOR, NOT A HISTORICAL STUDY
The scan engine runs on the last bar only. Scroll back and you will see nothing, because there is nothing to see: no markers are drawn on price and no history is reconstructed. This is a real-time panel, and backtesting it is not possible by design.
═════════════════════════════════════════════════════════════
▌ THE IDEA
Large volume is not information. Volume that is large for that symbol is.
Common volume tools compare volume to its own average and report "1180% of normal". That is a ratio without a scale. A symbol whose volume routinely swings tenfold produces 1180% on an ordinary day; a stable one produces 300% in a genuinely exceptional moment. The two numbers are not comparable, not across symbols and not even within one symbol across regimes.
MVAT compares against the distribution, not the average:
z = ( ln(value) − mean ) ÷ standard deviation
The logarithm comes first because volume is approximately log-normal; without it the standard deviation is meaningless. z is then computed per symbol against a rolling window of 300 of its own prints.
The result is unit-free, and that is what makes the table possible at all. A print at 3.4σ on Bitcoin is exactly as abnormal as 3.4σ on PEPE, even though one is millions of dollars and the other is thousands. Symbols with completely different size, liquidity and volatility become rankable in a single column.
═════════════════════════════════════════════════════════════
▌ THE PANEL
Cluster row, then one row per abnormal print, newest on top:
▰▰▰▰▰▰▰▰ 9/9 ▲ XRP SOL SUI ETH +5 · 0.05%
23:26:00 · XRP · ▲█ · 1.0600 · $79.6K · ●● 3.3
23:26:00 · SOL · ▲▄ · 73.25 · $178.5K · ● 2.8
23:25:56 · SUI · ▲▂ · 0.6893 · $18.3K · ● 2.8
23:25:53 · BTC · ▲▂ · 63,562.0 · $153.4K · ● 2.3
23:25:44 · AVAX · ◆▂ · 6.5370 · $5.3K · ● 2.4
Ordinary prints never reach the screen. The tape carries anomalies, not the full flow.
TIME — print time to the second, in exchange time (UTC on Binance). Align it to your chart with the clock-offset input.
SYM — ticker, stripped of exchange prefix and quote suffix.
SIDE — two characters: direction and impact. Detailed below.
PRICE — execution price, formatted adaptively so fractional-priced symbols are not rounded to zero.
VALUE — notional in dollars, compact (K · M · B). This is economic materiality; SCORE is statistical rarity. They are deliberately different: a 4σ print worth ten thousand dollars on a thin market is statistically extreme and economically small, and the reverse happens too.
SCORE — anomaly strength in standard deviations.
═════════════════════════════════════════════════════════════
▌ STRENGTH CHANNEL
● between the first and second threshold
●● between the second and third
●●● above the third
The dot count states the strength on its own; the number beside it gives precision.
The fill is a continuous gradient, not two states: a print at 2.1 does not carry the same colour as one at 2.9. Hue carries side — green for buy, red for sell — while intensity carries strength, so the two channels never compete for the same discrimination.
Note on the third threshold: it is the top of the colour ramp, not a third detection level. Prints above it simply take the hottest shade.
═════════════════════════════════════════════════════════════
▌ SIDE CHANNEL
▲ buy · ▼ sell · ◆ neutral
Direction is taken from inside the print's own second, not by comparing it to the one before: close against open first, then the close's position within the bar's range. Whatever neither resolves is shown as neutral.
This deserves a moment. The common tick rule compares close to previous close and leaves exact price ties unresolved — and ties are very common at one-second resolution. When ties are assigned to buy by default, the side balance tilts hard and falsely toward buying.
MVAT does not do that. A second carrying no directional information says so with ◆ and is counted on neither side.
═════════════════════════════════════════════════════════════
▌ IMPACT CHANNEL
█ breakthrough — moved price more than twice the usual
▄ ordinary
▂ absorption — barely moved price at all
This channel answers what volume alone cannot: what did this volume do to price? Two prints at 4σ, one that moved price and one that did not, mean opposite things.
▲█ — heavy buying that cut through the book. The opposing liquidity was consumed.
▲▂ — heavy buying eaten by a resting seller. A defended level, and the seller is still there.
Measured as the print's move in basis points relative to that symbol's own average move, computed from prints that actually moved rather than from all prints. The distinction matters: most one-second bars close where they opened, and letting the zeros into the average would make any tick at all look like a breakthrough.
═════════════════════════════════════════════════════════════
▌ THE CLUSTER ROW
The tape shows individual events. The cluster row answers a different question: is this a symbol's news, or the market's event?
Five scattered anomalies across five symbols within an hour is one thing. Five anomalies across five symbols within fifteen seconds is another entirely.
Fired:
▰▰▰▰▰▰▰▰ 9/9 ▲ XRP SOL SUI ETH +5 · 0.05%
Idle:
▰▰▰▰▰▱▱▱ 6/9 · exp 2.6
GAUGE — proximity to the threshold, read at a glance. Always eight cells regardless of the threshold, so raising it from 4 to 12 never widens the table.
COUNT — distinct symbols inside the window, against the minimum.
SIDE — net direction across the cluster, weighted by strength.
SYMBOLS — the four strongest by peak σ, then +k for the rest. This is the most important part of the row. A cluster of XRP, SOL, SUI and ETH is not a cluster of four microcaps, and a count alone cannot tell them apart. Ranking by strength puts the heaviest first, so you can see what carried the move.
PROBABILITY — the chance of this cluster occurring at random. 0.05% is genuinely rare; 5% means you are reading noise.
EXP — in the idle state, the expected number of symbols under independence, computed live from the current scan rates. Use it to tune your threshold: if exp is close to your minimum you are about to read coincidence; if it is far below, a fired row is a real event.
═════════════════════════════════════════════════════════════
▌ WHY A FIFTEEN-SECOND WINDOW
The cluster is calibrated, not set by taste. A window's ability to discriminate collapses quickly as it widens:
15s window · 4 symbols → 24.8× the chance rate
30s window · 4 symbols → 5.7×
60s window · 3 symbols → 1.0× — pure coincidence
A wide window does not capture the event's width; it dissolves it in noise.
The chance probability is computed inside the indicator from each symbol's rate in the current scan, not from a planted constant, so it stays correct at any symbol count and any level of market activity without manual recalibration.
Threshold scaling matters: the expectation is proportional to how many symbols are scanned, so a threshold tuned for ten becomes far too loose at forty.
10 symbols → 4
20 symbols → 5
30 symbols → 6
40 symbols → 9
The displayed exp makes this table unnecessary — set the threshold clearly above it.
Finally: symbols inside a cluster are listed, not ordered in time. No lead-and-follow sequence is displayed, because displaying one would be invention rather than measurement. The ordering shown is by strength, which is real information.
═════════════════════════════════════════════════════════════
▌ SETTINGS
1 · Signal — the display filter, the σ threshold ladder, tape length. Tier 3 is the colour ceiling, not a detection level.
2 · Universe — forty slots, each with an enable toggle and a text ticker field. Type the ticker only (BTCUSDT); the exchange prefix is added automatically. An unlisted ticker is skipped silently and never breaks the indicator or its settings dialog.
3 · Cluster — show the row, window in seconds, minimum distinct symbols.
4 · Data — lower timeframe, volume measure, scan depth per symbol. Scan depth governs both the tape's time span and reference precision.
5 · Statistics — reference window size, warmup minimum, and an option to admit events only after the window fills so every σ comes from one sample size.
6 · Appearance — language, location, scale, clock offset from UTC.
7 · Colors — a three-stop ramp per side: weak, mid, hot.
═════════════════════════════════════════════════════════════
▌ CHOOSING A VOLUME MEASURE
Dollar Volume (default) — the only measure comparable across symbols in one table. Use it whenever the universe is mixed.
Volume — base units. Use it when watching a single symbol or a set with similar unit scales.
Price Volume — volume multiplied by typical price, an intermediate form.
σ itself is computed on the selected measure, so switching changes both the Score column and which prints qualify.
═════════════════════════════════════════════════════════════
▌ READING IT
Scan the SCORE column first — the eye catches ●●● and the hot shades immediately. Then SIDE: did it break through or was it absorbed? Then VALUE: does it deserve attention economically, or is it a statistical anomaly on a thin market? Above it, the cluster row gives the context: isolated event or market wave.
Patterns worth tracking:
Repeated ▲▂ at the same price — a resting seller absorbing demand at a defined level.
A ▼ cluster with a low probability — synchronised selling pressure across the market rather than news in one symbol.
═════════════════════════════════════════════════════════════
▌ STATUS FLAGS
The indicator does not fail silently. Three flags appear only when needed.
TIME ⚠ — the data budget clipped the requested scan depth.
SYM ⚠ — a configured symbol returned no data.
TF ⚠ — the chart timeframe is too small to feed the reference window.
═════════════════════════════════════════════════════════════
▌ OPERATIONAL REQUIREMENTS
The reference window is rebuilt from the current chart bar only, so the chart timeframe must be large enough to hold the required number of prints. At a 1S lower timeframe use 15 minutes or higher. Below that, TF ⚠ appears and the indicator tells you itself.
Enabling all forty symbols consumes Pine's request allowance in full. Each symbol's share of the data budget is clipped before any computation, so the indicator cannot exceed the platform limit whatever the settings.
Performance: forty simultaneous lower-timeframe requests is a heavy load. On slower machines, or when switching chart timeframes rapidly, expect a noticeable reload. Reducing the universe to 10–20 symbols both speeds this up and buys a deeper scan per symbol.
The engine is stateless: the reference window and the tape are rebuilt on every execution. As a result σ for a given print never changes no matter how long your session runs, and a closed bar's contents never change.
═════════════════════════════════════════════════════════════
▌ SCOPE
MVAT is a measurement instrument, not an entry-signal generator. It emits no alerts, by design.
What it reports: which prints were abnormal by their own symbol's standard, which side carried them, what they did to price, and whether they coincided with others.
What it does not report: the direction price will take next. Volume abnormality relates far more to the size of the coming move than to its direction, and reading the panel as buy signals reads it wrong.
The impact channel ships tagged : its thresholds rest on a sound statistical basis but have not been calibrated against forward returns.
The panel is fully bilingual, Arabic and English, switchable in settings.
═════════════════════════════════════════════════════════════
⚠️ DISCLAIMER
═════════════════════════════════════════════════════════════
This indicator is for educational and analytical purposes only. It does not constitute financial, investment, or trading advice. Use it alongside your own strategy and risk management. Neither TradingView nor the developer is responsible for any financial decisions or losses.
═════════════════════════════════════════════════════════════
═════════════════════════════════════════════════════════════
Multi-Symbol Volume Anomaly Tape شريط شذوذ الحجم متعدّد الرموز
أربعون عملة في تدفّق واحد، بدقّة الثانية ، لا يعرض الحجم، بل يعرض ما هو غير عادي منه فقط.
⚠ اقرأ هذا أولًا — لوحة مراقبة حيّة لا أداة تحليل تاريخي
محرّك المسح يعمل على الشمعة الأخيرة وحدها. إن رجعت بالشارت إلى الوراء لن ترى شيئًا، لأنه لا يوجد ما يُرى: لا علامات تُرسم على السعر ولا تاريخ يُعاد بناؤه. هذه لوحة لحظية، والاختبار التاريخي عليها غير ممكن بحكم التصميم.
═════════════════════════════════════════════════════════════
▌ الفكرة
الحجم الكبير ليس معلومة. الحجم الكبير بالنسبة لطبيعة العملة نفسها هو المعلومة.
المقاييس الشائعة تقارن الحجم بمتوسّطه فتقول «١١٨٠٪ من المعدّل». وهذه نسبة بلا مقياس: عملة يتأرجح حجمها عشرة أضعاف يوميًا تعطي هذا الرقم في يوم عادي تمامًا، وعملة مستقرّة الحجم تعطي ثلاثمئة بالمئة في لحظة استثنائية. الرقمان غير قابلين للمقارنة، لا بين عملتين ولا داخل العملة الواحدة عبر أنظمة السوق.
والمؤشّر يقارن بالتوزيع لا بالمتوسط:
z = ( ln(value) − mean ) ÷ standard deviation
اللوغاريتم أولًا لأن توزيع الحجم لوغاريتمي-طبيعي تقريبًا، وبدونه يكون الانحراف المعياري بلا معنى. ثم تُحسب القيمة لكل رمز مقابل نافذة متدحرجة من ثلاثمئة صفقة من تاريخه هو وحده.
النتيجة كمّية بلا وحدة، وهذا ما يجعل الجدول ممكنًا أصلًا. صفقة عند ٣٫٤ انحراف على البيتكوين شاذّة بنفس القدر تمامًا الذي تشذّ به على عملة صغيرة، رغم أن الأولى بملايين الدولارات والثانية بآلاف. عملات مختلفة القيمة والسيولة والتقلّب تصير قابلة للترتيب في عمود واحد.
═════════════════════════════════════════════════════════════
▌ اللوحة
صف العنقود، ثم صف لكل صفقة شاذّة، والأحدث في الأعلى:
▰▰▰▰▰▰▰▰ 9/9 ▲ XRP SOL SUI ETH +5 · 0.05%
23:26:00 · XRP · ▲█ · 1.0600 · $79.6K · ●● 3.3
23:26:00 · SOL · ▲▄ · 73.25 · $178.5K · ● 2.8
23:25:53 · BTC · ▲▂ · 63,562.0 · $153.4K · ● 2.3
23:25:44 · AVAX · ◆▂ · 6.5370 · $5.3K · ● 2.4
الصفقات العادية لا تصل إلى الشاشة إطلاقًا. الشريط يحمل الشذوذ لا كل التدفّق.
TIME
توقيت الصفقة بالثانية، بتوقيت البورصة. يُضبط على توقيت شارتك من مقبض إزاحة الساعة.
SYM
الرمز، مقصوصًا من بادئة المنصّة ولاحقة العملة المقابلة.
SIDE
محرفان: الجانب والأثر، ويُشرحان أدناه.
PRICE
سعر التنفيذ، بتنسيق متكيّف فلا تُقرّب الأسعار الكسرية إلى صفر.
VALUE
القيمة الاسمية بالدولار. هذه المادّية الاقتصادية، والشذوذ الإحصائي في العمود التالي. العمودان يقولان شيئين مختلفين عمدًا: صفقة عند أربعة انحرافات بعشرة آلاف دولار على سوق رقيق شاذّة إحصائيًا وضئيلة اقتصاديًا، والعكس يحدث كذلك.
SCORE
شدّة الشذوذ بوحدة الانحراف المعياري.
═════════════════════════════════════════════════════════════
▌ قناة الشدّة
● بين العتبة الأولى والثانية
●● بين الثانية والثالثة
●●● فوق الثالثة
عدد النقاط يقول القوة بنفسه، والرقم بجانبه يعطي الدقّة.
والخلفية تدرّج لوني متّصل لا حالتين: صفقة عند ٢٫١ لا تُطبع بلون صفقة عند ٢٫٩. الصبغة تحمل الجانب، أخضر للشراء وأحمر للبيع، والشدّة تحمل القوة، فالقناتان لا تتنافسان على التمييز نفسه.
والعتبة الثالثة سقف التدرّج اللوني لا مستوى كشف ثالث. ما فوقها يأخذ أشدّ درجة لونية فقط.
═════════════════════════════════════════════════════════════
▌ قناة الجانب
▲ شراء · ▼ بيع · ◆ محايد
الجانب مأخوذ من داخل الثانية نفسها لا من مقارنتها بما قبلها: الإغلاق مقابل الافتتاح أولًا، ثم موضع الإغلاق داخل مدى الشمعة. وما لا يُحسم بأيّ منهما يُعرض محايدًا.
وهذه النقطة تستحق الوقوف. القاعدة الشائعة تقارن الإغلاق بالإغلاق السابق ولا تحسم حالة التعادل السعري، وهي شائعة جدًّا على إطار الثانية. وحين تُسند التعادلات افتراضيًا إلى الشراء يميل ميزان الجانب ميلًا حادًّا وكاذبًا نحو الشراء.
المؤشّر لا يفعل ذلك. الثانية التي لا تحمل معلومة اتجاه تُعلن ذلك بنفسها ولا تُحسب على أي جانب.
═════════════════════════════════════════════════════════════
▌ قناة الأثر
█ اختراق — حرّك السعر أكثر من ضعف المعتاد
▄ عادي
▂ امتصاص — لم يحرّك السعر تقريبًا
هذه القناة تجيب سؤالًا لا يجيبه الحجم وحده: ماذا فعل هذا الحجم بالسعر؟ صفقتان عند أربعة انحرافات، إحداهما حرّكت السعر والأخرى لم تحرّكه، معناهما التداولي متعاكس تمامًا.
▲█
حجم شراء ضخم اخترق دفتر الأوامر، فالسيولة المقابلة استُهلكت.
▲▂
حجم شراء ضخم ابتلعه بائع قائم. مستوى مُدافَع عنه، والبائع ما زال هناك.
والقياس بحركة الصفقة بنقاط الأساس منسوبة إلى متوسط حركة ذلك الرمز نفسه، محسوبًا من الصفقات التي تحرّكت فعلًا لا من كل الصفقات. وهذا التمييز جوهري: أغلب شموع الثانية تُغلق حيث فتحت، ولو دخلت الأصفار في المتوسط لصار أي تحرّك مهما صغر اختراقًا.
═════════════════════════════════════════════════════════════
▌ صف العنقود
الشريط يعرض أحداثًا فردية، وصف العنقود يجيب سؤالًا مختلفًا: هل ما تراه خبر عملة أم حدث سوق؟
خمس صفقات شاذّة متفرّقة على خمس عملات خلال ساعة شيء. وخمس صفقات شاذّة على خمس عملات خلال خمس عشرة ثانية شيء آخر تمامًا.
مشتعلًا:
▰▰▰▰▰▰▰▰ 9/9 ▲ XRP SOL SUI ETH +5 · 0.05%
ساكنًا:
▰▰▰▰▰▱▱▱ 6/9 · exp 2.6
المقياس
قربك من العتبة، يُقرأ بلمحة بلا حساب. ثماني خانات دائمًا مهما كانت العتبة، فلا يتمدّد الجدول حين ترفعها.
العدد
الرموز المتمايزة داخل النافذة، مقابل الحدّ المطلوب.
الجانب
صافي الاتجاه المرجّح بالشدّة عبر العنقود كله.
الرموز
أقوى أربعة مرتّبة بذروة الانحراف تنازليًا، ثم عدد الباقي. وهذا أهم ما في الصف: عنقود يضم أربع عملات كبرى ليس عنقودًا يضم أربع عملات صغيرة، والعدد وحده لا يفرّق بينهما. والترتيب بالشدّة يضع الأثقل أولًا فتعرف ما الذي حمل الحركة.
الاحتمال
فرصة وقوع هذا العنقود صدفةً محضة. خمسة من مئة ألف حدث نادر فعلًا، وخمسة بالمئة تعني أنك تقرأ ضجيجًا.
exp
في الحالة الساكنة: العدد المتوقّع من الرموز تحت فرضية الاستقلال، محسوبًا حيًّا من معدّلات المسح الجارية. استعمله لضبط عتبتك، فإن قاربت عتبتَك فأنت على وشك قراءة الصدفة، وإن ابتعدت عنها كثيرًا فاشتعال الصف حدث حقيقي.
═════════════════════════════════════════════════════════════
▌ لماذا نافذة خمس عشرة ثانية
العنقود مُعاير لا مضبوط بالذوق، وقدرة النافذة على التمييز تنهار سريعًا مع اتّساعها:
15s window · 4 symbols → 24.8×
30s window · 4 symbols → 5.7×
60s window · 3 symbols → 1.0×
الأخير يعني صدفة محضة. النافذة الواسعة لا تلتقط عرض الحدث بل تُذيبه في الضجيج.
واحتمال الصدفة يُحسب داخل المؤشّر من معدّلات كل رمز في المسح الجاري لا من ثابت مزروع، فيبقى صحيحًا مع أي عدد رموز وأي مستوى نشاط سوقي بلا إعادة معايرة يدوية.
وضبط العتبة مهم: التوقّع يتناسب طرديًا مع عدد الرموز الممسوحة، فعتبة تناسب عشرة رموز تصير رخوة جدًّا عند أربعين.
10 symbols → 4
20 symbols → 5
30 symbols → 6
40 symbols → 9
وقيمة exp المعروضة تغنيك عن هذا الجدول: اضبط العتبة فوقها بوضوح.
وأخيرًا: الرموز داخل العنقود تُسرَد ولا تُرتَّب زمنيًا. لا يوجد تسلسل قيادة وتبعية يُعرض، وعرضه سيكون اختراعًا لا قياسًا. الترتيب المعروض بالشدّة، وهو معلومة حقيقية.
═════════════════════════════════════════════════════════════
▌ الإعدادات
1 · Signal
المُرشّح وسلّم العتبات وعدد الصفوف. العتبة الثالثة سقف لوني لا مستوى كشف.
2 · Universe
أربعون خانة، لكل منها مفتاح تفعيل وحقل رمز نصّي. اكتب الرمز فقط وتُضاف بادئة المنصّة تلقائيًا. والرمز غير المدرج يُتجاهل بصمت ولا يُعطّل المؤشّر ولا نافذة إعداداته.
3 · Cluster
إظهار الصف، والنافذة بالثواني، والحدّ الأدنى من الرموز المتمايزة.
4 · Data
الإطار الأدنى، ومقياس الحجم، وعمق المسح لكل رمز. وعمق المسح يحكم امتداد الشريط الزمني ودقّة المرجع معًا.
5 · Statistics
حجم النافذة المرجعية، وأدنى عيّنة قبل الحساب، وخيار قبول الأحداث بعد امتلاء النافذة فقط فتتوحّد دقّة القياس عبر كل الصفوف.
6 · Appearance
اللغة والموقع والحجم وإزاحة الساعة.
7 · Colors
سلّم ثلاثي المحطات لكل جانب: ضعيف ومتوسط وحادّ.
═════════════════════════════════════════════════════════════
▌ اختيار مقياس الحجم
Dollar Volume
الافتراضي، وهو الوحيد القابل للمقارنة بين رموز مختلفة في جدول واحد. استخدمه كلما كانت السلة مختلطة.
Volume
الوحدات الأساسية. لرمز واحد أو سلة متقاربة المقياس.
Price Volume
الحجم مضروبًا في السعر النموذجي، صيغة وسطى.
والقياس الإحصائي يُحسب على المقياس المختار، فتغييره يغيّر عمود الدرجة ويغيّر أي الصفقات تتأهّل أصلًا.
═════════════════════════════════════════════════════════════
▌ كيف تقرأه عمليًّا
امسح عمود الدرجة أولًا، فالعين تلتقط النقاط الثلاث والألوان الحادّة فورًا. ثم انظر الجانب: اخترق أم امتُصّ؟ ثم القيمة: هل يستحق الالتفات اقتصاديًا أم أنه شذوذ إحصائي على سوق رقيق؟ وفي الأعلى صف العنقود يعطيك السياق: حدث فردي أم موجة سوق.
نمطان يستحقّان التتبّع:
علامة الامتصاص متكرّرة على السعر نفسه، وتعني بائعًا قائمًا يمتصّ الطلب عند مستوى محدّد.
عنقود بيع باحتمال منخفض، ويعني ضغط بيع متزامنًا عبر السوق لا خبرًا في عملة بعينها.
═════════════════════════════════════════════════════════════
▌ علامات الحالة
المؤشّر لا يفشل بصمت، وثلاث علامات تظهر عند الحاجة فقط.
TIME ⚠
الميزانية قصّت عمق المسح المطلوب.
SYM ⚠
رمز مُعدّ لم تصل بياناته.
TF ⚠
إطار الشارت أصغر من أن يغذّي النافذة المرجعية.
═════════════════════════════════════════════════════════════
▌ متطلّبات تشغيلية
النافذة المرجعية تُبنى من الشمعة الجارية وحدها، فيجب أن يتّسع إطار الشارت لعدد الصفقات المطلوب. وعند إطار أدنى بالثانية استخدم خمس عشرة دقيقة فأعلى، وما دون ذلك تظهر علامة الإطار ويُبلغك المؤشّر بنفسه.
وتفعيل الأربعين رمزًا يستهلك سقف الطلبات المسموح في المنصّة بالكامل. وحصّة كل رمز من ميزانية البيانات مقصوصة قبل أي حساب، فلا يتجاوز المؤشّر الحد مهما كانت الإعدادات.
الأداء: أربعون طلبًا متزامنًا حمل ثقيل. وعلى الأجهزة الأبطأ أو عند تغيير إطار الشارت بتكرار توقّع إعادة تحميل ملحوظة. وتقليل السلة إلى عشرة أو عشرين رمزًا يسرّع التحميل ويشتري عمق مسح أكبر لكل رمز.
والمحرّك عديم الحالة: النافذة المرجعية والشريط يُعاد بناؤهما في كل تنفيذ. والنتيجة أن قياس أي صفقة لا يتغيّر مهما طالت جلستك، وأن الشمعة المغلقة لا يتغيّر محتواها أبدًا.
═════════════════════════════════════════════════════════════
▌ نطاق الأداة
هذا مؤشّر قياس لا مولّد إشارات دخول، ولا يصدر تنبيهات عمدًا.
ما يبلّغه: أي الصفقات كانت شاذّة بمقياس رمزها، وأي جانب حملها، وماذا فعلت بالسعر، وهل تزامنت مع غيرها.
وما لا يبلّغه: اتجاه السعر القادم. فشذوذ الحجم يرتبط بحجم الحركة القادمة أكثر بكثير مما يرتبط باتجاهها، ومن يقرأ اللوحة كإشارات شراء يقرأها خطأ.
وقناة الأثر تُشحن موسومة بأنها غير مُعايَرة على عوائد أمامية: عتبتاها مضبوطتان على أساس إحصائي سليم، لكنهما لم تُختبَرا مقابل ما يحدث بعدها.
واللوحة كاملة بالعربية والإنجليزية، تُبدَّل من الإعدادات.
═════════════════════════════════════════════════════════════
⚠️ إخلاء المسؤولية
═════════════════════════════════════════════════════════════
هذا المؤشر لأغراض تعليمية وتحليلية فقط. لا يُمثل نصيحة مالية أو استثمارية أو تداولية. استخدمه بالتزامن مع استراتيجيتك الخاصة وإدارة المخاطر. لا يتحمل TradingView ولا المطور مسؤولية أي قرارات مالية أو خسائر. אינדיקטור

FVG CrossfireGENERAL OVERVIEW:
FVG Crossfire identifies and plots the exact price bands where a bullish and a bearish imbalance have overlapped. These overlap bands, called crossfire zones, are the only objects the indicator draws. Ordinary Fair Value Gaps are tracked in the background as inputs, but a standalone gap is never rendered on the chart; a zone is created only when a fresh FVG overlaps an older, still-unfilled FVG of the opposite direction. From that point the zone remains on the chart, reversing direction each time an opposing FVG overlaps it, recording each transition with a star counter, marking every retest with an arrow, and being removed only when price trades fully through it.
What is the theory behind the indicator?
A Fair Value Gap records a price imbalance: price moved quickly enough that a gap was left between the wicks of the surrounding candles. The problem is that FVGs are common. On a fast chart dozens print every session, most of them noise, and drawing them all obscures the few levels that actually matter.
FVG Crossfire is built on a stricter criterion: the event worth displaying is the overlap. When a new imbalance prints in the opposite direction directly on top of an older, still-unfilled one, that price band is no longer one-sided; buyers have left an imbalance there, and now sellers have as well (or the reverse). That overlap marks a contested level, one the market has already reacted to from both directions.
The sequence often continues. Each additional opposing FVG flips the zone again, and because a flip keeps only the portion of the zone where the imbalances actually overlap, the contested band becomes tighter and more precise with each transition. What remains is a narrow, repeatedly tested level with a visible history, which is among the strongest forms of support or resistance an imbalance structure can produce.
The FVG Crossfire indicator includes 5 main features:
FVG CROSSFIRE FEATURES
Crossfire Zone Detection
Zone Flipping & Flip Counter
Retest Detection
Zone Mitigation
Alerts
CROSSFIRE ZONE DETECTION:
🔹What Is a Crossfire Zone?
A crossfire zone is the price band shared by two opposite imbalances: an older, still-unfilled Fair Value Gap and a newly formed FVG in the opposite direction that printed on top of it. The zone covers only the overlap, and it takes the direction and color of the newer FVG, the most recent side to print. An optional "origin funnel" draws converging lines from the older gap into the zone, so the source of the overlap remains visible.
🔹What Is a Fair Value Gap?
For background: an FVG is a three-candle pattern where the middle candle moves so strongly that a gap is left between the first candle and the third: the low of candle three above the high of candle one (bullish), or the high of candle three below the low of candle one (bearish). In this indicator FVGs are inputs, not output: they are detected and tracked entirely in the background, and one that never overlaps an opposite gap is discarded without ever being drawn.
🔹Why Are Crossfire Zones Important?
A single gap indicates one-sided aggression at a price. A crossfire zone indicates that both sides were aggressive at the same prices and disagreed. These contested bands tend to attract price repeatedly, which makes them stronger candidates for support, resistance, and reaction trades than any single gap. And because only overlaps are drawn, every object on the chart is already a filtered, higher-significance level.
🔹How Crossfire Zones Are Detected:
Every candle close, the engine scans the last three candles for a new FVG (gaps smaller than your minimum size are skipped, and candles around daily or weekly session breaks are excluded so overnight gaps don't create false patterns). Each stored gap is also tracked as later candles fill it (by wick or by close, depending on the setting), and a fully filled gap is dropped from the pool. When a fresh FVG confirms, it is compared against every waiting opposite gap: wherever it overlaps the unfilled part of one, a crossfire zone is created on the overlap and the origin funnel appears. Every FVG participates exactly once; after creating (or flipping) a zone it is consumed, so one price move never produces duplicate zones. Live zones extend to the right edge of the chart, and an optional "Combine" mode merges same-direction zones that overlap in price into one bigger zone.
🔹Settings: Base FVG Group (the detection engine)
Base FVG mitigation: whether wicks or only candle closes fill a waiting gap before it can participate in an overlap.
Min FVG gap (% of price): ignore gaps below this size; 0 keeps every gap.
Show origin funnel: draw the converging lines from the source gap into its zone.
Border, Style, Colors: visual control of the funnel; color transparency sets the fill strength.
🔹Settings: Crossfire Zone Group
Lookback (candles): zones are only built inside the most recent N candles (default 3000); every zone created in the window is shown.
Border, Style, Midline: outline and optional equilibrium line for each zone.
Bullish / Bearish colors: transparency sets the zone fill strength.
Combine overlapping zones: merge same-color zones that overlap in price.
ZONE FLIPPING & FLIP COUNTER:
🔹What Is a Zone Flip?
If a live crossfire zone is overlapped by another FVG in the opposite direction, the zone flips: the current box is frozen in place and a new, opposite-colored box continues from that point. Read left to right, a flipped zone forms a timeline of directional control over that price band.
🔹Why Do Flips Matter?
Every flip is another change of direction at the same level, evidence that the market continues to react to that price. And because each flip keeps only the part of the zone that the new FVG actually overlapped, the contested band tightens with every flip. A zone that has flipped three times is a narrow, precise, repeatedly contested level, exactly the kind of area worth planning trades around.
🔹How the Flip Counter Works:
Each live zone shows a star counter on its edge at the latest candle: green stars touching the bottom edge of bullish zones, red stars touching the top edge of bearish zones. One star means the zone has formed once, two stars means one flip, and so on; zones with five or more entries display a compact count instead (for example "6 ★"). There is no limit on flips; the chain only ends when the zone is fully mitigated.
RETEST DETECTION:
🔹What Is a Retest?
A retest is price leaving a live crossfire zone and then coming back to touch it again. The indicator marks every single retest: a small green ▲ below the candle that re-entered a bullish zone, a small red ▼ above the candle that re-entered a bearish zone.
🔹Why Are Retests Important?
The retest is usually the tradeable moment. A contested zone holding on a return visit is the confirmation many traders wait for before entering, and repeated successful retests indicate the level continues to hold.
🔹How Retests Are Detected:
On every candle close, the indicator checks whether the candle touched the zone (any wick contact counts) while the previous candle did not. Each fresh re-entry counts; price must leave the zone before the next retest can register, so a candle sitting inside the zone for several bars only counts once. Every retest can also fire an alert.
🔹Settings:
Retest markers: show or hide the ▲/▼ arrows.
ZONE MITIGATION:
🔹What Is Zone Mitigation?
A crossfire zone is complete (fully mitigated) when price trades all the way through it: through the bottom of a bullish zone, or through the top of a bearish zone. At that point the zone and its whole flip history are removed from the chart, or kept and faded out if you prefer to study them.
🔹Why Does Mitigation Matter?
A zone that price has completely passed through has served its purpose: the imbalance on both sides is resolved. Removing finished zones keeps the chart focused on levels that still matter, while the optional faded view lets you review how past zones resolved.
🔹How Mitigation Is Detected:
You choose what counts as trading through the far side: any wick, or only a candle close. Until that happens, the zone stays live no matter how many times it flips or gets retested.
🔹Settings:
Zone mitigation: Wick or Close.
Show mitigated zones: keep finished chains on the chart, frozen and dimmed.
ALERTS:
FVG Crossfire covers the full life of a zone with four alert events, each with its own on/off switch. Create one alert on the indicator using "Any alert() function call" and every enabled event will come through with the symbol and timeframe in the message:
New crossfire zone: two opposite FVGs overlapped and a new zone was created.
Zone flipped: a live zone changed direction (bullish ↔ bearish).
Zone retested: price re-entered a live zone after being outside it (fires on every re-entry).
Zone mitigated: a zone was fully traded through and completed.
IMPORTANT NOTES:
Plain FVGs are never drawn. Gaps are tracked in the background, and a gap only becomes visible, through its origin funnel, at the moment it produces a crossfire zone. Every object drawn on the chart is already an overlap.
All detections are evaluated on candle close. Zones, flips, retests, and mitigations are confirmed events; they do not repaint.
Background gaps are filled on a three-candle delay. This is deliberate: the same impulsive move that creates the new FVG is often the move that fills the old one, and without the delay the overlap could never be detected.
Each FVG participates exactly once. After creating or flipping a zone it is consumed, so one price move never produces duplicate zones.
A flip requires the new FVG to overlap the currently visible zone, and the flipped zone keeps only the overlapping part; zones tighten as they flip.
A retest requires price to leave the zone first. Consecutive candles inside the zone count as one visit.
Candles around daily and weekly session breaks are excluded from gap detection so overnight gaps don't create false patterns.
Internal drawing limits keep the script within TradingView's object budget; on extremely gap-dense charts the oldest zones are released first.
UNIQUENESS:
Most FVG tools draw every gap and leave the trader to determine which ones matter; inversion (IFVG) tools go one step further and record a single change of direction. FVG Crossfire does not draw ordinary gaps at all. It uses them purely as inputs and puts only one thing on the chart: the price bands where opposite imbalances have overlapped, and it then tracks the full lifecycle of each contested level. Zones flip an unlimited number of times, each previous state freezes into a left-to-right timeline, the band tightens to the true overlap on every flip, a star counter records the number of transitions, every individual re-entry is flagged with a retest arrow and alert, and the level is only removed when price fully trades through it. The result is not another gap plotter: it is a filtered map of where opposing imbalances keep forming at the same prices, how many transitions each level has recorded, and exactly how tight the contested band has become.
אינדיקטור

אינדיקטור

3D Trend Vortex [BOSWaves]3D Trend Vortex - Slope-Adaptive Gradient Bands with Polyline 3D Extrusion and Zone Entry Signal Detection
Overview
3D Trend Vortex is a slope-driven trend band system that constructs a pair of eight-layer gradient bands positioned above and below price using ATR-scaled offsets from a configurable moving average baseline, where band width breathes inversely with slope magnitude, candle gradient intensity reflects normalized slope strength, and a polyline-based three-dimensional extrusion renders the outer and inner band edges as volumetric ribbon geometry that follows the bands across the configured display length.
Instead of relying on static symmetric bands or fixed volatility channels, the band width contracts when trend slope is strong and expands when slope is flat or weakening, producing a visual breathing effect that communicates momentum intensity through band geometry rather than through a separate indicator. The eight gradient fill layers within each band progress from near-transparent at the inner edge to full opacity at the outer edge, creating a visual depth effect that reinforces the three-dimensional extrusion rendered at the current bar.
This creates a trend framework where every visual layer simultaneously communicates the same underlying information from a different angle. The gradient bands reveal momentum intensity through their width. The candle gradient communicates slope conviction through brightness. The 3D extrusion at the band edges provides spatial depth cues that make the band structure immediately readable across varying zoom levels. Signal labels fire when price first enters either band after the cooldown period, identifying the specific bars where price has moved into the zone of interest defined by the ATR-offset band boundary.
Price is therefore tracked not just for its directional relationship to the basis MA but for its position within or outside a dynamically breathing gradient band system whose visual geometry encodes slope strength and momentum quality on every bar.
Conceptual Framework
3D Trend Vortex is founded on the principle that trend band visualization should communicate momentum quality through the geometric properties of the bands themselves rather than requiring separate momentum indicators, and that introducing three-dimensional spatial depth into the band rendering provides immediate structural legibility that flat two-dimensional bands cannot achieve regardless of color or transparency settings.
Traditional band indicators apply fixed widths or static volatility multiples that remain visually identical whether momentum is surging or stalling, requiring traders to consult separate oscillators for conviction context. This framework embeds conviction directly into band geometry through the breathing width mechanism, where strong slope produces tighter, more concentrated bands reflecting focused directional commitment and weak slope produces wider, more diffuse bands reflecting reduced momentum quality. The three-dimensional extrusion layer adds spatial depth cues that reinforce the structural separation between the supply zone above price and the demand zone below.
Three core principles guide the design:
Band width should adapt to slope magnitude, contracting during strong momentum and expanding during low-conviction conditions, encoding trend health directly into the geometric properties of the bands without requiring a separate momentum indicator.
The gradient fill system across eight layers within each band should provide visual depth that reinforces the three-dimensional extrusion, creating a consistent spatial reading between the flat fill and the extruded geometry at the current bar edge.
Signals should fire on first entry into band territory after the cooldown period rather than on crossover of a single line, capturing the structural significance of price reaching the offset zone while preventing signal clustering during extended band interactions.
This shifts trend band analysis from static channel monitoring into a momentum-adaptive visual system where band breathing, candle intensity, and three-dimensional geometry collectively communicate trend conviction across every bar of the display window.
Theoretical Foundation
The indicator combines configurable moving average baseline selection, ATR-based band offset and width calculation with slope-driven breathing modulation, eight-level gradient fill construction across inner-to-outer band subdivisions, polyline-based three-dimensional extrusion geometry using depth offset coordinates, and slope-normalized candle gradient coloring.
The basis MA is computed in the selected type over the configured length and the three-bar slope is measured as the difference between current and three-bar-lagged values. The slope magnitude is normalized against its highest value over an eighty-bar window, producing a 0-1 score that drives the breathing multiplier applied to the band width. ATR is smoothed over fifty bars to reduce sensitivity to individual volatility spikes, providing a stable scaling unit for both band offset and width calculations. The eight gradient fill layers divide the inner-to-outer band distance into equal steps with progressively increasing opacity, connecting smoothly to the polyline faces of the 3D extrusion that render the outer edge face, top face, and inner top face as separate filled polygon regions at configurable depth offsets.
Four internal systems operate in tandem:
Slope-Adaptive Band Engine : Calculates ATR-smoothed band offset and width, applies EMA smoothing to all four band edges, and modulates total band width by a breathing factor derived from normalized slope magnitude so that bands contract proportionally during high-momentum conditions.
Eight-Layer Gradient Fill System : Subdivides the inner-to-outer band width into eight equal steps and fills each interval with progressively decreasing transparency, producing a continuous opacity gradient from the near-transparent inner edge to the full-opacity outer edge across both the top and bottom bands.
Three-Dimensional Extrusion Engine : On the last bar, constructs polyline polygon arrays for the outer face, top face, and inner top face of each band by combining current bar coordinates with depth-offset coordinates at the configured bar and ATR depth, rendering six filled polyline regions that create the illusion of volumetric band geometry extending from the current bar edge into the chart space.
Zone Entry Signal System : Monitors price crossing into the top or bottom band on each bar, applying independent cooldown tracking for each side to prevent signal clustering during extended band interactions.
This design allows band geometry, candle coloring, and 3D extrusion to all derive from the same underlying slope and ATR measurements, ensuring visual consistency across every layer of the indicator.
How It Works
3D Trend Vortex evaluates price through a sequence of slope-aware band construction and visualization processes:
Basis MA Calculation : The selected moving average type is calculated over the configured length, providing the directional baseline from which all band positions and slope measurements are derived.
ATR Smoothing : Raw ATR over fourteen bars is smoothed with a fifty-bar SMA to produce a stable volatility unit that prevents individual spike bars from distorting band positioning across the display window.
Slope Measurement and Normalization : The three-bar change in basis MA is measured and its absolute value is normalized against the highest absolute slope over eighty bars, producing a 0-1 score reflecting how strong the current slope is relative to recent momentum history.
Breathing Width Calculation : The normalized slope score is scaled and subtracted from 1.0 to produce a breathing multiplier that reduces band width proportionally during high-slope conditions, causing bands to contract during strong momentum and expand during low-conviction flat conditions.
Band Edge Calculation and Smoothing : Inner and outer edges for both the top and bottom bands are calculated by adding and subtracting ATR-scaled offset and width values from the basis MA, then smoothed with the configured EMA length to prevent jagged edge movement.
Eight-Layer Gradient Fill Rendering : The inner-to-outer distance of each band is divided into eight equal steps and plot-fill pairs are rendered at each subdivision with transparency increasing from outer to inner, producing a smooth opacity gradient across the band depth.
Candle Gradient Coloring : The normalized slope score is power-transformed and mapped to a gradient from a dimmed version of the trend color at low slope to full saturation at high slope, coloring chart candles proportionally to current momentum conviction.
Zone Entry Detection : Price crossing into the top band from below or the bottom band from above is detected with independent cooldown tracking for each side. When entry is confirmed and cooldown is satisfied, a signal label is placed at the bar high or low respectively.
3D Extrusion Construction : On the last bar, polyline arrays are constructed for each of the six extruded faces using combinations of current and depth-offset bar indices and price coordinates, rendering the outer face, top face, and inner top face for both the top and bottom bands as filled polygon regions.
Together, these elements form a continuously updating slope-adaptive band system where gradient geometry, candle brightness, and three-dimensional extrusion simultaneously communicate trend direction, momentum conviction, and structural band positioning across the full display window.
Interpretation
3D Trend Vortex should be interpreted as a slope-driven momentum band system with spatial depth visualization and zone entry monitoring:
Bullish Trend State (Green) : Active when the basis MA slope is positive, with the bottom gradient band rendered in green and candles coloring green with intensity proportional to slope strength.
Bearish Trend State (Red) : Active when the basis MA slope is negative, with the top gradient band rendered in red and candles coloring red with intensity proportional to slope strength.
Band Width Dynamics : Narrow bands indicate strong slope momentum with high directional conviction. Wide bands indicate weak slope with reduced momentum quality. Monitoring band width evolution provides real-time conviction context without requiring a separate momentum oscillator.
Eight-Layer Gradient Fill : The opacity gradient from inner to outer edge provides visual depth within each band, with the near-transparent inner boundary representing the threshold where price enters the zone of interest and the fully opaque outer boundary representing the extreme of the ATR-scaled offset distance.
3D Extrusion : The three-dimensional polyline faces rendered at the current bar edge provide spatial depth cues that reinforce the structural separation between the top supply zone and bottom demand zone, making band positioning immediately readable across varying chart zoom levels.
▲ Buy Signals : Green upward triangles mark the first bar where price enters the bottom band after the cooldown period, identifying price reaching the lower ATR-offset zone of interest.
▼ Sell Signals : Red downward triangles mark the first bar where price enters the top band after the cooldown period, identifying price reaching the upper ATR-offset zone of interest.
Candle Gradient : Price candles brighten toward full trend color saturation as slope strengthens and dim toward a muted version of the trend color as slope weakens, providing bar-level momentum conviction readings directly on the candlestick display.
Band width dynamics, candle gradient intensity, signal zone entry, and 3D extrusion depth collectively provide more momentum and structural context than any element in isolation.
Signal Logic & Visual Cues
3D Trend Vortex presents two zone entry signal types with independent cooldown enforcement:
Buy Signal (▲) : Green triangle placed below the bar when price first closes below the bottom band inner edge after the configured cooldown period has elapsed since the previous buy signal, identifying price entry into the lower ATR-offset demand zone.
Sell Signal (▼) : Red triangle placed above the bar when price first closes above the top band inner edge after the configured cooldown period has elapsed since the previous sell signal, identifying price entry into the upper ATR-offset supply zone.
Independent per-side cooldown tracking prevents consecutive signals on the same side while allowing the opposite side to signal freely, ensuring that transitions between upper and lower zone interactions are captured without artificial suppression.
Alert generation covers buy and sell zone entry events for systematic monitoring workflows.
Strategy Integration
3D Trend Vortex fits within momentum-informed band interaction and zone-based directional approaches:
Band Width Conviction Reading : Use band width as a continuous momentum quality gauge. Entering a position during a narrow-band high-slope period indicates stronger directional conviction than entries during wide-band low-slope conditions where momentum quality is reduced.
Zone Entry Signal Framework : Use buy and sell signals as structural alerts that price has reached the ATR-offset zone of interest rather than as standalone entry triggers. Evaluate slope direction and band width at the signal bar to assess whether the zone entry occurs during supporting or deteriorating momentum conditions.
Candle Gradient Momentum Monitoring : Use the brightness of trend-colored candles as a bar-level momentum reading throughout the trend. Progressively brightening candles indicate strengthening slope. Dimming candles within an established trend suggest momentum deterioration before band width changes confirm it visually.
3D Extrusion Spatial Reference : Use the three-dimensional band faces at the current bar edge as a visual anchor for where the current supply and demand zones sit relative to price, with the depth extending into future chart space providing an intuitive structural reference for the zone boundaries.
Basis Type Selection : Use EMA for standard responsive trend tracking. Use HMA for lower-lag applications requiring faster slope detection with minimal smoothing delay. Use WMA for weighted recent-bar emphasis. Use SMA for a simpler unweighted baseline reference.
Multi-Timeframe Band Alignment : Apply higher-timeframe slope direction and band positioning as a directional bias filter, engaging with lower-timeframe zone entry signals only when they align with the established higher-timeframe momentum state.
Technical Implementation Details
Basis Engine : Configurable EMA, SMA, WMA, or HMA with slope measurement and normalization against eighty-bar highest absolute slope
Band Construction : Smoothed ATR offset and width with slope-derived breathing modulation across four band edges
Gradient System : Eight equal subdivisions between inner and outer band edges with plot-fill pairs at progressively increasing transparency
3D Extrusion : Polyline polygon arrays for outer face, top face, and inner top face of each band using depth-offset bar index and ATR height coordinates
Signal Logic : Zone entry detection with independent per-side cooldown bar tracking
Candle Coloring : Power-transformed slope normalization mapped to trend-color gradient
Performance Profile : 3D extrusion triggered only on last bar with full polyline rebuild and cleanup each render cycle, configurable display length cap for object management
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday zone monitoring for scalping with shorter basis length and tighter band offset for responsive zone positioning on fast intraday momentum
15 - 60 min : Session-level momentum band tracking with balanced basis length and moderate offset for meaningful zone separation across typical intraday swings
4H - Daily : Swing-level momentum band analysis with longer basis length for sustained slope readings and wider offset reflecting larger price excursions from trend
Suggested Baseline Configuration:
Basis Length : 21
Basis Type : EMA
Band Offset (ATR×) : 3.0
Band Width (ATR×) : 0.9
Band Smoothing : 65
3D Display Length : 400
3D Depth (Bars) : 8
3D Height (ATR×) : 0.5
Show Signals : Enabled
Signal Cooldown : 20
Color Candles : Enabled (requires disabling original chart candles in chart settings)
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's volatility characteristics, typical ATR range, and preferred band sensitivity, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Bands too far from price : Decrease Band Offset to bring the inner band edge closer to price, reducing the ATR distance required for price to reach the signal zone.
Bands too close to price : Increase Band Offset to push bands further from price, requiring more significant price extension before zone entry signals fire.
Band width breathing too pronounced : The breathing effect scales with slope normalization. On instruments with highly variable slope the breathing range may appear extreme. Reduce Band Width to compress the overall width range and make breathing less visually dramatic.
Bands too jagged or smooth : Adjust Band Smoothing to control EMA smoothing on band edges. Higher values produce smoother, more gradual band curves. Lower values produce more responsive edges that track price structure changes faster.
Too many signals : Increase Signal Cooldown to enforce greater bar separation between consecutive zone entry signals on the same side, focusing attention on less frequent but more structurally spaced entries.
3D extrusion too deep or shallow : Adjust 3D Depth (Bars) to change the horizontal extent of the extruded faces and 3D Height (ATR×) to change the vertical depth of the extrusion, calibrating the spatial effect to the chart's aspect ratio and zoom level.
3D extrusion covers too many or too few bars : Adjust 3D Display Length to control how many recent bars receive the polyline extrusion rendering, reducing for performance on slower systems or increasing to extend the visual depth effect further back into price history.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets with clear directional momentum where slope normalization produces meaningful band breathing dynamics and candle gradient provides reliable conviction context throughout the trend
Instruments with consistent ATR behavior where the volatility-scaled band offset positions zones at structurally meaningful distances from price across varying market conditions
Zone interaction strategies where price reaching the ATR-offset band boundary identifies structurally significant extension events worth monitoring for reversal or continuation behavior
Visualization-focused workflows where the three-dimensional band geometry provides spatial chart reading advantages that improve structural awareness relative to flat two-dimensional bands
Reduced Effectiveness:
Choppy, trendless markets where slope alternates rapidly in direction, causing frequent trend color flips and band breathing that produces no sustained directional momentum context
Extremely high-volatility instruments where ATR spikes push band offsets to distances so large that price rarely reaches the zone boundaries and signals become infrequent regardless of cooldown settings
Low-ATR instruments where the extrusion height and band width produce visually imperceptible geometry requiring significant parameter adjustment to produce meaningful spatial depth
Markets with highly irregular slope profiles where the eighty-bar normalization window consistently registers outlier slope readings that compress the breathing range for typical bars
Consolidation environments where flat slope produces maximum band width expansion and near-neutral candle coloring simultaneously, reducing the visual differentiation that makes momentum context readable
Integration Guidelines
Confluence : Combine with BOSWaves order flow tools, structural analysis, or momentum oscillators to validate zone entry signals with broader analytical context before acting on band boundary interactions
Band Breathing Awareness : Monitor band width evolution throughout established trends as a continuous slope health indicator. Progressively widening bands during a trend suggest slope is weakening and conviction is diminishing before price structure confirms the change.
Candle Gradient Divergence : Watch for price extending toward the outer band while candles are simultaneously dimming, indicating momentum deterioration during price extension that may precede reversal toward the basis MA.
3D Depth Calibration : Adjust 3D Depth and Height parameters until the extrusion provides clear spatial depth without obscuring price action. The extrusion is a visualization aid and should complement rather than dominate the chart reading experience.
State Discipline : Maintain directional bias aligned with current slope direction until slope reverses. Zone entry signals within the same trend direction represent extension events rather than reversal triggers and should be interpreted as monitoring alerts rather than directional change signals.
Disclaimer
3D Trend Vortex is a professional-grade slope-adaptive trend visualization and zone monitoring tool. It uses moving average slope normalization with ATR-scaled breathing band construction and polyline three-dimensional extrusion but does not predict future price movements. Results depend on market conditions, instrument momentum characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates order flow context, structural analysis, and comprehensive risk management. אינדיקטור

ES/NQ Daily Levels Paste-In Sup/Res MapperDaily Levels is a manual, paste-in mapping tool. Paste a list of price levels into the settings and it draws them on your chart as clean lines and shaded zones with labels. It does not calculate signals or repaint — it simply renders the levels you enter.
Works on any symbol — ES, NQ, SPY, SPX, stocks, futures, forex, and crypto. Just paste levels that match that instrument's price.
Leave the box blank and it shows a few sample reference levels around current price (clearly tagged "sample", 10 points apart by default) so you can see how it works on any chart. The samples auto-hide the moment you paste your own levels. (The 10-point default spacing suits ES/NQ; for other instruments set the spacing to fit, or set it to 0 for auto.)
WHAT IT DRAWS
- Single prices → horizontal lines with labels
- Ranges (e.g. 5200-5205) → shaded zones
- Section groups you can label: Resistances, Supports, and special groups (Backtest, Add, Breakdown, Short)
- Tag any level "(major)" and it renders thicker
DYNAMIC S/R FLIP (optional)
When enabled, each level you paste under Supports/Resistances is colored by where price is right now:
- Price above the level → acts as support (green, "S")
- Price below the level → acts as resistance (red, "R")
- Price inside a zone → neutral / in-play (yellow)
Turn it off to keep the exact section labels you pasted.
HOW TO USE
1. Add the indicator to your chart.
2. Open its settings → "PASTE YOUR DAILY LEVELS HERE".
3. Paste your levels, one section per line, for example:
Resistances: 5210, 5218 (major), 5225-5228
Supports: 5188, 5175 (major)
4. Lines, zones, and labels draw automatically. Colors, widths, spacing, and label styling are all configurable.
NOTE
The sample levels are auto-generated placeholders for demonstration only — they are not recommended levels and should not be used for trading. This tool does not generate, suggest, or predict levels; it only displays the ones you enter.
For educational purpose אינדיקטור

Macro Trend Split Profile [ChartPrime]Macro Trend Split Profile
🔶 OVERVIEW
Traders often lose focus during long trends, failing to realize where the true market value is being built. The Macro Trend Split Profile bridges the gap between directional trend-following and volume-profile structure. It anchors a profile analysis at the start of every macro trend leg, splitting the histogram into Bullish and Bearish components.
Instead of seeing a combined profile, this script visually separates where bulls were aggressive versus where bears attempted to defend, providing a clear map of which price levels represent the highest conviction for either side.
🔶 HOW IT WORKS
The indicator executes its structural analysis through a three-stage engine:
Noise-Filtered Macro Trend Detection: At its core, the script utilizes a Supertrend engine with a noise-filter multiplier. This provides a clean, macro-directional baseline that ignores minor retracements and identifies high-conviction trend legs.
Trend-Start Profile Anchoring: Once a trend begins, the indicator initializes a memory array. It captures every candle in that trend leg and categorizes them as either Bullish (Close > Open) or Bearish (Close < Open).
Split-Histogram Mapping: Once the trend leg hits your minimum bar requirement, the indicator generates a dual-sided histogram at the start point of the trend. The Bullish profile expands to the right, while the Bearish profile expands to the left, allowing for an immediate visual comparison of institutional interest.
Dual Point of Control (POC) Tracking: The script calculates the Point of Control for both bulls and bears independently, drawing extended dashed lines across your chart that mark the exact price levels where each side has deposited the most structural weight.
🔶 KEY FEATURES
Independent POC Projection: Independently identifies the strongest bullish and bearish structural walls, helping you identify where the current trend will likely find support or resistance.
Automated Dashboard: A sleek, top-right status table provides the live macro trend direction and the exact price coordinates for the active Bullish and Bearish POC levels.
Dynamic Rescaling: The profile histogram automatically rescales based on the number of bars in a trend and the intensity of the volume distribution, ensuring the visual footprint always fits your chart perfectly.
Trend-Leg Sanitization: When a trend flips (e.g., from bullish to bearish), the script automatically purges the old data arrays and resets the profile engine, ensuring you are never analyzing "stale" historical order blocks.
🔶 TRADING APPLICATIONS
Trend-Leg Retracement Entries: During a strong trend, monitor the Point of Control line that matches your trend direction. A dip back into the Bullish POC (during a Bullish trend) represents a high-probability zone to reload positions at a institutional fair-value level.
Confluence for Reversals: If price approaches an opposing POC (e.g., Bearish POC during a Bullish trend), this marks a high-friction zone. These levels are prime candidates for taking partial profits, as they represent the most "defended" territory for the counter-trend side.
Macro Structure Shifts: If price closes consistently beyond the most recent POC projection, it indicates that the current trend has exhausted its structural support, often serving as a signal to tighten stop-losses or prepare for a potential macro trend flip.
🔶 SETTINGS
Macro Trend Length & Multiplier: Controls the sensitivity of the Supertrend. Higher values filter out aggressive noise and capture only the most significant primary trend legs.
Minimum Bars for Profile: Sets the threshold for how long a trend must persist before the profile begins to render, preventing false signals during short-lived, volatile consolidations.
Profile Resolution (Bins/Width): Customize the granularity of the histogram segments and the horizontal space the indicator occupies on your chart to suit your workspace preference.
🔶 CONCLUSION
The Macro Trend Split Profile is a surgical tool for trend traders. By splitting the volume profile into Bullish and Bearish components, it stops you from guessing where the "other side" is positioned and shows you exactly where the institutional battle lines are drawn. אינדיקטור

Price Structure RSIOverview
Price Structure RSI is a market-structure oscillator that converts confirmed structural breaks into a cumulative directional series and then applies the Relative Strength Index calculation to that series.
Unlike a traditional RSI, which is calculated directly from price changes, this indicator measures how previously identified pivot highs and pivot lows are being broken.
The oscillator includes:
- market-structure-based RSI
- configurable RSI length
- configurable overbought and oversold levels
- Close or High/Low structure-break confirmation
- optional EMA, SMA, or WMA smoothing
- confirmed bullish and bearish signals
- dark and light colour presets
- gradient oscillator visualization
- simplified bullish and bearish historical W/L panels
- configurable target and stop distances
- configurable panel positions
- bullish and bearish alerts
The indicator is intended to help users examine whether recent market-structure breaks are producing stronger bullish or bearish pressure.
It does not predict future price movement and does not provide automatic instructions to enter or exit a trade.
Open-source reuse and credits
Price Structure RSI is a modified and expanded derivative of the open-source indicator "Market Structure RSI" by ClayeWeight.
The original pivot detection, stored structure levels, broken-structure accumulation, cumulative structure total, RSI transformation, moving-average selection, threshold-crossing signals, and alert framework were adapted from ClayeWeight's work.
This version adds:
- Pine Script v6 compatibility
- dark and light colour presets
- revised oscillator colours and gradient fills
- confirmed-bar signal processing
- configurable historical target and stop measurements
- next-bar outcome evaluation
- conservative same-bar target and stop handling
- separate bullish and bearish W/L panels
- configurable panel positioning and offsets
- additional input validation
- revised alert messages
The original source was published under the Mozilla Public License 2.0.
This modified version is also published open-source under the Mozilla Public License 2.0.
Core methodology
The indicator first identifies simple confirmed pivot highs and pivot lows.
A pivot high is identified when:
- the centre candle has a higher high than the candle before it
- the centre candle has a higher high than the candle after it
A pivot low is identified when:
- the centre candle has a lower low than the candle before it
- the centre candle has a lower low than the candle after it
Because the script evaluates historical candles, the pivot is recognized only after the necessary later candle has closed.
Confirmed pivot-high prices are stored in an array.
Confirmed pivot-low prices are stored in a separate array.
Structure breaks
The indicator checks whether stored pivot levels have been broken.
Users can select one of two Structure Break Type settings:
- Close
- High/Low
When Close is selected:
- a stored pivot high is considered broken when the previous candle closes above it
- a stored pivot low is considered broken when the previous candle closes below it
When High/Low is selected:
- a stored pivot high is considered broken when the previous candle high moves above it
- a stored pivot low is considered broken when the previous candle low moves below it
When one or more stored pivot highs are broken, positive values are added to the cumulative structure total.
When one or more stored pivot lows are broken, negative values are added to the cumulative structure total.
Broken levels are removed from their respective arrays so that the same structure level is not counted repeatedly.
Cumulative structure total
Each broken pivot high contributes:
- +1
Each broken pivot low contributes:
- -1
If several stored structure levels are broken together, several values can be added during the same calculation.
The script then calculates the cumulative sum of these positive and negative structure changes.
A rising structure total indicates that more stored pivot highs are being broken.
A falling structure total indicates that more stored pivot lows are being broken.
Structure RSI
The Relative Strength Index calculation is applied to the cumulative structure total rather than directly to price.
The default RSI Length is:
- 20
The resulting oscillator is called the Structure RSI.
Higher Structure RSI values indicate that bullish structure breaks have recently had greater influence on the cumulative series.
Lower Structure RSI values indicate that bearish structure breaks have recently had greater influence.
The Structure RSI should not be interpreted as a standard price RSI because its input is the cumulative structure-break series rather than normal closing-price changes.
Overbought and oversold levels
The default levels are:
- Overbought Level: 80
- Oversold Level: 20
The Oversold Level must remain below the Overbought Level.
The script displays an error when the oversold setting is equal to or above the overbought setting.
The levels are configurable and should be treated as analytical thresholds rather than universally optimal settings.
Bullish signal
A bullish signal occurs when the Structure RSI crosses upward through the selected Oversold Level.
The signal is confirmed only after the chart candle closes.
The bullish marker appears at the bottom of the oscillator pane.
A bullish signal indicates that the structure-based oscillator has recovered above its lower threshold.
It does not guarantee that price will continue higher.
Bearish signal
A bearish signal occurs when the Structure RSI crosses downward through the selected Overbought Level.
The signal is confirmed only after the chart candle closes.
The bearish marker appears at the top of the oscillator pane.
A bearish signal indicates that the structure-based oscillator has moved back below its upper threshold.
It does not guarantee that price will continue lower.
Moving average
An optional moving average can be applied to the Structure RSI.
Available moving-average types are:
- EMA
- SMA
- WMA
The default settings are:
- Moving Average Type: EMA
- Moving Average Length: 8
The moving average can be used to observe the smoother direction of the Structure RSI.
The moving average does not directly create the bullish or bearish threshold signals.
Hiding the moving average does not change the Structure RSI calculation.
Oscillator colours
The Structure RSI line changes colour according to its current position.
- Above the Overbought Level: bearish colour
- Below the Oversold Level: bullish colour
- Between the two levels: neutral grey
The oscillator also includes:
- a dashed overbought line
- a dashed oversold line
- a dotted 50 midline
- a neutral background fill between the main levels
- bullish and bearish gradient fills
- optional dark and light colour presets
The colour settings change presentation only.
They do not alter the structure calculation or signal logic.
Confirmed signals
Bullish and bearish signals are accepted only on confirmed chart bars.
The script does not finalize a signal solely because the Structure RSI temporarily crosses a threshold while the active candle is still open.
Values may still move while the current chart candle develops.
The final marker and alert are generated only after the candle closes with the crossing condition confirmed.
Historical W/L measurements
The indicator includes simplified historical bullish and bearish outcome measurements.
These measurements are not a complete TradingView strategy backtest.
When no measurement is currently active, a confirmed signal can begin a new historical measurement.
For a bullish signal:
- the signal candle close becomes the recorded entry price
- the target is placed above the recorded entry
- the stop is placed below the recorded entry
For a bearish signal:
- the signal candle close becomes the recorded entry price
- the target is placed below the recorded entry
- the stop is placed above the recorded entry
Only one unresolved historical measurement is tracked at a time.
Target distance
Target Distance (%) controls the percentage distance between the recorded signal close and the historical target.
The default value is:
- 1.0%
For a bullish measurement:
- Target = Entry Price × (1 + Target Percentage)
For a bearish measurement:
- Target = Entry Price × (1 - Target Percentage)
The minimum allowed target distance is 0.1%.
Stop distance
Stop Distance (%) controls the percentage distance between the recorded signal close and the historical stop.
The default value is:
- 1.0%
For a bullish measurement:
- Stop = Entry Price × (1 - Stop Percentage)
For a bearish measurement:
- Stop = Entry Price × (1 + Stop Percentage)
The minimum allowed stop distance is 0.1%.
Next-bar evaluation
Target and stop evaluation begins on the bar after the signal.
The signal candle itself is not used to determine the result.
This prevents price movement that occurred earlier during the signal candle from being counted after the entry has been recorded at that candle's close.
Wins and losses
The tables use the following labels:
- W = Win
- L = Loss
A win means that the configured target was reached before the configured stop.
A loss means that the configured stop was reached before the configured target.
The displayed percentage is:
- Wins divided by completed Wins and Losses
Bullish and bearish measurements are counted separately.
Same-bar target and stop handling
A chart candle can sometimes touch both the target and stop.
Standard OHLC chart data does not reveal which level was reached first inside that candle.
When both levels are touched during the same bar, the script records a loss.
This conservative rule avoids automatically assuming the more favourable outcome.
The script does not reconstruct lower-timeframe intrabar movement.
One active measurement at a time
Only one unresolved historical measurement can be active.
When a measurement is already active:
- later bullish or bearish signals can still appear
- later signals can still trigger alerts
- later signals do not start another W/L measurement
- the active measurement remains open until its target or stop is reached
An opposite signal does not automatically close the existing measurement.
This means that not every displayed signal is included in the W/L panels.
Bull panel
The Bull panel displays results from completed bullish measurements.
The panel contains:
- Bull
- W: number of bullish targets reached first
- L: number of bullish stops reached first
- percentage of completed bullish measurements recorded as wins
The Bull panel position can be selected from the available chart locations.
Bear panel
The Bear panel displays results from completed bearish measurements.
The panel contains:
- Bear
- W: number of bearish targets reached first
- L: number of bearish stops reached first
- percentage of completed bearish measurements recorded as wins
The Bear panel position can be selected independently from the Bull panel.
Panel positions and offsets
The Bull and Bear panels can be placed at:
- top left
- top centre
- top right
- middle left
- middle centre
- middle right
- bottom left
- bottom centre
- bottom right
Row and column offsets can be used to move each panel within the available position grid.
Negative row values move the selected panel upward.
Positive row values move it downward.
Negative column values move it to the left.
Positive column values move it to the right.
The final position is restricted to the available TradingView table locations.
The panels can overlap when both are assigned to the same effective position.
Meaning of the displayed percentage
The percentage represents the share of completed measurements where the configured target was reached before the configured stop.
It is not:
- a guaranteed win rate
- proof of future profitability
- a complete strategy result
- a recommendation to enter a trade
- a forecast of future performance
The historical measurement does not include:
- commissions
- spread
- slippage
- liquidity
- order execution
- position sizing
- account equity
- partial exits
- trailing stops
- market gaps
- order rejection
- overlapping positions
- complete intrabar sequencing
Historical results do not guarantee future results.
Alerts
The indicator includes two alert conditions:
- Bullish Signal
- Bearish Signal
The Bullish Signal alert is triggered when the Structure RSI crosses upward through the Oversold Level on a confirmed chart bar.
The Bearish Signal alert is triggered when the Structure RSI crosses downward through the Overbought Level on a confirmed chart bar.
When creating TradingView alerts, use:
- Once Per Bar Close
This matches the confirmed signal logic.
How to Use
1. Apply the indicator
Add Price Structure RSI to a standard TradingView chart.
The oscillator appears in a separate pane below the main price chart.
2. Begin with the default settings
The default configuration is:
- RSI Length: 20
- Overbought Level: 80
- Oversold Level: 20
- Structure Break Type: High/Low
- Moving Average Type: EMA
- Moving Average Length: 8
- Target Distance: 1.0%
- Stop Distance: 1.0%
Review the indicator with its default configuration before changing several settings simultaneously.
3. Select the structure-break type
Choose High/Low when a stored structure level should be considered broken as soon as the previous candle's high or low passes it.
Choose Close when the previous candle must close beyond the stored structure level.
High/Low is generally more responsive.
Close is generally more restrictive.
Neither setting is automatically more accurate.
4. Read the Structure RSI
Use the oscillator to observe the balance of recent broken pivot highs and pivot lows.
A rising oscillator indicates that bullish structure breaks are having greater recent influence.
A falling oscillator indicates that bearish structure breaks are having greater recent influence.
The oscillator can remain elevated or depressed during extended directional conditions.
5. Read the overbought area
When the Structure RSI moves above the Overbought Level, bullish structure-break pressure has pushed the oscillator into its upper region.
The bearish signal does not occur merely because the oscillator is above the level.
The bearish signal occurs only when the oscillator later crosses downward through the Overbought Level on a confirmed bar.
6. Read the oversold area
When the Structure RSI moves below the Oversold Level, bearish structure-break pressure has pushed the oscillator into its lower region.
The bullish signal does not occur merely because the oscillator is below the level.
The bullish signal occurs only when the oscillator later crosses upward through the Oversold Level on a confirmed bar.
7. Wait for the candle to close
Signals are confirmed at bar close.
Do not treat a temporary intrabar threshold crossing as a finalized signal.
Wait for the marker to remain after the chart candle closes.
8. Use the moving average
Enable the moving average to observe a smoother version of the Structure RSI.
Available types are:
- EMA
- SMA
- WMA
A shorter moving-average length reacts more quickly.
A longer moving-average length responds more slowly.
The moving average can provide visual context, but it is not part of the threshold-crossing signal condition.
9. Configure the target and stop distances
Set Target Distance (%) and Stop Distance (%) according to the historical measurement you want to study.
For example:
- Target: 1.0%
- Stop: 1.0%
This creates an equal-distance historical measurement.
Another example:
- Target: 2.0%
- Stop: 1.0%
This creates a larger target than stop.
These settings are research parameters and are not recommended trading settings.
10. Read the Bull panel
The Bull panel measures completed bullish signals.
- W means the bullish target was reached first
- L means the bullish stop was reached first
- the percentage shows bullish wins divided by completed bullish outcomes
Only signals that begin while no other measurement is active are included.
11. Read the Bear panel
The Bear panel measures completed bearish signals.
- W means the bearish target was reached first
- L means the bearish stop was reached first
- the percentage shows bearish wins divided by completed bearish outcomes
Only signals that begin while no other measurement is active are included.
12. Understand same-bar outcomes
When both the target and stop are touched during the same candle, the result is counted as a loss.
This is a conservative assumption because the chart's OHLC data cannot show which level was reached first.
13. Understand skipped measurements
A signal can appear while another historical measurement is still unresolved.
That signal can still:
- display a marker
- trigger an alert
However, it does not begin another historical measurement.
This is why the total W/L count may be lower than the total number of visible signals.
14. Position the panels
Choose separate positions for the Bull and Bear panels.
The default positions are:
- Bull panel: top left
- Bear panel: top right
Use the row and column offsets when small position adjustments are needed.
Avoid assigning both panels to the same final position unless overlapping panels are intended.
15. Select the colour preset
Use Dark Background on dark chart themes.
Use Light Background on light chart themes.
The preset changes moving-average and panel text colours.
It does not change the indicator calculations.
16. Create alerts
Create separate TradingView alerts for:
- Bullish Signal
- Bearish Signal
Use Once Per Bar Close.
Test alerts on the intended symbol and timeframe before using them operationally.
17. Review broader market context
Use Price Structure RSI together with additional analysis such as:
- trend direction
- price structure
- support and resistance
- volume
- volatility
- liquidity
- market sessions
- recent swing highs and lows
- scheduled economic or company events
- risk management
A threshold crossing alone does not guarantee a reversal or continuation.
Suggested starting process
- Apply the indicator to a standard candlestick chart
- Keep RSI Length at 20
- Keep the levels at 80 and 20
- Begin with High/Low structure breaks
- Keep the EMA smoothing line enabled
- Use a target and stop distance of 1.0%
- Wait for confirmed bar-close signals
- Compare the oscillator with visible price structure
- Review the Bull and Bear panels separately
- Remember that only one active measurement is tracked
- Test several symbols and timeframes before drawing conclusions
- Use Once Per Bar Close for alerts
Limitations
- The indicator is derived from the open-source Market Structure RSI by ClayeWeight
- The central structure-break accumulation methodology is adapted from the original work
- Pivot identification is based on a simple three-candle relationship
- Pivots are identified only after the required later candle has closed
- The oscillator measures broken stored structure levels rather than normal price momentum
- The Structure RSI can behave differently from a standard price RSI
- The indicator does not determine whether a structure break is genuine or false
- The indicator does not measure volume, volatility, liquidity, or trend strength
- Signals are confirmed at bar close and may occur later than temporary intrabar conditions
- A bullish signal does not guarantee that price will rise
- A bearish signal does not guarantee that price will fall
- Only one unresolved historical measurement is tracked at a time
- Not every visible signal is represented in the W/L panels
- Opposite signals do not close active measurements
- Target and stop evaluation begins on the bar after the signal
- Same-bar target and stop contact is recorded as a loss
- The W/L panels are simplified historical measurements
- The displayed percentages are not complete backtest results
- Commissions, spread, slippage, liquidity, position sizing, and execution are not included
- Historical outcomes do not imply future results
- The indicator should not be used as the sole basis for a trading decision
Price Structure RSI is an analytical and research tool.
It does not provide financial advice, guaranteed signals, guaranteed win rates, or guaranteed results. אינדיקטור

Liquidity Gravity SMC Engine [Jayadev Rana]LIQUIDITY GRAVITY SMC ENGINE
WHAT IT IS
An experimental Smart Money Concepts toolkit that does not treat every order block and fair value gap as equal. Each unmitigated zone is modeled as a gravitational mass acting on price: heavy zones (born from strong displacement on high relative volume) matter more, old zones fade away, and the combined pull of all active zones is compressed into a single bounded bias reading. On top of that field sit a composite trend engine, a quality-scored buy/sell signal engine, and a pyramid re-add engine that only accepts fresh continuation zones.
THE GRAVITY MODEL (CORE ORIGINAL IDEA)
Every zone is minted with a mass at birth:
mass = displacement impulse (in ATR units) x (0.5 + volume percentile / 100)
The mass decays exponentially with a configurable half-life, so a zone that sits unmitigated for a long time gradually loses influence:
effective mass = mass x 0.5 ^ (age in bars / half-life)
Each bar, the script sums the pull of every active bullish zone and every active bearish zone on the current close using a softened inverse-square law (the softening epsilon prevents the value from exploding when price trades inside a zone):
pull = effective mass / (distance in ATR ^ 2 + epsilon ^ 2)
The two fields collapse into a bounded oscillator:
gravity bias = 100 x (bull field - bear field) / (bull field + bear field)
A reading near +100 means the active demand field dominates; near -100 means overhead supply dominates. The raw bull/bear field values, zone counts, and the bias are all exposed in the data window and on the dashboard.
ZONE DETECTION
- Order blocks: a break of a confirmed swing pivot with a displacement candle (body larger than a configurable ATR multiple) anoints the most recent opposite-color candle as the origin. Body-only or full-range zones are selectable.
- Fair value gaps: classic three-candle imbalance, filtered by a minimum gap height in ATR units and an optional minimum displacement body on the middle candle.
- Lifecycle: zones are marked on first touch, removed on a decisive close through the far side, expired after a maximum age, and capped per side (oldest dropped first).
TREND ENGINE
A composite score in -100..+100 blends three independent measurements with user weights:
1. Market structure regime from a BOS / CHoCH state machine on confirmed swing pivots.
2. Signed Kaufman efficiency ratio (how directional the recent path is versus noise).
3. ATR-normalized Hull MA slope, clamped to -1..+1.
The score passes through a hysteresis gate with separate entry and exit thresholds, so the published trend state (LONG / SHORT / NEUTRAL) does not flicker around zero.
SIGNALS AND THE RE-ADD ENGINE
A primary BUY prints when price trades into an active bullish zone and closes back above its top (a sweep and reject), while the trend state and, optionally, the gravity bias agree. Every candidate is scored with a 0-100 confluence quality:
quality = 100 x (0.35 x trend alignment + 0.25 x gravity alignment + 0.20 x zone mass rank + 0.20 x rejection strength)
Only candidates above the quality threshold print. After a primary entry, the re-add engine arms: an ADD signal requires a FRESH zone (born after the previous entry bar), the same trend direction, and a reduced quality threshold, with a hard cap on adds per leg. Legs terminate on an opposing trend flip or an opposing CHoCH, which prints an EXIT marker. SELL logic mirrors the buy side.
INPUT GROUPS
1. Market Structure - pivot length, BOS/CHoCH lines, swing labels.
2. Order Blocks - lookback, body-only toggle, displacement filter.
3. Fair Value Gaps - minimum gap size, middle-candle displacement filter.
4. Gravity Model - mass half-life, softening epsilon, volume percentile lookback, zone expiry, zone cap.
5. Trend Engine - efficiency ratio length, Hull MA length and slope lookback, component weights, entry/exit thresholds.
6. Signals and Re-Add - primary and re-add quality thresholds, max adds per leg, cooldown, gravity alignment toggle, bar-close confirmation.
7. Visuals - zone boxes, signal labels, trend ribbon, gravity gradient bar coloring, colors.
8. Dashboard - position and text size.
ALERTS
Ten alert conditions: primary BUY, primary SELL, re-add long, re-add short, trend flip long, trend flip short, bullish zone created, bearish zone created, bullish zone touched, bearish zone touched.
INTENDED MARKETS AND TIMEFRAMES
Any symbol with volume data (crypto, futures, liquid stocks, major forex pairs). The volume percentile term falls back gracefully where volume is absent, but zone masses become less differentiated. Designed for intraday through daily timeframes; defaults were chosen on 5-minute to 1-hour charts.
NON-REPAINTING BEHAVIOR
Swing pivots confirm after the pivot length (standard pivot lag). BOS/CHoCH events are evaluated on closes against already-confirmed pivots. With "confirm on bar close" enabled (default), signals and alerts fire only on confirmed bars. No security() calls and no lookahead are used.
LIMITATIONS
- The gravity model is a heuristic, not a physical law; the inverse-square form and the half-life are modeling choices you can tune.
- Zone quality depends on the displacement and volume filters; thin or gappy instruments produce fewer, noisier zones.
- Signals are informational markers, not orders; the leg/adds bookkeeping is a visual state machine, not broker position tracking.
This is an educational tool, not financial advice. Test any settings on your own market and timeframe before relying on them. אינדיקטור

Range Breakout Pro [JOAT]═══ RANGE BREAKOUT PRO ═══
Range Breakout Pro is a universal breakout engine. It defines a reference range from the Previous Day , Previous Week , an Initial Balance window, or a Custom Session , draws that range on the chart, and only fires a trade idea when price confirms a close beyond the edge. Every signal is scored 0–10 for conviction and shipped with a full trade plan: stop, three R-multiple targets, and live outcome tracking.
▎ WHAT IT DOES
It turns a simple "price broke the range" event into a structured, filtered, and scored decision. The chosen range basis is projected onto the current period as a box with edge rails and a midline. A confirmed break becomes a clean LONG or SHORT label with a stop, TP1/TP2/TP3 zones, and a running performance panel — all built to keep the chart readable.
▎ HOW IT WORKS
— Range basis : Previous Day / Previous Week project the prior completed period's high-low forward. Initial Balance and Custom Session accumulate the high-low inside a session window (in your chosen timezone) and lock the range at the window close.
— Break detection : a bar must close beyond the range edge, not just wick through it. In direct mode the close must clear the level by a Break Buffer measured in ATR.
— Optional retest : with retest confirmation on, price must break, pull back within a tolerance of the level, then close beyond it again before a signal arms — decisive reversals back through the level cancel the setup.
— Strength score (0–10) : each candidate is graded on candle body dominance, candle range vs ATR, volume vs its average, 3- and 5-bar momentum agreement, penetration depth past the level, RSI posture, higher-timeframe trend alignment, whether it is the first break of the period, and range size vs ADR. The score maps to a ★ rank and a tier from FORMING to ELITE.
— Filters/gates : minimum strength to signal, optional "strong only" threshold, HTF EMA trend alignment (longs above, shorts below), a range-vs-ADR gate (skip ranges too tight or too wide), and a max-signals-per-period cap.
— Trade model : entry at the confirming close. Stop from Structure (opposite range edge), Mid (range midline), or ATR , with an ATR buffer plus min/max risk clamps. Targets are placed at your TP1/TP2/TP3 R-multiples off the measured risk.
— Outcome engine : each trade is tracked bar by bar for TP1/TP2/TP3, stop, or end-of-period flatten, including same-bar stop handling, and the result feeds the stats panel.
— VWAP overlay : session-anchored VWAP with ±1σ bands and an optional ±2σ outer channel, tinted to the side price is trading.
▎ HOW TO USE IT
— Pick the range basis that fits your style: intraday traders often use Initial Balance or Custom Session; swing traders use Previous Day or Previous Week.
— Wait for a LONG / SHORT label. The ★ rank and score tell you how much confluence backed that break — treat higher tiers as higher conviction.
— The entry line is the confirming close, the dashed line is the stop , and the three solid lines are targets tagged 🎯 TP1 , 🥈 TP2 , 🏆 TP3 . The green zone is the reward area; the red zone is risk.
— Use the range box, midline, and rails as context: reclaims of the midline, failed breaks, and edge retests are all readable at a glance.
— Layer the VWAP bands as confluence — breakouts extending away from VWAP with room to the outer channel read differently than breaks stalling into a band.
— Result labels (TP / SL / EOP with the R outcome) close each idea so you can review what worked.
▎ KEY SETTINGS
— Engine : range basis, session timezone, IB / custom windows, retest toggle, break/retest tolerances, max signals per period.
— Strength & Filters : ATR length, minimum score, strong-only threshold, HTF trend alignment (timeframe + EMA length), and the range-vs-ADR gate.
— Trade Model : stop basis and buffer, ATR stop distance, min/max risk caps, TP1/2/3 in R, and how many past trades to keep drawn.
— Visuals : Ice / Emerald / Mono theme, box, rails, midline, measured-move ×1/×2 guides, projection length, label size, and toggles for signal, lines, zones, level labels, and result labels.
— VWAP & Candles : VWAP source, σ multiplier and lookback, outer channel, and optional RSI-gradient candles.
— Dashboard : show/hide, position, text size, and the outcome breakdown row.
▎ DASHBOARD
A chrome-accented panel reports the active range basis, current range size and % of ADR, price vs VWAP (with σ distance), engine status (forming / armed / trade active), the active and last signal with its score, and live stats: win rate , profit factor , average R per trade, long vs short win%, best direction, total signals, current and max streaks, plus an optional TP1/TP2/TP3 · SL · EOP outcome breakdown.
▎ ALERTS
— RBP Long and RBP Short on a confirmed, filtered breakout.
— TP3 Hit , Partial TP (protected exit), SL Hit , and EOP Exit (end-of-period flatten).
▎ NOTES
— Works on any market and any timeframe.
— Higher-timeframe data uses confirmed prior values, so signals are evaluated on bar close and do not repaint after the fact.
— Clean-by-default: measured-move guides, extra rails, gradient candles, and the outer channel all sit behind toggles so you can strip the chart down or build it up.
— Drawn history (ranges and trades) is capped to keep the chart light.
This tool is for research and education only. It is not financial advice. No indicator can predict the future, and any statistics shown reflect historical signals on your chart — past behavior does not guarantee future results. Always do your own analysis and manage your own risk.
Made with passion by JackOfAllTrades ⚡ אינדיקטור

Wonra Alchemist SNR EngineWonra Alchemist SNR Engine
An implementation of Malaysian SNR (MSNR) and the Quasimodo reversal pattern, built as one engine because in that method the pieces are not independent indicators. A level means nothing without knowing which way the story is running, and the story is told by levels. This publishes the whole reading rather than one part of it.
Everything below is visible in the source. This is published open-source so the code is the final word on any of it.
How levels are found
Malaysian SNR ignores wicks. A level is marked by joining one candle's close to the next candle's open, and the space between those two prices is the level itself. Where the two meet you get a hairline; where they do not, the space between them never traded, and that untraded space is what the method calls a GAP. The engine treats both as one construct: a level is a band, and a gap is a band you can see.
That has consequences the code follows through on:
A touch registers at either edge of the band.
A break requires a close through the far edge. Closing inside the band has broken nothing, because nothing in there ever traded.
Levels are seeded from confirmed swings (an ATR-threshold zigzag, so minor noise does not create a level of its own) and from close-to-open gaps above a size floor.
How a level earns weight
Two things strengthen a level, and the second is the one most tools ignore.
Touches. Price left the level, came back and was refused. Leaving is required: price hovering at a price does not add a touch every bar.
Misses. Price swung toward the level and turned before reaching it. In MSNR a miss validates a level rather than doing nothing, and the reasoning is that the resting liquidity was never taken, so all of it is still there. A level with three misses is not the same as one with three taps, and the label shows them separately.
Role flip (SBR / RBS)
A level closed through does not disappear, it changes sides. Broken support becomes resistance and broken resistance becomes support, keeping its history. This is the SBR/RBS part of the method and it is why the chart does not empty out over a session.
Quasimodo (QM / QML)
The engine looks for the QM shape: a shoulder, a head beyond it, and a return. For a bullish QM the head must be a lower low than the left shoulder; the level drawn is the left shoulder, not the head, which is where the pattern is traded from. Each candidate must also produce a structure break before it is accepted, and combinations are scanned across several swings so a pattern is still found when a minor swing sits inside it.
Supply zones extend up from the QM level and demand zones extend down from it, on one side only, so price is not counted as having reached a zone while it is still short of the level.
Storyline (direction)
MSNR determines direction from higher-timeframe levels, and the engine follows the four rules the method states:
Direction comes from higher-timeframe levels, read from bodies, not from wick extremes.
A storyline begins with a rejection: a close back below resistance, or back above support.
It is confirmed by a breakout on a lower timeframe. The engine distinguishes the two kinds the method names — an internal breakout of a level formed after the rejection, and an external breakout of one that already existed — and reports which occurred.
Levels against the established direction are roadblocks: the places pullbacks are expected to stop on the way. They are marked rather than hidden, because they are the one thing the method tells you to expect.
Engulfing zones (EG / EF)
An engulfing candle above a size floor creates a zone. The rule that makes it worth having is what happens when it fails: a bullish zone that price closes through becomes a failed zone read the other way, at the same prices, because that is where the other side proved itself. Broken twice and it is discarded, having now been wrong in both directions.
Imbalances
Three-candle gaps, drawn as neutral background. Zones spanning a market closure are discarded — a weekend is not unfinished business between buyers and sellers, it is a closed market, and it happens to leave the largest and most eye-catching gap on the chart.
Scoring
Confirmed patterns are scored 0-100 from what the engine already knows about them: the size of the structure, the quality of the break, whether liquidity was swept and how cleanly, whether an imbalance sits inside the zone, and how proven the levels involved are. The score sets how loudly a pattern is drawn. Nothing is deleted for scoring low.
Why this is one script and not several
Because in this method the parts are not separable. The storyline decides which levels are tradeable and which are roadblocks. The QM level is only a setup when it agrees with the storyline. A level's weight comes from its own touch and miss history. Splitting these into separate indicators would produce three scripts that each need the other two to say anything, which is the situation this replaces.
How to use it
The panel gives the current reading: storyline direction and which breakout confirmed it, how many fresh zones are live on each side, the nearest zone in ATR, and whether a confluence is being watched.
Fresh zones are the tradeable ones. A zone that has been used is faded, not removed, so the history stays readable.
Zone reactions are marked where they happen. A diamond marks a reaction from a level that had already proven itself.
Levels against the storyline are marked RB. Expect a pause there, not a reversal.
Higher timeframes for direction, lower for entry timing. The storyline timeframe is automatic and can be set manually.
Credits
The concepts are not mine. Malaysian SNR, the storyline structure, roadblocks, fresh and unfresh levels, the MISS, SBR/RBS and the Quasimodo entry come from Malaysian SNR and Alchemist educational material that circulates publicly. This is an implementation of that method, not a new one.
The Strong FVG section is taken from "Customizable Strong FVGs" by Fleezzuss, published open-source under the Mozilla Public License 2.0. The three-candle detection, the sensitivity modes and the zone lifecycle are their work. This script is published open-source under the same licence because of it.
Added on top: a gap is not drawn when it would sit on one already on the chart, so consecutive impulse candles stop stacking zones at the same price; gaps spanning a market closure are discarded, because a weekend is a closed market rather than an imbalance; and the palette is neutral so imbalances sit behind the levels instead of competing with them.
Not financial advice. This is an analysis tool. It does not predict outcomes and does not tell you to buy or sell. Every level can fail.
אינדיקטור

Precision Bedrock [MohaveTrader]Precision Bedrock is an open-source market structure indicator that combines adaptive trend rails, structural equilibrium, rail-sourced support and resistance zones, and contextual reversal warnings into a single framework. Rather than accumulating historical levels, Bedrock continuously maintains the structure that remains relevant to current price action.
━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY BEDROCK IS DIFFERENT
━━━━━━━━━━━━━━━━━━━━━━━━━━
Most support/resistance tools draw a level and leave it there. The market moves; the level does not, and the chart slowly fills with lines that no longer matter.
Bedrock treats market structure as something living. Zones are born from rail extremes and confirmed by price rejection. They move through a defined lifecycle that includes testing, confirmation, merging, role reversal, and eventual retirement as the market evolves. The result is a chart focused on the structural levels that remain relevant as price evolves.
━━━━━━━━━━━━━━━━━━━━━━━━━━
THE RAIL & EQUILIBRIUM ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━
Upper and lower rails track the recent extremes over a lookback that adapts to your chart's timeframe. They define the channel the zones are sourced from and the directional context the reversal logic reads against, running under the hood rather than as a plotted line.
Between the rails sits the equilibrium: a smoothed, adaptive midline that reads where price is balancing within the channel. It is the reference the reversal logic measures turns against — a curl or slope shift in the equilibrium is often where building pressure first shows up.
━━━━━━━━━━━━━━━━━━━━━━━━━━
STRUCTURAL ZONES
━━━━━━━━━━━━━━━━━━━━━━━━━━
Zones are sourced from the rails, not from raw pivots. A rail printing a new extreme arms a candidate; a close-based pullback of a configurable ATR distance away from that extreme commits it into a zone, keeping zones anchored to structure the market actually stepped away from. Each zone is an ATR-width band — the rail extreme is the outer edge, extending inward toward price — so the level has the thickness real reactions occur across.
Every zone moves through a lifecycle:
• Active — a confirmed level, drawn as Support or Resistance.
• Testing — price has entered the band; the label reads Testing until the test resolves.
• Confirmed hold — after a set number of consecutive closes back outside the inner edge, the test counts and the level's respected-touch strength increases.
• Broken — a confirmed close beyond the outer edge, or price walking far past and staying away, retires the level.
• Role reversal — a broken level can flip its role in place (support becomes resistance, or the reverse) a limited number of times, rather than spawning a duplicate.
Overlapping same-side zones collapse into a single structural area, reducing duplicate levels and chart clutter. Distant zones are hidden but retained, reappearing if price returns; a per-side cap and a broken-level fade keep the chart clean. Labels show the role and mid price (for example, "Support 6.04"), and an optional Full Zone History mode lengthens each box back to where the level first formed. All zone logic runs on confirmed bars and draws at the live edge — historical levels do not repaint.
━━━━━━━━━━━━━━━━━━━━━━━━━━
REVERSAL WARNING DOTS
━━━━━━━━━━━━━━━━━━━━━━━━━━
A reversal warning dot marks a bar where pressure is building against the current trend near a rail extreme. It appears only when several conditions align on the same bar: the trend is intact and not already changing, price is on the appropriate side of the equilibrium, price is near the relevant rail, either the equilibrium is turning or the bar itself is a rejection, and a weighted reversal score clears its threshold. A cooldown prevents clusters on the same swing. The score blends multiple structural and momentum components, so no single feature alone fires a dot.
A dot is an early, contextual warning, not a trade signal. It flags that a turn is being pressured; it does not confirm one. Each dot's tooltip prints its reversal score and the rail-break level a close beyond which would confirm the turn.
━━━━━━━━━━━━━━━━━━━━━━━━━━
CANDLE COLORING
━━━━━━━━━━━━━━━━━━━━━━━━━━
Optional candle coloring displays bullish bars in green and bearish bars in red, to keep the chart readable against the zone bands and dots. It is a simple directional recolor and encodes no state. For the cleanest display, hide the chart’s native candle body, border, and wick colors when this option is enabled.
━━━━━━━━━━━━━━━━━━━━━━━━━━
CHOP SUPPRESSION
━━━━━━━━━━━━━━━━━━━━━━━━━━
An optional filter, off by default, suppresses reversal dots when momentum is unusually weak or the momentum state is changing repeatedly. It remains optional because quiet or thin markets can still produce legitimate reversal pressure.
━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE IT
━━━━━━━━━━━━━━━━━━━━━━━━━━
Bedrock is context and structure for your own methodology, not a signal service:
• Read the zones as a map of where price may react, and plan your own entries, stops, and scale-outs around them.
• Use the rails and equilibrium for directional context as price approaches a zone.
• Treat a reversal warning dot as an early heads-up to tighten attention on an open position — remembering that a dot is a warning, not a confirmed turn.
• Watch how a level's touch history and lifecycle develop to gauge which zones have earned respect on your instrument.
Alert conditions are included for bullish and bearish reversal warnings, carrying the ticker and timeframe.
Bedrock pairs naturally with tools that add a different lens on the same price — volume profile, VWAP, and momentum or market-structure tools. It does not predict prices or guarantee outcomes: its zones and warnings are analytical structures, not recommendations to buy or sell. You remain solely responsible for every trading decision.
━━━━━━━━━━━━━━━━━━━━━━━━━━
CREDITS & LICENSE
━━━━━━━━━━━━━━━━━━━━━━━━━━
Precision Bedrock is released under the Mozilla Public License 2.0.
The adaptive trend rail, equilibrium, and reversal framework is derived from Adaptive Trend Rails by NICK789, used under the MPL 2.0. Original framework © NICK789.
Structural zones, lifecycle management, reversal scoring, candle coloring, and other Bedrock-specific functionality are original work by MohaveTrader. The momentum-state component of the reversal score is adapted from the author's open-source Precision Price Gamma (PGamma). אינדיקטור

[Kpt-Ahab] Moving Average Simple AlgoPilotImportant Notice and Risk Warning
The published settings were selected exclusively based on historical data for the asset and timeframe shown.
The displayed result may be random or over-optimized and cannot automatically be transferred to other assets, timeframes, or future market conditions. Even with the presented settings, the strategy may cause significant losses at any time, including the complete loss of the allocated strategy capital.
This script is intended exclusively for analysis and testing purposes. It does not constitute investment advice or a trading recommendation.
Description
This script uses reused and adapted code components from ** Auto RiskManagement & Backtest System 2.1b** and the ** Moving Average Alarm Output **.
These components have been combined into a standalone strategy that integrates moving-average signals with position management, risk management, and backtesting functions.
How It Works
The strategy uses two freely configurable moving averages. **SMA, EMA, WMA, VWMA, or HMA** can be selected independently for the short and long moving averages.
A long signal is generated when the short moving average crosses above the long moving average. A short signal is generated when the short moving average crosses below the long moving average.
The moving averages are displayed directly on the chart. An additional colored area visualizes the position of the price relative to the long moving average. Its intensity changes according to the distance between the two moving averages.
Position and Risk Management
The script supports, among other features:
* Long and short positions
* Fixed or trailing stop-loss levels
* Multiple partial profit targets
* A final profit target
* Breakeven after the first profit target
* Optional additional entries
* Drawdown and losing-trade limits
* Internal or external trading signals
* Different position-sizing methods
Additional entries and simulated leverage may significantly increase the risk of loss.
Backtest Limitations
Strategy Tester results are based exclusively on historical market data. Real-world results may differ significantly due to commissions, spreads, slippage, liquidity, price gaps, and execution delays.
Past performance is not a reliable indication of future results.
Signals During an Open Position
The **Open Position Signals** setting determines how new signals are handled while a position is already open:
* **Wait-End-Deal:** All new moving-average signals are ignored until the current position has been closed by a profit target, stop-loss, or another protective function.
* **Wait-Reversal:** An opposing moving-average signal may close the currently open position.
With **Wait-Reversal**, a sell signal closes a long position, while a buy signal closes a short position. The opposing signal does not automatically open a new position during the same step.
Price-based additional entries remain independent of this setting and may still be executed when enabled.
Stop-Loss, Trailing Stop, Breakeven, and Liquidation Line
The strategy supports both a fixed stop-loss and a trailing stop. The selected percentage represents the direct price distance from the average entry price and is not automatically adjusted by the simulated leverage.
In **FIXED %** mode, the stop is calculated from the current average entry price. If the average entry price changes due to an additional entry, the stop is recalculated accordingly.
In **TRAILING** mode, the stop only moves in a direction that is favorable to the position. If the average entry price changes due to an additional entry, the existing trailing stop is adjusted accordingly.
The stop may optionally be moved to the average entry price after the first profit target has been reached. A stop mode must be enabled for this breakeven function to operate.
The displayed liquidation line is only an internal estimate based on the simulated position and account values. It may differ significantly from the actual liquidation calculation used by a broker or exchange.
Using External Indicators
An external numerical signal source may be used instead of the integrated moving-average signals.
The external indicator must provide a selectable plot series containing the following values:
* **+1:** Long or buy signal
* **−1:** Short or sell signal
All other values, including `na`, produce no new signal.
The external indicator must output the required numerical values through a selectable plot. This plot can then be selected under **External Source**.
How an external signal is processed while a position is already open also depends on the selected **Open Position Signals** setting.
Wichtiger Hinweis und Risikowarnung
Die veröffentlichten Einstellungen wurden ausschließlich anhand historischer Daten für das dargestellte Asset und den verwendeten Zeitrahmen gewählt.
Das Ergebnis kann zufällig oder überoptimiert sein und lässt sich nicht automatisch auf andere Assets, Zeitrahmen oder zukünftige Marktphasen übertragen. Auch mit den dargestellten Einstellungen kann die Strategie jederzeit erhebliche Verluste verursachen und das eingesetzte Strategiekapital vollständig verlieren.
Dieses Skript dient ausschließlich zu Analyse- und Testzwecken und stellt keine Anlageberatung oder Handelsempfehlung dar.
Beschreibung
Dieses Skript verwendet wiederverwendete und angepasste Codebestandteile aus ** Auto RiskManagement & Backtest System 2.1b** und dem ** Moving Average Alarm Output **.
Die Komponenten wurden zu einer eigenständigen Strategie verbunden, die Moving-Average-Signale mit Positions-, Risiko- und Backtestfunktionen kombiniert.
Funktionsweise
Die Strategie verwendet zwei frei konfigurierbare gleitende Durchschnitte. Für den kurzen und den langen Moving Average können jeweils **SMA, EMA, WMA, VWMA oder HMA** ausgewählt werden.
Ein Long-Signal entsteht, wenn der kurze Moving Average den langen Moving Average von unten nach oben kreuzt. Ein Short-Signal entsteht bei einer Kreuzung von oben nach unten.
Die Moving Averages werden direkt im Chart dargestellt. Eine zusätzliche farbliche Fläche visualisiert die Position des Kurses relativ zum langen Moving Average. Die Intensität der Darstellung verändert sich abhängig vom Abstand zwischen den beiden Moving Averages.
Positions- und Risikomanagement
Das Skript unterstützt unter anderem:
* Long- und Short-Positionen
* feste oder nachlaufende Stop-Loss-Marken
* mehrere Teilgewinnziele
* ein abschließendes Gewinnziel
* Breakeven nach dem ersten Gewinnziel
* optionale zusätzliche Einstiege
* Drawdown- und Verlustserienbegrenzungen
* interne oder externe Handelssignale
* unterschiedliche Methoden zur Bestimmung der Positionsgröße
Zusätzliche Einstiege und ein simulierter Hebel können das Verlustrisiko deutlich erhöhen.
Einschränkungen des Backtests
Die Ergebnisse des Strategietesters basieren ausschließlich auf historischen Kursdaten. Reale Ergebnisse können durch Gebühren, Spread, Slippage, Liquidität, Kurslücken und Ausführungsverzögerungen erheblich abweichen.
Vergangene Ergebnisse sind kein verlässlicher Hinweis auf zukünftige Ergebnisse.
Signale während einer offenen Position
Über **Open Position Signals** wird festgelegt, wie neue Signale während einer bereits geöffneten Position behandelt werden:
* **Wait-End-Deal:** Alle neuen Moving-Average-Signale werden ignoriert, bis die aktuelle Position durch ein Gewinnziel, einen Stop-Loss oder eine andere Schutzfunktion beendet wurde.
* **Wait-Reversal:** Ein entgegengesetztes Moving-Average-Signal kann die aktuell geöffnete Position schließen.
Bei **Wait-Reversal** schließt ein Verkaufssignal eine Long-Position und ein Kaufsignal eine Short-Position. Das entgegengesetzte Signal eröffnet dabei nicht automatisch im selben Schritt eine neue Position.
Preisbasierte zusätzliche Einstiege bleiben von dieser Auswahl unabhängig und können weiterhin ausgeführt werden, sofern sie aktiviert sind.
Stop-Loss, Trailing-Stop, Breakeven und Liquidationslinie
Die Strategie unterstützt einen festen Stop-Loss sowie einen nachlaufenden Trailing-Stop. Der eingestellte Prozentwert beschreibt den direkten Kursabstand zum durchschnittlichen Einstiegspreis und wird nicht automatisch durch den simulierten Hebel verändert.
Im Modus **FIXED %** wird der Stop anhand des aktuellen durchschnittlichen Einstiegspreises berechnet. Verändert sich dieser durch einen zusätzlichen Einstieg, wird auch der Stop neu berechnet.
Im Modus **TRAILING** wird der Stop nur in eine für die Position günstigere Richtung nachgezogen. Verändert sich der durchschnittliche Einstiegspreis durch einen zusätzlichen Einstieg, wird der bestehende Trailing-Stop entsprechend angepasst.
Optional kann der Stop nach dem Erreichen des ersten Gewinnziels auf den durchschnittlichen Einstiegspreis verschoben werden. Für diese Breakeven-Funktion muss ein Stop-Modus aktiviert sein.
Die angezeigte Liquidationslinie ist lediglich eine interne Schätzung auf Basis der simulierten Positions- und Kontowerte. Sie kann deutlich von der tatsächlichen Liquidationsberechnung eines Brokers oder einer Börse abweichen.
Verwendung externer Indikatoren
Anstelle der integrierten Moving-Average-Signale kann eine externe numerische Signalquelle verwendet werden.
Der externe Indikator muss eine auswählbare Plot-Serie mit den folgenden Werten bereitstellen:
* **+1:** Long- beziehungsweise Kaufsignal
* **−1:** Short- beziehungsweise Verkaufssignal
Bei allen anderen Werten oder bei `na` wird kein neues Signal ausgelöst.
Der externe Indikator muss die benötigten Zahlenwerte direkt über einen auswählbaren Plot ausgeben. Dieser Plot kann anschließend unter **External Source** ausgewählt werden.
Wie ein externes Signal während einer bereits geöffneten Position verarbeitet wird, hängt zusätzlich von der gewählten Einstellung unter **Open Position Signals** ab.
אסטרטגייה

Pivot Matrix + Zones [AFD]Overview
Pivot Matrix + Zones brings up to three independently configured pivot systems into one coordinated overlay. It combines exact pivot ladders, standard Central Pivot Range (CPR), ATR- or tick-scaled reaction zones, formula-aware cross-pack confluence, retained untested levels, a compact context dashboard, and seven bar-close alert conditions.
Each pack can use a different formula and anchor, allowing combinations such as Daily Traditional, Daily Camarilla, and Weekly Fibonacci to be compared without merging their identities.
The script is designed for descriptive market context. It does not produce trade recommendations, forecasts, performance statistics, or automated orders.
What makes it different
The script's original contribution is its identity-aware coordination of the three packs rather than a simple stack of pivot lines. Each pack has its own formula, anchor, tier ceiling, formula-pivot and CPR visibility, labels, R/S color, and line style. One shared lifecycle model freezes reaction width at origin, carries formula and anchor provenance into retained levels and alerts, and keeps dashboard and drawing state aligned.
Confluence requires overlapping reaction zones from at least two distinct enabled packs. Multiple levels or historical origins from only one pack do not create confluence, and duplicate canonical levels do not inflate the displayed pack count. Exact formula-and-anchor duplicates are marked inactive instead of drawing the same configuration twice.
The implementation and lifecycle logic are original. The named pivot methods use standard published calculations identified below; no third-party indicator source code is reused.
Pivot formulas and anchors
The three packs can use Traditional, Floor Pivots, Fibonacci, Woodie, Classic, DM, Camarilla, Frank Dilernia, Shadow Trader, or ACD Method calculations. Traditional, Fibonacci, Woodie, Classic, DM, and Camarilla use the formulas documented for TradingView Pivot Points Standard. Floor Pivots uses the standard prior-period high, low, and close ladder through R3/S3; those levels match Traditional through the third tier, while Traditional retains its additional R4/R5 extensions.
Available anchors are Auto, Daily, Weekly, Monthly, Quarterly, and Yearly. Auto uses Daily pivots on chart resolutions through 15 minutes, Weekly pivots above 15 minutes and below one day, and Monthly pivots on daily-or-higher charts.
Each formula stops at its documented native tier. The Through Rn/Sn controls do not create unsupported extension levels. Camarilla calculations use the standard R/S equations and display H/L aliases alongside those names.
Data and session handling
Use daily-based values to request anchor data from the selected symbol context. Exchange default, RTH, and ETH choices are available. For futures, ETH uses the exchange-default electronic context, while RTH uses the named subsession entered in the settings. The default futures RTH name is us_regular, but valid names are symbol-specific.
On intraday charts, turning daily-based values off builds anchor values from the chart feed. This may reflect a visible session more closely, but Quarterly or Yearly anchors can have insufficient intraday history. On daily-or-higher charts, the script continues to use daily-based anchor data.
Most formulas use completed prior-anchor values. Woodie also uses the fixed open of the active anchor. The optional developing next CPR uses the active anchor's changing high, low, and close; it is visually separated and never enters confluence, retained history, or alerts.
CPR and reaction zones
CPR always uses the standard floor-pivot calculation from the completed period's high, low, and close. Its chart labels identify the center as PP, the lower Bottom Central boundary as Lower (BC), and the upper Top Central boundary as Upper (TC). This CPR pivot remains separate from a formula pivot when methods such as Woodie or DM produce a different value.
Reaction zones are symmetric bands around exact pivot prices. Their half-width can use confirmed Daily ATR, completed anchor ATR, or a fixed number of minimum ticks. The width is frozen when an anchor's geometry is created, so an existing zone does not drift as ATR changes inside that anchor. The exact pivot remains the center line; the surrounding fill is a configurable context band.
How to read the chart
Exact center lines are the calculated PP, resistance, support, or CPR levels. Soft surrounding fills show the configured interaction distance; they are not additional pivot levels or predictive outputs.
By default, formula PP lines and matching fills are yellow, Pack A R/S lines and fills are blue, and CPR boundaries and the central range are purple. Active labels identify Formula + Level, while CPR labels distinguish PP, Lower (BC), and Upper (TC). Price text is optional and hidden by default.
Confluence and retained levels
When eligible reaction zones from at least two distinct packs overlap, the script merges the overlap transitively into a confluence band. Each label names the unique contributing formulas and then shows the number of distinct packs represented, such as Traditional + Fibonacci x2. Enable confluence is the master control and is on by default. Turning it off removes confluence zones and labels and suppresses Confluence Touch events while the pivot packs, dashboard, retained-level lifecycle, and other alerts continue. When enabled, confluence color, text color, and projection change the display only, not the overlap or alert identity.
At an anchor rollover, eligible pivot zones that were not touched during their active period can be retained as Untested. A later confirmed wick overlap changes the record to TESTED, freezes and fades its drawing for 20 chart bars, and removes it afterward. Retained drawings are off by default, but lifecycle tracking, dashboard counts, confluence eligibility, and fill alerts continue while the drawings are hidden.
Dashboard
The compact dashboard shows only enabled packs with their selected pivot formula and any non-active status. It then classifies the two-period CPR relationship, reports whether the active-anchor open is above, below, or inside CPR, and shows the nearest retained untested level with the live count across all packs. CPR context follows the first enabled pack in A/B/C order.
Display controls
Active geometry can end at a finite current-bar offset, at the anchor end, or extend right. Confluence has its own finite current-bar, finite label-offset, and extend-right choices. Show confluence only hides non-confluence drawings while confluence is enabled; turning the master control off restores the normal layers. Calculations, the dashboard, lifecycle processing, and all enabled alerts continue.
Formula PP, CPR, labels, displayed prices, label size, line width, reaction shading, tier depth, and retained-level styling can be adjusted independently. Formula PP lines and fills default to yellow, Pack A R/S lines and fills default to blue, and CPR boundaries and the central range default to purple. The Inputs tab follows a numbered workflow and dims controls that do not apply without disabling calculations that still use their state. Prices are hidden by default, and chart labels identify formula and level without A/B/C prefixes; dashboard and alert provenance retain pack identity. Duplicate formula-and-anchor pack configurations are rejected rather than drawn twice.
Suggested setup workflow
Configure Pack A as the primary context, then enable Pack B or C when a second formula, anchor, or both are needed for comparison. Choose the highest native R/S tier, session basis, reaction-width method, and projection for the chart being reviewed. Use the dashboard and labels for identity, Show confluence only to isolate cross-pack overlaps, and retained-level drawings when the untested lifecycle should remain visible.
Create alerts only after the symbol, timeframe, sessions, pack settings, and reaction-width inputs are finalized, because those chart settings define the levels and events being monitored.
Alerts
Seven fixed conditions are available: Active Level Touch, Cross Up, Cross Down, CPR Enter, CPR Exit, Untested Level Filled, and Confluence Touch. Events confirm at chart-bar close. Optional dynamic messages aggregate supported events from the same confirmed bar and include available pack, formula, anchor, level, origin, and price context. TradingView running alerts retain the script inputs saved when they were created, so delete and recreate an alert after changing Enable confluence or another input.
Limitations
Pivot values and rollover timing depend on the selected symbol, data feed, anchor, session context, and available history. Daily and intraday feeds can differ because of extended hours, futures settlements, and feed construction. An invalid futures subsession name can fall back to the exchange default, so confirm the requested name in Inputs and compare the resulting pivots with the intended session.
Reaction zones and confluence visualize proximity; they do not predict a response. Untested means the configured zone was not touched during its tracked active period; it does not imply that price must revisit or react to it.
Use a standard time-based chart when evaluating touches, crosses, and alerts because those events use the chart's OHLC bars. Alerts still depend on TradingView alert creation, chart settings, feed updates, and bar-close processing.
The script keeps bounded histories of up to 30 live untested levels and 20 fading tested markers, with older retained records removed as those limits are reached. Confluence display is capped at 20 zones.
This is a public open-source Pine Script v6 indicator with a Mozilla Public License 2.0 source header. TradingView's open-source reuse rules apply on-platform before the license terms. It is an educational charting tool and is not financial advice. אינדיקטור

Market Structure BOS, CHoCH, HH HL LH LL & Trend Health [LunqFX]Market structure is the skeleton of every trend: a series of higher highs and higher lows, or lower highs and lower lows, until a break says the trend has changed. This indicator maps that skeleton automatically — labelling every swing as HH, HL, LH or LL, drawing each Break of Structure (BOS) and Change of Character (CHoCH) — and adds one thing no other structure tool has: it tells you the trend is failing BEFORE the structure actually breaks.
❶ THE STRUCTURE MAP
▸ SWING LABELS — every confirmed swing point is labelled HH (higher high), HL (higher low), LH (lower high) or LL (lower low). The sequence of those four labels IS the trend, and having it on the chart removes the guesswork from reading price action.
▸ BOS — Break of Structure. Price closes through the last swing level in the direction of the trend: the trend is continuing. Drawn as a dashed line from the broken level with a BOS label.
▸ CHoCH — Change of Character. Price closes through the last swing level against the trend: the trend has flipped. Drawn as a solid, highlighted line — this is the reversal signal smart-money traders wait for.
▸ STRUCTURE CANDLES — the candles themselves are coloured by the structural trend, not by whether each bar closed up or down. Green means the market structure is bullish, violet means bearish, so the regime is obvious at a single glance. Their brightness fades as Trend Health falls.
❷ TREND HEALTH 0–100 — THE EARLY WARNING
Every other structure tool tells you a trend has ended after CHoCH prints. By then the move is already gone. Trend Health measures the two things that decay before every structure break:
▸ EXPANSION — in a healthy trend each new extreme clears the previous one by at least as much as the last leg did. When new highs barely exceed the old ones, the trend is running out of fuel.
▸ RETRACEMENT — in a healthy trend pullbacks stay shallow. When each pullback eats deeper into the previous leg, control is shifting to the other side.
Both are measured on the live leg, normalised by ATR so the score behaves the same on any symbol and timeframe, and blended into a single 0–100 reading. When it drops below your threshold the dashboard flags WEAKENING — while the trend is still technically intact. That is the warning CHoCH cannot give you, because CHoCH is confirmation, not anticipation.
❸ THE STRUCTURE TAPE
Instead of a table of numbers, the dashboard shows a timeline of the last five structure events, oldest to newest: BOS ▲ · BOS ▲ · CHoCH ▼ · BOS ▼. Reading the sequence tells you instantly whether the market is trending cleanly (a run of BOS in one direction) or chopping (CHoCH flipping back and forth) — context you cannot get from a single label on the chart.
❹ HOW TO TRADE IT
1 — Establish the bias from MARKET STRUCTURE in the panel. Bullish structure = look for longs, bearish = look for shorts. Do not fight it.
2 — Use BOS as continuation. A BOS in the direction of your bias confirms the trend is intact; the broken level often becomes support or resistance on the retest.
3 — Use CHoCH as the reversal trigger. A CHoCH against the prevailing trend is the earliest confirmed signal that structure has flipped. Wait for it before trading a reversal.
4 — Use TREND HEALTH for timing and risk. Health above 65 with a run of BOS on the tape = a clean trend, hold your position and trail. Health falling into WEAKENING = tighten stops, take partials, and stop adding — the structure is decaying and a CHoCH becomes more likely.
5 — Read the tape for market state. Several BOS in a row = trending market, trade continuations. Alternating CHoCH = choppy market, stand aside or trade the range instead.
❺ HOW IT WORKS
Swing points come from confirmed pivots, so a swing only exists once the bars on both sides of it have closed. The most recent swing high and swing low become the active structure levels. When a bar CLOSES beyond one of them (a wick-based mode is available), the break is registered: in the direction of the current trend it is a BOS, against it a CHoCH, and the trend state flips. Trend Health compares the size of the current expansion leg with the previous one in ATR units, and the depth of the latest pullback against the leg it retraced, then blends them 60/40 into the 0–100 score. Immediately after a CHoCH there is no second leg to compare yet, so the panel honestly reports NEW TREND instead of a misleading health reading.
Works on every symbol and timeframe — forex, gold, indices, crypto and stocks — because every threshold is either structural or ATR-normalised, with nothing to configure per market.
SETTINGS — swing length (how major a swing must be), break on close or wick, the health threshold that flags weakening, swing labels and BOS/CHoCH lines on/off, number of events kept, structure candles on/off, and dashboard position.
ALERTS — BOS up, BOS down, CHoCH up, CHoCH down, and Structure Weakening (the early warning).
NON-REPAINTING — swings are built from confirmed pivots and every break is validated on bar close. A label or line that has printed never moves or disappears.
Every component here describes the same object — the market's structure — at a different resolution: the swings build it, BOS and CHoCH break it, Trend Health measures its condition, and the tape is its history. That is why they belong in one tool rather than five.
This indicator is an educational market-analysis tool, not financial advice. Trend Health describes the current structure's condition and does not predict future prices. Always confirm with your own analysis and manage your risk.
Pre-publish checklist אינדיקטור

Jurik Moving Average Approximation🚀 JURIK MOVING AVERAGE APPROXIMATION (JMA)
The Jurik Moving Average Approximation (JMA) , engineered by gunebak4n , is an advanced, ultra-low lag, adaptive noise-reduction indicator framework designed for TradingView. Built upon the legendary signal-processing principles conceptualized by Mark Jurik (Jurik Research) , this open-source implementation resolves the classical moving average tradeoff between lag and smoothness—delivering crisp, real-time trend tracking without erratic price oscillations or excessive signal delay.
Standard moving averages (such as SMA, EMA, or WMA) suffer from a fundamental lag-vs-noise dilemma: lengthening the period removes noise but introduces severe lag, while shortening the period reduces lag at the expense of excessive whipsaws. JMA overcomes this limitation by utilizing an adaptive, multi-stage recursive filtering process combined with a dynamic phase-adjustment mechanism. The result is an ultra-smooth, responsive curve that reacts instantly to sharp breakouts and price gaps while remaining stable during choppy, sideways consolidation.
💡 CORE DESIGN PRINCIPLES
🧭 Eliminating the Lag vs. Noise Dilemma
Conventional moving averages lag behind sudden market moves—especially during aggressive gaps or volatility expansions. JMA acts as a near-ideal noise filter: it tracks price action with minimal temporal delay while suppressing high-frequency market noise that leads to false signals.
🎛️ Fine-Tuned Phase & Power Control
Unlike standard averages that offer only a period setting, JMA provides modular fine-tuning controls:
• Phase (-100 to +100): Adjusts the balance between lag reduction and overshoot prevention. Positive values accelerate responsiveness for fast-moving markets, while negative values increase smoothness.
• Power: Controls the acceleration exponent of the smoothing curve, allowing traders to customize how aggressively the filter adapts to price velocity.
🌐 Native Multi-Timeframe (MTF) Capability
Equipped with Pine Script v5 multi-timeframe evaluation engines ( timeframe parameter), JMA enables you to seamlessly overlay higher-timeframe trend lines (e.g., Daily or Weekly JMA) onto lower-timeframe execution charts without breaking visual layout or causing repainting.
💡 KEY FEATURES
• Ultra-Low Lag Adaptive Tracking: Captures rapid price breakouts and market gaps instantaneously, giving traders earlier macro directional bias compared to traditional exponential or weighted moving averages.
• Dynamic Trend & Bar Coloring: Includes an optional visual execution engine that dynamically colors both the JMA line and chart price bars based on real-time trend direction (Bullish = Green, Bearish = Red).
• Integrated Alert System: Features pre-configured, non-repainting alertcondition events for bullish and bearish trend flips, enabling instant mobile notifications or webhooks for automated trading workflows.
🔬 MATHEMATICAL ARCHITECTURE
• Beta Coefficient: Beta = (0.45 * (Length - 1)) / (0.45 * (Length - 1) + 2.0)
• Alpha Coefficient: Alpha = Beta ^ Power
• Phase Ratio (PR): Mapped from Phase input (-100 to +100) into range
• Stage 1 (Raw Smoothing): e0 = (1 - Alpha) * Source + Alpha * e0
• Stage 2 (Trend Detrending): e1 = (Source - e0) * (1 - Beta) + Beta * e1
• Stage 3 (Phase-Adjusted Offset): e2 = (e0 + PR * e1 - JMA ) * (1 - Alpha)^2 + Alpha^2 * e2
• JMA_Current = JMA_Previous + e2
🛠️ USAGE FRAMEWORK
1. Trend Bias & Macro Axis
• Green JMA Line / Green Bars: Bullish regime. Focus on long entries, trend continuations, or buying pullbacks toward the JMA line.
• Red JMA Line / Red Bars: Bearish regime. Focus on short entries, trend continuations, or selling relief rallies toward the JMA line.
2. Dynamic Support & Resistance / Trailing Stop
Due to its low-lag and ultra-smooth profile, JMA functions as an exceptional dynamic trailing stop-loss boundary during sustained trend movements, preventing premature exits caused by minor intraday noise.
3. Replacement Proxy for Oscillators
Standard indicators (MACD, RSI, Stochastics) often generate false crossovers when calculated using raw price or EMAs. Passing the smoothed JMA output into these classical formulas yields significantly cleaner, higher-conviction oscillator signals.
⚙️ SYSTEM CHARACTERISTICS
• Zero Repainting: All calculations strictly evaluate on closed historical bar states.
• Fully Parameterized Inputs: Customize source price, length, phase, power, bar coloring, and color themes.
• Asset-Agnostic Engine: Operates with high precision across Equities, Forex, Crypto, Commodities, Futures, and Indices.
• Clean & Modern UI: Designed for high visual clarity on both dark and light chart themes.
📌 CREDIT & ATTRIBUTION
The Jurik Moving Average Approximation script is engineered and published by gunebak4n on TradingView.
This indicator is based on the mathematical concepts of the Jurik Moving Average (JMA) originally conceptualized by Mark Jurik (Jurik Research) .
⚠️ DISCLAIMER
This script is an open-source community implementation and mathematical approximation of the JMA concept. It is not affiliated with, officially supported by, or endorsed by Mark Jurik or Jurik Research. This indicator is a technical analysis visualization tool and does not provide financial advice, automated trading signals, or profit guarantees. Always perform thorough backtesting and practice strict risk management. אינדיקטור
