Next Candle Predictor V4.1## Next Candle Predictor V4.1 — Terminology and Presentation Update
This update improves the clarity of the indicator's terminology and on-chart presentation while preserving its existing calculation framework, weighting structure, visual layout, and signal conditions.
### Changes
- Renamed displayed “Prediction” values to “Directional Score”.
- Replaced “Perfect Time” with “Strong Setup”.
- Renamed the volume-derived component to “Estimated Volume Pressure”.
- Renamed projection visuals to “Directional Scenario Candles”.
- Updated dashboard labels and alert messages for clearer interpretation.
- Removed performance-target wording.
- Added author attribution: Developed by Ceyhun C. Canbazoglu.
### Score Interpretation
The displayed long and short percentages are normalized directional confluence scores derived from the indicator’s rule-based components.
They are not statistical probabilities, expected win rates, guarantees, or forecasts of the next candle’s result.
### Estimated Volume Pressure
Estimated Volume Pressure uses OHLCV data and the closing price’s position within the candle range to estimate directional pressure.
It is not exchange-level bid/ask volume delta or actual aggressive buying and selling volume.
### Directional Scenario Candles
The optional scenario candles are volatility-scaled visualizations based on the indicator’s current directional scores.
They do not forecast the next candle’s exact open, high, low, close, direction, or price target.
### Core Framework
The existing multi-factor framework remains unchanged and continues to evaluate:
- trend direction,
- EMA alignment,
- MACD momentum,
- RSI position,
- Stochastic conditions,
- ADX trend strength,
- relative volume,
- estimated volume pressure,
- and volatility regime.
This indicator is intended as a technical-analysis and decision-support tool. It does not provide financial advice or guarantee trading results. インジケーター

HOD Break MarkersThis indicator identifies and tracks successive intraday highs of day on fast charts such as 10-second and 1-minute timeframes.
A new HOD is confirmed when:
1. A candle reaches the highest price of the tracking period.
2. The following candle closes with a lower high.
Once confirmed, the indicator places an outlined marker and an `HOD` label above the candle. If a later candle trades above that price—even briefly with its wick—the marker becomes filled and the horizontal level changes to its “broken” colour.
Customization
You can adjust:
- Marker shape: diamond, square, circle, triangle, or none.
- Marker size and `HOD` text size independently.
- Marker, text, and level colours.
- Custom label text, such as `HOD` or `High of Day`.
- Horizontal line style, width, and visibility.
- Whether levels stop at the end of the day or extend across future days.
Tracking windows
- Exchange day: Uses every visible chart bar and resets each exchange day.
- Custom session: Tracks only a selected session, such as `0400-2000` for US extended hours or `0930-1600` for the regular session.
Premarket highs require extended-hours bars to be enabled on the TradingView chart.
Alerts
The script provides alert conditions for:
- A newly confirmed HOD.
- Price breaking a confirmed HOD. インジケーター

インジケーター

Market Condition Oscillator [HexaTrades]Market Condition Oscillator classifies price action into three simple states: Bullish Trend, Bearish Trend, and Consolidation, and paints them as a color-coded histogram below your chart. It is built to answer one question at a glance: should I be trend-trading right now, or is the market just chopping sideways?
What it shows
🟢 Green histogram above zero → confirmed bullish trend. Taller bars = stronger trend.
🔴 Red histogram below zero → confirmed bearish trend. Deeper bars = stronger trend.
⚪ Gray histogram near zero → consolidation/range (no clear trend).
How it works
The indicator combines four classic, well-understood concepts so that no single signal can produce a false trend on its own:
1. ADX (trend strength): measures how strongly the market is trending. Below the threshold, the market is treated as consolidation regardless of direction.
2. DI+ / DI− (direction) : the Directional Movement pair decides whether strength is to the upside or downside.
3. EMA position + slope (confirmation) : price must be on the correct side of the EMA and the EMA must be sloping the right way. This filters out counter-trend spikes.
4. ATR & EMA-distance (range detection) : consolidation is flagged when volatility compresses or price hugs the EMA, even if ADX hasn't fully dropped yet.
A phase only changes after the condition holds for a configurable number of candles (Confirmation Bars). This is the key to removing the constant flip-flopping that plagues most trend indicators.
Trend rules
✏️ Bullish = ADX above threshold and DI+ > DI− and price above EMA and EMA rising — held for N bars.
✏️Bearish = ADX above threshold and DI− > DI+ and price below EMA and EMA falling — held for N bars.
✏️Consolidation = weak ADX, or compressed ATR, or price hugging the EMA — anything that is not a confirmed trend.
Features
- Bullish, bearish, and consolidation market phase detection.
- Separate oscillator panel for clean chart reading.
- Color-coded histogram.
- Optional histogram smoothing.
- Confirmation bars to reduce false flips.
- Phase label on the latest candle.
- Legend table for easy interpretation.
- Alert conditions for bullish, bearish, consolidation, and trend-flip events.
- Uses confirmed candle data only and does not use future references.
How to use it
- Trend traders: only take longs while the histogram is green, shorts while it is red. Stand aside on gray.
- Mean-reversion traders: the gray phase highlights range conditions where fade/scalp setups work best.
- Filter: combine with your existing entry system and ignore signals that fight the MCO color.
- Works on any market and any timeframe. For higher timeframes, consider raising the ADX threshold and Confirmation Bars.
Alerts
Five ready-to-use alert conditions:
Bullish Trend Started
Bearish Trend Started
Consolidation Started
Bullish → Bearish Shift
Bearish → Bullish Shift
This indicator is designed to help identify market conditions. It should be combined with price action, support and resistance, volume, and proper risk management. No indicator can guarantee profitable trades.
We would love to hear your suggestions. If you have ideas for new features, indicators, analytics, or improvements, please share your feedback. Your input helps guide future updates and improve the indicator for all traders.
This indicator is for educational and analytical purposes only. It should not be considered financial advice. Always use proper risk management and make trading decisions based on your own analysis
インジケーター

SQZ SCAN & EMA Ride Scanner - AshishShort Description
A dual-mode EMA9/21/50 trend-ride scanner with volume classification and a relative-strength "Grinder Mode" for stocks that trend without ever coiling tight enough to trigger a squeeze. Use alongside its companion, SQZ_SCAN, for momentum timing.
What it does
EMA Ride Scanner V2.a finds stocks in a clean, established uptrend and flags healthy pullback zones to buy — instead of chasing breakouts after the move has happened. Built on ideas from Qullamaggie's Episodic Pivot framework, Stockbee's price-neglect filter, and VCPSwing's 10/20-MA ride philosophy. It checks: EMA9>21>50 stack alignment, minimum ride duration, distance from 52-week low, and volatility contraction. Volume bars are color-coded as EP surges, distribution, or healthy dips.
Two modes (single toggle)
Standard Mode (toggle OFF) — for stocks that coil and release. Flags a 0-5% pullback to EMA9, ideally on light volume. Pair with SQZ_SCAN for the breakout-timing signal.
Grinder Mode (toggle ON) — for stocks that never coil. Some strong trends have such low, steady volatility that they never compress enough to trigger a squeeze — by the time SQZ_SCAN fires, they've already run too far from EMA9 to count as a dip. Grinder Mode drops the squeeze requirement and instead checks: low ATR, long ride above EMA21, and meaningful outperformance vs a benchmark index (momentum begets momentum). If price is also near EMA9/21, it flags a Grinder Setup.
Note: cloud-bounce count is shown for visual reference only, not used as a filter — low-ATR stocks often show very few bounces simply because they ride EMA9 continuously rather than dipping and recovering.
Companion: SQZ_SCAN
SQZ_SCAN (LazyBear Squeeze Momentum, normalized to % of price for cross-stock comparison) shows when volatility compression releases into a confirmed move — WATCH (squeeze building, qualifying bar count reached), EARLY FIRE (momentum just turned positive inside the squeeze), or BUY (squeeze fired + momentum green & rising + volume surge confirmed).
Workflow:
Screen with EMA Ride Scanner (Standard Mode) for clean pullback candidates.
Check SQZ_SCAN on each — prioritize WATCH/EARLY FIRE/BUY.
Separately, screen Grinder Mode for low-volatility names — don't require SQZ confirmation here, it structurally won't fire for this archetype.
Sanity-check on hourly before entry — only to rule out an active breakdown, not as a hard gate. Both indicators are daily-timeframe tools; hourly readings are noisy and shouldn't override a valid daily setup.
What this isn't
A screening tool, not a full trading system — no buy/sell signals, no risk management built in. Combine with your own entry timing, sizing, and stops. インジケーター

EMA Ride Scanner V2.a (Toggle) - AshishShort Description
A dual-mode EMA9/21/50 trend-ride scanner with volume classification and a relative-strength "Grinder Mode" for stocks that trend without ever coiling tight enough to trigger a squeeze. Use alongside its companion, SQZ_SCAN, for momentum timing.
What it does
EMA Ride Scanner V2.a finds stocks in a clean, established uptrend and flags healthy pullback zones to buy — instead of chasing breakouts after the move has happened. Built on ideas from Qullamaggie's Episodic Pivot framework, Stockbee's price-neglect filter, and VCPSwing's 10/20-MA ride philosophy.
It checks: EMA9>21>50 stack alignment, minimum ride duration, distance from 52-week low, and volatility contraction. Volume bars are color-coded as EP surges, distribution, or healthy dips.
Two modes (single toggle)
Standard Mode (toggle OFF) — for stocks that coil and release. Flags a 0-5% pullback to EMA9, ideally on light volume. Pair with SQZ_SCAN for the breakout-timing signal.
Grinder Mode (toggle ON) — for stocks that never coil. Some strong trends have such low, steady volatility that they never compress enough to trigger a squeeze — by the time SQZ_SCAN fires, they've already run too far from EMA9 to count as a dip. Grinder Mode drops the squeeze requirement and instead checks: low ATR, long ride above EMA21, and meaningful outperformance vs a benchmark index (momentum begets momentum). If price is also near EMA9/21, it flags a Grinder Setup.
Note: cloud-bounce count is shown for visual reference only, not used as a filter — low-ATR stocks often show very few bounces simply because they ride EMA9 continuously rather than dipping and recovering.
Companion: SQZ_SCAN
SQZ_SCAN shows when volatility compression releases into a confirmed move — WATCH (squeeze building), EARLY FIRE (just released), or BUY (released + volume confirmed). NOTE: As with most indicators, this is a lagging indicator on a daily timeframe, and accuracy reduces significantly on lower timeframes.
Workflow:
Screen with EMA Ride Scanner (Standard Mode) for clean pullback candidates.
Check SQZ_SCAN on each — prioritize WATCH/EARLY FIRE/BUY.
Separately, screen Grinder Mode for low-volatility names — don't require SQZ confirmation here, it structurally won't fire for this archetype.
Sanity-check on hourly before entry — only to rule out an active breakdown, not as a hard gate. Both indicators are daily-timeframe tools; hourly readings are noisy and shouldn't override a valid daily setup.
What this isn't
A screening tool, not a full trading system — no buy/sell signals, no risk management built in. Combine with your own entry timing, sizing, and stops. インジケーター

インジケーター

インジケーター

Big Trades Indicator By Revan BlezinskyBig Trades Indicator v2 is a custom volume-based indicator designed to help traders identify unusual trading activity, large volume spikes, directional pressure, and potential liquidity clusters directly on the price chart.
The indicator compares current volume against the average volume and marks significant volume events with visual bubbles. The bigger the volume anomaly, the larger and more visible the bubble becomes.
Green bubbles represent estimated buy-side pressure, while red bubbles represent estimated sell-side pressure. Direction is estimated using candle behavior such as Close vs Open, Close vs Midpoint, or Close vs Previous Close.
This script also includes a momentum marker system. When multiple big trades appear in the same direction, the indicator displays a momentum marker to show repeated buying or selling pressure.
Another key feature is Liquidity Cluster Detection. When several large volume events happen within a narrow price range, the indicator highlights the area as a possible liquidity zone. These zones may act as potential support, resistance, accumulation, distribution, or breakout confirmation areas.
Key Features:
- Volume spike detection
- Extreme volume detection
- Buy and sell pressure estimation
- Optional ATR-based dynamic threshold
- Momentum marker for repeated directional pressure
- Liquidity cluster detection
- Smooth bubble opacity scaling
- Real-time information table
- Object management to reduce chart clutter
How to Read:
- Green bubble = estimated buy pressure
- Red bubble = estimated sell pressure
- Bigger bubble = stronger volume anomaly
- Cluster zone = multiple big trades around the same price area
- BUY MOM / SELL MOM = repeated big trades in the same direction
Recommended Usage:
This indicator is best used as a confirmation tool together with support and resistance, market structure, breakout analysis, price action, volume profile, and risk management.
Example:
A large green bubble near support may suggest aggressive buying or accumulation.
A large red bubble near resistance may suggest selling pressure or distribution.
A cluster near a breakout area may suggest strong market participation.
Important:
This indicator does not provide guaranteed buy or sell signals. Buy and sell pressure are estimated from candle behavior and volume, not from real order flow or exchange-level bid/ask data.
Large volume can indicate either continuation or exhaustion depending on market context. Always combine this indicator with proper analysis and risk management.
Suggested Settings for Stocks:
Volume MA Length: 20
Spike Threshold: 2.0
Extreme Threshold: 4.0
Dynamic Threshold: Off
Cluster Lookback: 30
Cluster Price Range: 0.3% - 0.5%
Suggested Settings for Crypto, Gold, or High Volatility Markets:
Volume MA Length: 20
Spike Threshold: 2.5
Extreme Threshold: 5.0
Dynamic Threshold: On
Cluster Lookback: 30 - 50
Cluster Price Range: 0.5% - 1.0%
Disclaimer:
This script is for educational and analytical purposes only. It is not financial advice. Always do your own research and use proper risk management before making any trading decision. インジケーター

Aura Volume Delta Matrix [Pineify]Aura Volume Delta Matrix
This indicator measures the net demand pressure behind each bar by separating candle volume into buying and selling components, smoothing the difference, and plotting it as a gradient histogram against a signal line. Rather than treating volume as a single unsigned number, it asks: how much of this bar's volume was buying versus selling? The answer — volume delta — reveals whether the crowd was net accumulating or distributing, even when price barely moved.
Key Features
Candle-polarity volume split: full bar volume attributed to buyers when close > open, sellers when close < open, and split 50/50 on doji candles
Dual EMA smoothing pipeline — one pass to extract the trend from noisy raw delta, a second pass to generate a crossover signal line
Normalized gradient histogram: bar intensity scales to the 100-bar rolling maximum, so weak readings appear faint and strong readings appear saturated, giving an immediate visual sense of magnitude relative to recent history
Crossover signals that only fire when delta is already on the correct side of zero — filtering out shallow, mean-reverting crosses that would otherwise generate noise
How It Works
The calculation pipeline has three stages.
Volume attribution: Each bar's total volume is assigned to buyers or sellers based on candle polarity. A bullish close (close > open) attributes 100% to buyers; a bearish close (close < open) attributes 100% to sellers; equal open and close splits it evenly. This is a bar-level proxy for order flow — not tick-level CVD, but a reasonable approximation available on any timeframe without premium data.
Delta smoothing: Raw delta (bullVol − bearVol) is noisy on its own. A configurable EMA (default 14) removes single-bar spikes and reveals the directional bias over recent bars. This smoothed delta is what plots as the histogram.
Signal line: A second EMA (default 9) is applied to the smoothed delta. This behaves like the MACD signal line — when the histogram crosses above it while already positive, demand is re-accelerating from a bullish baseline; crossing below while negative signals the opposite.
The gradient coloring normalizes the histogram against its own 100-bar peak, so you can immediately tell whether current delta intensity is historically significant or just routine churn.
How the Components Work Together
The two-pass EMA structure is intentional. A single EMA of raw delta would react quickly but produce too many false crosses. By smoothing first and then deriving a signal from the smoothed output, the crossover logic only fires when momentum has already built enough to survive the first layer of filtering. The zero-side gate on signals adds a second filter: a bullish crossover below zero means demand is recovering within a still-bearish context, which is a weaker setup than a crossover that occurs while net buying is already dominant. Together these two conditions — crossover confirmed by zero-side context — push the signal rate down and focus it on higher-conviction shifts.
Trading Ideas and Insights
Use bullish crossovers (delta crosses above signal while delta > 0) as a candidate entry trigger on trending assets. Consider waiting for price to also be above a longer-period moving average before acting on the signal.
Divergence between price making a new high and delta making a lower high may indicate absorption — sellers stepping in at resistance without moving price yet. This is worth watching rather than acting on automatically.
On ranging markets, delta will oscillate around zero and the smoothing will compress toward the baseline. Low histogram intensity (faint gradient bars) visually signals low-conviction conditions where crossover signals are less reliable.
The signal line alert conditions can be used to push notifications when the crossover setup occurs, removing the need to watch the chart continuously. Still, confirm with price structure before entering.
As with any volume-based indicator, results vary by asset liquidity and data provider. Crypto and futures markets with transparent volume data tend to produce cleaner delta readings than instruments where reported volume is an estimate.
Unique Aspects
The gradient normalization against a rolling 100-bar peak is a visual improvement over fixed-scale histograms: it adapts to each instrument's typical volume range without manual scaling, making the chart readable across different assets.
The zero-side signal filter avoids a common problem in oscillator crossover systems — signals that fire during shallow pullbacks within a larger counter-trend, where the histogram is technically crossing but the broader context is unfavorable.
The doji split (50/50 at open = close) is a minor but honest edge case handling that most simplified volume delta scripts skip.
How to Use
Add the indicator to any chart. It works on all timeframes, though intraday timeframes tend to show more granular delta shifts.
Watch histogram color and intensity. Solid, saturated green bars suggest strong net buying relative to recent history; faint bars suggest low-conviction buying or a quiet session.
Look for crossovers of the orange signal line. Bullish: histogram rises through the signal line while above zero. Bearish: histogram falls below the signal while below zero. Half-crossovers (histogram crosses signal but is on the wrong side of zero) are filtered from alerts.
Set alerts via the indicator's alert conditions if you want to monitor for crossover setups without watching the chart.
Customization
Delta Smoothing Length (default: 14) — Controls how much the raw volume delta is smoothed before plotting. Higher values produce a slower, more stable histogram but introduce more lag. Lower values react faster and may show more noise.
Signal Line Length (default: 9) — The EMA length applied to the smoothed delta to create the crossover trigger. Shorter values generate more frequent signals; longer values are more selective.
Bullish / Bearish / Signal Colors — Fully customizable to match your chart theme or personal preference.
Conclusion
Aura Volume Delta Matrix translates raw bar volume into a directional demand measure, smooths it through a dual-EMA pipeline, and presents the result as a gradient histogram with a signal-line crossover system. It's most useful for traders who want a volume-based confirmation layer that isn't just "volume went up" but instead reflects which side of the trade had more participation. Pair it with price structure or trend context for best results — no volume indicator tells the full story on its own.
インジケーター

インジケーター

インジケーター

インジケーター

Aura RSP Matrix [Pineify] Pineify - Aura RSP Matrix - Relative Strength Phase Momentum
Aura RSP Matrix compares the chart symbol with a benchmark and classifies it into four relative-strength phases: Leading, Weakening, Lagging, and Improving. It shows whether relative performance is gaining or fading.
Key Features
Benchmark-relative RS Ratio and RS Momentum centered around 100.
Phase coloring for the oscillator, bars, markers, and dashboard.
Leading and Lagging labels fire only on the first bar of a new phase.
How It Works
The script requests the benchmark close on the timeframe, divides chart close by benchmark close, then normalizes the result with a WMA . This creates RS Ratio, where values above 100 show relative strength above its recent baseline.
RS Momentum compares RS Ratio with its own WMA baseline. Both series are smoothed with an EMA before phase detection. Smoothing reduces one-bar noise but adds lag.
How the Components Work Together
RS Ratio shows whether the symbol is strong or weak versus the benchmark. RS Momentum shows whether that position is improving or fading. Leading means both are above 100; Weakening means strength remains above 100 while momentum slips; Lagging means both are below 100; Improving means momentum turns up before RS Ratio confirms.
Trading Ideas and Insights
Use Leading as confluence for bullish setups, not as an automatic entry.
Watch Weakening after strong runs; it may show fading follow-through.
Use Improving to find names recovering against a benchmark.
Treat Lagging as a caution filter when stronger alternatives exist.
Signals are phase-change markers, not performance guarantees. In choppy markets the matrix can rotate around 100, and live bars may change until close.
Unique Aspects
Two-stage WMA normalization separates relative strength from relative momentum.
One four-state matrix keeps labels, bars, oscillator color, and dashboard status aligned.
The benchmark input supports market, sector, crypto pair, or cross-asset comparison.
How to Use
Add the indicator and choose a benchmark for your trading universe.
Read the phase from bar color, oscillator color, and dashboard.
Combine phases with price structure, volume, and higher-timeframe context.
Customization
Calculation Window (default: 20) - WMA normalization period. Higher is smoother; lower is faster.
Benchmark Ticker (default: SPX) - Relative strength comparison symbol.
Smoothing Factor (default: 3) - EMA smoothing after RS calculations.
Phase Colors and Toggles - Adjust colors, labels, and bar coloring.
Conclusion
Aura RSP Matrix is a relative strength context tool for rotation, watchlist filtering, and benchmark-relative trade selection. Use it with price action and risk controls, not as a standalone forecasting system. インジケーター

インジケーター

VWRSI Crossovers & Extremes [The AI Trading Desk]VWRSI Crossovers & Extremes
By integrating real volume into the RSI calculation, this engine surfaces only the moves that have money behind them. The hype-driven wiggles get filtered. The conviction moves stand out.
And then it tells you exactly what to do.
Two clear ways to act — no guesswork:
🔥 Extreme Release Signals — the RSI mistake most traders make
Most traders are taught RSI wrong. They sell the second it crosses 70 and buy the second it crosses 30 — and then they watch the market keep ripping in the same direction without them, or worse, against them. Here's the truth: RSI can stay in extreme zones far longer than you expect. Selling overbought into a strong trend is how accounts bleed.
This indicator doesn't fire when RSI enters an extreme zone. It fires when VWRSI comes back out of one. An orange flash and a labeled Up or Dn triangle mark the exact bar where momentum returns to normal range — meaning the extreme is resolving, not building. You're not fighting the trend. You're acting once the move has cooled and momentum has rotated back to your side.
How to use it:
Wait for the orange flash + triangle — don't act when VWRSI hits 70 or 30, act when it leaves
Down triangle (Dn) at the top — overbought is resolving, momentum cooling, look for short setups or trim longs
Up triangle (Up) at the bottom — oversold is resolving, momentum reviving, look for long setups or cover shorts
Best paired with structure — confluence with key levels, prior swing points, or trendlines tightens the edge
🌊 Crossover Confirmation — the answer to chop and fake-outs
Raw VWRSI crosses happen all day. Most are noise. The trick is waiting for the VWRSI to cross its signal moving average — that's the moment when short-term momentum has shifted decisively against the smoothed average, not just twitched.
The fill color flips with the cross — green for bullish momentum, red for bearish. By waiting for this confirmed cross instead of acting on every wiggle, you skip the chop, dodge the fake-outs, and only enter when the regime has actually changed. It's slower, on purpose. That's the point.
How to use it:
Watch the cloud color — green means VWRSI is above its MA (bullish bias); red means below (bearish bias)
Enter on the flip — when the color changes, momentum has rotated. Trend traders take entries with the new direction.
Stay in until it flips back — exits trigger when the cloud color reverses, signaling the regime has changed again
Skip the in-between — when VWRSI is hugging the MA closely (thin cloud), the market is undecided. Wait for separation.
Why this hits different:
Volume integrated into momentum calculation — high-volume bars influence momentum more than low-volume drift. Real moves stand out.
Both tops AND bottoms flagged — most VWRSI tools only catch one side. This catches both, with equal clarity.
No mystery readings — every signal has a name and a job. If you can't explain what your indicator is telling you, you can't trust it.
Calm when the market is calm — no constant red clouds during chop. The line stays quiet so you don't overtrade.
Built for traders who are tired of:
Selling tops too early and watching the trend keep running
Buying every dip into oversold and getting steamrolled
Indicators that fire constantly but rarely matter
Beautiful clouds that look great in screenshots but trick you into bad entries
Two trade types. Three visual cues. Zero guesswork.
Defaults: VWRSI 14, MA 9, OB 70, OS 30 — fully customizable.
Built by The AI Trading Desk. インジケーター

Apex Reversal Engine💥Apex Reversal Engine: S&R and Momentum Exhaustion💥
⚙️Apex Reversal Engine is an advanced analytical script built specifically for Forex swing traders and position traders operating on higher timeframes (1H to 1D). Its primary objective is to identify high-probability market reversal zones by finding the exact point where structural price levels intersect with extreme momentum exhaustion.
⚙️ The Core Concept & Algorithmic Logic
Many traders struggle with false breakouts or entering reversal trades too early because they rely solely on isolated technical concepts. Trading pure Support/Resistance often leads to getting stopped out by fakeouts, while trading pure RSI often leads to catching "falling knives" in strong trends.
⚙️This script is built on a deliberate mashup of two distinct technical concepts to filter out these low-probability setups:
🚀Automated Support & Resistance (Structural Analysis): The algorithm dynamically maps the chart to identify key historical liquidity zones. It calculates significant pivot highs and pivot lows over a specific lookback period to draw objective Support and Resistance (S&R) lines. These lines represent areas where the market has previously shown strong rejection, indicating institutional interest or historical supply/demand imbalances.
🚀RSI Momentum Validation (Velocity Analysis): To validate these structural levels, the script integrates a calibrated Relative Strength Index (RSI). The RSI measures the velocity and magnitude of recent price changes to evaluate overvalued or undervalued conditions.
⚙️The Mashup Justification:
🚀The true originality of the Apex Reversal Engine lies in its stringent confluence engine. The script will not generate a buy signal just because the price hits a support line, nor will it fire a signal just because the RSI is oversold. An entry signal is printed only when the price tests a recognized Support/Resistance line simultaneously with an extreme RSI reading. This specific algorithmic gating ensures that we only look for reversals when structural barriers are met with mathematical momentum exhaustion.
⚙️ How to Use the Indicator
For optimal performance, this script is calibrated for the Forex market and should be applied to higher timeframes, specifically ranging from 1-Hour (1H) to 1-Day (1D) charts. Using it on lower timeframes may introduce unwanted market noise.
⚙️The script is designed with a clean UI, avoiding unnecessary chart clutter, and outputs clear, actionable labels:
📈Long Entry (Bullish Setup): Wait for a bullish signal label to appear. This signifies that the price is currently testing a major Support Line AND the internal RSI module has registered an extreme oversold condition, suggesting downside exhaustion and a potential upward reversal.
📉Short Entry (Bearish Setup): Wait for a bearish signal label. This confirms that the price is testing a major Resistance Line AND the RSI is heavily overbought, indicating upside exhaustion and a high probability of a downward reversal.
⚠️Risk Management:
These automated S&R lines double as excellent risk management tools. Stop Loss (SL) orders can be placed logically just outside the tested Support or Resistance zone to invalidate the setup if the level breaks. Take Profit (TP) targets can be scaled out at the next opposing S&R level.
🔒 Note on Script Originality
(Include this section if you are publishing as Closed-Source / Invite-Only)
The source code is protected because the specific lookback algorithms used for dynamic S&R generation, the specific calibration of the momentum oscillator for 1H-1D Forex charts, and the precise logical confluence rules are proprietary. The underlying logic described above empowers users to fully understand the mechanics of the trade setups without exposing the raw, backtested parameters that make the script unique.
⚠️Disclaimer: This script is for educational and analytical purposes only. Trading Forex on any timeframe carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results. Always use proper risk management and never risk more than you can afford to lose. インジケーター

Equilibrium Momentum Shift + Divegence [BigBeluga]🔵 OVERVIEW
Equilibrium Momentum Shift is a range-based momentum oscillator designed to measure how far price has deviated from its current equilibrium.
Instead of focusing purely on trend direction or overbought/oversold conditions, this indicator evaluates price relative to the midpoint of its recent range and quantifies the strength of the shift away from that balance.
By combining normalized range deviation, smoothing techniques, and nonlinear compression, the indicator provides a clear view of when markets transition from equilibrium into directional momentum, now featuring Normal Divergence detection to spot potential trend reversals.
🔵 CONCEPT
Equilibrium Midpoint — The midpoint between the highest high and lowest low over the selected range length represents the equilibrium price.
Deviation Measurement — The indicator measures how far the current price has moved away from this midpoint.
Range Normalization — Deviations are normalized relative to the size of the current range, allowing the oscillator to remain consistent across different volatility conditions.
Momentum Compression — A hyperbolic tangent function compresses extreme values, stabilizing the oscillator and preventing runaway signals during large trends.
Divergence Identification — Automatically identifies discrepancies between price action and the oscillator to highlight weakening momentum in established trends.
🔵 HOW IT WORKS
1️⃣ Equilibrium Range Calculation
The indicator calculates the highest high and lowest low over the user-defined range length.
The midpoint between these two levels forms the equilibrium line.
This midline represents the center of balance for recent price activity.
2️⃣ Price Deviation Measurement
The distance between the current close and the equilibrium midpoint is calculated.
This deviation is then smoothed using a double EMA structure to reduce noise.
The smoothed value is normalized relative to half of the current range size.
3️⃣ Nonlinear Oscillator Transformation
A hyperbolic tangent function compresses normalized deviations into a stable range between -1 and +1.
This transformation prevents extreme outliers and creates a more interpretable oscillator.
4️⃣ Momentum Histogram
A signal line is generated using EMA smoothing.
The difference between the oscillator and the signal line forms a histogram.
The histogram behaves similarly to a MACD-style momentum indicator:
Expanding bars indicate strengthening momentum.
Contracting bars indicate weakening momentum.
5️⃣ Normal Divergence Logic
Bullish Divergence: Occurs when price makes a Lower Low , but the Equilibrium Oscillator makes a Higher Low . This suggests that despite the price drop, the selling pressure relative to equilibrium is fading.
Bearish Divergence: Occurs when price makes a Higher High , but the Equilibrium Oscillator makes a Lower High . This indicates that the buyers' ability to push price away from the midpoint is losing strength.
🔵 KEY FEATURES
Equilibrium midpoint plotted directly on the chart.
Range-normalized momentum oscillator.
Hyperbolic tangent compression to stabilize signals.
MACD-style histogram for momentum acceleration detection.
Automatic Normal Divergence labels to spot exhaustion.
Gradient-colored oscillator line reflecting directional bias.
Dashboard displaying real-time momentum metrics.
🔵 DASHBOARD METRICS
Shift — Current oscillator value showing how far price has moved from equilibrium.
State — Market regime derived from oscillator thresholds:
Bullish
Bearish
Neutral
Range Position — Location of price inside the current range expressed as a percentage.
Pressure — Magnitude of momentum deviation from equilibrium.
🔵 HOW TO USE
Use the equilibrium midline as a dynamic balance reference.
When the oscillator moves above zero, bullish momentum dominates.
When the oscillator moves below zero, bearish momentum dominates.
Trading Divergences: Watch for divergence labels when price is at historical range extremes. A bullish divergence near the "Lowest Low" of the range suggests a high-probability mean-reversion trade back toward equilibrium.
Histogram expansions highlight momentum acceleration.
Histogram contraction can signal potential momentum exhaustion.
🔵 INTERPRETING MOMENTUM SHIFTS
Oscillator near zero → Market is balanced around equilibrium.
Oscillator above 0.2 → Bullish momentum phase.
Oscillator below -0.2 → Bearish momentum phase.
Divergence Label + Oscillator Flatline → High probability of a trend reversal or deep pullback.
Rapid oscillator expansion → Strong directional pressure.
Oscillator flattening → Momentum compression or consolidation.
🔵 CONCLUSION
Equilibrium Momentum Shift offers a structured way to analyze how price behaves relative to its recent balance point.
By measuring normalized deviations from equilibrium and visualizing momentum shifts with a smoothed oscillator, histogram, and integrated divergence analysis , the indicator helps traders identify when markets transition from balance into directional movement.
This makes it especially useful for spotting early momentum expansions, trend continuation signals, and potential exhaustion points where price is likely to snap back to its equilibrium midpoint. インジケーター

QuantEdge Momentum ML [PRO]🟦 QuantEdge Momentum ML PRO is a k-Nearest Neighbors driven momentum oscillator built on an adaptive machine-learning core. Unlike RSI, Stochastic, or MACD — which apply the same static formula to every asset — QE-ML PRO learns the dual-horizon RSI fingerprints that have historically led to bullish versus bearish outcomes on the exact instrument being traded, then scores the current bar against the N closest historical matches. The result is a non-parametric, self-calibrating oscillator whose decision boundary is shaped by the asset's own behaviour rather than a hard-coded curve.
The indicator integrates nine independent layers — feature engine, training sampler, k-NN predictor, WMA signal line, stdev-adjusted OB/OS bands, filtered signal dots, gradient channel, theme-adaptive dashboard, and a nine-theme palette — all rendered on a single, clean oscillator panel.
🟦 HOW THE CORE ENGINE WORKS
**Dual-Horizon RSI Feature Vector**
Each bar, the Feature Engine computes two RSI values at different lookback windows and smooths both through a shared trend-length WMA:
- `rsiFast = WMA(RSI(close, FastPeriod), TrendLength)` — reactive short-term momentum
- `rsiSlow = WMA(RSI(close, SlowPeriod), TrendLength)` — structural mid-term momentum
The pair `(rsiSlow, rsiFast)` is a 2-dimensional point in RSI feature space. Every training sample stores one such point along with a ±1 label that records whether price rose or fell since the previous sample. Over time the dataset accumulates a cloud of labelled points that maps which RSI states historically preceded up-moves versus down-moves on this exact asset.
**Training Sampler — Multi-Trigger Collector**
Three collection modes decide when to append a new labelled sample:
| Mode | Trigger | Use Case |
|---|---|---|
| **MA Crossover** | Fast WMA crosses Slow WMA | Clean, sparse samples — classic single-trigger behaviour |
| **Periodic** | Every N bars (user-set) | Fills dataset fast on new / low-history charts |
| **Hybrid** | MA crossover **OR** every N bars | Richest training set — recommended for fresh assets |
Sampling is gated by `barstate.isconfirmed` so the dataset never absorbs unconfirmed values from a flickering live bar.
**k-NN Predictor with Adaptive k**
On every bar, the predictor computes Euclidean distance in the 2D RSI feature space between the live `(rsiSlow, rsiFast)` point and every historical sample:
```
d = sqrt((rsiSlow_now - rsiSlow_hist)² + (rsiFast_now - rsiFast_hist)²)
```
The K closest historical points vote by summing their ±1 labels. The effective K is resolved adaptively using the classical statistical heuristic:
```
kEff = max(3, min(kMax, floor(sqrt(N))))
```
This means early bars — when only a handful of samples exist — use a small K, and the value stabilises as the dataset fills. On a fresh chart you never get a noisy prediction from an undersized neighborhood, and on a mature dataset K automatically scales up for smoother output.
**Bias Correction — Label-Mean Recentering**
Raw k-NN output is biased whenever the label distribution is skewed. On a trending asset, Periodic sampling fills the dataset with mostly +1 (or mostly −1) labels, pushing every prediction off zero. QE-ML PRO subtracts the expected value from the raw sum:
```
prediction = neighborLabelSum − (kEff × meanLabelAcrossDataset)
```
This keeps the mid-level visually centred at zero regardless of how trending the underlying asset has been. The correction is applied on every bar and is what makes the oscillator read cleanly on both sideways and strongly trending markets.
**Minimum Sample Gate**
Until the dataset has reached the user-defined Minimum Training Samples threshold, the predictor outputs exactly zero. This prevents unreliable readings during the warm-up phase on fresh charts.
**FIFO Rotation**
The dataset is hard-capped at Max Dataset Size. Once the cap is reached, the oldest sample is discarded on every new insertion — classical rolling window memory that keeps the k-NN scan bounded and the indicator fast on long histories.
🟦 PREDICTION LINE — FIVE VISUAL STYLES
All five styles are line-based. Only the visual effect differs — the underlying k-NN math is identical across styles.
| Style | Character |
|---|---|
| **Stratum** | Thick adaptive line with zone-based opacity: solid in extreme zones, semi-transparent in the mid zone. Layered intensity aesthetic — default |
| **Neon** | Bright core line with an outer glow halo. Cyberpunk luminous effect, best on dark backgrounds |
| **Resonance** | LRI-style gradient line that fades near the midline and brightens toward the rolling extremes |
| **Pulse** | Adaptive bull/bear color (above midline = bull, below = bear) plus the WMA signal line. The QE-ML PRO classic look |
| **Mono** | Single flat theme-bull line, no gradient, no adaptive coloring. Minimalist single-color silhouette |
🟦 SIGNAL LINE
A WMA of the raw prediction output, used as a crossover trigger line in the MACD convention. Crossovers between the prediction and signal line mark momentum regime changes.
**Two Visual Styles**
| Style | Rendering |
|---|---|
| **Neon** | Bright core line wrapped in a wider semi-transparent glow halo — cyberpunk aesthetic |
| **Flat** | Plain single-color line, no halo, no gradient — minimalist clean look |
🟦 SIGNAL DOTS — FILTERED CROSSOVER MARKERS
A two-layer neon cross-dot renderer fires on every Prediction × Signal crossover that survives the active filter mode. Four progressive filters decide which raw crosses reach the chart:
| Filter Mode | Behaviour | Signal Count |
|---|---|---|
| **All Crosses** | Every cross becomes a dot | Highest — noisy on choppy assets |
| **Zone Only** | Only crosses inside an OB or OS strip | Mean-reversion triggers — strongest reversal setups |
| **Mid Aligned** | Bull dots only above mid, bear dots only below | Trend-following — keeps you on regime side |
| **Strict** | Zone Only + Mid Aligned + extra strength multiplier on mid-zone crosses | Fewest signals, highest conviction — default |
Two additional gates filter out whipsaws:
- **Cooldown (bars)** — minimum spacing between consecutive dots, prevents cluster spam in ranges
- **Min Strength** — minimum `|prediction − signal|` separation at the moment of the cross, drops razor-thin crossovers that close back on themselves
Each dot is a two-layer plot: an outer glow halo with user-adjustable size and opacity, and a bright solid core on top — independently sized and opacity-controlled so users can dial in the exact visual weight they want.
The dot is placed at the actual cross point: bull dots at `min(prediction, signalLine)`, bear dots at `max(prediction, signalLine)`.
🟦 DYNAMIC BANDS — STDEV-ADJUSTED OB / OS ZONES
QE-ML PRO does not use fixed 80 / 20 overbought / oversold levels. Instead, the bands adapt to the actual historical range of the prediction output:
- **Channel Extremes** — rolling highest / lowest of the prediction over a user-configurable lookback
- **Stdev Band** — EMA of rolling standard deviation of the prediction, multiplied by the user's stdev length
- **OB Level** = `rangeHi − stdevBand` (inner boundary of the overbought strip)
- **OS Level** = `rangeLo + stdevBand` (inner boundary of the oversold strip)
The result is a pair of mean-reversion zones that tighten during quiet markets and widen during volatile ones — no manual recalibration needed across assets.
The strips are rendered as gradient fills anchored on the live prediction plot, so they only appear visually while the prediction is actually inside the zone.
🟦 CHANNEL GRADIENT
Two symmetric gradient fills bracket the mid line. The upper fill stretches from `midValue` to `rangeHi`, the lower fill from `midValue` to `rangeLo`. Opacity fades from full intensity at the extremes to fully transparent at the midline — a visual range meter showing how close the prediction is sitting to its historical boundaries.
Colors are pulled from the active Theme. A single opacity slider controls the gradient intensity.
🟦 DASHBOARD — LIVE DATA PANEL
A compact 2-column × 7-row monospace panel drawn on the last bar only (zero historical overhead). Every field updates in real time on the live bar.
| Row | Left | Right |
|---|---|---|
| Header | QE-ML PRO | Regime (▲ BULL / ▼ BEAR / ■ NEUTRAL) |
| Row 1 | Prediction | Raw value + trend arrow vs previous bar |
| Row 2 | Signal | WMA trigger line value |
| Row 3 | Strength | 10-block gauge of `|prediction − signal|` normalised against rolling channel |
| Row 4 | Zone | OB / MID / OS tag |
| Row 5 | Dataset | Sample count / effective k |
| Row 6 | Mode | Active Learning Mode (MA Cross / Periodic / Hybrid) |
**Theme-Aware Auto-Invert**
The panel background scaffolds auto-switch:
- **Tropic / Amber / Pastel / Cyber / Gold / Electric / Candy** → dark panel with bright theme accent text
- **Midnight / Graphite** → light panel with dark theme accent text
This guarantees legibility on every theme without breaking the theme's color identity — because Midnight and Graphite use deep dark bull tones that would drown against a black panel.
**Direction via Glyphs, Not Color**
Both columns share the same full-strength theme tone. Regime direction is conveyed by `▲ ▼ ■` glyphs rather than color shifts, which keeps the panel reading cleanly even on the most minimal themes.
🟦 NINE COLOR THEMES
One theme selector drives every colored component — Prediction line, Signal line, Channel fill, OB / OS strips, Mid-level line, Signal Dots, and Dashboard panel. No per-color manual inputs.
| Theme | Character | Bull | Bear |
|---|---|---|---|
| **Tropic** | Cyan steel + deep orange — electric contrast (default) | Cyan | Deep Orange |
| **Amber** | Warm amber + indigo blue — fire tones | Amber | Red |
| **Pastel** | Sky blue + soft lavender — cool arctic glow | Sky Blue | Lavender |
| **Cyber** | Neon lime + hot crimson — cyber terminal | Neon Green | Crimson |
| **Gold** | Bright gold + scarlet — solar warmth | Yellow Gold | Red |
| **Electric** | Electric aqua + magenta — high-voltage neon | Aqua | Magenta |
| **Candy** | Neon green + hot pink — dark energy pop | Mint Green | Hot Pink |
| **Midnight** | Deep navy + dark crimson — dark depth (auto light dashboard) | Navy Blue | Dark Red |
| **Graphite** | Near-black + silver grey — monochrome minimal (auto light dashboard) | Near Black | Grey |
🟦 ALERT SYSTEM — TEN CONDITIONS
Every alert is gated by its matching "Show X" visibility toggle — if a component is hidden from the chart, its alerts are automatically suppressed. This eliminates the mismatch between visual signals and alert signals that plagues many indicators.
| Alert | Condition | Gated By |
|---|---|---|
| Crossover OB | Prediction crosses above the overbought boundary | Show OB/OS Fill |
| Crossunder OB | Prediction crosses back down through OB | Show OB/OS Fill |
| Crossover OS | Prediction crosses up through oversold boundary | Show OB/OS Fill |
| Crossunder OS | Prediction crosses below the oversold boundary | Show OB/OS Fill |
| Crossover Mid | Prediction crosses above the mid line — bullish regime flip | Show Mid Level |
| Crossunder Mid | Prediction crosses below the mid line — bearish regime flip | Show Mid Level |
| Crossover Signal | Prediction crosses above its WMA signal line (MACD bullish) | Show Signal Line |
| Crossunder Signal | Prediction crosses below its WMA signal line (MACD bearish) | Show Signal Line |
| Bull Signal Dot | A filtered Bull Signal Dot is plotted (uses Filter Mode + Cooldown + Min Strength) | Show Signal Dots |
| Bear Signal Dot | A filtered Bear Signal Dot is plotted (uses Filter Mode + Cooldown + Min Strength) | Show Signal Dots |
🟦 SETTINGS REFERENCE
**Visual**
- Theme — nine cohesive palettes. Default: Tropic
**Machine Learning**
- Neighbors (k) — upper bound on neighbors used by the predictor. Default: 100
- Adaptive k — scales k with dataset size using the `floor(sqrt(N))` heuristic. Default: ON
- Learning Mode — MA Crossover / Periodic / Hybrid. Default: MA Crossover
- Sample Every (bars) — bar interval for the Periodic / Hybrid trigger. Default: 5
- Minimum Training Samples — warm-up gate, predictor outputs zero until reached. Default: 30
- Max Dataset Size — hard FIFO cap. Default: 500 (safe on all timeframes)
**Feature Engine**
- Trend Length — WMA smoothing applied to both RSI features. Default: 20
- RSI Fast Period — first feature dimension. Default: 5
- RSI Slow Period — second feature dimension. Default: 20
- MA Fast Period — fast WMA for the crossover training trigger. Default: 5
- MA Slow Period — slow WMA for the crossover training trigger. Default: 20
**Prediction Line**
- Show Prediction Line — master toggle. Default: ON
- Prediction Style — Stratum / Neon / Resonance / Pulse / Mono. Default: Stratum
- Prediction Width — 1 to 5. Default: 2
**Signal Line**
- Show Signal Line — toggle. Default: ON
- Signal Style — Neon / Flat. Default: Neon
- Signal Period — WMA length of the signal line. Default: 20
- Signal Width — 1 to 5. Default: 1
**Signal Dots**
- Show Signal Dots — toggle. Default: ON
- Filter Mode — All Crosses / Zone Only / Mid Aligned / Strict. Default: Strict
- Cooldown (bars) — minimum spacing between dots. Default: 5
- Min Strength — minimum `|prediction − signal|` at the cross. Default: 0.5
- Core Dot Size — 1 to 8. Default: 3
- Core Dot Opacity — 0 to 100. Default: 100
- Glow Dot Size — 1 to 12. Default: 8
- Glow Dot Opacity — 0 to 100. Default: 30
**Channel Fill**
- Show Channel Fill — toggle. Default: ON
- Channel Opacity — 0 to 100. Default: 25
- Channel Lookback — rolling highest / lowest window. Default: 500
**OB / OS Fill**
- Show OB/OS Fill — toggle. Default: ON
- Zone Stdev Length — stdev window that offsets the OB / OS boundaries inward. Default: 20
**Mid Level**
- Show Mid Level — toggle. Default: ON
- Mid Level Value — Y-value of the reference line. Default: 0
- Mid Level Style — Solid / Dashed / Dotted. Default: Dashed
**Dashboard**
- Show Dashboard — toggle. Default: ON
- Panel Position — six slots (Top/Middle/Bottom × Right/Left). Default: Middle Right
- Panel Text Size — Tiny / Small / Normal / Large. Default: Small
**Alerts**
- Ten opt-in toggles, one per alert condition. All default: ON
🟦 TRADER PRESETS — SETTINGS BY STYLE
QE-ML PRO is volatility-agnostic thanks to the adaptive bands and bias correction, but the reactivity of the predictor scales directly with the feature and sampler parameters. The four presets below are tested starting points you can drop straight into the settings panel — adjust by ±20% to taste.
---
** SCALPER — 1m / 3m / 5m**
High-frequency entries, tight stops, many signals per session. Priority is reaction speed — you want the predictor to flip states within a handful of bars of an actual move.
| Setting | Value |
|---|---|
| Trend Length | 10 |
| RSI Fast Period | 3 |
| RSI Slow Period | 14 |
| MA Fast Period | 3 |
| MA Slow Period | 10 |
| Signal Period | 8 |
| Neighbors (k) | 40 |
| Adaptive k | ON |
| Learning Mode | **Hybrid** |
| Sample Every | 2 |
| Minimum Training Samples | 20 |
| Max Dataset Size | **300** (keeps 1m charts fast) |
| Filter Mode | **All Crosses** or Zone Only |
| Cooldown | 2 |
| Min Strength | 0.3 |
| Channel Lookback | 200 |
| Zone Stdev Length | 10 |
| Prediction Style | Neon or Stratum |
**Why:** Low smoothing (Trend=10) + short RSI pair (3/14) keeps the features razor-sharp. Hybrid learning means you never wait for an MA crossover during quiet 1m sessions. Max Dataset capped at 300 protects you from the TradingView per-bar calculation limit on long 1m histories.
---
** DAY TRADER — 15m / 30m / 1H**
Balanced reactivity and conviction — the default profile. You want clean crosses without noise spam, and signals that survive the open / close volatility spikes.
| Setting | Value |
|---|---|
| Trend Length | 20 (default) |
| RSI Fast Period | 5 (default) |
| RSI Slow Period | 20 (default) |
| MA Fast Period | 5 (default) |
| MA Slow Period | 20 (default) |
| Signal Period | 20 (default) |
| Neighbors (k) | 100 (default) |
| Adaptive k | ON |
| Learning Mode | **MA Crossover** (default) |
| Minimum Training Samples | 30 (default) |
| Max Dataset Size | 500 (default) |
| Filter Mode | **Strict** (default) |
| Cooldown | 5 (default) |
| Min Strength | 0.5 (default) |
| Channel Lookback | 500 (default) |
| Zone Stdev Length | 20 (default) |
| Prediction Style | Stratum (default) |
**Why:** Every default value was tuned for this range. Strict filter + 5-bar cooldown keeps the dot count honest on a 30m chart. MA Crossover sampling gives you clean sparse data since 15m+ charts already have enough crossover events.
---
** SWING TRADER — 4H / 1D**
Lower signal frequency, higher conviction per signal. You're holding for days or weeks — every dot needs to mean something.
| Setting | Value |
|---|---|
| Trend Length | 30 |
| RSI Fast Period | 7 |
| RSI Slow Period | 30 |
| MA Fast Period | 7 |
| MA Slow Period | 30 |
| Signal Period | 30 |
| Neighbors (k) | 150 |
| Adaptive k | ON |
| Learning Mode | MA Crossover |
| Minimum Training Samples | 50 |
| Max Dataset Size | 800 |
| Filter Mode | **Strict** |
| Cooldown | 10 |
| Min Strength | 0.8 |
| Channel Lookback | 800 |
| Zone Stdev Length | 30 |
| Prediction Style | Stratum or Mono |
**Why:** Longer feature periods mean the predictor only moves on genuine structural shifts. Larger k (150) + bigger dataset (800) gives the k-NN vote a wider base so outliers don't flip the sign. Cooldown of 10 bars on a 4H chart = 40 hours minimum between dots — exactly what a swing trader wants.
---
** POSITION / LONG-TERM — 1D / 1W / 1M**
Macro regime detection. You're looking for the handful of generational setups per year — noise is the enemy.
| Setting | Value |
|---|---|
| Trend Length | 50 |
| RSI Fast Period | 10 |
| RSI Slow Period | 40 |
| MA Fast Period | 10 |
| MA Slow Period | 40 |
| Signal Period | 40 |
| Neighbors (k) | 200 |
| Adaptive k | ON |
| Learning Mode | **Hybrid** |
| Sample Every | 3 |
| Minimum Training Samples | 40 |
| Max Dataset Size | 1000 |
| Filter Mode | **Strict** |
| Cooldown | 15 |
| Min Strength | 1.0 |
| Channel Lookback | 1000 |
| Zone Stdev Length | 40 |
| Prediction Style | Mono or Pulse |
**Why:** Weekly and monthly charts have few crossover events per year — without Hybrid mode the dataset starves. Sample Every = 3 on a weekly chart means one sample every 3 weeks, which is plenty of structural density. Min Strength 1.0 filters out every shallow cross — you only see dots on generational momentum inflections.
---
**Tuning Tip**
If the predictor feels **too reactive** → increase Trend Length and Signal Period by 25%, raise Cooldown.
If the predictor feels **too sluggish** → switch Learning Mode to Hybrid, decrease Min Samples, lower Trend Length.
If the dashboard shows **Dataset N is stuck low** → switch Learning Mode from MA Crossover to Hybrid — crossover events are too rare on your current settings.
If you see **runtime / timeout errors** on long histories → drop Max Dataset Size to 300 and Channel Lookback to 300.
🟦 COMPATIBILITY
Works on all asset classes and all timeframes in TradingView Pine Script v6.
- **Crypto** — Spot, futures, perpetual contracts
- **Forex** — All pairs
- **Equities** — Stocks, ETFs, indices
- **Commodities** — Metals, energy, agriculture
- **Timeframes** — 1m through Monthly
The k-NN engine learns each asset's own RSI fingerprint distribution, and the stdev-adjusted bands auto-scale to the volatility of that distribution, so the indicator is truly self-calibrating across assets and timeframes — no manual recalibration required.
🟦 TECHNICAL NOTES
- Pine Script v6
- No repainting — training samples are gated by `barstate.isconfirmed` so the dataset never absorbs unconfirmed live-bar values
- Dataset is hard-capped via FIFO rotation; no unbounded memory growth
- Dashboard renders only on `barstate.islast` — zero historical overhead
- All drawing objects are stateless plots (no label / box / line object pools), so `max_*_count` limits cannot be exceeded
- k-NN distance pass is O(N), sort is O(N log N), both bounded by Max Dataset Size
- Default Max Dataset Size of 500 is tuned to stay within TradingView's per-bar calculation budget on histories up to ~50,000 bars
- Bias correction uses a single extra accumulator pass during the distance sweep — no performance penalty
🟦 DISCLAIMER
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Past performance does not guarantee future results. The k-NN engine learns from historical patterns, but markets do not guarantee that historical patterns will repeat. Always conduct your own analysis and apply proper risk management. インジケーター

Institutional Decision Engine [JOAT]Institutional Decision Engine
Introduction
The Institutional Decision Engine is a comprehensive, unified trading system that integrates six distinct analytical engines into a cohesive decision-making framework. This is not just another indicator - it's a complete trading intelligence system designed to replicate the analytical approach of institutional trading desks. By combining market regime classification, structural analysis, momentum pressure, volatility intelligence, directional bias, and signal qualification into one unified system, this engine provides the holistic market analysis that professional traders rely on for consistent success.
This tool is built for serious traders who understand that successful trading requires multiple layers of analysis and confirmation. Whether you're a systematic trader needing a complete decision framework, a discretionary trader seeking comprehensive market intelligence, or an algorithm developer requiring robust signal generation, this engine provides the institutional-grade analysis needed to trade with the confidence and precision of professional market participants.
Why This Engine Exists
Most traders use fragmented indicators that provide conflicting signals, leading to confusion and poor decisions. This engine solves that fundamental problem by:
Unified Framework: Six engines working together as one cohesive system
Regime-Adaptive Logic: Automatically adjusts analysis based on market conditions
Multi-Layer Confirmation: Requires confluence across multiple analytical dimensions
Signal Qualification: Objectively scores and grades every potential signal
Risk Intelligence: Dynamic risk management based on market volatility and structure
Visual Clarity: Comprehensive visualization of all analytical components
The engine transforms the chaotic world of multiple indicators into a single, unified source of market truth that provides clear, actionable trading intelligence.
Core Components Explained
Engine 1: Market Regime Classification
The first engine identifies the current market environment:
// Regime Classification: 0=Neutral, 1=Trending, 2=Ranging, 3=Volatile
int market_regime = 0
if volatility_state == 1 and adx_value < i_trend_threshold
market_regime := 3 // Volatile Expansion
else if adx_value >= i_trend_threshold
market_regime := 1 // Trending
else if volatility_state == -1
market_regime := 2 // Ranging/Consolidation
// Regime Strength (0-100)
float regime_strength = 0.0
if market_regime == 1
regime_strength := math.min(adx_value / 50.0 * 100, 100)
else if market_regime == 2
regime_strength := math.min((1 - volatility_ratio) / (1 - i_contraction_mult) * 100, 100)
Regime types:
Trending: Strong directional markets with ADX > 25
Ranging: Low volatility consolidation phases
Volatile: High volatility, chaotic conditions
Neutral: Transition periods between defined states
Regime Strength: How strongly the market exhibits regime characteristics
Regime classification determines which strategies are appropriate and how risk should be managed.
Engine 2: Structural Behavior Analysis
The second engine maps market structure and key levels:
// Structure Analysis
bool higher_high = not na(last_swing_high) and not na(prev_swing_high) and last_swing_high > prev_swing_high
bool lower_low = not na(last_swing_low) and not na(prev_swing_low) and last_swing_low < prev_swing_low
bool higher_low = not na(last_swing_low) and not na(prev_swing_low) and last_swing_low > prev_swing_low
bool lower_high = not na(last_swing_high) and not na(prev_swing_high) and last_swing_high < prev_swing_high
// Structure Score (0-100)
float structure_score = 0.0
structure_score += structure_bias == 1 ? 30 : structure_bias == -1 ? 0 : 15
structure_score += higher_high ? 20 : lower_low ? 0 : 10
structure_score += bos_bullish ? 30 : bos_bearish ? 0 : 15
Structure components:
Swing Points: Key highs and lows defining market structure
Market Structure: Higher highs/higher lows (bullish) or lower highs/lower lows (bearish)
Break of Structure: Confirmation of trend changes
Liquidity Zones: Equal highs/lows where orders cluster
Structure Score: Quantifies structural quality (0-100)
Structural analysis identifies the levels where professional traders place orders.
Engine 3: Momentum Pressure Analysis
The third engine measures buying and selling pressure:
// Composite Momentum Score
float momentum_bull_score = 0.0
momentum_bull_score += wt_bullish ? 25 : 0
momentum_bull_score += rsi_bullish ? 25 : 0
momentum_bull_score += weighted_pressure > 0.1 ? 25 : weighted_pressure > 0 ? 12.5 : 0
momentum_bull_score += macd_bullish ? 25 : 0
// Net Momentum State
float net_momentum = momentum_bull_score - momentum_bear_score
int momentum_state = net_momentum > 25 ? 1 : net_momentum < -25 ? -1 : 0
Momentum components:
WaveTrend: Trend-following momentum oscillator
RSI: Relative strength with momentum filter
Pressure Analysis: Volume-weighted buying/selling pressure
MACD: Trend acceleration and deceleration
Momentum State: Bullish, bearish, or neutral momentum
Momentum analysis confirms the strength and timing of potential moves.
Engine 4: Volatility Intelligence Layer
The fourth engine analyzes volatility cycles and squeezes:
// Squeeze Detection
bool squeeze_on = bb_lower > kc_lower and bb_upper < kc_upper
bool squeeze_off = bb_lower < kc_lower or bb_upper > kc_upper
// Volatility Cycle Phase
int vol_cycle_phase = 0
if squeeze_on and squeeze_duration > 5
vol_cycle_phase := 1 // Compression
else if squeeze_off and squeeze_duration > 0
vol_cycle_phase := 2 // Expansion Trigger
else if volatility_ratio > 1.2
vol_cycle_phase := 3 // Active Expansion
// Adaptive Multipliers
float stop_multiplier = vol_cycle_phase == 3 ? 1.5 : vol_cycle_phase == 1 ? 0.8 : 1.0
float target_multiplier = vol_cycle_phase == 3 ? 1.3 : vol_cycle_phase == 1 ? 1.5 : 1.0
Volatility components:
Bollinger Bands: Standard deviation-based volatility
Keltner Channels: ATR-based volatility
Squeeze Detection: Volatility compression patterns
Cycle Phases: Compression, trigger, expansion, normal
Adaptive Multipliers: Dynamic risk adjustments
Volatility intelligence ensures risk management adapts to market conditions.
Engine 5: Directional Bias Model
The fifth engine establishes directional conviction:
// Bias Computation
float bullish_bias = 0.0
bullish_bias += ma_bullish_stack ? 30 : 0
bullish_bias += price_above_structure ? 20 : 0
bullish_bias += close > ma_anchor ? 15 : 0
bullish_bias += pos_di > neg_di ? 20 : 0
bullish_bias += slopes_aligned_bull ? 15 : 0
// Net Bias
float net_bias = bullish_bias - bearish_bias
int bias_direction = net_bias > i_bias_threshold / 2 ? 1 : net_bias < -i_bias_threshold / 2 ? -1 : 0
Bias components:
MA Stack: Fast/slow/anchor moving average relationships
Price Position: Where price sits relative to MAs
ADX Direction: +DI vs -DI for trend confirmation
MA Slopes: Directional momentum of moving averages
Bias Strength: 0-100 indicating directional conviction
Directional bias provides the primary directional framework for trading decisions.
Engine 6: Signal Qualification System
The sixth engine evaluates and qualifies all signals:
// Confluence Scoring
int bull_confluence = 0
bull_confluence += market_regime == 1 and trend_direction == 1 ? 2 : 0
bull_confluence += structure_bias == 1 ? 1 : 0
bull_confluence += bos_bullish ? 1 : 0
bull_confluence += momentum_state == 1 ? 2 : 0
bull_confluence += bias_direction == 1 ? 2 : 0
bull_confluence += squeeze_off and net_momentum > 0 ? 1 : 0
// Qualification Check
bool bull_qualified = bull_confluence >= i_min_confluence
bool bear_qualified = bear_confluence >= i_min_confluence
// Final Signal Generation
bool long_signal = bull_qualified and bull_trigger and bars_since_bull > i_signal_cooldown and
bar_confirmed and market_regime != 3
Qualification components:
Confluence Score: Points from each engine (max 10)
Minimum Threshold: Required confluence for signals (default: 5)
Signal Triggers: Entry conditions (crossovers, breakouts, etc.)
Cooldown Management: Prevents overtrading
Quality Grades: A-D grades based on confluence score
Signal qualification ensures only high-probability setups are traded.
Visual Elements
Directional Cloud: Dynamic cloud showing trend and conviction
Signal Markers: Clear entry signals with quality grades
Risk Levels: Visual stop loss and target levels
Structure Points: Marked swing highs and lows
Squeeze Background: Volatility compression indication
Signal Background: Signal strength background shading
Moving Averages: Color-coded MA system
Dashboard: Comprehensive intelligence panel
The dashboard displays:
1. Current market regime and strength
2. Trend direction and bias scores
3. Momentum state and pressure readings
4. Volatility cycle and squeeze status
5. Structure analysis and bias
6. Signal qualification and grade
7. Risk metrics and multipliers
8. Active position information
Input Parameters
Regime Engine:
ADX Period: Trend strength calculation (default: 14)
Trend Threshold: Minimum ADX for trend (default: 25)
Volatility Multipliers: Expansion/contraction thresholds
Structure Engine:
Swing Sensitivity: Pivot detection sensitivity (default: 10)
Structure Confirmation: Bars for confirmation (default: 3)
Show Liquidity: Display liquidity zones
Momentum Engine:
Pressure Period: Pressure calculation (default: 14)
WaveTrend Settings: Channel and average periods
RSI Period: Momentum oscillator (default: 14)
Volatility Layer:
Bollinger Settings: Period and deviation
Keltner Settings: Period and multiplier
Adaptive Stops: Enable dynamic stops
Signal Qualification:
Minimum Confluence: Required score (default: 5)
Signal Cooldown: Bars between signals (default: 5)
Minimum R:R: Risk/reward requirement (default: 1.5)
How to Use This Engine
Step 1: Understand Market Regime
Check the dashboard for current regime. Avoid trading in volatile regimes (red), focus on trending regimes (green), and adapt strategy for ranging regimes (purple).
Step 2: Assess Directional Bias
Look for strong bias scores (>60) with MA stack confirmation. The bias should be clear across multiple components before considering entries.
Step 3: Confirm Momentum
Ensure momentum supports the directional bias. Look for pressure in the direction of trade and momentum acceleration.
Step 4: Verify Structure
Entries near structural levels have higher probability. Look for BOS confirmation and avoid trading against established structure.
Step 5: Check Volatility
Be aware of volatility cycles. Squeeze releases offer high-probability breakout opportunities. Adjust stops based on volatility multipliers.
Step 6: Qualify Signals
Only take signals with 5+ confluence points. A-grade signals (8+ points) offer the highest probability and deserve larger position sizing.
Best Practices
Always trade in the direction of the dominant bias
Higher confluence scores mean higher probability setups
Respect regime changes - they signal strategy adjustments
Use the directional cloud as primary trend guidance
Place stops using the volatility-adjusted levels
Scale out at multiple targets as provided
Avoid trading during volatile regimes unless experienced
Wait for A-grade setups rather than forcing mediocre trades
Keep a trade journal tracking regime/bias combinations
Never override the system's risk management without strong reason
Strategy Integration
This engine is a complete trading system:
Use signal qualification as primary entry filter
Apply regime-based position sizing
Import bias scores for trend confirmation
Use structure levels for stop placement
Integrate volatility multipliers for risk management
Export all engine outputs for custom strategies
Technical Implementation
Built with Pine Script v6 featuring:
Six-engine architecture with unified signal processing
Advanced regime detection with ADX/ATR analysis
Comprehensive structure analysis with swing detection
Multi-factor momentum scoring system
Volatility cycle analysis with squeeze detection
Directional bias calculation with multiple confirmations
Signal qualification with confluence scoring
Dynamic risk management with adaptive multipliers
Comprehensive visualization with directional cloud
Real-time dashboard with 12 key metrics
Export functions for complete system integration
The code uses confirmed bars throughout to prevent repainting and ensure reliable signals.
Originality Statement
This engine is original in its comprehensive integration of six distinct analytical systems into a unified decision framework. While individual components (ADX, moving averages, RSI, etc.) are established tools, this engine is justified because:
It synthesizes six independent analytical engines into one cohesive system
The regime-adaptive logic automatically adjusts behavior based on market conditions
Signal qualification provides objective, numerical evaluation of trade quality
The directional cloud visualization offers intuitive trend analysis
Dynamic risk management adapts to volatility and structure
Comprehensive dashboard presents all critical metrics in one view
Each engine contributes unique insights: regime shows when to trade, structure shows where, momentum shows timing, volatility shows how much, bias shows direction, and qualification shows quality
The engine solves the real problem of indicator overload and conflicting signals
Export functions enable complete system integration and customization
This is institutional-grade analysis typically available only to professional traders
The engine's value lies in providing a complete, unified trading intelligence system that eliminates analysis paralysis and provides clear, actionable signals based on comprehensive market analysis.
Disclaimer
This engine is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. This is a comprehensive analysis tool, not a guaranteed profit system.
Even with comprehensive analysis, markets can behave unpredictably due to news events, economic data, or changes in market structure. Past performance of the system does not guarantee future results. The engine's signals are mathematical calculations based on historical patterns and should be used with proper risk management.
Always use stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose on any single trade, regardless of signal quality or confluence score.
The author is not responsible for any losses incurred from using this engine. Users assume full responsibility for all trading decisions made using this system.
-Made with passion by officialjackofalltrades
インジケーター

Velocity Acceleration Momentum [VAM]Velocity Acceleration Momentum
Overview
VAM is a multi-layered momentum indicator that measures how fast price is moving (Velocity), whether that speed is increasing or decreasing (Acceleration), and how strong the underlying trend is (ADX). Rather than just telling you the direction of price, VAM tells you the quality and phase of the move you're in.
How It's Calculated
Velocity measures the percentage rate of change of price over a lookback period (default: 14 bars), then smooths it with a 3-period EMA. It answers: "How fast is price moving relative to where it was?"
Acceleration is the change in Velocity over a secondary smoothing window (default: 5 bars), also EMA-smoothed. It answers: "Is momentum speeding up or slowing down?"
Signal Line is an EMA of Velocity (default: 9 bars) — similar in concept to the MACD signal line. When Velocity crosses above/below the Signal Line, it can indicate momentum shifts.
ADX Histogram uses Pine's built-in DMI/ADX calculation. When DI+ > DI−, bars plot positively (green); when DI− > DI+, bars plot negatively (red). The color opacity is gradient-mapped to ADX strength — vivid bars mean a strong trend, faded bars mean a weak/ranging market.
Reading the Velocity Line Colors (Regime Detection)
The Velocity line changes color based on the combination of Velocity and Acceleration:
ColorConditionMeaning🟢 LimeVelocity > 0, Acceleration > 0Rocket — momentum is up and accelerating🟡 YellowVelocity > 0, Acceleration < 0Topping — still positive but losing steam🔴 RedVelocity < 0, Acceleration < 0Freefall — momentum is down and worsening🟠 OrangeVelocity < 0, Acceleration > 0Bottoming — still negative but recovering
How to Trade With It
High level Buy when Velocity Line Green 🟢sell when Velocity drops hard and is Red 🔴
+
ADX BARS TELL YOU THE TREND AND THE TREND STRENTH (COMBINE THIS AND THE VELOCITY LINE)
+
ACCELERATION PUROPLE AND YELLOW WAVE TELLS YOU SHARP DROPS OR ADVANCES IN ACCELERATION
Trend Entries: Look for the Velocity line turning Lime (🟢) with the ADX histogram printing vivid green bars above the +25 line. This is the highest-confidence long setup — price is accelerating upward with confirmed trend strength.
Caution / Exit Signals: When Velocity turns Yellow (🟡) and sharply drops, momentum is fading even if price is still rising. Consider tightening stops or taking partial profits.
Short / Bearish Bias🔴 : Red Velocity + vivid red ADX bars below −25 signal a strong downtrend in Freefall. Avoid longs; look for short setups.
Potential Reversals: Orange Velocity (Bottoming) combined with ADX bars beginning to fade and shift green can be an early signal that a bottom is forming — useful for scaling into longs cautiously.
Signal Line Crosses: When the Velocity line crosses above the white Signal Line, momentum is picking up. Crosses below suggest weakening. Best used as a confirmation filter, not a standalone trigger.
The ±25 Reference Lines mark the ADX threshold commonly used to separate trending (above) from ranging (below) markets. ADX histogram bars inside the ±25 zone suggest low trend conviction — reduce position sizing or wait for confirmation.
Inputs
Source — Price input (default: Close)
Velocity Length — Lookback period for rate-of-change calculation (default: 14)
Acceleration Smooth — Smoothing window for acceleration (default: 5)
Signal Line Length — EMA period for the signal line (default: 9)
ADX Length — Period for DMI/ADX calculation (default: 14)
Show Signal Line — Toggle the white signal line on/off
Show Zone Backgrounds — Toggle ADX-strength background shading
Show ADX Histogram — Toggle the ADX directional histogram インジケーター

Aura Trend & Candlestick Matrix [Pineify]Aura Trend & Candlestick Matrix — EMA Trend Cloud with Trend-Aligned Candlestick Pattern Detection and Dynamic Support & Resistance
The Aura Trend & Candlestick Matrix is a multi-layered technical analysis indicator that fuses an EMA-based trend cloud, classic candlestick pattern recognition, and pivot-derived support and resistance levels into a single, cohesive overlay. Its core philosophy is confluence : rather than firing candlestick signals in isolation, every pattern must first pass through a directional trend filter before it reaches the chart. A Hammer is only displayed when the trend cloud confirms bullish momentum; a Shooting Star only appears when the cloud is bearish. This trend-alignment mechanism dramatically reduces noise and false signals, giving traders a cleaner, higher-probability view of potential reversal and continuation setups — all without leaving the price chart.
Key Features
Dual-EMA "Aura Cloud" that visually maps trend direction and strength through a color-coded filled region between a fast and slow exponential moving average
Three families of candlestick pattern detection — Hammer / Shooting Star, Bullish / Bearish Engulfing, and Morning Star / Evening Star — each identified using precise shadow-to-body ratio and multi-bar structural rules
Trend-alignment filter that only surfaces bullish patterns during confirmed uptrends and bearish patterns during confirmed downtrends, eliminating counter-trend noise
Dynamic pivot-based support and resistance levels that automatically update as new structural highs and lows are confirmed
Optional candle coloring that tints every bar green or red based on the prevailing trend for instant visual context
Built-in alert conditions for both bullish and bearish setups, enabling automated notification workflows without additional configuration
How It Works
The indicator is built on three independent analytical engines that feed into a unified signal pipeline.
Engine 1: The Aura Trend Cloud
Two exponential moving averages — a fast EMA (default 20 periods) and a slow EMA (default 50 periods) — are plotted on the chart. When the fast EMA is above the slow EMA, the trend is classified as bullish; when below, bearish. The region between the two EMAs is filled with a semi-transparent color (green for bullish, red for bearish), creating the "Aura Cloud." This cloud serves two purposes: it provides an immediate visual representation of trend direction and strength (a widening cloud suggests strengthening momentum), and it acts as the gatekeeper for all candlestick pattern signals.
Engine 2: Candlestick Pattern Detection
The pattern detection engine analyzes candle anatomy using shadow-to-body ratios and multi-bar structural relationships:
Hammer & Shooting Star — Single-candle patterns identified by comparing the lower shadow proportion, upper shadow proportion, and body proportion relative to the full candle range. A Hammer requires a lower shadow at least twice the body size, a body less than 50% of the range, an upper shadow under 15%, and a bullish close. The Shooting Star applies the mirror criteria with a bearish close. Doji candles (body < 10% of range) are excluded to avoid ambiguity.
Bullish & Bearish Engulfing — Two-candle patterns where the current candle's real body completely wraps the previous candle's body. An additional 120% size threshold ensures the engulfing candle demonstrates meaningful conviction beyond a marginal overlap.
Morning Star & Evening Star — Three-candle reversal patterns. A Morning Star requires a bearish candle two bars ago, a small-bodied middle candle (less than 50% of the prior body), and a bullish current candle that closes above the midpoint of the first candle's body. The Evening Star applies the inverse logic.
Engine 3: Dynamic Support & Resistance
The indicator uses Pine Script's pivot detection functions with a configurable lookback window (default 10 bars on each side). When a bar's high is confirmed as the highest within the lookback window, it becomes the current resistance level. When a bar's low is the lowest, it becomes the current support level. These levels persist on the chart as circle markers until a new pivot replaces them, providing a continuously updated structural reference frame.
Trading Ideas and Insights
Cloud Bounce + Pattern Confirmation — When price pulls back to the Aura Cloud boundary during an uptrend and a Hammer or Bullish Engulfing pattern fires at the cloud's edge, this represents a high-confluence long entry. The cloud acts as dynamic support, and the candlestick pattern provides the timing trigger.
Trend Reversal Detection — Watch for Morning Star or Evening Star patterns forming near pivot-based support or resistance levels just as the trend cloud begins to narrow. A narrowing cloud suggests weakening momentum, and a three-candle reversal pattern at a key structural level can signal an early trend change.
S/R Level Validation — Use the dynamic support and resistance levels to validate candlestick signals. A Bullish Engulfing pattern that forms precisely at the current support level carries more weight than one occurring at a random price point.
Trend Strength Assessment — The width of the Aura Cloud reflects the separation between the fast and slow EMAs. A wide, expanding cloud indicates strong trending conditions where trend-aligned patterns are most reliable. A narrow, contracting cloud suggests consolidation where signals should be treated with more caution.
Multi-Timeframe Confluence — Apply the indicator on a higher timeframe to establish the dominant trend direction, then switch to a lower timeframe to find trend-aligned candlestick entries. The cloud's direction on the higher timeframe provides the bias; the pattern signals on the lower timeframe provide the entry timing.
How Multiple Indicators Work Together
The Aura Trend & Candlestick Matrix integrates three distinct analytical techniques into a single decision-support system through a deliberate hierarchical architecture:
The EMA trend cloud establishes directional context, the candlestick pattern engine identifies potential reversal and continuation setups, and the pivot-based support and resistance levels provide structural price references — together forming a confluence-driven framework where signals must pass through multiple filters before reaching the chart.
The trend cloud sits at the top of the hierarchy as the primary directional filter. It answers the fundamental question: "Which side of the market should I be on right now?" By requiring all candlestick patterns to align with the cloud's direction, the indicator enforces a disciplined approach that avoids the common trap of trading counter-trend reversal patterns in strong trends.
The candlestick pattern engine operates as the timing mechanism within the trend context. Each pattern family captures a different market dynamic — Hammers and Shooting Stars detect single-bar rejection of price levels, Engulfing patterns identify momentum shifts through body-size dominance, and Morning/Evening Stars capture multi-bar sentiment transitions. By offering all three families simultaneously, the indicator provides multiple entry opportunities across different market conditions while maintaining the trend-alignment requirement.
The dynamic support and resistance engine adds a structural dimension that complements both the trend cloud and the pattern signals. While the cloud tells you the trend direction and the patterns tell you when to act, the S/R levels tell you where price is likely to react. Patterns forming at or near these pivot-derived levels carry inherently higher significance because they occur at prices where the market has previously demonstrated supply or demand.
Unique Aspects
Trend-gated pattern signals — Unlike standalone candlestick scanners that display every detected pattern regardless of context, this indicator enforces directional alignment. Bullish patterns are suppressed during downtrends and bearish patterns are suppressed during uptrends, producing a significantly cleaner signal set with higher expected reliability.
Ratio-based pattern detection with doji exclusion — Pattern identification uses proportional shadow-to-body ratios rather than fixed pip or point thresholds, making the detection logic adaptive across instruments and timeframes. The explicit doji exclusion prevents ambiguous candles from triggering false Hammer or Shooting Star signals.
120% engulfing threshold — The Engulfing pattern requires the current body to exceed the previous body by at least 20%, filtering out marginal engulfing candles that lack conviction and improving signal quality.
Three-engine confluence in a single overlay — By combining trend analysis, pattern recognition, and support/resistance detection in one indicator, traders avoid the visual clutter and potential conflicts of layering multiple separate tools on the same chart.
Distinct visual vocabulary — Each pattern family uses a unique shape (triangles for Engulfing, labeled markers for Hammers/Stars), allowing traders to instantly identify the pattern type without reading text labels.
How to Use
Add the Aura Trend & Candlestick Matrix to your chart. It overlays directly on the price chart, displaying the Aura Cloud, pattern signals, and S/R levels simultaneously.
Identify the current trend by observing the Aura Cloud color — a green cloud indicates a bullish trend (fast EMA above slow EMA), and a red cloud indicates a bearish trend. The cloud's width reflects trend strength.
Watch for candlestick pattern signals that appear on the chart. Green triangles (▲) below bars indicate Bullish Engulfing patterns; red triangles (▼) above bars indicate Bearish Engulfing. Labels marked "H", "S", "MS", and "ES" denote Hammer, Shooting Star, Morning Star, and Evening Star patterns respectively.
Cross-reference pattern signals with the dynamic S/R levels (green and red circle markers). Patterns occurring near support (for bullish) or resistance (for bearish) carry additional structural significance.
Use the candle coloring feature (enabled by default) for quick visual scanning — green candles confirm you are in a bullish trend zone, red candles confirm a bearish trend zone.
Set up alerts using the built-in "Bullish Setup" and "Bearish Setup" alert conditions to receive real-time notifications when a trend-aligned candlestick pattern is detected.
Combine with volume analysis or momentum oscillators for additional confirmation layers when entering trades based on the indicator's signals.
Customization
Fast EMA Length (default: 20) — Controls the responsiveness of the fast trend line. Lower values (10-15) make the cloud more reactive to recent price changes, suitable for shorter-term trading. Higher values (25-50) produce a smoother cloud for swing or position trading.
Slow EMA Length (default: 50) — Sets the anchor for the trend cloud. Common alternatives include 100 or 200 for longer-term trend identification. The gap between fast and slow lengths determines how quickly the cloud changes direction.
Color Candles Based on Trend (default: on) — Toggle candle coloring on or off. Disable if you prefer to use your chart's native candle colors or another coloring scheme.
Show Hammers / Shooting Stars (default: on) — Enable or disable single-candle reversal pattern detection. Disable if you prefer to focus only on multi-candle patterns.
Show Engulfing Patterns (default: on) — Enable or disable two-candle engulfing pattern detection.
Show Morning / Evening Stars (default: on) — Enable or disable three-candle star pattern detection.
Pivot Detection Length (default: 10) — Controls the lookback window for support and resistance detection. Lower values (3-7) detect more frequent, minor pivot levels; higher values (15-30) identify only major structural turning points.
Conclusion
The Aura Trend & Candlestick Matrix delivers a disciplined, confluence-based approach to technical analysis by requiring candlestick patterns to align with the prevailing EMA trend direction before they are displayed. By integrating a visual trend cloud, three families of rigorously defined candlestick patterns, and dynamic pivot-based support and resistance levels into a single overlay, this indicator provides traders with a comprehensive yet uncluttered analytical framework. Whether you are a day trader looking for precise trend-aligned reversal entries, a swing trader seeking high-probability pattern setups at key structural levels, or a position trader monitoring broad trend direction with candlestick confirmation, the Aura Trend & Candlestick Matrix offers a clean, systematic, and visually intuitive toolset for identifying where trend momentum and candlestick structure converge — the moments where trading opportunities are most compelling.
インジケーター

Relative Strength Beta-AdjustedBETA-ADJUSTED RELATIVE STRENGTH INDICATOR
This indicator removes broad market influence from a stock's returns to reveal its true, standalone performance over time.
WHAT IT TRACKS:
• Idiosyncratic Return (True RS): The portion of a stock's daily return that cannot be explained by its Beta exposure to the benchmark.
• Cumulative RS Line: A running total of these residual returns, starting at 100, showing the stock's pure alpha trend.
HOW IT WORKS:
The indicator calculates a rolling Beta between your chart symbol and a benchmark (default: SPY), then computes the "expected return" — what the stock should have done based on market movement alone. The difference between the actual return and expected return is the idiosyncratic return. These residuals are accumulated bar by bar into a cumulative line, with a moving average overlay (EMA or SMA).
When the RS line is above the MA, the area fills to indicate positive alpha momentum. When below, the fill shifts to signal deteriorating stock-specific strength.
SETTINGS:
• Benchmark Symbol: Index or ETF to measure against (default: SPY)
• Beta Length: Rolling window for Beta calculation (default: 60)
• MA Type: EMA or SMA (default: EMA)
• MA Length: Smoothing period for the moving average (default: 21)
• Colors: Fully customizable RS line, MA line, and fill colors
USAGE:
Use this to separate genuine stock performance from market noise. A rising line means the stock is generating real alpha. A falling line means it is underperforming what its market sensitivity alone would predict.
The MA crossover helps identify shifts in alpha momentum:
• RS above MA: Stock-specific strength is trending positive — favorable for long positions
• RS below MA: Stock-specific strength is fading — exercise caution or look elsewhere
• Rising line in a falling market: Stock is holding up on its own merits despite broad weakness
• Falling line in a rising market: Stock is being masked by market tailwinds — underlying weakness present
Other potential uses to explore:
• Stock picking: Find stocks generating genuine alpha versus those simply riding a bull market
• Rotation signals: Spot turning points in true relative strength before they show on the price chart
• Sector comparison: Apply to sector ETFs to identify fundamental leaders versus laggers
• Risk management: Reduce exposure when the RS line rolls over, even if price looks stable
• Pair analysis: Compare RS lines across related stocks to find the strongest name in a group
• Other Markets: Such as Crypto Markets set Bitcoin as the benchmark and any altcoin as the chart symbol to measure true relative performance against BTC — useful for identifying altcoins generating genuine strength versus those simply following Bitcoin's momentum
Experiment with different Beta lengths and MA settings to match your trading timeframe and style.
If you discover effective ways to use this indicator, please share in the comments below — your insights could help other traders! インジケーター
