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. อินดิเคเตอร์

Impulse Candle Acceptance GuardA large candle is easy to spot. The harder question is whether the market accepts it.
Impulse Candle Acceptance Guard follows unusually forceful candles through a defined sequence: detection, continued holding, efficient extension, rejection, full reversal, or an unresolved timeout. It freezes the original candle’s range and ATR reference so later price action is judged against the event that started the observation.
VISUAL GUIDE
• I+ / I− — A bullish or bearish impulse candle entered observation.
• Teal or red zone — The frozen high-low range of the impulse candle.
• Orange line — The acceptance and rejection boundary inside the frozen range.
• Blue line — The minimum extension required beyond the impulse candle.
• A+ / A− — The move satisfied the hold, extension, and path-efficiency rules.
• R — A confirmed close crossed the acceptance line against the impulse.
• X — A confirmed close crossed the opposite edge of the entire impulse candle.
• T — The observation window ended without another terminal result.
The script is intentionally chart-first: it uses no table and has no dependency on another indicator.
1 — DETECT THE IMPULSE
The default setup requires the candle’s range to reach at least 1.5 times the ATR measured on the previous completed bar. Its real body must occupy at least 60% of the candle’s range, and the close must finish within the outer 20% in the direction of the move. Zero-range candles cannot qualify.
An optional volume filter requires current volume to exceed a configurable multiple of its moving average. It is disabled by default so the script also remains usable on symbols without meaningful volume data.
2 — FREEZE THE EVENT
At the confirmed close of a qualifying candle, the script freezes the impulse high, low and close; ATR from the bar immediately before the impulse; the acceptance line inside the impulse range; and the required extension beyond the impulse extreme. These levels remain fixed throughout the observation. Only one episode can be active at a time.
3 — MEASURE ACCEPTANCE
Acceptance requires all three default conditions:
1. Two consecutive closes remain beyond the orange acceptance line in the impulse direction.
2. Price reaches at least 0.25 frozen ATR beyond the impulse high or low.
3. Follow-through efficiency is at least 45%.
Follow-through efficiency compares directional progress from the impulse close with the cumulative close-to-close path traveled after it:
efficiency = max(0, directional progress) ÷ cumulative path × 100
A direct continuation produces a high value. Repeated back-and-forth movement increases the path without producing equal progress and lowers the value. The efficiency value is available in TradingView’s Data Window while an episode is active.
WORKED EXAMPLE
Assume a bullish impulse has a low of 100, a high of 110, a close of 109, and a frozen ATR of 4.
• Acceptance line: 100 + 50% × (110 − 100) = 105
• Required extension: 110 + 0.25 × 4 = 111
If the next two candles close above 105, price reaches 111, and directional progress represents at least 45% of the traveled path, A+ is printed. A close below 105 produces R. A close below 100 produces X and takes priority over the ordinary rejection label.
EVENT PRIORITY AND CONFIRMED-BAR BEHAVIOR
Full reversal has first priority, followed by acceptance-line rejection, acceptance, and timeout. An otherwise valid acceptance on the final permitted bar is recorded before timeout. Wicks alone do not reject or fully reverse an episode; those outcomes require confirmed closes.
Markers and state transitions update only after a candle closes. The script uses no future bars, pivot backdating, or lookahead requests.
USAGE AND LIMITATIONS
The mirrored rules operate on bullish and bearish candles across stocks, cryptocurrencies, futures, and forex. Use standard candles when interpreting the price-based rules. Thresholds describe a rule set rather than probabilities, and their meaning changes with symbol and timeframe.
Acceptance means that the specified conditions were observed; it does not guarantee continued movement or establish a profitable strategy. The indicator does not place trades, calculate position sizes, or model fees, slippage, gaps, liquidity, or execution. Historical results can change when settings, available history, or source data change.
BotTradeLab — Human judgment, AI-assisted analysis. อินดิเคเตอร์

Pivot Rays [BMT]Pivot Rays
Horizontal rays from every pivot high and low that price has not yet taken out, on the chart timeframe and up to three higher ones, tagged by timeframe, plus the all-time high. Only the levels inside the price range on screen are drawn, so the rays never stretch the chart's auto-scale, and a level disappears the moment price trades through it.
What it draws
A pivot high is a bar whose high is not exceeded by any of the N bars to its left or right (N is the Bars left / right input, 5 by default); a pivot low is the mirror. Each confirmed pivot becomes a horizontal ray from the bar that made it to the right edge of the chart.
The rays are rebuilt on every tick of the last bar from a stored list of pivots, so what you see is always the current set: rays appear as price approaches a level or as you scroll it into view, and leave when the level is broken or scrolls out.
Timeframes
Four rows: the chart timeframe and three higher ones, preset to 4H, D and W. Each row has its own on/off switch, timeframe, tag and line width. A row whose timeframe is not above the chart's is ignored; a row equal to the chart's lends its tag to the chart pivots instead, so a daily chart still prints D on its own pivots. Chart-timeframe pivots carry no tag by default; give the row a tag if you want one.
Pivots at the same price on several timeframes are one level, not three: they merge into a single ray whose tag lists every timeframe it belongs to, for example "D 4H". The merged ray starts at the bar of the lowest timeframe in the group, because that is the exact bar: a daily pivot is only known to the resolution of the daily bar, and on a 5-minute chart that is the day's open, hours before the candle that actually made the high. A merge tolerance in ticks (0 by default) widens what counts as the same price.
Which pivots are drawn
Three modes.
Visible price range (default): only levels between the lowest low and highest high of the bars currently on screen. The range is measured from the bars alone, never from the drawings, so nothing is ever drawn outside the candles' own span and Reset chart view fits the candles rather than a distant level. The set follows every scroll and zoom.
Within N ATR : levels within N chart-timeframe ATRs of the current close (ATR(14) x 5 by default), whether on screen or not. Higher-timeframe pivots are measured against the same chart ATR.
Both : on screen and near price.
A cap on the number of rays keeps the nearest to price when more than that pass the filter.
Broken pivots
A pivot is broken when price trades through it: a wick beyond the level by default, or a close beyond it by input (the close test runs on bar close only, so a live bar does not flicker). A broken pivot is removed. Because every break removes a level, the stored set holds only the pivots price has never taken out, the staircase of highs above and lows below, and stays small however long the chart is.
The most recent break stays on as a dashed, fainter ray so the level just lost or reclaimed is still in view, and is dropped at the close of the period it happened in, daily by default: a level taken out during Tuesday's session shows dashed through Tuesday and is gone at the daily close. On a chart at or above that timeframe it lasts for the break bar only. The count is of break events, not pivots, so every pivot broken by the same bar stays or goes together. Both the expiry timeframe and how many recent breaks to keep are inputs; the dashed ray can be turned off.
All-time high
Its own dotted, heavier ray tagged ATH. The value comes from the symbol's monthly series, which TradingView serves back to the first bar it has for the symbol whatever the chart timeframe, combined with the loaded bars for the open month, so it is the real all-time high on a 5-minute chart, not the high of the bars loaded. On a continuous futures symbol it is the high of that continuous series, adjusted or not as the chart is set. Loaded bars is available as an alternative source. The ATH obeys the same filter as the pivots by default, so it shows when you scroll or zoom out far enough to include it; an input draws it always. A pivot high at the ATH price is left to the ATH ray rather than drawn twice.
Labels
A tag at the pivot bar by default, above a high or below a low (the empty side, by definition of a pivot), so it lands in the same place at any zoom. Right edge hangs the tag from an anchor a settable number of bars past the last bar; that number has to match the chart's right margin, which is a pixel width and so a different number of bars at every zoom. Text size, and whether the price is appended, are inputs. Each tag's tooltip gives the timeframes and the pivot's date.
Theme
Auto reads the chart background and picks the muted text gray of the light or dark theme for the rays, at a default 30% transparency so they sit behind the candles, with the theme's primary text color for the tags. The dashed broken ray is fainter by a settable amount. Custom exposes the ray, ATH and label colors.
Notes
Higher-timeframe pivots are one request.security call per row, asking for the previous higher-timeframe bar's pivot with lookahead on. That is the standard non-repainting form: a pivot is stored once the higher-timeframe bar that confirms it has closed, and never changes afterwards. Chart-timeframe pivots confirm N bars after the pivot bar, as pivots do. The ATH is one more request on the monthly series.
Because the chart timeframe's pivots are stored from the bars loaded on the chart, a higher-timeframe pivot older than the chart's first bar is drawn from the left edge, with its true date in the tooltip. อินดิเคเตอร์

GEX Levels v3 [Barrett]GEX Levels v3 draws options gamma exposure (GEX) levels for SPY and QQQ as labeled horizontal lines, across three time horizons from a single input.
WHAT IT SHOWS
- Flip: the price where dealer gamma changes sign. Above it, moves tend to be dampened; below it, moves tend to be amplified.
- CW / PW: call wall (heaviest call strike, overhead ceiling) and put wall (heaviest put strike, floor).
- P1 / P2: positive-gamma resistance strikes above price. PS1 / PS2: support strikes below price.
- N1 / N2: negative-gamma strikes where moves tend to accelerate.
- AG1 / AG2: high absolute-gamma strikes that price tends to stick to.
- MP: max pain. EM+ / EM-: the expected-move band.
- HVL: highest-volume strike. FC: full-chain gamma flip.
HOW IT WORKS
The levels are calculated outside TradingView from the full options chain and entered as one comma-separated string. The indicator parses that string and draws each level with its label. A 0 in any slot means that level is not present and is skipped.
String format: 0DTE (16 values) | WEEKLY (10 values) | MONTHLY (10 values)
0DTE order: P1,P2,PS1,PS2,N1,N2,AG1,AG2,Flip,MP,EM+,EM-,CW,PW,HVL,FC
WEEKLY / MONTHLY order: P1,P2,N1,N2,AG1,AG2,Flip,MP,EM+,EM-
HOW TO USE
1. Add the indicator to a SPY or QQQ chart.
2. Open settings (gear) and paste the level string into "All Levels (String)".
3. Use "Active View" to show 0DTE, WEEKLY, MONTHLY, or ALL.
4. Use the SPY string on SPY and the QQQ string on QQQ. The levels change daily.
WHY IT IS DIFFERENT
One input loads three expiry horizons at once. A level that appears on 0DTE, weekly, and monthly together is being defended across expirations, and those stacked levels are usually the most significant of the day.
These levels are for reference only and are not trade signals. อินดิเคเตอร์

อินดิเคเตอร์

Trend Target Ribbon [BOSWaves]Trend Target Ribbon - ALMA Conviction Trend Detection with Integrated Structure-Based Position Planning and R-Multiple Target Tracking
Overview
Trend Target Ribbon is an ALMA-based trend identification system that combines slope-normalized momentum confirmation with standard deviation band validation to determine trend state, and automatically generates a complete position planning framework on each trend flip including a structure-derived stop loss, up to four R-multiple take profit targets with proximity highlighting, and a risk zone visualization that tracks target hits and stop events throughout the position's active lifecycle.
Instead of simply marking trend direction, each trend flip immediately produces a fully structured trade plan anchored to the current bar's close as entry and the recent swing structure as stop loss. Risk is calculated dynamically from the swing extreme within the configured lookback, clamped between ATR-based minimum and maximum bounds, and used to project equally-spaced R-multiple targets that extend forward for the configured projection length. As price develops, targets glow brighter as price approaches them, mark with a checkmark when reached, and the entire position freezes with a historical record when the next trend flip occurs.
This creates a trend system that bridges signal generation and trade planning within a single indicator. The ALMA gradient ribbon communicates conviction intensity through its width and opacity, adapting continuously to the strength of the slope and the distance of price from the baseline. The candle gradient reinforces conviction on every bar. And the position framework provides an immediate, fully calculated trade structure from entry through all targets without requiring manual level calculation on each new trend signal.
Price is therefore evaluated not just for its directional trend state but for its position within a dynamically constructed risk-reward framework that updates automatically with each new trend confirmation.
Conceptual Framework
Trend Target Ribbon is founded on the principle that a trend system should do more than identify direction — it should translate each directional signal into a complete, immediately actionable trade framework where entry, risk, and target levels are derived from measurable market characteristics rather than arbitrary fixed distances.
Traditional trend indicators produce a signal that the trader must then manually convert into a trade plan by selecting entry price, calculating stop placement, and choosing target distances. This framework eliminates that gap by automating the complete transition from signal to trade plan on each flip, using swing structure for stop placement and the resulting risk distance as the universal unit for all target projections. Every parameter of the trade plan is therefore grounded in the instrument's actual price behavior rather than fixed indicator values.
Three core principles guide the design:
Trend confirmation should require simultaneous slope significance and price displacement beyond a standard deviation band, ensuring signals reflect genuine directional momentum rather than minor price oscillations around the ALMA baseline.
The gradient ribbon width and opacity should scale continuously with trend conviction derived from slope magnitude and distance from the ALMA, communicating the strength of the current trend visually rather than switching between binary active and inactive states.
Each trend flip should immediately generate a complete position framework with structure-derived stop loss, R-multiple targets, and active tracking of target proximity and hit status, translating the directional signal into a fully structured trade plan without manual intervention.
This shifts trend analysis from directional signal generation into an integrated signal-to-plan system where every trend confirmation produces both visual conviction context and a calculable trade framework simultaneously.
Theoretical Foundation
The indicator combines Arnaud Legoux Moving Average calculation for trend baseline, standard deviation band construction for displacement confirmation, ATR-normalized slope scoring for momentum significance, conviction scoring from slope and distance for gradient scaling, swing structure lookback for stop loss derivation with ATR clamping, and a multi-array position management system that tracks active and historical positions with target proximity gradients and hit state tracking.
The ALMA provides a low-lag weighted baseline with configurable offset and sigma parameters that control the balance between responsiveness and smoothness. Slope is measured as the ALMA change over the configured bar count normalized by ATR, producing a dimensionless score that reflects momentum strength independently of the instrument's price scale. The trend flip requires slope to exceed the minimum threshold in the signal direction while price simultaneously closes beyond the ALMA plus deviation band, ensuring both momentum and displacement conditions are satisfied. The conviction score combines double-weighted slope with distance-weighted separation, mapping to the gradient transparency of all ribbon fill layers simultaneously.
Four internal systems operate in tandem:
ALMA Trend Engine : Calculates the ALMA with configurable length, offset, and sigma, measures the normalized slope over the configured lookback, derives deviation bands for displacement confirmation, and flips trend state when both slope and displacement conditions are simultaneously satisfied.
Gradient Ribbon System : Constructs a four-layer ribbon between the ALMA and a deviation-scaled edge line, computing conviction from slope magnitude and price distance, and mapping that conviction to the transparency of each ribbon layer so width and brightness reflect trend momentum quality continuously.
Position Planning Engine : On each trend flip, derives stop price from swing structure within the lookback clamped by ATR multipliers, calculates risk distance, projects up to four equidistant R-multiple targets, and creates the complete set of glow-and-core dual-layer lines, risk box, target zones, inter-target bands, and R-multiple labels as a unified position framework.
Active Position Tracking System : Monitors each bar for target proximity to apply approach highlighting gradients, records target hit status when price reaches each level, detects stop events from bar extremes, freezes the position visually with historical styling on the next flip, and enforces the maximum visible position count by removing the oldest complete position objects.
This design ensures the trend ribbon communicates conviction quality continuously while the position planning and tracking layers translate each trend event into a fully managed trade framework with real-time progress monitoring.
How It Works
Trend Target Ribbon evaluates price through a sequence of confirmation and planning processes:
ALMA Calculation : The Arnaud Legoux Moving Average is calculated from the selected source over the configured length with the configured offset and sigma parameters, providing a smoothed low-lag baseline.
Slope Measurement : The ALMA change over the configured slope lookback bars is divided by ATR, producing a normalized slope score that measures directional momentum independently of price scale.
Deviation Band Construction : Standard deviation over the deviation length multiplied by the confirmation multiplier produces the upper and lower confirmation bands around the ALMA.
Trend Flip Detection : A bullish flip requires slope above the minimum threshold and close above the upper confirmation band simultaneously. A bearish flip requires slope below the negative threshold and close below the lower confirmation band. Flips are only registered when the new state differs from the current state.
Conviction Scoring : The conviction score combines doubled slope magnitude with distance-weighted separation between price and ALMA, normalized to a 0-1 range that drives ribbon transparency and candle gradient intensity.
Ribbon Rendering : Four ribbon layers render between the ALMA and the deviation-scaled edge, with glow, edge, mid, and ALMA plots filled at conviction-scaled transparencies and broken across flip bars to prevent visual carryover between trend states.
Position Freeze on Flip : When a flip occurs with an active position, all position objects are frozen at the flip bar with faded historical styling, preserving the completed position record on the chart.
Stop Loss Derivation : The swing low over the stop lookback for long positions and swing high for short positions provides the structural stop reference, with the raw risk distance clamped between ATR minimum and ATR maximum bounds.
Target Projection : Up to four targets are placed at equidistant R-multiples above entry for long positions and below for short positions, with inter-target band boxes filling the reward zones between consecutive levels.
Active Tracking : Each bar, target proximity gradients are computed from price distance relative to the approach radius, driving glow and zone transparency. Target hit status is set when price reaches each level and persists with checkmark label addition. Stop hits terminate the position with darkened stop styling.
Position Count Management : When the visible position limit is exceeded on a new flip, the oldest complete position's lines, boxes, and labels are removed from all storage arrays and deleted before the new position objects are created.
Together, these elements form a continuously updating trend conviction visualization with an integrated automated trade planning and tracking system that maintains a rolling history of the most recent positions.
Interpretation
Trend Target Ribbon should be interpreted as a conviction-weighted trend system with an attached automated position management overlay:
Bullish Trend State (Green) : Active when slope exceeds the minimum threshold upward and close is above the upper deviation band, with the gradient ribbon rendering below the ALMA and candles coloring green with intensity proportional to conviction.
Bearish Trend State (Red/Pink) : Active when slope exceeds the minimum threshold downward and close is below the lower deviation band, with the gradient ribbon rendering above the ALMA and candles coloring in the bearish color with conviction-scaled intensity.
Gradient Ribbon : The filled zone between the ALMA and the deviation-scaled edge communicates conviction through its visual depth. Strong slope and distant price produce a wide, opaque ribbon. Weakening slope or price compressing toward the ALMA produces a narrower, more transparent ribbon.
Candle Gradient : Price candles color from a muted version of the trend color at low conviction to full saturation at high conviction, providing a bar-level momentum intensity reading directly on the chart.
Entry Line : White core line with trend-colored glow at the flip bar close marks the position entry level, extending forward for the configured projection length.
Stop Loss Line : Red glow and core lines below entry for longs and above for shorts mark the structure-derived stop level. The risk box fills the zone between entry and stop.
Target Lines (T1 to T4) : Green glow and core lines at successive R-multiples from entry mark the sequential take profit levels. Labels display the target number and R multiple.
Target Approach Highlighting : As price approaches each target within the configured approach radius, the glow and zone transparency increases progressively, creating a visual brightening effect that draws attention as price nears each level.
Target Hit Markers : When price reaches a target level, the line brightens fully, the zone shading intensifies, and the label gains a checkmark suffix, providing a persistent record of which targets were reached during the position.
Stop Hit Styling : When price reaches the stop level, the position freezes with stop-specific styling and the stop label receives a checkmark, indicating the position was closed at the stop.
Historical Positions : Frozen completed positions remain on the chart with faded styling for the configured number of past positions, providing a visual history of recent trend-triggered trade setups and their outcomes.
Ribbon conviction width, candle gradient, and target hit progression collectively communicate more trend and trade plan context than any element in isolation.
Signal Logic & Visual Cues
Trend Target Ribbon presents two primary trend transition signals that simultaneously trigger complete position framework generation:
Bullish Trend Signal (◆) : Green diamond below the bar when both slope and displacement conditions flip bullish, triggering a long position framework with structure-derived stop below entry and up to four equidistant R-multiple targets above.
Bearish Trend Signal (◆) : Red diamond above the bar when both slope and displacement conditions flip bearish, triggering a short position framework with structure-derived stop above entry and up to four equidistant R-multiple targets below.
Target proximity highlighting and hit tracking provide continuous secondary context throughout the active position lifecycle, with approach brightening identifying when price is near each target and checkmarks confirming reached levels.
Alert generation covers bullish and bearish trend flip events for systematic monitoring workflows.
Strategy Integration
Trend Target Ribbon fits within ALMA momentum-confirmed trend-following and integrated position management approaches:
Conviction-Filtered Entries : Use the ribbon width and candle gradient at the flip bar as a conviction filter. Flips accompanied by a wide, opaque ribbon and bright candles indicate strong slope and displacement conditions. Flips producing a thin, subtle ribbon suggest borderline confirmation warranting greater caution.
R-Multiple Target Sequencing : Use the automatically generated target sequence as a staged exit framework, planning partial position reductions at each successive target rather than holding for a single fixed level, allowing systematic profit capture while maintaining exposure to larger directional moves.
Structure Stop Awareness : Monitor the stop distance relative to ATR on each new position. Positions where the structural stop requires maximum ATR clamping carry greater uncertainty about the structural validity of the stop level than positions where the structural stop falls naturally within the ATR bounds.
Target Proximity Trading : Use the approach highlighting as a real-time proximity alert for active management decisions, using the brightening glow as a visual cue to prepare for partial exit or tightened stop management as price approaches each target level.
Historical Position Review : Use the retained historical positions as a visual record of the indicator's recent signal behavior on the current instrument and timeframe, assessing whether the configured parameters are producing appropriately sized stops and reachable targets in recent market conditions.
Multi-Timeframe Conviction Alignment : Apply higher-timeframe trend state as a directional bias filter, engaging with lower-timeframe flip signals only when they align with the established higher-timeframe ALMA direction and ribbon state.
Technical Implementation Details
Trend Engine : ALMA with configurable length, offset, and sigma; ATR-normalized slope over configurable lookback; standard deviation band displacement confirmation
Conviction System : Composite score from doubled slope magnitude and distance-weighted price separation mapped to multi-layer ribbon transparency and candle gradient
Position Engine : Swing structure stop derivation with ATR minimum and maximum clamping; equidistant R-multiple target projection; dual-layer glow-and-core line and zone construction
Tracking System : Per-bar target proximity gradient computation; hit state persistence with checkmark labels; stop detection from bar extremes; flip-triggered position freeze with historical styling
History Management : Three independent arrays for lines, boxes, and labels with configurable maximum position count enforced by oldest-first bulk removal
Visualization : Four-layer gradient ribbon with fill and plot combination; conviction-scaled candle gradient; signal diamonds at flip bars
Performance Profile : Real-time execution with object extension and state updates on every bar for the active position, position creation and freeze on flip bars, and bulk cleanup on position count overflow
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday trend position planning for scalping with shorter ALMA length and tighter slope minimum for faster trend confirmation and responsive stop placement
15 - 60 min : Session-level trend-following with balanced ALMA length and moderate deviation confirmation for meaningful trend state separation across typical session moves
4H - Daily : Swing-level trend position management with longer ALMA length and higher slope minimum for sustained trend confirmation before position frameworks are generated
Suggested Baseline Configuration:
ALMA Length : 34
Trend Confirmation : 0.65
Minimum Slope : 0.08
Stop Structure Lookback : 12
Minimum Stop ATR : 0.75
Maximum Stop ATR : 3.0
Profit Targets : 4
Positions On Chart : 4
Show Trend Gradient : Enabled
Color Candles : Enabled (requires disabling original chart candles in chart settings)
Show Position Labels : Enabled
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's volatility characteristics, swing structure frequency, and preferred signal sensitivity, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Too many trend flips : Increase Minimum Slope to demand stronger directional momentum before a flip registers, or increase Trend Confirmation to require greater price displacement beyond the ALMA before the signal fires.
Trend flips too infrequent : Decrease Minimum Slope toward 0.02 for more inclusive momentum qualification, or decrease Trend Confirmation toward 0.2 to allow trend flips on smaller deviations from the ALMA.
Stop loss too tight : Increase Minimum Stop ATR to enforce a larger minimum risk distance regardless of structural stop location, providing more breathing room around the entry price.
Stop loss too wide : Decrease Maximum Stop ATR to cap the risk distance at a tighter ATR multiple, preventing the structural stop from placing the position at an impractical risk size.
Targets too close together : The target spacing is determined by the risk distance. A wider stop produces more widely spaced targets. Reduce Minimum Stop ATR to produce tighter stops and therefore closer-spaced targets on instruments with small typical ranges.
Ribbon too wide or narrow : The ribbon width is driven by conviction from slope and distance. On instruments with consistently strong slope the ribbon may appear uniformly wide. Increase Minimum Slope to restrict confirmation to only the strongest momentum conditions, producing more variable ribbon widths.
ALMA too laggy or reactive : Increase ALMA Sigma toward 15 for a smoother less reactive baseline, or decrease toward 1 for a more reactive baseline. Adjust ALMA Offset toward 1.0 for greater recent-price weighting or toward 0.0 for more uniform weighting across the length.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets where ALMA slope sustains above the minimum threshold for extended periods, producing well-spaced flip signals with wide conviction ribbons and providing sufficient price extension to reach multiple R-multiple targets
Instruments with consistent swing structure where the lookback-derived stop lands at structurally meaningful levels within the ATR bounds rather than being clamped to the minimum or maximum
Systematic position management approaches that benefit from automatically generated, consistently structured trade plans rather than manual level calculation on each signal
Historical analysis workflows where the retained position history provides a visual record of the indicator's recent signal behavior and target achievement rate on the current instrument
Reduced Effectiveness:
Choppy, range-bound markets where slope and displacement conditions flip frequently in alternating directions, generating position frameworks that are immediately frozen by the next flip before targets can be approached
Instruments with highly irregular swing structure where the stop lookback consistently finds extremes that place the stop at the ATR maximum, indicating structural stop placement is not meaningful on the instrument
Very low volatility environments where the ATR minimum stop dominates, producing artificially tight stops that bear no relationship to actual structural support or resistance levels
News-driven or gap-heavy instruments where instantaneous price movements trigger trend flips before the ALMA has developed sufficient slope, producing borderline-conviction signals with thin ribbons
Mean-reversion dominant conditions where sustained ALMA slope is rare and the slope requirement suppresses signal frequency to a level that makes the position history sparse and statistically insufficient for pattern assessment
Integration Guidelines
Confluence : Combine with BOSWaves structural tools, order flow analysis, or volume indicators to validate trend flip signals and assess whether the position framework aligns with broader market context before managing positions to the automated targets
Conviction Assessment : Evaluate ribbon width and candle gradient at each flip bar before committing to the generated position framework. Thin ribbons on borderline signals warrant reduced position sizing relative to the standard risk distance.
Stop Clamping Awareness : Note whether the stop loss is at the structural level or at an ATR boundary. ATR-clamped stops indicate the structural extreme was outside the acceptable range and the stop may be placed at a less meaningful price, warranting additional monitoring.
Target Achievement Review : Periodically review the historical position records retained on the chart to assess whether the configured target count and projection length are realistic for the instrument and timeframe, adjusting target count or extending projection bars if targets consistently remain unreached within the position lifecycle.
State Discipline : Maintain directional bias aligned with the current trend state until the next confirmed flip. Ribbon narrowing and candle gradient dimming within an established trend suggest conviction is weakening but do not constitute a flip signal until both slope and displacement conditions simultaneously satisfy the opposing direction requirements.
Disclaimer
Trend Target Ribbon is a professional-grade ALMA trend conviction visualization and integrated position planning tool. It uses slope-normalized momentum confirmation with structure-derived risk management but does not predict future price movements. Results depend on market conditions, instrument trend characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates order flow context, structural analysis, and comprehensive risk management. อินดิเคเตอร์
