STP Flip "Anti-Whipsaw" Modified "Always-In" Overnight Strategy Synapse Trail Pro "Anti-Whipsaw" (Optimized for MNQ overnight on 9 min Candles)
### Overnight MNQ Always-In Flip Strategy | Optimized for 9-Minute Candles
**Synapse Trail Pro PRO** is a modified, session-aware, always-in-the-market trend-flipping strategy designed specifically for **Micro E-mini Nasdaq (MNQ) futures during the overnight trading session**, beginning around **18:00**, and optimized for the **9-minute chart**.
Rather than functioning as a conventional strategy that waits for a setup, enters a trade, takes a fixed profit, and returns to flat, this system is built around a modified **always-in directional framework**. It maintains either a long or short bias and automatically reverses direction when its underlying trend signal changes. When the market shifts from bullish to bearish, the strategy flips short; when it shifts back bullish, it flips long.
The objective is straightforward:
> **Remain engaged with the overnight market so that if MNQ makes a meaningful directional move at any point during the night, the strategy has the opportunity to capture that move and reach its nightly profit target.**
It is not designed around trying to predict the exact time of the overnight breakout, trend, or reversal. Instead, it is designed to continuously adapt to the market's direction and allow the eventual meaningful move to pay for the smaller fluctuations and reversals that may occur beforehand.
---
## Designed Specifically for Overnight MNQ
This version is optimized around the characteristics of the **overnight MNQ session**, rather than the regular cash-session environment.
The intended operating window begins around **18:00 Eastern**, allowing the strategy to participate throughout the overnight period rather than limiting itself to a narrow entry window. The 9-minute chart is used to help filter some of the excessive noise found on lower timeframes while still allowing the system to respond when a meaningful overnight trend develops.
Overnight markets can spend extended periods moving sideways, rotating, or producing several false directional changes before eventually making a substantial move. This strategy is designed to tolerate that process while remaining positioned to participate when the market finally establishes a sustained direction.
The core philosophy is:
**The market does not have to trend immediately. It only needs to produce a meaningful move sometime during the trading night.**
---
## Modified Always-In Flip Architecture
At its core, Synapse Trail Pro PRO is a **continuous directional repositioning system**.
Instead of repeatedly going:
**Flat → Long → Flat → Short → Flat**
the strategy operates more like:
**Long → Short → Long → Short → Long**
with the system remaining engaged until a defined session condition or profit objective ends the trading cycle.
The primary exit mechanism is therefore not a traditional stop-loss exit. Instead, trades are generally closed or reversed because the underlying signal changes direction. This allows the strategy to remain involved in the market rather than sitting flat after every individual trade.
The system is intended to capture the larger directional movement that may emerge after a series of smaller flips, rather than requiring every individual entry to be immediately profitable.
---
## The Overnight Profit Objective
The strategy is designed around a **nightly profit target rather than an unlimited daily trading objective**.
The intended target is approximately:
**+$250 to +$350 per overnight session**
when trading a base position of **1 MNQ**, depending on the configuration and market conditions.
Once the strategy reaches its nightly profit target, it stops trading for that session. This creates a defined objective and prevents the system from continuing to expose already-earned profits to unnecessary additional overnight fluctuations.
The profit target is not intended to be reached through one specific entry at one specific time. Instead, it is designed to be reached through the cumulative effect of the strategy remaining engaged, flipping with the market, and capturing the meaningful directional movement that develops during the night.
---
## Progressive Contract Scaling
This version also incorporates configurable progressive position sizing.
The strategy can increase exposure as the sequence develops, for example:
**1 → 2 → 3 → 4 MNQ**
depending on the selected maximum-contract setting.
This is intended to help the strategy recover from smaller unfavorable sequences and increase its ability to reach the nightly profit target when a sustained directional move develops.
The maximum contract setting is configurable, allowing the trader to determine the desired balance between:
* Profit-target hit rate
* Overnight drawdown
* Exposure during adverse sequences
* Recovery potential
* Overall account risk
For example, in testing, a configuration using a **maximum of 2 MNQ contracts** with a **+$250 profit target** has historically produced a profit-target hit rate of approximately **83% of overnight sessions** in the tested dataset.
That figure should be treated as a backtested observation rather than a guarantee of future performance.
---
## Why the Always-In Concept Matters Overnight
The overnight session is particularly suited to this type of architecture because meaningful moves can occur at unpredictable times.
A market may:
* Move sideways for several hours
* Produce multiple small reversals
* Develop a trend at 21:00
* Reverse again at midnight
* Break into a substantial move at 02:00
* Continue trending toward the morning session
A strategy that only takes one or two carefully timed entries may completely miss the night's most important move.
Synapse Trail Pro PRO is designed differently. It attempts to remain involved throughout the session so that **the timing of the meaningful move matters less than simply being present when it occurs**.
The system does not need to know whether the profitable move will happen at 19:00, 23:30, 02:15, or 04:30. Its purpose is to continue adapting until the market provides the directional opportunity necessary to reach the session objective.
---
## What Makes This Different from the Original Synapse Trail Pro
This version is based on **WillyAlgoTrader's Synapse Trail Pro**, which provides the underlying signal and trend-flipping foundation.
However, this is a significantly modified version of the original concept.
The modifications include:
* Removal of the original **TP1, TP2, and TP3 profit-taking structure**
* Removal of the original traditional stop-loss architecture
* Greater emphasis on **always-in directional flipping**
* Overnight session optimization
* 9-minute MNQ chart optimization
* Configurable progressive contract scaling
* A defined nightly profit target
* Session-based trading controls
* A focus on allowing meaningful overnight moves to complete the profit objective
The intention is to move away from a conventional multi-target trailing strategy and toward a more specialized **overnight directional capture system**.
---
## The Core Trading Philosophy
Synapse Trail Pro PRO is built around a simple premise:
> **You do not need to predict the overnight move if your strategy is designed to remain engaged long enough to capture it.**
The system is not trying to win every flip.
It is not trying to make every individual trade profitable.
It is not trying to identify the exact high or low of the night.
Instead, it is designed to:
1. Begin trading around 18:00.
2. Maintain a directional position.
3. Flip when the underlying trend changes.
4. Progressively scale contracts within configured limits.
5. Remain engaged through overnight fluctuations.
6. Capture a meaningful directional move whenever one develops.
7. Reach the nightly profit target.
8. Stop trading once the target is achieved.
The desired result is a strategy that may experience several smaller unfavorable reversals but is positioned to capitalize when MNQ finally makes the substantial move that defines the night's trading opportunity.
---
## Summary
**Synapse Trail Pro PRO** is a modified **always-in, trend-flipping overnight strategy for MNQ**, optimized for the **9-minute chart** and designed to operate beginning around **18:00**.
Its primary purpose is not to predict the market's next move, but to remain continuously adaptable so that **whenever a meaningful directional move occurs during the night, the strategy has the opportunity to capture it and reach its predefined profit target**.
With configurable progressive contract scaling, a nightly target in the approximate **$250–$350 range**, and a focus on capturing the overnight session's eventual directional movement, the system is designed as a specialized approach to extracting a defined profit objective from the often unpredictable overnight MNQ environment.
**Based on WillyAlgoTrader's Synapse Trail Pro, modified and optimized for overnight MNQ trading by removing the original multi-target and stop-loss architecture and emphasizing continuous directional flipping and configurable position scaling.**
استراتيجية

مؤشر

Gap Fill Engine [ES/NQ]A session-open gap tool for index futures. It measures the RTH opening gap against recent daily range, classifies it by size, projects the prior RTH close as the fill target, and keeps a running tally of how often each gap class actually fills on your own chart.
What it does
At the RTH open the script compares the session's opening price to the prior session's closing price. If the gap clears a minimum tick filter, it is measured as a ratio of gap size to daily ATR and sorted into one of four classes — tiny, small, medium, or large — each with its own color.
The script then draws:
A shaded zone spanning the open and the prior close, colored by gap class
A dashed target line at the prior RTH close, the level that defines a fill
A label carrying the gap class and the live fill rate for that class on this chart
An on-chart table of counts and fill percentages by class, plus a separate breakdown of gaps that opened inside the prior session's range versus outside it
Every completed session updates the table, so the statistics are built from the symbol and timeframe you are actually looking at rather than from numbers hard-coded by me.
Why the inside/outside split matters
A gap that opens within the previous session's high–low range has price memory immediately behind it and tends to behave differently from one that opens beyond the prior range, where there is no recent trade to lean on. The script tracks the two populations separately so you can see the difference on your own data instead of assuming it.
Inputs
RTH session window and timezone
Minimum gap size in ticks, to skip noise
ATR length and the three ratio thresholds that separate the gap classes
Toggles for the zone, target line, labels, and statistics table
Table position and size
How I use it
Treat the target line as a reference level, not a signal. A tiny gap with a high historical fill rate on your chart is context for expecting a rotation back toward the prior close; a large gap beyond the prior range is context for expecting continuation and treating the fill as unlikely intraday. The table is there so you can check whether that intuition holds on the contract you trade before you act on it.
Built for ES and NQ, but the logic is symbol-agnostic and will run on anything with a defined session.
Notes
Fill statistics are descriptive of past bars on the loaded chart and carry no predictive guarantee. Results shift with the ATR length, thresholds, and history depth you load. This script is for chart analysis and education only, and is not financial advice or a recommendation to trade. مؤشر

مؤشر

VWAP + EMAs + Levels (ATR / Premarket / Yesterday)Two questions decide every intraday trade: where is fair value, and where is price likely to react? This indicator answers both on one clean chart — no bands, no clutter, no redundant plots.
What it draws
Session VWAP — hairline green, anchorable to session, week, month, quarter, year, or even earnings, dividends and splits. The line institutions trade around, and nothing else around it.
EMA stack 5 / 9 / 21 / 50 / 200 — white, blue, yellow, red, gray. Trend, pullback zones and the long-term line at a single glance.
Daily ATR envelope — yesterday's close ± today's ATR, in red. The statistical ceiling and floor of the day: where continuation gets expensive and fades get interesting.
Yesterday's High & Low — yellow. The levels every desk is already watching.
Premarket High & Low — green. Auto-tracked from 04:00 to 09:30 NY, locked in at the bell.
What makes it different
Levels don't run off to infinity. Each one spans the regular session from open to close, tagged with a muted gray label that reads on dark charts without fighting your candles for attention. Turn the span off and they extend right, classic style.
Built for opening-range breaks, VWAP reclaims and rejections, fades into ATR extremes, and premarket-range plays.
Fully configurable — every color, line width, ATR length and MA type (RMA, EMA, SMA, Hull), premarket and regular session windows, time zone, label offset, and independent toggles for each level group.
Pine Script v6. Requires extended-hours data for premarket levels.
Credit: built on TradingView's built-in VWAP and the Day ATR H/L script by divinechartist, unified and rewritten for v6 مؤشر

Trendline X-RAY
TRENDLINE X-RAY — Multi-Timeframe Wedges & Channels
Most automatic trendline indicators answer a limited question:
“Which two pivots can be connected?”
TRENDLINE X-RAY asks a much more useful question:
"Which multi-timeframe structures are sufficiently well supported to deserve attention?”
Rather than placing arbitrary lines between isolated highs and lows, TRENDLINE X-RAY analyzes wedge and channel geometry across four structural timeframes simultaneously. It evaluates competing structures, scores their quality, and projects the strongest qualifying boundaries onto one chart.
The result is a systematic top-down view of the market’s structural landscape—without repeatedly switching between charts or manually drawing dozens of trendlines.
Why this is more powerful than random trendlines
Almost any two pivots can produce a trendline. That does not make the line meaningful.
A randomly selected trendline may:
Depend on one convenient pair of pivots
Ignore violations between its anchors
Represent only one side of the market
Lack balanced support from the opposite boundary
Be too narrow, too old, or structurally immature
Look convincing only because it was drawn after the move occurred
TRENDLINE X-RAY is designed to reduce that subjectivity.
Instead of treating every possible line equally, its structure engine evaluates complete bilateral formations. Upper and lower boundaries are considered together as a wedge or channel, then measured using several structural criteria:
Boundary touches
Touch spacing
Balance between upper and lower validation
Price violations
Structural span
Width relative to volatility
Anchor recency
Valid convergence and boundary ordering
The indicator compares eligible structures and displays the strongest qualifying geometry for each active timeframe.
This does not mean every projected boundary will hold. It means the displayed lines have passed a consistent structural evaluation instead of being selected arbitrarily.
Multi-timeframe structure on one chart
Markets rarely respond to only one timeframe.
A 5-minute chart may appear to be approaching resistance while the 1-hour chart is near support. A minor intraday breakout may be heading directly into a major 4-hour boundary. Two different timeframes may also identify nearly the same structural area, creating potential confluence.
TRENDLINE X-RAY makes those relationships visible by projecting four independently calculated timeframe structures onto the active chart.
Each slot has its own:
Timeframe
Color
Line width
Line style
Visibility control
Structure-quality reading
This allows traders to distinguish immediate price structure from the larger geometry surrounding it.
Purpose-built analysis modes
TRENDLINE X-RAY includes several top-down presets:
Swing
Weekly
Daily
4-hour
1-hour
Intraday
4-hour
1-hour
30-minute
15-minute
Day Trade
1-hour
30-minute
15-minute
5-minute
Scalp
30-minute
15-minute
5-minute
1-minute
Custom
Four independently selectable timeframes
Changing modes automatically updates the structural hierarchy. Individual slots can still be hidden when a cleaner chart is preferred.
The Structure Quality dashboard
The dashboard provides a compact summary of the active analysis:
Timeframe
Structure Quality
Structure Type
Selected Mode
Structure Quality measures how well the detected formation satisfies the indicator’s structural criteria. It is based on characteristics such as touch validation, balance, violations, span, width, and recency.
A higher score represents stronger structural validation within the model.
It is important to understand what the score does—and does not—mean:
It measures the quality of the detected geometry. It is not directional, and it is not a predicted win rate.
The dashboard can be positioned in nine locations:
Top left, center, or right
Middle left, center, or right
Bottom left, center, or right
Designed as a companion to Automatic Wedge & Channel Detector
TRENDLINE X-RAY was designed to work alongside my "Automatic Wedge & Channel Detector (AWCD)".
The two indicators serve related but different purposes.
Automatic Wedge & Channel Detector answers:
What is the primary wedge or channel governing the chart I am currently trading?
AWCD is the focused execution-chart tool. It identifies the active formation, highlights its boundaries, and helps distinguish actionable edges from the gray middle of the structure.
TRENDLINE X-RAY answers:
What important structures exist above and around my current chart timeframe?
TRENDLINE X-RAY is the top-down context tool. It projects multiple structural layers onto one chart so traders can see whether an AWCD boundary is isolated, supported by a higher-timeframe structure, or approaching conflicting geometry.
Together, they create a structure-first workflow:
TRENDLINE X-RAY identifies the larger structural landscape.
AWCD defines the active execution structure.
Multi-timeframe confluence highlights potentially important locations.
Price action determines whether the boundary holds, breaks, or accepts beyond it.
For example, a lower AWCD boundary becomes more noteworthy when it overlaps a rising 1-hour or 4-hour TRENDLINE X-RAY boundary. Likewise, an AWCD breakout deserves additional caution when it runs directly into higher-timeframe resistance.
TRENDLINE X-RAY is therefore not intended to replace AWCD. It expands AWCD’s structural context.
Practical applications
TRENDLINE X-RAY can be used to:
Conduct top-down analysis without changing charts
Identify higher-timeframe support and resistance
Find multi-timeframe boundary confluence
Recognize when price is trapped between conflicting structures
Avoid entries in structurally poor locations
Evaluate breakout destination and obstruction risk
Compare short-term setups with larger market geometry
Add structural context to opening-range breakouts
Separate execution structure from higher-timeframe context
The indicator is especially useful when asking:
Is price at the edge or in the middle of meaningful structure?
Does a lower-timeframe boundary agree with the higher timeframe?
Is this breakout moving into open space or another major line?
Which structural layer is most likely to matter next?
Is the current formation well validated or relatively weak?
Recommended workflow
TRENDLINE X-RAY is best used as a location and context tool—not as a standalone entry generator.
A practical process is:
Select the mode that matches the intended holding period.
Identify the nearest higher-timeframe boundaries.
Look for agreement between multiple structural layers.
Use AWCD to evaluate the active execution structure.
Wait for price to demonstrate rejection, acceptance, breakout, or retest behavior.
Manage risk independently using predefined invalidation levels.
The strongest use case is not simply:
“Price touched a line.”
It is:
“Price reached a systematically validated structural area, multiple timeframes agree, and price action confirmed the reaction.”
Important limitations
TRENDLINE X-RAY is an analytical tool, not a predictive system.
Trendlines and structural classifications can change as new pivots form.
A high-quality structure can still break.
Lower-timeframe formations are generally more sensitive to market noise.
Different timeframes may produce conflicting information.
Projected lines should not be interpreted as guaranteed reversal levels.
Quality scores do not represent probabilities or historical win rates.
The indicator does not replace risk management or independent analysis.
All calculations are based on historical price structure. Use the indicator to organize market geometry, identify potentially meaningful locations, and improve contextual awareness—not to assume certainty.
TRENDLINE X-RAY transforms trendline analysis from a collection of arbitrary lines into a structured, multi-timeframe decision framework.
AWCD shows the structure you are trading.
TRENDLINE X-RAY shows the structural world surrounding it.
مؤشر

RedK DualTF Volume-Accelerated RSI (RedK_VARSI)█ RedK_VARSI — Release Notes
The idea behind RedK Dual Timeframe V olume- A ccelerated RSI (RedK_VARSI) is to enable traders to impose volume impact on the widely used RSI (Relative Strength Index) indicator - for improved "combined price action + volume" analysis - and then to visualize the resulting insight from 2 different timeframes simultaneously; the current (chart's) timeframe, and a higher timeframe (the Context timeframe) of their choice.
This analysis approach enables traders to effectively scan for opportunities, and make trading decisions that are in the direction of the broader market "context", without leaving the chart.
Two quick notes here:
---------------------------
Dual Timeframe RSI trading strategy is a very common technique among traders - used with various instruments (Futures, crypto, FOREX, stocks...) and various trading styles (scalp, swing, trend...) - What RedK_VARSI does is to provide an effective tool to enable traders to easily work their dual timeframe RSI analysis, in one chart, while also taking volume impact into consideration.
RedK_VARSI is the modern sibling of an indicator I created back in 2020, the RedK Volume-Weighted RSI . The basic concept is the same, but there are features that could only be implemented with the more recent versions of Pine, like pulling true higher (context) timeframe volume-weighted RSI series, adding advanced visualization, dynamically enable and disable settings ...among other features. It's exciting to see what we can now achieve with the advancements in Pine compared to what was possible back then.
█ Reading VARSI - Indicator visual elements
RedK_VARSI plots a volume-weighted RSI for the current chart timeframe (plotted as a blue/orange line), alongside a second VARSI read from a higher Context timeframe (plotted as green/red area backdrop). The main indicator panel is set as a 0 - 100 oscillator - same as the classic RSI.
When the two plots agree in direction from the midline, that means there's a momentum alignment across the two timeframes. When the two VARSI plots disagree, that possibly means the market is in transition - and the risk is higher - we should wait for a better setup.
(Throughout the settings and these notes, "Context" and "higher timeframe" mean the same thing)
Key indicator elements:
Current TF volume-weighted RSI (VARSI), with a selectable moving-average method.
Optional smoothing of the main RSI line, with its own selectable MA method.
A signal line for the current VARSI.
Context TF volume-weighted RSI — the same calculation on a higher timeframe, derived as a multiple of the current chart's timeframe.
Alignment Markers: will show (if enabled) when the current and Context VARSI agree on direction.
Single-timeframe mode — turn the Context off entirely and use VARSI as a straight, volume-weighted RSI - or turn volume-weighting off, and use RedK_VARSI as a regular RSI (see below settings in details).
Other elements: similar to the classic RSI, there's overbought & oversold levels (70 and 30 respectively) and a midline (at 50).
█ Indicator Settings & Usage
RedK_VARSI reads like a standard RSI. The 0–100 scale and the 50 midline work exactly as you'd expect, so everything you already know about reading the classic RSI still applies.
Volume weighting is the core idea: each bar's price change is weighted by that bar's volume before averaging, so moves on strong participation count for more than moves on thin volume. On symbols with no volume data, VARSI automatically falls back to a standard (unweighted) RSI, so it always works.
Optional smoothing lets you take noise out of the main plot with a short moving average of your choice. Keep it small — smoothing always trades responsiveness for a cleaner line. Set it to 1 to switch it off.
The Context timeframe is set as a multiplier of the current chart. For example, on a 1-hour chart a multiplier of 5 gives you a ~5-hour Context read. This is the modern, correct version of what I used to approximate with a length multiplier ("sentiment") in the old version.
Context Update — Live vs Last Closed Bar. By default the Context TF VARSI updates live as the higher-timeframe bar develops. This is the most responsive behavior. If you prefer a steadier line that only changes when the higher-timeframe bar closes, switch to "Last Closed Bar."
Alignment markers print when the current VARSI and the Context VARSI plots are on the same side of the midline — both bullish or both bearish. These are the moments when short-term momentum and the broader price momentum agree.
Single-timeframe mode: If you just want a clean, volume-weighted RSI without a second timeframe, turn off "Show Context RSI." That hides the Context plot, its shading, and the alignment markers, leaving you a straightforward single-timeframe RSI with all the volume-weighting, smoothing, and signal-line features intact. The alerts work the same either way.
Setting RedK_VARSI to match TradingView's built-in RSI
Set Length = 14, Averaging = RMA, Smoothing = 1, and Volume Weighted = off — VARSI will match a classic RSI. Disable the Context TF to remove the higher TF area plot.
█ Using VARSI to analyze price action
(for more details, search online for "Dual Timeframe RSI trading strategy")
High-gain/lower-risk trade opportunities can be found (both to the upside or the downside) when the current timeframe momentum aligns with the broader timeframe.
VARSI can help you locate opportunities where the higher timeframe momentum gives a bullish reading, while the current (shorter) timeframe retraces within the bullish alignment - this works like catching the waves in an ongoing current. Opportunities to the downside (short) would be worked in a similar way in during a bearish alignment.
Both the alignment markers and the signal line will provide the clues the trader needs to find these entry/re-entry setups - which a single timeframe RSI will not provide as effectively.
This screenshot shows examples of how to use VARSI to find possible bullish side setups
█ Using Alerts in RedK-VARSI
RedK_VARSI introduces five alerts - to use the alerts, right-click on any indicator element, and choose the first shortcut menu command "Add alert on RedK_VARSI..." and choose one of the 5 alerts from the dropdown. See the screenshot below for the steps.
VARSI crosses above the midline (bullish)
VARSI crosses below the midline (bearish)
VARSI swings around the midline (either direction — one alert for both)
VARSI enters the overbought zone
VARSI enters the oversold zone
==================================================================================
📝 Notes on Use and Limitations
==================================================================================
Volume data: if the symbol has no volume feed, VARSI automatically falls back to an unweighted (standard) RSI calculation.
Context multiplier and available history: at very large multipliers the resulting Context timeframe may exceed the history available for some symbols, in which case the Context TF plot won't show. That's a data-availability limit, not an error.
Debug option: an optional Debug checkbox shows the resolved Context timeframe in the Data Window (split into minutes, hours, or days) — handy for confirming exactly which timeframe the multiplier landed on.
This is an insight tool, not a signal service. The markers and alerts describe price action readings. They are not advice to enter or exit any position, and the indicator does not claim predictive accuracy.
==================================================================================
⚠️ Important Notes & Disclaimer
==================================================================================
Using this indicator means you have read and agreed to the following:
Not Advice. This indicator, and other work of this author, represent analytical studies of price and volume behavior. No parts should be considered buy/sell recommendations or signals — “Bulls” and “Bears” describe measured states only. Nothing here is financial, investment, or trading advice.
Risk & Responsibility. Trading involves substantial risk of loss and is not for everyone. All decisions, interpretation, and risk and money management are yours alone. Past behavior does not predict future results. The author accepts no liability for any loss or consequence arising from use of this tool.
Indicator Provided As-Is. Feature requests are welcome and can be shared with the author, but whether or when any request is implemented cannot be promised or guaranteed.
مؤشر

Normalized SPMA | NAL1. Overview
Normalized SPMA | NAL is a selective trend-regime oscillator built around the Shock Percentile Moving Average (SPMA) concept.
Unlike a conventional moving average that continuously absorbs every new bar, SPMA is deliberately selective. It evaluates current price movement relative to its own historical distribution and only allows qualifying movements to update the underlying baseline.
Normalized SPMA takes this concept further by expressing the relationship between price and the selective baseline in normalized form, then combining it with a volatility-adjusted boundary.
The result is a compact regime model designed to distinguish meaningful directional structure from lower-impact market movement.
2. Shock Percentile Moving Average
The foundation of the indicator is its percentile-gated moving average.
Current price change is ranked against a configurable historical window:
float Ret = close - close
float Per = ta.percentrank(Ret, percentrank_lookback)
bool Gate = Per > percentile_gate
Rather than updating continuously, the SPMA only accepts a new EMA value when the percentile condition is satisfied. Otherwise, its previous value is retained.
MA := na(MA ) ? emaValue : Gate ? emaValue : MA
This creates a form of selective memory: ordinary movement can leave the baseline unchanged, while sufficiently significant positive price events are allowed to reshape it.
3. Normalized Regime Structure
The SPMA is then normalized relative to current price, allowing the model to study the relationship between the selective baseline and the market on a proportional scale.
A rolling standard-deviation component is applied to this normalized structure, creating a second volatility-sensitive series.
float normalizedSPMA = close != 0.0 ? -SPMA / close : na
float normalizedSD = ta.stdev(normalizedSPMA, normSDLen)
float normalizedLowerSD = normalizedSPMA - normalizedSD
The interaction between these two measurements and the normalized reference level forms the final regime logic.
This combination is what gives Normalized SPMA its distinctive character: event-selective trend memory combined with normalized volatility structure.
4. Key Features
Percentile-Gated Trend Filtering
Selective Market Memory
Price Normalization
Volatility-Adjusted Confirmation
Persistent Regime State
Colored Candles and Clear Visualization
5. Purpose
Normalized SPMA was developed to explore a simple idea:
What happens when a trend model is allowed to remember important movement while becoming selectively insensitive to everything else?
By combining percentile-based event selection, adaptive baseline memory, normalization and volatility analysis, the indicator provides a different perspective on directional market structure than a continuously updating moving average.
It is intentionally compact, but the underlying interaction between selectivity, memory, normalization and volatility can produce a remarkably clean representation of changing market regimes.
Normalized SPMA | NAL is provided free and open source for research, experimentation and further study. مؤشر

Fixed Range Volume Delta By Sarojh**Overview**
The **Fixed Range Volume Delta** indicator isolates any specific historical or active trading session and renders native intrabar Volume Delta candlesticks exclusively inside that window. In addition to displaying standard candle-by-candle delta action (open, high, low, close delta spreads), the indicator computes the total aggressive buy volume, aggressive sell volume, cumulative net delta, and overall traded volume across the selected range, summarized in an on-screen metrics dashboard.
---
**Key Features**
* **Custom Range Selection:** Define exact start and end timestamps via the calendar picker, or toggle **"Extend to Current Bar"** to track an accumulation or distribution structure up to the live candle.
* **Native Delta Candlesticks:** Uses `ta.requestVolumeDelta()` to construct precise intrabar delta candles (`openVolume`, `maxVolume`, `minVolume`, `lastVolume`) with visible wicks, matching native order-flow delta charts without distorting the pane's vertical price scale.
* **Separated Buy vs. Sell Volume Accounting:** Deconstructs net delta and gross volume to calculate true aggressive market buys ($V_{\text{buy}}$) and aggressive market sells ($V_{\text{sell}}$) across the entire selected range.
* **Range Metrics Dashboard:** A clean, auto-scaling table positioned in the top-right corner displaying:
* **Total Volume:** Gross volume transacted inside the window.
* **Buy Volume:** Aggressive market buy volume.
* **Sell Volume:** Aggressive market sell volume.
* **Net Delta:** Cumulative net difference ($V_{\text{buy}} - V_{\text{sell}}$) with dynamic teal/red status coloring.
* **Multi-Timeframe Granularity:** Select between standard time-based lower-timeframe aggregation or 1-tick aggregation (requires supported TradingView plans).
---
**How to Use & Read the Indicator**
1. **Spotting Absorption & Hidden Divergences:**
* **Bullish Absorption:** When price holds sideways or forms a consolidation base while Cumulative Net Delta is heavily negative, it signals that aggressive market sellers are being absorbed by passive institutional limit buy orders (bids).
* **Bearish Absorption:** When price consolidates near resistance while Cumulative Net Delta is heavily positive without making upward progress, it indicates that aggressive market buyers are being absorbed into passive sell orders (asks).
2. **Measuring Phase Turnover:** Isolate consolidation zones, Wyckoff accumulation/distribution ranges, or breakout retests to assess whether buyers or sellers were dominant during the sideways build-up.
3. **Session Anchoring:** Measure specific trading sessions (e.g., London Open to NY Close, or weekend crypto ranges) to gauge net inventory positioning leading into the next expansion.
---
**Settings**
* **Start Date & Time:** Sets the anchor point where accumulation and visual candle plotting begin.
* **Extend to Current Bar:** When enabled, ignores the fixed End Date and dynamically calculates volume up to the most recent bar.
* **End Date & Time:** Sets the cut-off timestamp for fixed historical ranges.
* **Data Aggregation:** Switch between **Time** (standard lower-timeframe approximation) and **1 tick** (exact tick-by-tick order execution).
* **Use Custom Timeframe:** Manually specify the lower timeframe resolution scanned for the delta calculation. مؤشر

مؤشر

Adaptive Structural Liquidity MapDescription
Adaptive Structural Liquidity Map is a market-structure and liquidity visualization tool designed to organize confirmed liquidity references around price and show how those references are distributed above and below the current market.
Rather than treating every swing as equally important, the indicator maintains an adaptive map of active liquidity pools and presents them through a compact visual hierarchy.
How It Works
The indicator processes confirmed structural pivots and maintains qualifying liquidity references on both sides of price.
Each active pool is evaluated within the liquidity engine and displayed according to its relative classification:
HIGH LIQ — comparatively stronger liquidity concentration within the active map.
MED LIQ — intermediate liquidity concentration.
LOW LIQ — comparatively lighter liquidity concentration.
These classifications are relative analytical measurements within the indicator's current active sample. They are not probabilities or guarantees that price will interact with a level.
Liquidity Depth Map
Active liquidity references are displayed as horizontal depth structures extending from their respective price areas.
The visual width and emphasis help distinguish the relative liquidity structure without requiring every historical swing to remain on the chart.
Upper and lower liquidity use separate visual treatment so the distribution around current price can be interpreted quickly.
Liquidity Map Dashboard
The dashboard summarizes the current state of the active map through:
ACTIVE POOLS — number of liquidity references currently maintained by the engine.
BIAS — whether the active liquidity distribution is Upper-Heavy, Lower-Heavy, or Balanced.
NEAREST ↑ — nearest active liquidity reference above current price.
NEAREST ↓ — nearest active liquidity reference below current price.
“Bias” describes the distribution of identified liquidity pools. It is not a directional trade signal.
BOS and CHOCH Context
Confirmed structural breaks are annotated with compact BOS and CHOCH labels.
BOS identifies a confirmed break consistent with the incumbent structural direction, while CHOCH identifies the first confirmed structural break against that direction.
These annotations provide structural context to the liquidity map rather than functioning as standalone entry or exit signals.
Liquidity Sweeps
The indicator can also mark qualifying interactions where price trades through a structural liquidity reference and subsequently closes back through the relevant area.
Sweep markers are contextual events only and should not be interpreted as automatic reversal signals.
ATH and ATL Context
All-Time High and All-Time Low references are tracked independently and displayed with horizontal contextual guides when enabled.
Time-based positioning is used for these historical extremes so old ATH/ATL references can be maintained without relying on distant bar-index placement.
Originality and Intended Use
The indicator combines confirmed structural references, adaptive liquidity-pool maintenance, relative liquidity classification, upper/lower distribution analysis, structural break context, sweep detection, historical extremes, and a compact depth-map visualization into one interacting framework.
Its purpose is to answer a specific analytical question:
Where is the currently identified structural liquidity concentrated, and how is that liquidity distributed around price?
It is intended for market-structure research and contextual chart analysis across different symbols and timeframes.
Calculation Timing
Structural references use confirmed pivot information and therefore become available only after the required confirmation bars have elapsed.
BOS/CHOCH events use confirmed closes. This confirmation process intentionally introduces latency in exchange for avoiding premature structural classification.
Limitations
Liquidity levels represent algorithmically identified structural references, not verified exchange order-book liquidity.
HIGH, MED, and LOW classifications are relative to the indicator's methodology and active sample.
Historical liquidity concentration does not imply that price must revisit, reject, break, or reverse from a displayed level.
ATH/ATL, BOS/CHOCH, sweep markers, dashboard bias, and nearest liquidity references are descriptive analytical context rather than Buy/Sell signals.
The indicator does not provide probabilities, guaranteed outcomes, price targets, or expected returns. مؤشر

Momentum Core [MasterTonyTA]# Momentum Core — Publish Description
---
## WHAT IT IS
Momentum Core is a composite momentum oscillator that blends four non-redundant momentum sources into a single normalized reading, then layers on a MACD-derived wave, a volatility/participation regime gate, and health zones that separate tradeable momentum from both chop and exhaustion.
Most momentum oscillators measure the same thing twice. MACD is essentially rate-of-change on EMAs. Stochastic and RSI both measure position within range. CCI overlaps normalized ROC. Stacking those gives you four confirmations of one idea and a false sense of confluence.
This indicator deliberately selects sources that measure **different** things: smoothed directional force, volatility-adjusted velocity, thrust acceleration, and participation. Each is z-scored against its own recent history before being weighted, so no single component can dominate simply because it has a larger raw scale.
---
## HOW TO READ IT
### The Momentum Line (main plot)
The line is the composite reading, squashed to a **-100 to +100** range. Its color encodes two things at once:
| Color | Meaning |
|---|---|
| **Solid green** | Momentum rising, above signal line — clean bullish impulse |
| **Faded green** | Momentum rising, below signal line — early turn, not yet confirmed |
| **Faded red** | Momentum falling, above signal line — exhaustion; the move is decaying while still reading positive |
| **Solid red** | Momentum falling, below signal line — clean bearish impulse |
| **Grey / dimmed** | Regime gate failed — ADX or relative volume too low to trust the reading |
The key read is the **faded states**. A faded red above the signal line is the earliest exit tell in the indicator: price may still be making highs, but the force behind it is already draining. A faded green below the signal is the mirror — the turn has started before the crossover confirms it.
Direction is set by the **slope** of momentum, not by its position. A deadzone input prevents flicker during flat patches — the last direction holds until slope decisively flips.
### The Signal Line (orange)
A 9-period EMA of the composite. It is not a trade trigger on its own; it defines conviction. The wider the gap between momentum and signal, the stronger the current state. Crossovers matter most when they happen **inside a good zone** rather than in chop.
### The Momentum Wave (area fill)
A MACD histogram, z-scored and squashed onto the same scale as the main line. This is the cycle-rhythm layer — it shows you the breathing pattern of impulses.
- **Green** above zero, **red** below zero — always, regardless of the main line's state
- **Transparency scales with magnitude** — solid means a strong impulse, faded means a decaying one
By default the wave carries **zero weight** in the composite, so it is purely visual. This is intentional: MACD overlaps TSI, and scoring both double-counts the same signal. The weight input exists if you want it, but keep it at or below 0.5.
The wave's most useful read is **disagreement with the main line**. When the line is green and the wave is fading toward zero, the impulse is losing its engine.
### The Zones
Four regions, defined by two boundaries per side:
- **Bull good zone (+15 to +60)** — shaded green. Momentum is meaningfully positive but not stretched. This is where trends actually run.
- **Bear good zone (-15 to -60)** — shaded red. Same logic, downside.
- **Chop zone (-15 to +15)** — shaded neutral. Momentum lacks conviction. Signals here have the worst expectancy in the entire indicator.
- **Overextended (beyond ±60)** — unshaded. Momentum is stretched; continuation still happens, but reward-to-risk on new entries is poor and mean reversion risk is elevated.
Treat zones as a filter, not a signal. A crossover in the good zone and the identical crossover in chop are not the same event.
### Divergence Labels
**D** labels mark divergence between the composite and price, detected on confirmed pivots. A bullish divergence prints when price makes a lower low while momentum makes a higher low; bearish is the inverse. Labels are offset back to the pivot bar, so they confirm with a lag equal to the right-pivot setting — this is by design, since unconfirmed pivots repaint.
---
## THE CALCULATIONS
### Step 1 — Component extraction
**TSI (True Strength Index)** — double-smoothed momentum, default 13/25. Chosen over MACD because the double smoothing removes most whipsaw while keeping the zero-line cross meaningful.
**ATR-Normalized ROC** — `(close - close ) / ATR(n)`. Dividing by ATR is what makes this portable: a 2% move in a quiet tape and a 2% move in a volatile one produce very different readings, which is correct. Raw ROC would treat them identically.
**RSI Velocity** — the *change* in RSI over a short window, not the RSI level itself. Level tells you where you are in the range; velocity tells you how hard you are moving through it. Velocity turns first.
**OBV Slope** — change in OBV over n bars, normalized by average volume so it scales across instruments. This is the participation check. Momentum without volume behind it is a fade waiting to happen.
### Step 2 — Normalization
Each component is converted to a **z-score** against its own trailing mean and standard deviation over the lookback window:
```
z = (value - SMA(value, len)) / STDEV(value, len)
```
This is the step that makes the blend legitimate. Without it, TSI (roughly ±100 scale) would swamp OBV slope (unbounded, instrument-dependent) regardless of the weights you set. After z-scoring, every component speaks the same language: standard deviations from its own normal.
### Step 3 — Weighted composite and squash
Z-scores are combined as a weighted average, then compressed through a logistic function:
```
raw = Σ(zᵢ × wᵢ) / Σ(wᵢ)
mom = 100 × (2 / (1 + e^(-raw × 0.9)) - 1)
```
The sigmoid squash bounds the output to ±100 while preserving resolution in the middle of the range, where most trading decisions actually happen. A hard clamp would flatten all extreme readings into an identical value and destroy the distinction between "strong" and "absurd." The sigmoid compresses the tails smoothly instead.
Default weights: TSI 1.2, ROC 1.0, RSI velocity 0.8, OBV slope 0.7, wave 0.0.
### Step 4 — Signal and acceleration
```
signal = EMA(mom, 9)
accel = EMA(Δmom, 3)
```
`accel` is the second derivative of momentum — the rate of change of the rate of change. It drives the line's directional coloring and the exhaustion alerts. This is the component most oscillators omit entirely, and it is what lets the indicator flag a decaying impulse before any crossover occurs.
### Step 5 — Regime gate
```
gateOK = ADX ≥ threshold AND relativeVolume ≥ threshold
```
When the gate fails, the momentum line dims to grey. Nothing is hidden or suppressed — you still see the full reading — but the visual weight drops, because momentum readings during low-ADX, low-participation conditions are mostly noise. Relative volume is current volume against its 20-period average.
---
## SETTINGS THAT MATTER MOST
**Z-Score Lookback (default 100)** — the single most impactful input. This is the window that defines "normal." For intraday and short-dated options work, drop it to **50**; the 100-bar window is too slow to adapt within a session. For daily and swing timeframes, leave at 100 or extend to 150.
**ROC Length (default 14)** — pair with the lookback. Intraday, drop to **7**.
**Slope Deadzone (default 0.15)** — raise toward 0.3 if the line flips color more often than you want. This trades responsiveness for stability.
**Wave Sensitivity** — the divisor in the wave transparency calculation. Lower it to 35 if the wave rarely reaches full opacity on your instrument; raise to 70 if everything saturates.
**Weights** — the defaults are a reasonable starting point, not a result of optimization. If you trade a volume-thin instrument, cut the OBV weight. If you trade something gappy, lean harder on the ATR-normalized ROC.
---
## ALERTS INCLUDED
- Momentum Flip Bull / Bear — zero cross with the regime gate passing
- Bull / Bear Exhaustion — momentum at an extreme while decelerating
- Bullish / Bearish Divergence
- Wave Flip Bull / Bear — momentum wave crossing zero
- Wave Stalling — wave rolling over without crossing
- Enter Bull Zone / Enter Bear Zone
- Overextended
---
## NOTES AND LIMITATIONS
Divergence labels confirm on a lag equal to the right-pivot setting. This is unavoidable in honest pivot detection — anything faster repaints.
The z-score normalization means readings are **relative to recent history**, not absolute. A +70 reading in a quiet regime and a +70 in a volatile one represent different raw moves. This is the intended behavior, but it means you should not port threshold settings between instruments without checking them.
This is an indicator, not a system. It has no position sizing, no stop logic, and no backtest attached. Zones and gates are filters that improve signal quality; they do not create an edge on their own.
---
*Author: MasterTonyTA* مؤشر

Adaptive Candlestick Context ScannerOVERVIEW
Adaptive Candlestick Context Scanner is a contextual candlestick-pattern study designed to evaluate candle formations together with the market conditions in which they develop.
Rather than treating every matching candle shape equally, the scanner combines pattern geometry with prior trend, ATR-normalized measurements, and structural swing location.
The analytical workflow is:
Pattern Geometry → Prior Trend → Volatility Normalization → Structural Location → Context Quality → Confirmed Classification
The objective is to provide a structured way to study candlestick behavior while reducing some of the ambiguity associated with shape-only pattern recognition.
CORE METHODOLOGY
1. Pattern Geometry
The scanner evaluates candle bodies, upper and lower wicks, relative candle relationships, and multi-candle structures according to transparent pattern definitions.
STANDARD mode uses broader geometric requirements, while STRICT mode applies tighter qualifying conditions.
2. Prior Trend Context
Certain candlestick formations have different contextual meaning depending on the movement preceding them.
An adaptive trend component therefore evaluates the preceding price structure before contributing to a pattern's contextual assessment.
3. ATR Normalization
Fixed price-distance thresholds can behave inconsistently across instruments and volatility regimes.
ATR normalization allows relevant geometric and location measurements to scale with current market volatility.
4. Structural Location
The scanner evaluates whether a formation develops near recent swing extremes.
This provides an additional structural layer instead of evaluating the candle formation in isolation.
5. Context Quality
Qualified patterns receive a Context Quality measurement derived from pattern anatomy, prior-trend context, and structural location.
This value measures conformity to the scanner's internal contextual criteria.
Context Quality is not a probability, expected win rate, or forecast of future performance.
PATTERN COVERAGE
The scanner includes bullish, bearish, and neutral candlestick families, including single-candle and multi-candle structures.
Examples include:
Hammer and Inverted Hammer
Hanging Man and Shooting Star
Bullish and Bearish Engulfing
Bullish and Bearish Harami
Piercing Line and Dark Cloud Cover
Morning Star and Evening Star
Tweezer Bottom and Tweezer Top
Counter Attack formations
Sash formations
Separating Lines
Rising and Falling Windows
Rising Three and Falling Three
Three White Soldiers and Three Black Crows
Doji, High Wave, and Spinning Top
Bullish and Bearish Marubozu
PER-PATTERN CONTROL
Individual pattern families can be configured independently.
Available states include:
DEFAULT — follows the scanner's primary detection mode
OFF — disables the selected pattern
STANDARD — uses standard qualification criteria
STRICT — applies tighter qualification criteria
This allows the scanner to be adapted without requiring every candlestick family to use identical detection settings.
MULTIPLE-PATTERN RESOLUTION
More than one candlestick definition can occasionally qualify around the same price structure.
The scanner provides configurable resolution behavior, including:
Highest Quality — prioritizes the strongest contextual assessment
Highest Priority — follows the scanner's defined pattern hierarchy
All Qualified — allows qualified formations to be retained according to the selected display behavior
This helps control visual density while preserving analytical flexibility.
VISUAL SYSTEM
The scanner includes:
Premium bullish and bearish candle styling
Directional pattern markers
Full or compact pattern names
Context-quality labels
Controlled historical label retention
A compact real-time information dashboard
The dashboard displays the current detection mode, prior-trend context, most recently confirmed pattern, its Context Quality reading, and the selected resolution method.
ALERTS
Alert functionality is available for confirmed contextual pattern detections.
Directional alert categories support bullish, bearish, and neutral formations, while the scanner can also provide pattern-specific information through its dynamic alert workflow.
Alerts should be treated as notifications that a defined pattern condition has been detected, not as trade instructions.
HOW TO USE
The scanner can be used to study how candlestick formations interact with broader price context.
A pattern appearing near a relevant structural location with stronger contextual alignment may warrant different analytical attention than the same geometric formation appearing in an unrelated part of the price structure.
Users can adjust detection strictness, minimum Context Quality, pattern selection, and display behavior according to the instrument and timeframe being studied.
The scanner is designed as an analytical and educational tool and should be combined with broader market structure, risk management, and independent analysis where appropriate.
CONFIRMATION AND LIMITATIONS
Pattern labels are evaluated on confirmed bars.
Multi-candle formations require their defining candles to complete before classification.
Candlestick formations describe observed price structure; they do not guarantee subsequent market direction.
Context Quality represents conformity to the scanner's internal evidence criteria and must not be interpreted as probability, expected profitability, or future performance.
Different instruments, sessions, volatility regimes, and timeframes can produce materially different pattern behavior.
ORIGINALITY
Adaptive Candlestick Context Scanner uses an independently developed contextual framework that integrates transparent candlestick geometry with trend context, volatility normalization, structural location, contextual scoring, conflict resolution, and controlled visualization.
Its purpose is not to reproduce a proprietary candlestick methodology, but to provide an original framework for contextual pattern analysis.
Release Notes — v1.1
Adaptive Candlestick Context Scanner v1.1
This update expands the scanner's configuration and contextual-analysis framework.
Key improvements include per-pattern DEFAULT/OFF/STANDARD/STRICT controls, configurable multiple-pattern resolution, independent compact/full pattern naming, enhanced contextual quality assessment, expanded alert handling, and dashboard refinements.
The underlying objective remains unchanged: evaluate confirmed candlestick formations within market context rather than treating candle geometry as a standalone directional signal. مؤشر

Mean-Reversion Half-Life [RC Tools]RC Tools — Mean-Reversion Half-Life
────────────────────────────────────────────────────────────────────
█ OVERVIEW
Knowing a market is "mean-reverting" isn't enough to trade it — a series that takes 5 bars to snap back and one that takes 50 bars to snap back are both technically mean-reverting, but call for completely different holding periods and expectations. This tool estimates that missing number directly: the half-life, in bars, of mean reversion, using the same Ornstein-Uhlenbeck-style regression approach used in quantitative statistical-arbitrage research.
█ WHAT IT DOES
Estimates mean-reversion speed via a rolling OLS regression and classifies each confirmed bar as Fast Mean-Reversion, Slow Mean-Reversion, or No Mean-Reversion based on the resulting half-life. Colours the chart background accordingly, plots the half-life (in bars, capped for readable scale) as a histogram against Fast and No-Reversion threshold lines, and shows a table with the current state, its estimated half-life, and historical base rates (average forward return and win rate) for each state.
█ THE THEORY BEHIND IT
This is a companion tool to RC Tools' Hurst Exponent Regime script, and answers the natural follow-up question it leaves open. The Hurst Exponent tells you whether a market's statistical character is trending, mean-reverting, or a random walk — but it doesn't say how fast a mean-reverting move actually closes. This tool fits a simple version of the Ornstein-Uhlenbeck model, a classical stochastic process used to describe a quantity that drifts back toward a long-run mean at a speed proportional to its current distance from that mean, and converts the fitted speed into a half-life: the number of bars it takes, on average, to close half the current deviation.
█ HOW IT IS CALCULATED
1. Take the log of price, and regress its bar-to-bar change against its own prior level (a one-lag OLS regression): Δy = α + β·y(prior), where y is log price.
2. A negative β implies mean reversion — the more negative, the faster the pull back toward the mean. A β at or above zero implies no reversion (the series is trending or behaving like a random walk).
3. Convert β into a half-life: -ln(2) / β, in bars.
4. Classify: half-life at or below the Fast threshold (default 10 bars) → Fast Mean-Reversion. Above that but at or below the No-Reversion threshold (default 60 bars) → Slow Mean-Reversion. Above the cap, or β non-negative → No Mean-Reversion (the series isn't reliably reverting, or the estimate is too unstable to trust).
β is smoothed before the half-life calculation (rather than smoothing half-life itself), because half-life is numerically unstable near a zero slope and can spike to extreme values that a direct smoothing pass wouldn't tame cleanly.
Classification occurs ONLY on confirmed bar close — the plotted half-life, the background colour and the table all update together, so nothing here can disagree mid-bar or flip back and forth as the current bar forms.
█ SETTINGS & CONFIGURATION
• Source (default close)
• Regression Window (default 50 bars) — longer windows give a more stable estimate but react slower to a genuine regime change
• Fast Mean-Reversion Threshold (default 10 bars) and No-Reversion Threshold (default 60 bars) — the half-life cutoffs between the three states
• Smoothing Length and Type (default 3-period EMA) — applied to the regression slope, not the half-life itself
• Forward Return Window (default 20 bars) — the horizon used for the base-rate table
• Table visibility, position and colours are fully configurable; the main-chart background painting can be toggled off if you only want the statistics pane
█ HOW TO USE IT
Use it to calibrate holding periods and expectations for a mean-reversion approach, not as a standalone entry signal. A Fast Mean-Reversion reading suggests a short-holding-period approach is appropriate; a Slow reading suggests patience is required and tight stops may cut off the reversion before it completes; a No Mean-Reversion reading suggests a mean-reversion approach isn't currently well-suited to this market at all. Pairs naturally with the Hurst Exponent Regime tool — Hurst tells you IF the market's character favours mean reversion, this tool tells you roughly HOW FAST.
Works on any asset and timeframe with sufficient history for the Regression Window.
█ LIMITATIONS
• This is a SIMPLE linear (OLS) estimate of mean-reversion speed, not a full maximum-likelihood Ornstein-Uhlenbeck fit. It is a practical approximation, not a research-grade estimator.
• Half-life describes an estimated SPEED, not a guarantee of reversion — a series classified as mean-reverting can still trend away for an extended period before, or instead of, reverting.
• Near a regression slope of zero, the raw half-life estimate is numerically unstable and can spike to very large values; display values are capped for readability.
• The regression window assumes the mean-reversion relationship is roughly stable across the window; a structural break partway through will distort the estimate until it fully rolls off.
• Shorter windows react faster but produce noisier, less reliable estimates; longer windows are more stable but slower to reflect a genuine change.
• Historical base-rate stats need a meaningful sample count (check N) before being trusted, especially for the less common states.
• This script does NOT repaint. All classification updates on confirmed bar close only.
█ DISCLAIMER
For educational and informational purposes only. Nothing here is financial advice. Past behaviour of any mean-reversion state does not indicate future results. Trade at your own risk.
مؤشر

Daily Swing Trader PRO v3.2 # Daily Swing Trader PRO
**Daily Swing Trader PRO** is a rules-based swing-trading indicator designed primarily for traders who use the **daily chart** and want a simple way to combine trend, momentum, volume, volatility, entry quality, and risk management into one TradingView script.
The indicator is built around a **trend + pullback/breakout + confirmation** approach. Instead of relying on a single indicator, it combines several commonly used technical tools to identify higher-quality swing-trading setups.
## Main Features
Daily Swing Trader PRO includes:
* 10 EMA
* 21 EMA
* 50 SMA
* 200 SMA
* SuperTrend
* RSI
* Relative Volume (RVOL)
* ATR and ATR %
* Bullish pullback detection
* Bullish breakout detection
* Bearish breakdown detection
* Bearish failed-rally detection
* BUY signals
* STRONG BUY signals
* SELL signals
* STRONG SELL signals
* Automatic entry level
* Automatic stop-loss level
* Configurable reward/risk target
* TAKE PROFIT signals
* STOP LOSS signals
* Detailed TradingView alerts
* Daily Swing dashboard
* Signal notification panel
* Automatic light/dark chart theme support
## Trading Philosophy
The indicator follows a simple principle:
**Trend first → Price action second → Volume and momentum confirmation → Risk/reward → Trade**
Indicators are used as confirmation rather than as standalone reasons to enter a trade.
The goal is to avoid weak setups, avoid chasing extended stocks, and focus on trades where multiple technical factors are aligned.
# How to Use Daily Swing Trader PRO
## Recommended Timeframe
The indicator is designed primarily for the:
**1-Day / Daily chart**
The default settings are optimized around daily-chart swing trading.
## Bullish Trend Requirements
The script looks for a bullish environment when:
* Price is above the 50 SMA
* Price is above the 200 SMA
* Price is above the 21 EMA
* 10 EMA is above the 21 EMA
* 21 EMA is rising
* SuperTrend is bullish
* RSI is above 50
* Relative volume meets the selected minimum
* ATR volatility meets the minimum requirement
* Price is not excessively extended above the 21 EMA
These conditions help reduce signals that occur during weak or sideways trends.
## BUY Signal
A **BUY** signal can occur when the bullish trend requirements are satisfied and one of the following setups appears:
### Pullback Setup
Price pulls back toward the 10 EMA or 21 EMA and then shows bullish confirmation.
Typical confirmation includes:
* Price holding the EMA support area
* Bullish daily candle
* Close above the previous day's high
* Price closing back above the 10 EMA and 21 EMA
* Adequate relative volume
This setup attempts to enter an existing trend after a controlled pullback instead of chasing price.
### Breakout Setup
A breakout setup occurs when price closes above the highest price of the selected breakout lookback period.
The indicator also requires bullish trend, momentum, volume, and volatility conditions before generating the signal.
## STRONG BUY Signal
A **STRONG BUY** requires the normal BUY conditions plus stronger confirmation.
Default requirements include:
* Bullish trend
* Valid pullback or breakout
* RSI approximately 55–70
* RVOL of at least 1.20
* Strong bullish candle close
* Price not excessively extended
* Bullish SuperTrend
STRONG BUY is intended to identify the highest-quality bullish setups produced by the system.
## SELL Signal
SELL is the bearish counterpart to BUY.
The script looks for:
* Price below the 50 SMA
* Price below the 200 SMA
* Price below the 21 EMA
* 10 EMA below the 21 EMA
* Falling 21 EMA
* Bearish SuperTrend
* RSI below 50
* Adequate relative volume and volatility
A SELL signal may occur after either a bearish breakdown or a failed rally into resistance.
For traders who only trade long positions, SELL can also be used as a warning that bullish conditions have deteriorated.
## STRONG SELL Signal
A **STRONG SELL** requires additional bearish momentum and volume confirmation.
It is designed to identify the strongest bearish setups and may be useful for traders evaluating short positions or long-put option setups.
# Entry, Stop and Take Profit
When a new trade signal appears, the script automatically calculates:
**Entry:** Signal candle closing price
**Stop Loss:** Based on the recent swing high or swing low plus an ATR buffer
**Take Profit:** Based on the selected reward/risk multiple
The default target is:
**2R — approximately 2:1 reward/risk**
Example:
Entry: $100
Stop: $95
Risk: $5
2R Take Profit: $110
The reward/risk target can be adjusted in the indicator settings.
## Stop-Loss Logic
For long trades, the stop is placed below a recent swing low.
For bearish trades, the stop is placed above a recent swing high.
An ATR buffer is added to reduce the chance of being stopped out by normal price movement.
## Take-Profit Logic
When price reaches the calculated target, the indicator produces a:
**TAKE PROFIT**
signal.
The script also tracks STOP LOSS events.
Because a daily candle only provides open, high, low, and close information, if both the stop and profit target are touched on the same daily candle, the script uses the conservative assumption that the stop was reached first.
# Avoiding Extended Trades
One of the most important filters in Daily Swing Trader PRO is the **maximum extension from the 21 EMA**.
The default is:
**2 ATR**
If price becomes too extended above or below the 21 EMA, new entries are filtered out.
This is designed to reduce late entries after unusually large price moves.
# Relative Volume
Relative Volume compares current volume with average recent volume.
Default values:
Normal signal: **RVOL ≥ 1.00**
Strong signal: **RVOL ≥ 1.20**
Higher RVOL generally indicates stronger participation behind the move.
# RSI
RSI is used as a momentum filter rather than simply as an overbought/oversold indicator.
For bullish trades, the script generally looks for RSI above 50.
STRONG BUY signals typically require RSI in the stronger momentum zone of approximately:
**55–70**
Bearish signals use the opposite momentum structure.
# ATR
ATR is used for several purposes:
* Measuring volatility
* Preventing trades in stocks with insufficient movement
* Measuring price extension
* Calculating stop buffers
* Helping evaluate swing-trading opportunity
The dashboard displays both ATR and ATR as a percentage of price.
# Dashboard
The **Daily Swing Dashboard** appears in the top-right corner of the chart.
It displays information such as:
* Current trend
* Trade status
* Last signal
* Setup type
* RSI
* RVOL
* ATR
* ATR %
* Entry
* Stop
* Profit target
The **Signal Notification Panel** appears in the bottom-right corner and displays the most recent trading event.
# TradingView Alerts
The indicator includes individual alert conditions for:
* STRONG BUY
* BUY
* STRONG SELL
* SELL
* TAKE PROFIT
* STOP LOSS
Detailed alerts can include:
* Ticker
* Current price
* Entry
* Stop
* Take-profit target
* Reward/risk
* RSI
* RVOL
* ATR
* ATR %
For daily swing trading, alerts are best evaluated after the daily candle has closed so that the setup is confirmed.
# Suggested Workflow
A practical workflow is:
1. Start with stocks already showing a strong trend.
2. Use the daily chart.
3. Wait for BUY or STRONG BUY rather than chasing large candles.
4. Check nearby support and resistance.
5. Confirm that the profit target has enough room before major resistance.
6. Review earnings and major market-event risk.
7. Enter only if the chart still offers acceptable reward/risk.
8. Use the calculated stop rather than widening the stop after entering.
9. Take profit at the target or manage the position with your own trailing-stop rules.
For conservative use, traders may choose to treat:
**STRONG BUY / STRONG SELL = potential trade signals**
and
**BUY / SELL = watchlist or early-warning signals**
# Default Settings
The default settings are intended as a starting point:
10 EMA: 10
21 EMA: 21
50 SMA: 50
200 SMA: 200
SuperTrend ATR: 10
SuperTrend Factor: 3.0
RSI: 14
RVOL Lookback: 20
Normal RVOL: 1.00
Strong RVOL: 1.20
ATR: 14
Maximum Extension: 2 ATR
Swing Stop Lookback: 5 bars
Take Profit: 2R
Different securities and market conditions may require different settings.
# Important Notes
Daily Swing Trader PRO is not designed to predict the market.
No technical indicator can guarantee profitable trades. Signals should be combined with proper position sizing, risk management, market context, support and resistance, earnings awareness, and individual trading judgment.
Historical signals do not guarantee future performance.
This indicator is provided for educational and informational purposes only and should not be considered financial or investment advice.
مؤشر

Ultimate Position Sizing ToolAntiGravity Risk Pro v2
A complete position-sizing and risk-management tool for crypto futures.
AntiGravity Risk Pro v2 is designed to help you calculate the appropriate position size before entering a trade, based on your account size, risk, entry, stop-loss and trade parameters.
The indicator is built for linear USDT and USDC crypto futures and is designed to plan one isolated-margin position at a time.
The goal is simple:
Define your risk first → define your invalidation → calculate your position size.
---
🔹 What Does It Calculate?
The indicator brings several important calculations into one dashboard:
- Position / order size
- Base-asset quantity
- Risk amount
- Potential target profit
- Gross R:R
- Net R:R
- Break-even price
- Initial margin
- Notional value
- Fee reserves
- Funding reserve
- Leverage
- Leverage cap
- Estimated liquidation price
- Liquidation distance / buffer
- Capital allocation
- Exchange quantity and notional limits
This allows you to plan the entire position before placing the order.
---
🔹 1. Account & Risk
Equity
Enter your total trading account equity.
Risk Mode
Choose between:
Account % — risk a percentage of your account.
Fixed $ — risk a specific dollar amount.
Example:
$1,000 account × 1% risk = $10 risk budget
Max Capital Allocation
Limits how much of your available capital can be committed to the position.
This is separate from risk.
Risk % = how much you can lose.
Capital Allocation % = how much capital can be committed.
Available Balance
Use either your full equity as available balance or manually enter your actual free margin.
---
🔹 2. Trade Setup
Select:
Long / Short
Then define your entry.
Entry Modes
Market / Floating
Uses the current price and continuously updates the plan.
Manual Price
Enter your own planned entry.
Reference Bar Close
Use the close of a selected historical/reference candle.
---
🔹 3. Stop-Loss
You have three options:
Entry %
Set the stop as a percentage from entry.
Manual Price
Enter the exact stop-loss price.
ATR
Calculate the stop using ATR length and multiplier.
The indicator automatically checks that the stop is on the correct side of the entry.
For example:
Long → SL below entry
Short → SL above entry
---
🔹 4. Take-Profit
Choose between:
Net R:R
Calculates the target using your desired R:R while considering modeled trading costs.
Gross R:R
Uses pure price-distance R:R without incorporating those costs into the target calculation.
Entry %
Set the target as a percentage from entry.
Manual Price
Enter your exact target price.
The indicator also calculates the resulting Net R:R so you can see how costs affect the trade.
---
🔹 5. Fees, Slippage & Funding
The tool allows you to include:
- Entry fee
- Exit fee
- Entry slippage
- Exit slippage
- Funding reserve
This makes the risk and reward calculation more realistic than simply using the distance between entry and stop.
Use fee values appropriate to your exchange and trading tier.
---
🔹 6. Leverage & Liquidation
Leverage
Choose:
Auto — calculates leverage based on the model's requirements and limits.
Manual — specify your own leverage.
Maximum Leverage
Set the maximum leverage allowed by your exchange/contract.
Maintenance Margin Rate
Used by the simplified liquidation model.
Liquidation Buffer
Adds a safety distance between your stop and the estimated liquidation level.
Estimated Liquidation Price
The indicator provides a model-based liquidation estimate based on your configured assumptions.
⚠️ Important: This is NOT your exchange's exact liquidation price. Actual liquidation depends on the exchange's mark price, maintenance margin, risk tier, fees and other exchange-specific rules.
---
🔹 7. Exchange / Contract Settings
You can configure the important execution constraints:
- Contract multiplier
- Price tick size
- Quantity step
- Minimum quantity
- Minimum notional
- Maximum quantity
- Maximum notional
- Maximum leverage
The calculated quantity is rounded according to the configured quantity step and price tick.
This helps make the calculated position more realistic for actual exchange execution.
---
🔹 8. Auto-Resize
Auto-Resize can automatically reduce the calculated position when it exceeds configured constraints such as:
- Capital allocation
- Available balance
- Maximum quantity
- Maximum notional
- Leverage limits
If the position has been reduced because of a capital constraint, the dashboard clearly indicates that it was resized for capital.
---
🔹 9. Dashboard
The on-chart dashboard gives you the most important information at a glance.
Depending on the display mode, you can see:
Order Size
The calculated quantity and base-asset amount.
Entry / SL / TP
Your complete trade plan.
Risk / Target $
Estimated loss at SL and profit at TP.
Net R:R / BE
Net reward-to-risk and modeled break-even.
Leverage / Margin
Selected leverage and required initial margin.
Notional
Total position value.
Estimated Liquidation
Model-based liquidation level and distance.
Capital / Reserve
Capital requirement and fee/funding reserve.
Plan Status
Shows whether the plan is valid, resized or invalid, including the reason when something fails.
---
🔹 10. Chart Visualization
You can display:
- Entry line
- Stop-loss line
- Take-profit line
- Break-even line
- Estimated liquidation line
- Profit zone
- Risk zone
- Price labels
You can also control the lookback and label position to keep the chart clean.
A compact one-row HUD is available when you want only the essential information.
---
🔹 11. Trade Monitoring
The indicator also includes an optional monitoring system for fixed trade plans.
You can define a start time, and the indicator can monitor confirmed chart bars for:
- Stop-loss touched
- Take-profit touched
- Both SL and TP touched on the same candle
If both levels are touched within the same candle, the indicator does not assume which happened first because normal OHLC data cannot reliably determine intrabar order.
Alerts are available for these monitoring events.
⚠️ These are chart-level observations, not confirmed exchange fills.
---
🔹 Recommended Workflow
Before every futures trade:
1. Choose Long or Short
2. Define your entry
3. Define your actual invalidation / stop-loss
4. Choose your risk
5. Configure fees, slippage and funding
6. Set leverage and exchange limits
7. Check the calculated position size
8. Review Risk, Margin, Net R:R and Liquidation Buffer
9. Verify the final numbers on your exchange
10. Execute according to your trading plan
---
🔹 The Key Principle
Don't start with:
«“How much do I want to buy?”»
Start with:
«“How much am I willing to lose if this trade is wrong?”»
Then define where the trade is invalidated.
Your position size should be the result of your risk management, not the starting point.
A wider stop generally means a smaller position.
A tighter stop generally allows a larger position for the same risk.
This is how position sizing should work.
---
⚠️ Important
This indicator is a position-sizing and trade-planning tool, not a trading signal.
It does not predict price, provide entries, guarantee profits or place orders.
The model is designed for:
Linear USDT/USDC Futures
Isolated Margin
One Position
It does not model the full behavior of cross/portfolio margin.
Actual exchange execution may differ because of slippage, liquidity, fees, funding, mark price, maintenance margin, risk tiers and exchange-specific rules.
Always verify the final position size, margin, leverage and liquidation information directly on your exchange before trading.
Trade with a plan. Manage your risk. Let the position size follow the mathematics.
Mr. Signal ❤️
Disclaimer
This indicator is provided for educational and informational purposes only and is not financial or investment advice. Cryptocurrency and leveraged futures trading involve substantial risk and can result in significant losses, including loss of capital. مؤشر

Liquidity Sweep Follow-Through GuardA wick through an obvious high or low is often called a liquidity sweep. The useful question is what price does after the level is reclaimed.
**Liquidity Sweep Follow-Through Guard** identifies a sweep of a prior lookback extreme, requires a close back inside that reference, and then evaluates the reversal through holding, extension and path efficiency. The swept level, extreme and ATR reference are frozen when the episode begins.
## Visual guide
- **S+** — a prior low was swept and reclaimed, opening a bullish observation.
- **S−** — a prior high was swept and reclaimed, opening a bearish observation.
- **Shaded zone** — the area between the reclaimed level and the sweep extreme.
- **Orange line** — the frozen reference that must remain reclaimed.
- **Blue line** — the minimum reversal extension.
- **F+ / F−** — efficient bullish or bearish follow-through was confirmed.
- **R** — a confirmed close lost the reclaimed reference.
- **X** — a confirmed close crossed the sweep extreme and fully failed the setup.
- **T** — the observation window expired without a terminal result.
The display is intentionally compact. It has no table and requires no companion indicator.
## Sweep detection
The reference is the highest high or lowest low of the previous 20 completed bars. The current candle must exceed that level by at least 0.10 previous-bar ATR, close back inside it, and devote at least 35% of its range to the rejection wick. References exclude the current bar and are never backdated.
If one exceptional candle sweeps both sides, the candle’s closing direction resolves which episode is tracked. Only one episode can be active at a time.
## Follow-through test
The default confirmation requires:
1. Two consecutive closes remain on the reclaimed side of the frozen reference.
2. Price travels at least 0.30 frozen ATR from the sweep candle close in the reversal direction.
3. Directional progress represents at least 45% of the cumulative close-to-close path after the sweep.
Path efficiency distinguishes direct follow-through from an equally large but noisy move. Repeated back-and-forth closes add traveled path without adding the same directional progress.
## Example
Suppose the lowest low of the prior 20 bars is 100 and frozen ATR is 4. Price trades down to 99.4, then closes at 101 with a qualifying lower wick. The orange reference remains 100 and the default extension target is 102.2. If two closes hold above 100, price reaches 102.2 and efficiency is at least 45%, **F+** is printed. A later close below 100 prints **R**. A close below 99.4 prints **X** and takes priority.
## Behavior and limitations
All state changes and markers occur on confirmed bars. The script uses no future bars, pivot backdating or lookahead requests. Wicks detect the initial sweep, while failure outcomes require confirmed closes.
A sweep is a price pattern, not proof of orders, stop placement or participant intent. Thresholds behave differently across symbols and timeframes. The indicator does not predict outcomes, place trades, size positions or model fees, slippage, liquidity and execution. Standard candles are recommended for interpreting its price-based rules.
BotTradeLab — Human judgment, AI-assisted analysis. مؤشر

Gap Acceptance GuardA gap is visible immediately. Whether the market accepts the new price area is only revealed by what happens next.
**Gap Acceptance Guard** tracks qualifying opening gaps through a fixed observation sequence. It separates continued acceptance from loss of the gap midpoint, a confirmed close through the previous close, and an unresolved timeout. The original gap, ATR reference, event extreme and decision levels are frozen when the episode begins.
## Visual guide
- **G+ / G−** — a bullish or bearish qualifying gap entered observation.
- **Shaded zone** — the active gap between the previous close and the new open.
- **Orange line** — the acceptance boundary inside the frozen gap.
- **Gray line** — the previous close and full-fill reference.
- **Blue line** — the minimum extension required beyond the event bar.
- **A+ / A−** — acceptance was confirmed.
- **R** — price closed back through the acceptance boundary.
- **X** — price closed beyond the previous close and invalidated the gap thesis.
- **T** — the observation window ended without a terminal decision.
- **Yellow diamond** — the gap-fill line was touched intrabar while the episode remained active.
The display is intentionally chart-first. It uses no table and requires no other indicator.
## Detection
By default, the absolute difference between the current open and previous close must be at least 0.50 times ATR measured on the previous completed bar. On intraday charts, detection is limited to the first bar of each exchange day. On daily and higher charts, each completed bar can be evaluated. An optional setting can require the open to clear the entire previous candle range.
## Acceptance test
Acceptance requires all three default conditions:
1. Two consecutive closes remain beyond the midpoint of the gap in its direction.
2. Price extends at least 0.25 frozen ATR beyond the event bar’s high or low.
3. Directional progress represents at least 45% of the cumulative close-to-close path after the event.
Path efficiency penalizes back-and-forth movement. A direct continuation scores higher than a noisy move that covers the same net distance.
## Example
Assume the previous close is 100, the new open is 104, the event high is 106 and frozen ATR is 4. With a 50% acceptance boundary, the orange line is 102. With a 0.25 ATR extension requirement, price must reach 107. If two closes hold above 102, price reaches 107 and path efficiency is at least 45%, **A+** is printed. A confirmed close below 102 prints **R**; a confirmed close below 100 prints **X** and takes priority.
## Behavior and limitations
State changes and markers occur only on confirmed bars. The script uses no future bars, pivot backdating or lookahead requests. One episode is tracked at a time.
Session structure depends on the exchange and chart timeframe. Extended-hours bars, synthetic candles and markets that trade continuously can change the meaning or frequency of gaps. The indicator describes observed conditions; it does not estimate probabilities, place trades, size positions or model fees, slippage, liquidity and execution.
BotTradeLab — Human judgment, AI-assisted analysis. مؤشر

Index Lead Lag [BMT]Index Lead Lag
Which of NQ, ES, YM and RTY is leading, and specifically whether NQ is. All four are measured from one shared anchor so the differences between them are relative strength, not four unrelated returns; vertical order in the pane is the ranking and a crossover is a change of leadership. Beta-adjust vs ES answers the harder question: is NQ leading by more than its beta to ES already implies?
What it draws
One line per index: its percent change from the anchor bar, on the chart's own timeframe. The gap between NQ and ES is filled, cyan while NQ is ahead and neutral while it is not, so the pane lights up on the state you are watching for. A dashed zero line, a vertical line at the anchor bar, and faint bands on the bars that were earlier anchors, so a reset is visible as it happens.
The anchor
Measure picks the bar every index is measured from. All four always share it.
Auto (default) chooses from the chart timeframe: session open under an hour, week open intraday above that, month open on a daily chart, quarter open above. The table's Ref cell shows what it resolved to.
Session open , Prior close , Week open , Month open , Quarter open . Each resets on its boundary, so the pane reads as leadership within the period to date. The gap between Prior close and Session open is the overnight move.
N sessions : the close N daily sessions ago. Rolling, and the same thing on every chart timeframe.
ES swing low / ES swing high : the lowest low or highest high ES has printed in the range on screen, so it reads as "since the market turned, who led?". Pan or zoom and it re-resolves to the new view.
Fixed date : by default the current session's open, rolling forward each day; turn that off to pin a date with the date picker.
The period anchors are read as prices (the open of the current day, week, month or quarter, from a higher-timeframe request) rather than counted back as bars, so there is no history-buffer limit on how far back an anchor can sit.
Beta-adjust vs ES
NQ's beta to ES has run about 1.67, so NQ beats ES on nearly every up day whether or not it is leading, and zero is the wrong threshold on a plain difference. With Beta-adjust on, each index has beta times the ES move subtracted, leaving a residual: zero means it moved exactly as its beta implies, above zero is genuine leadership, below zero is a quiet failure even on a green day. ES sits flat on zero by construction, and the NQ-ES fill becomes the residual itself.
Beta is the ordinary least squares slope of each index against ES over a settable window (90 bars by default) of the chart's own timeframe, fitted on the bars before the one being scored so a bar cannot explain itself away. The window applies with Beta-adjust off as well, because the markers, ribbon and chart tint are built from the residual either way.
Divergence markers
A small triangle at the top of the pane on any bar where NQ sits beyond a threshold above (green, leading) or below (red, lagging) the path its beta implies. Hover one for its sigma and a one-line reading. The threshold is in standard deviations of where the residual could have drifted by now under chance, per-bar noise times the square root of bars since the anchor, so early in a period it takes less and late in a period it takes more, rather than one yardstick set by the period's average. The sigma value is also in the data window.
Ribbon
With the index lines off, the pane collapses to a strip of dots and the table: green while NQ beats its beta, red while it misses it, grey between, or coloured by the current leader instead, which is gated on the leader-to-laggard spread being wider than its recent average so it does not flicker while the four are bunched. The same message at a fraction of the weight, in a pane you can shrink to a strip.
The chart symbol
Whatever symbol the chart is on gets its own column, run through the same machinery but against NQ rather than ES, so it reads as "is this name adding something of its own beyond how much more it moves than the Nasdaq". Its lead is marked confirmed only when the name is also at a period high NQ has not made: beating a beta while quiet is a read that inverts by regime, and the upside leg is the half that holds. A conditional profile shows what the name has averaged while NQ was leading its own beta versus while NQ was lagging, so a wide gap says it rides megacap leadership and two similar numbers say the index regime tells you nothing about it. An optional tint paints the price chart green or red by the symbol's state. Turn the column off on an index chart, where it restates one you already have.
Status table
Columns sort strongest first, so the table reads left to right as a ranking and a change of column order is the signal. Each column shows the value and, under Beta-adjust, the beta it was measured against. Held counts bars since the leader last changed; Ref names the anchor in force. The leader-to-laggard spread is on the status line. Location and font size are inputs. RTY can be excluded, since its correlation to ES is lower and it reaches the extremes on idiosyncratic moves rather than leadership.
Colors
Red and green are avoided for the lines on purpose, since on a chart they already mean down and up and a red leader reads as a falling index. The four hues are held close in brightness so no index visually outweighs another, ES the neutral one because it is the benchmark, and the set flips with the chart background.
Notes
Each index is a handful of requests: its close on the chart timeframe; its session open, prior close and N-sessions-ago close in one daily request; and the week, month and quarter opens. The higher-timeframe requests use lookahead on, which is safe for an open or for the close of a session that has already ended. Everything else, beta included, is computed on the chart's own bars. مؤشر

ICone buy and sell with smc# ICone v2.6 — Complete Trading System (Investment Circle)
ICone turns your chart into a full decision-making system: quality-filtered signals, automatic risk/reward visualization, smart money concepts, volume analysis and macro context — all in one tool, designed so that even beginners instantly understand what to do.
**🎯 One clear instruction — never guess again**
The engine trades three setup types: trend continuations (pullback-to-MA20 with momentum, volume and multi-timeframe confirmation), breakout-retest patterns from compression, and liquidity sweeps (confirmed false breakouts traded as reversals). Every setup is scored 0–100 and gated by the daily trend. The chart stays clean — you only see **ENTRY LONG / ENTRY SHORT** where a position is actually taken. When flat, a **WATCHING label** tells you exactly what the engine is waiting for.
**🟥🟩 Risk/Reward painted on the chart**
The moment a trade opens, the entire plan is drawn automatically: a **red zone** from entry to stop-loss (your risk) and **green stepped zones** up through TP1–TP4 (your reward) — like TradingView's position tool, but automatic on every signal. Lines carry R-multiples (−1R, +1R… +4.5R) and sell percentages ("TP1 – SELL 25%"). The stop moves to break-even after TP1 and trails after TP2. An optional **ADD-ON level** at −0.5R marks where to scale in. All graphics are cleaned up when the trade closes. Colors and opacity are fully customizable.
**💳 Trade Card in real money**
A compact card shows the trade in currency, not just percent: stake, risk to SL, potential at TP4, risk/reward ratio and live P/L — updating in real time. A gold **NEXT TARGET flag** points at the current objective and counts down the distance.
**🧭 Live Position Guide**
While in a trade, the guide reads the chart and escalates plain-language advice — *"Sell 25% now" → "Sell 75%" → "Close everything"* — with the reason (momentum fading, false breakout against you, macro turning). It patiently waits until TP1 is reached before advising exits, letting winners breathe.
**🌍 Gold Macro Score (−100 to +100)**
Fourteen weighted drivers — real yields, DXY, Fed liquidity, ETF flows, miners, silver, credit, VIX — compressed into one verdict from STRONG BULL to STRONG BEAR, vetoing trades that fight the macro tide.
**📊 Full smart-money context**
Market structure (HH/HL, BOS/CHoCH), buy/sell zones (order blocks), iFVG, PDH/PDL/PWH/PWL, session highs/lows, liquidity pools, yesterday's POC and a side volume profile with the highest-volume node highlighted.
**🖥️ Beginner-friendly dashboard**
A wide panel that opens with the answer everyone wants: **"WHAT TO DO RIGHT NOW"** — followed by market regime, signal strength, all timeframes in %, the macro score and a multi-asset overview. Every row explains itself on hover.
**⚙️ One-click profiles & alerts:** "Gold optimized" and "Index optimized" apply the full tested configuration instantly. A single alert covers entries, take-profits, warnings and advisor actions.
*Past performance never guarantees future results. Always forward-test on your own instrument and timeframe before trading live. Not financial advice.*
استراتيجية

Forward P/E Rolling Z-ScoreThe Forward P/E Rolling Z-Score is an advanced fundamental-technical hybrid indicator designed to evaluate equity valuation extremes. By standardizing forward price-to-earnings (P/E) ratios into a rolling statistical Z-score, this tool helps investors identify when a stock or index is statistically overvalued or undervalued relative to its own historical baseline. Unlike traditional static P/E multiples that fail to account for shifting market regimes, this indicator dynamically measures standard deviation shifts over a rolling lookback period. Furthermore, it features a built-in historical performance tracker that automatically measures forward returns, win rates, and trigger counts across multiple time horizons (1-Month, 3-Month, 6-Month, and 1-Year) based on user-defined threshold crossings.
Key Features
Dynamic Valuation Z-Score : Calculates a rolling mean and standard deviation of forward P/E ratios to measure statistical deviation from the norm.
Optional Smoothing: Apply a moving average (SMA or EMA) to the raw Z-score to filter out high-frequency noise and reduce false signal whipsaws.
Automated Performance Table: Displays a real-time analytics matrix on the chart tracking historical forward returns, win percentages, and total sample triggers since a customizable start date.
Multi-Horizon Tracking: Evaluates signal efficacy across 4 distinct forward windows: 1 Month (21 bars), 3 Months (63 bars), 6 Months (126 bars), and 1 Year (252 bars).
[* ]Visual Extremes Shading : Automatically highlights expensive and cheap valuation zones on the chart background for quick visual identification.
Flexible Signal Triggers: Customize your directional bias with selectable cross modes (Cross Over or Cross Under) and adjustable standard deviation thresholds.
Inputs & Customization
Performance Tracking Start Date: Set the historical anchor date to begin tracking backtested signal performance.
Z-Score Settings : Lookback Period (Bars) defines the historical window for mean and standard deviation calculations (default: 60); Signal Threshold & Direction defines the standard deviation trigger levels and whether to track crosses above or below the threshold; Annualize EPS automatically projects quarterly estimates into annualized figures.
Moving Average Smoothing: Allows you to select between EMA or SMA, and adjust the length.
Visuals: Toggle extreme zone background shading and select whether shading/signals rely on raw or smoothed Z-scores.
Performance Table: Customize table placement (Top Right, Top Left, Bottom Right, Bottom Left) or toggle it entirely.
How to Use
Valuation Assessment: Monitor the lower pane oscillator. Values above +/- 2 indicate statistically expensive conditions, while values below your set threshold indicate attractive, cheap valuations.
Strategy Optimization: Use the on-chart performance table to inspect how historical signals have performed over various forward horizons to gauge the predictive edge of your chosen threshold.Disclaimer: This indicator is for educational and informational purposes only and does not constitute financial advice. مؤشر

5-Minute Bias + Level + Reaction Breakout Scalp5-Minute Reaction Breakout Scalp
A mechanical, single-timeframe trend-continuation tool: bias → key level → reaction candle → breakout entry, with a built-in daily trade cap.
Overview
This indicator automates a simple, rules-based day-trading approach: trade only in the direction of the current 5-minute structure, wait for price to react at the most recent key swing level, and enter on a confirmed breakout of that reaction candle with a fixed risk/reward target. It is intentionally minimal by design — one setup, one direction at a time, and a configurable cap on how many new trades it will flag per day.
It is built for fast intraday charts (5-minute is the intended timeframe, though it will run on any timeframe) and works on futures, forex, or any liquid instrument with clean intraday structure.
How It Works
1. Bias — The script tracks confirmed swing highs and swing lows. Bias flips to bullish when price closes above the most recent swing high, and to bearish when price closes below the most recent swing low. No trades are considered while bias is neutral.
2. Key Level — In an uptrend, the script watches the most recent swing low (support). In a downtrend, it watches the most recent swing high (resistance). This level is plotted directly on the chart.
3. Reaction — When price trades within a configurable ATR-based tolerance of the key level and prints a candle that closes back in the direction of the bias, the setup "arms." An optional filter can require a genuine rejection wick before a candle counts as a valid reaction.
4. Breakout Entry — Once armed, the script waits for price to break the high (long) or low (short) of that reaction candle. You can choose whether this triggers immediately on a wick, or only on a confirmed bar close.
5. Risk Management — A stop is placed beyond the reaction candle/key level (with a small ATR buffer), and a target is calculated as a configurable multiple of that risk (default 1.5R). The script tracks the trade to its stop or target and keeps a running daily win/loss count.
6. Daily Cap — A configurable maximum number of new trades per day (default: 1) keeps the tool aligned with a "one setup, done" mindset rather than encouraging overtrading.
Key Features
Automatic bias detection from swing structure
Dynamic key level plotted on the chart
Reaction-candle detection with optional wick-rejection filter
Configurable breakout confirmation (wick vs. close)
Auto-calculated stop and target lines drawn on the chart
Daily trade cap with live win/loss tracking
On-chart status dashboard (bias, setup status, active trade, trades today, wins/losses)
Alerts for both the reaction event (setup armed) and the confirmed breakout entry (BUY/SELL)
Inputs
Swing Pivot Length — sensitivity of the swing-high/low detection that drives bias and the key level
ATR Length / Level Proximity Tolerance — how close price must come to the key level to count as a reaction
Require Rejection Wick — optional stricter reaction filter
Breakout Confirmation — wick break (immediate) or close break (confirmed)
Max Bars to Wait for Breakout — how long an armed setup stays valid before being discarded
Reward Multiple (R) and Extra Stop Buffer — risk/reward configuration
Max New Trades per Day — daily trade cap
Full display controls for levels, reaction markers, trade lines, labels, and the dashboard
Alerts
Bullish Reaction at Support / Bearish Reaction at Resistance — fires the moment a setup arms, before any breakout
Any Reaction (Long or Short) — combined version of the above
Reaction Breakout BUY / Reaction Breakout SELL — fires only once the breakout is confirmed and a trade is actually signaled
How to Use It
Wait for the dashboard to show a clear bias. When a "Reaction" label appears at the plotted key level, the setup is armed — this is your cue to start paying attention, not an entry itself. An entry is only signaled once the breakout triangle/label appears, at which point the stop and target lines show the trade's risk/reward. Once the daily trade cap is reached, the script will not flag further entries until the next session.
Important Notes
This script is a mechanical translation of a discretionary trading concept into a fixed rule set. It does not predict the market, and past behavior of any rule-based system is not a guarantee of future results. Markets can chop, gap, or trend in ways that produce false signals, and no combination of settings eliminates that risk. This is provided for educational purposes only and is not financial advice — always test on a demo account or with a replay tool, and manage your own risk before trading live. مؤشر

PRO TREND BOX
PRO SMC 2 MACD is a multi-confirmation market analysis indicator designed to analyze price action candle by candle. Instead of relying on a single indicator, it combines two MACD systems, EMA trend structure, trend path, market structure, Break of Structure (BOS), support/resistance and supply/demand areas to identify potential bullish and bearish opportunities.
The purpose of the indicator is not simply to display BUY and SELL labels. Every signal is generated from a combination of market conditions, allowing traders to understand why a particular candle receives a bullish, bearish, or neutral interpretation.
---
🟢 BUY SIGNAL — Complete Reason
When a BUY signal appears, the indicator looks for several bullish confirmations.
1. MACD 1 — Short-Term Momentum
The first MACD analyzes shorter-term momentum.
When MACD 1 becomes bullish, it suggests that buying momentum is increasing and buyers are beginning to gain control over the short-term price movement.
2. MACD 2 — Larger Momentum Confirmation
The second MACD uses slower settings and therefore provides a broader momentum confirmation.
When both MACDs point upward at the same time, the probability of the bullish setup being stronger increases compared with relying on only one MACD.
3. EMA 20 Above EMA 50
When the 20 EMA is above the 50 EMA, short-term price momentum is stronger than the medium-term trend.
This supports the idea that the market is developing a bullish structure.
4. EMA 50 Above EMA 200
The 50 EMA and 200 EMA are used as a major trend filter.
When:
EMA 20 > EMA 50 > EMA 200
the overall market structure is considered strongly bullish.
5. Trend Path
The Trend Path follows the underlying price direction and helps visually identify whether the market is moving upward or downward.
A rising Trend Path supports bullish conditions, while a falling Trend Path supports bearish conditions.
6. Market Structure
The indicator observes important swing highs and swing lows.
When price begins creating:
Higher Highs + Higher Lows
it indicates that buyers are gaining structural control.
7. Bullish BOS
A Bullish Break of Structure (BOS) occurs when price breaks above an important previous swing high.
This can indicate that buyers have overcome a previous resistance level and that the market structure may be continuing upward.
8. Support / Demand Area
If bullish momentum develops near an important support or demand area, the setup receives additional structural support.
This is important because the indicator is not only looking at momentum—it is also considering where the price is trading.
9. Final BUY Confirmation
When multiple conditions align:
Bullish Momentum + Bullish Trend + Bullish Structure + Support/Demand + BOS
the candle can receive a BUY confirmation.
---
🔴 SELL SIGNAL — Complete Reason
When a SELL signal appears, the indicator looks for the opposite conditions.
1. MACD 1 — Bearish Momentum
MACD 1 moves below its signal line, indicating that short-term selling momentum is increasing.
2. MACD 2 — Bearish Confirmation
MACD 2 also confirms bearish momentum.
When both MACDs agree, the bearish setup receives stronger momentum confirmation.
3. EMA 20 Below EMA 50
When the 20 EMA moves below the 50 EMA, short-term momentum is weaker than the medium-term trend.
This supports a bearish environment.
4. EMA 50 Below EMA 200
When:
EMA 20 < EMA 50 < EMA 200
the broader trend is considered bearish.
5. Falling Trend Path
A declining Trend Path supports the idea that sellers are controlling the current market direction.
6. Bearish Market Structure
The indicator observes whether price is forming:
Lower Highs + Lower Lows
This structure suggests that sellers are gaining control.
7. Bearish BOS
A Bearish Break of Structure occurs when price breaks below an important previous swing low.
This can indicate that sellers have successfully broken a structural support level.
8. Resistance / Supply Area
When price reaches an important resistance or supply area and bearish momentum develops, the setup receives additional confirmation.
9. Final SELL Confirmation
When multiple bearish conditions align:
Bearish Momentum + Bearish Trend + Bearish Structure + Resistance/Supply + BOS
the candle can receive a SELL confirmation.
---
⚪ NO TRADE — Why Some Candles Have No Signal
A professional system should not force a BUY or SELL signal on every candle.
A candle may remain neutral when:
MACD 1 is bullish but MACD 2 is bearish
MACD 1 and MACD 2 are conflicting
EMA 20 and EMA 50 are moving sideways
Price is trapped between support and resistance
Market structure is unclear
No valid BOS has occurred
Price is moving sideways/choppy
Buyers and sellers have similar strength
The trend is not sufficiently confirmed
In these situations, the safest interpretation is:
NO CLEAR CONFIRMATION → WAIT
---
🧠 Candle-by-Candle Decision Process
The indicator follows a structured process:
1. Price Candle
↓
2. Momentum Analysis
↓
3. MACD 1 Confirmation
↓
4. MACD 2 Confirmation
↓
5. EMA Trend Analysis
↓
6. Trend Path
↓
7. Market Structure
↓
8. BOS / Structural Break
↓
9. Support, Resistance & Zones
↓
10. Final BUY / SELL / NO TRADE Decision
This makes the indicator more than a simple crossover system. It attempts to combine momentum + trend + structure + location into one trading framework.
---
⭐ Signal Strength Concept
🟢 Strong Bullish Environment
2 MACD Bullish + EMA Bullish + Higher High/Higher Low + Bullish BOS + Demand/Support
🔴 Strong Bearish Environment
2 MACD Bearish + EMA Bearish + Lower High/Lower Low + Bearish BOS + Supply/Resistance
🟡 Weak / Uncertain Environment
MACD Conflict + Sideways EMA + No Clear Structure
➡️ Wait for confirmation.
---
⚠️ Important
This indicator provides technical-analysis signals, not guaranteed predictions. A BUY or SELL signal represents a combination of programmed conditions and does not guarantee that price will move in the expected direction. Proper risk management, confirmation and independent analysis are still important. مؤشر
