Pine Script®指标
EMAS
Pine Script®指标
EMA Cross by MKEMA Crossover by Manojkumar tamil indicator with symbol
Buy/Sell signals on crossover
Visual markers (crosses)
Colored lines (green + yellow)
Pine Script®指标
Glowing Moving Average Ribbon [icreature]Hi all,
This version simply adds a glow effect to the MA ribbons for dark mode users. Enjoy!
Pine Script®指标
Glowing MA with Auto-coloured and Labels [icreature]Hi all,
This MA includes multiple types for you to choose from, featuring automatic color changes to indicate bullish or bearish trends. It also comes with labels and a glow effect optimized for dark mode, so you won’t need to remember which MA periods or timeframes you’ve set. Enjoy!
Pine Script®指标
[ A L P H A X ] Slope Spectrum ProAlphaX Slope Spectrum Pro — Multi-Period Regression Oscillator, Adaptive Signal Line, Momentum Acceleration, Statistical Regime Detection, Classic & Hidden Divergence & Conviction Dashboard
AlphaX Slope Spectrum Pro is a professional-grade trend momentum oscillator built on a proprietary multi-period linear regression engine that scans across an entire range of lookback periods simultaneously and synthesizes them into a single adaptive oscillator value per bar. Rather than relying on a fixed-period momentum calculation, Slope Spectrum Pro measures the statistical slope of price across every period in the scan range and combines them using inverse-variance weighting — giving more influence to periods whose regression fits are more consistent, and less to those where price has been noisy. The result is a momentum oscillator that is simultaneously responsive and robust. On top of this engine sits a complete analytical layer: an adaptive signal line that changes speed with market conditions, a momentum acceleration histogram, statistical regime detection bands, classic and hidden divergence detection, regime-filtered entry signals with main chart overlay, and a live 10-row conviction dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
AlphaX Slope Spectrum Pro in the oscillator pane — gradient-colored slope line with gradient fill, acceleration histogram in the background, adaptive signal line, regime threshold bands, divergence markers, bull/bear signal dots, main chart triangles, and the conviction dashboard
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Slope Engine — Multi-Period Regression Core
At the foundation of Slope Spectrum Pro is a multi-period linear regression scanner . On every bar, the engine runs a complete set of linear regressions across every period from your configured minimum to maximum, stepping at your chosen interval. With default settings of Min Period 10, Max Period 100, and Step Size 5, this means 19 independent regressions are computed and synthesized per bar.
Each regression fits a straight line to the logarithm of price over the lookback window and extracts the slope of that fit — a dimensionless measure of directional momentum at that timescale. Positive slope means upward momentum. Negative slope means downward momentum. Steeper slope means stronger momentum.
Inverse-Variance Weighting:
When Inverse-Variance Weighting is enabled, each regression period's slope is weighted by the inverse of its residual variance — how consistently price tracked the regression line over that lookback. A period where price followed its regression cleanly gets high weight. A period where price bounced erratically around the fitted line gets low weight. The result is that cleaner, more consistent trend periods contribute more to the final oscillator value than noisy, choppy periods — the oscillator becomes naturally less sensitive to random price fluctuations and more responsive to genuine directional momentum.
What the oscillator value means:
A value above zero means the weighted regression slope is net positive — more periods are trending upward than downward across the scanned range.
A value below zero means the weighted slope is net negative — dominant downward trend momentum.
The magnitude reflects how steep the consensus slope is. A large positive value means strong, consistent upward momentum. A value near zero means flat or contested momentum.
The oscillator is plotted as a gradient-colored line that transitions dynamically from bear red to bull green based on its rolling 200-bar min/max range — the stronger the current momentum relative to recent history, the brighter the color. A gradient fill between the oscillator line and the zero line reinforces the directional bias visually.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
〰 Adaptive Signal Line
The signal line tracks the slope oscillator — but instead of a fixed-period EMA, Slope Spectrum Pro uses an adaptive alpha-based EMA that changes its effective length based on current market conditions.
How it adapts:
The adaptation measures trend strength as how many standard deviations the current oscillator value is from its recent mean. When the oscillator is far from its mean — a clear, developing trend — the signal line shortens and reacts faster, following the oscillator closely. When the oscillator is near its mean — a ranging or choppy condition — the signal line lengthens, smoothing out minor oscillations and reducing false crossovers.
In a strong trend: the signal is tight. Crossovers happen quickly and reflect real momentum shifts.
In chop or range: the signal is loose. It takes a more significant oscillator move to produce a crossover, filtering out noise automatically.
The current effective signal length is shown live on the dashboard as EMA~N — you can see exactly how tight or loose the signal is at any moment. Adaptive speed can be toggled off for a consistent fixed-length signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Momentum Acceleration Histogram
Behind the oscillator line, a background acceleration histogram plots the rate of change of the slope oscillator — how fast momentum is building or fading right now.
Green columns — acceleration is positive. The slope oscillator is increasing. Momentum is building in the bullish direction.
Red columns — acceleration is negative. The slope oscillator is decreasing. Momentum is fading or building in the bearish direction.
Reading the acceleration alongside the main oscillator gives you a two-layer picture:
Oscillator above zero + green acceleration = strengthening bull momentum . The best time to enter or hold long.
Oscillator above zero + red acceleration = bull momentum peaking and fading . Consider reducing exposure or preparing to exit.
Oscillator below zero + red acceleration = strengthening bear momentum . Best time to hold or enter short.
Oscillator below zero + green acceleration = bear momentum fading . Watch for a potential reversal or crossover signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Statistical Regime Detection
Slope Spectrum Pro automatically classifies the current market environment into one of three regimes using a rolling statistical framework built from the oscillator's own mean and standard deviation:
Bull Regime — the oscillator is above the upper band (mean + N standard deviations). Background tints subtly green. Only bullish signals fire when regime filtering is enabled.
Bear Regime — the oscillator is below the lower band (mean − N standard deviations). Background tints subtly red. Only bearish signals fire when regime filtering is enabled.
Range Regime — the oscillator sits between the two bands. Background is a very faint neutral gray. No directional regime is confirmed. Regime-filtered signals are suppressed entirely.
Thresholds are calculated as oscillator mean ± (standard deviation × sensitivity multiplier) over the configured lookback. Increasing the sensitivity multiplier raises the bar required to enter Bull or Bear regime — only the strongest trend episodes qualify. Lowering it makes transitions more frequent.
This system directly controls signal quality when Regime-Filtered Signals is enabled — crossovers opposing the active regime direction are silently blocked before they ever reach the chart.
Regime bands on the oscillator — Bull threshold above, Bear threshold below, background tint reflecting the current zone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ Divergence Engine — Classic and Hidden
Slope Spectrum Pro detects four divergence types by comparing confirmed oscillator pivot highs and lows against confirmed price pivot highs and lows. All detections are confirmed on bar close only — no repainting.
Classic Divergences — Reversal Signals:
Classic Bull Divergence (DIV ▲) — price makes a lower low while the slope oscillator makes a higher low. Selling pressure is weakening even though price is still falling. A reversal upward may be building.
Classic Bear Divergence (DIV ▼) — price makes a higher high while the slope oscillator makes a lower high. Buying pressure is weakening even though price is still rising. A reversal downward may be building.
Hidden Divergences — Trend Continuation Signals:
Hidden Bull Divergence (H ▲) — price makes a higher low while the oscillator makes a lower low. Price held higher ground during the pullback — the uptrend is intact and continuation upward is probable.
Hidden Bear Divergence (H ▼) — price makes a lower high while the oscillator makes a higher high. Price failed to rally as high as before even as the oscillator rebounded — the downtrend is intact and continuation downward is probable.
Classic divergences warn of potential reversals. Hidden divergences confirm that pullbacks within a trend are likely to resume. Both are marked on the oscillator at the pivot bar with compact DIV or H labels. The divergence pivot lookback is configurable. Hidden divergence can be toggled independently from classic divergence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Entry Signals — Oscillator and Main Chart Overlay
Crossover signals fire when the slope oscillator crosses above or below the adaptive signal line, confirmed on bar close:
Bull Signal (●) — oscillator crossed above signal line. A small green dot appears on the oscillator.
Bear Signal (●) — oscillator crossed below signal line. A small red dot appears on the oscillator.
Regime filtering: When enabled, bull crossovers during a Bear Regime are blocked. Bear crossovers during a Bull Regime are blocked. Only signals aligned with the current statistical regime are displayed — this single filter eliminates a significant category of false signals.
Main chart overlay: When Overlay Candle Color is enabled:
A ▲ green triangle appears below the bar on the main chart at every bull signal.
A ▼ red triangle appears above the bar on the main chart at every bear signal.
Candles on the main chart are colored using the same gradient as the oscillator — chart candles reflect the current slope momentum state at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Conviction Dashboard
A real-time 10-row readout of the oscillator's full internal state, updating on every bar close:
SAMPLES — number of regression periods computed per bar based on Min, Max, and Step settings.
MODE — INV-VAR WEIGHTED or SIMPLE AVERAGE aggregation.
OSC VALUE — live slope oscillator value to six decimal places, green above zero, red below.
REGIME — ▲ BULL ZONE, ▼ BEAR ZONE, or — RANGING. Row highlighted in the corresponding color.
MOMENTUM — ▲ BUILDING (acceleration positive) or ▼ FADING (acceleration negative). Row highlighted accordingly.
SIGNAL — ▲ BULL CROSS / ▼ BEAR CROSS when a crossover fired this bar, or ▲ ABOVE SIG / ▼ BELOW SIG for ongoing position.
SIG SPEED — current effective signal length as EMA~N, showing how tight or loose the adaptive signal is in real time.
DIVERGENCE — highest-priority active divergence: ▲ BULL DIV, ▼ BEAR DIV, ▲ HIDDEN BULL, ▼ HIDDEN BEAR, or — NONE. Row highlighted when active.
CONVICTION — a 0–4 confluence score. Each of the following adds 1 point: regime and oscillator sign agree; regime and acceleration agree; regime and signal side agree; any divergence is active. Score labels — LOW / MIXED (0–1), MODERATE (2), HIGH CONVICTION (3), MAX — ALL ALIGNED (4).
OSC (sigma) — the oscillator value expressed as standard deviations from its recent mean. Shows statistically how far momentum has moved from neutral — +2.5s means 2.5 standard deviations into bull territory.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Multi-period regression engine — 19 independent regressions per bar (default) synthesized into one adaptive oscillator value
⚖ Inverse-variance weighting — consistent regression periods carry more weight; noisy periods are automatically discounted
〰 Adaptive signal line — effective EMA length speeds up in trends, slows in chop; current length shown live as EMA~N
⚡ Momentum acceleration histogram — rate-of-change of the oscillator, showing whether momentum is building or fading right now
📊 Statistical regime detection — three-zone classification (Bull / Bear / Range) using rolling mean ± standard deviation bands
🔒 Regime-filtered signals — crossovers opposing the current statistical regime are automatically suppressed
◆ Classic divergence — bull and bear reversal divergence between price pivots and oscillator pivots, bar-close confirmed
◆ Hidden divergence — trend continuation signals when price and oscillator diverge in the trend direction
🎯 Main chart overlay — bull/bear triangles on price chart and gradient candle coloring reflecting live slope momentum
🎨 Dynamic gradient oscillator color — live transition from bear to bull based on rolling 200-bar normalization
📋 Live 10-row conviction dashboard — samples, mode, osc value, regime, momentum, signal, signal speed, divergence, conviction score, sigma reading
🏆 4-point conviction scoring — real-time confluence count across regime, acceleration, signal, and divergence alignment
🔔 10 alert conditions — crossovers, classic and hidden divergences, confluence long/short, zero line crosses
🎨 14 user-configurable color inputs — every visual element independently themeable with AlphaX brand defaults
✅ Confirmed on bar close — no repainting on any signal, divergence, or regime transition
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Slope Engine
Max Period — upper bound of the regression scan range (default: 100)
Min Period — lower bound of the scan range (default: 10)
Step Size — increment between scanned periods (default: 5). Smaller = more samples, smoother oscillator.
Inverse-Variance Weighting — weight each period by its regression consistency (default: on)
Source — price input for all regressions (default: close)
Adaptive Signal Line
Base Signal Length — signal EMA length in neutral conditions (default: 7)
Adaptive Speed — toggle adaptive EMA alpha on or off
Momentum Acceleration
Show Acceleration Histogram — toggle the background column histogram
Acceleration Smoothing — EMA smoothing period for acceleration (default: 3)
Regime Detection
Show Regime Bands — toggle threshold lines and background tinting
Regime Lookback — rolling window for mean and standard deviation (default: 200)
Regime Sensitivity (σ×) — standard deviation multiplier for thresholds (default: 0.5)
Divergence Engine
Show Divergences — toggle all divergence detection
Divergence Pivot Length — bars on each side to confirm a divergence pivot (default: 5)
Show Hidden Divergences — toggle hidden divergence independently
Entry Signals
Show Crossover Signals — toggle oscillator signal dots
Regime-Filtered Signals — suppress signals opposing the current regime
Overlay Candle Color — toggle main chart triangles and gradient candle coloring
Dashboard
Show Dashboard — toggle the dashboard panel
Position — Top Right, Top Left, Bottom Right, Bottom Left
Theme
Bull Primary / Bright / Dim — three shades of the bullish color family
Bear Primary / Bright / Dim — three shades of the bearish color family
Neutral / Neutral Light — neutral and secondary text colors
Accel Bull / Accel Bear — acceleration histogram column colors
Divergence Bull / Divergence Bear — classic divergence marker colors
Hidden Div Bull / Hidden Div Bear — hidden divergence marker colors
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Slope Spectrum Pro — Step by Step
Step 1 — Establish the regime and directional bias
Check the REGIME row. ▲ BULL ZONE = the market is in a statistically confirmed trend upward. ▼ BEAR ZONE = confirmed trend downward. — RANGING = no directional edge. Only trade in the direction of the active regime.
Check OSC (sigma). A reading above +2s means deep bull territory. Below −2s means deep bear territory. Near zero = flat momentum, no edge.
Step 2 — Read acceleration for entry timing
In a Bull Regime, wait for the acceleration histogram to turn green (▲ BUILDING on the dashboard). This means the slope oscillator is accelerating — momentum is growing, not just present.
The ideal entry timing: Bull Regime + oscillator above zero + acceleration building + oscillator above signal line.
Entering while acceleration is red (▼ FADING) in a bull regime risks entering as the current wave is losing steam.
Step 3 — Enter on a signal crossover
A bull signal dot (oscillator crosses above signal line) with regime filtering enabled is your entry trigger — counter-trend crossovers are already blocked automatically.
If Overlay is enabled, the ▲ triangle on the main chart confirms the exact entry bar.
The faster the adaptive signal (lower EMA~N), the tighter the crossover timing. In strong trends the signal shortens and reacts more quickly.
Step 4 — Upgrade conviction with divergence
A bull signal crossover occurring simultaneously with or just after a Classic Bull Divergence (DIV ▲) = high-probability reversal setup.
A bull signal crossover during an uptrend following a Hidden Bull Divergence (H ▲) = high-probability trend continuation setup.
Check CONVICTION. Score of HIGH CONVICTION (3) or MAX — ALL ALIGNED (4) means multiple independent factors agree. These are the setups to prioritize.
Step 5 — Exit when momentum confirms the move is ending
Acceleration histogram turning red (▼ FADING) while you are long = first sign the current wave is losing force. Begin monitoring for exit.
A bear signal crossover (oscillator crosses below signal line) = exit trigger.
A regime shift from Bull Zone to Ranging or Bear Zone = structural move is over. Exit and reset.
A Classic Bear Divergence appearing while you are in a long position = warning. Price is printing new highs the oscillator is not confirming. Reduce size or prepare to close.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
SSP — Bull Crossover — oscillator crossed above the adaptive signal line
SSP — Bear Crossover — oscillator crossed below the adaptive signal line
SSP — Classic Bull Divergence — price lower low, oscillator higher low confirmed
SSP — Classic Bear Divergence — price higher high, oscillator lower high confirmed
SSP — Hidden Bull Divergence — price higher low, oscillator lower low (trend continuation)
SSP — Hidden Bear Divergence — price lower high, oscillator higher high (trend continuation)
SSP — CONFLUENCE LONG — bull crossover occurring with bull or hidden bull divergence simultaneously
SSP — CONFLUENCE SHORT — bear crossover occurring with bear or hidden bear divergence simultaneously
SSP — Zero Line Cross Up — oscillator crossed above zero (macro bull momentum shift)
SSP — Zero Line Cross Down — oscillator crossed below zero (macro bear momentum shift)
All alert messages include {{ticker}} and {{interval}} for webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🧠 Systematic and quantitative traders — the regression engine, inverse-variance weighting, and statistical regime framework provide a mathematically grounded, objective momentum reading with no arbitrary indicator parameters to tune
📈 Trend traders on any instrument and timeframe — the multi-period scan adapts naturally to any market's momentum characteristics without manual recalibration
🔍 Divergence traders — four divergence types covering both reversals and trend continuations, all confirmed on bar close
⚡ Momentum traders — the acceleration histogram adds a layer no standard oscillator provides: not just where momentum is, but whether it is growing or shrinking right now
🎯 Precision entry traders — regime filtering, adaptive signal speed, and the conviction score ensure signals are only shown when multiple independent conditions agree simultaneously
🎨 Traders who customize their charts — 14 fully user-configurable color inputs, compatible with any chart theme
🔔 Alert-driven traders and bot operators — 10 alert conditions including a dedicated confluence alert for maximum-conviction setups
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close only. Slope Spectrum Pro does not repaint.
The oscillator value is in units of log-price per bar. The absolute value is very small (typically 0.000001 to 0.001 range) — what matters is the sign, the direction of change, and where it sits relative to regime thresholds and zero.
Wider Min–Max scan ranges produce a smoother oscillator capturing broader trend consensus. Narrower ranges are more reactive to short-term changes. Smaller Step Size = more periods sampled per bar = smoother result.
Regime Sensitivity is the most impactful setting after the scan range. At 0.5σ (default) the regime bands trigger relatively frequently. At 1.0–1.5σ, only very strong trend episodes qualify — signals become rarer but higher quality.
On very low timeframes the nested regression loop may be computationally intensive. Default settings are optimized for timeframes from 1 minute upward on standard instruments.
All theme color defaults are designed for dark chart backgrounds. Adjust Theme inputs if using a light background.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who want to know not just where momentum is — but how it got there, how strong it is, and whether it is still building.
Pine Script®指标
Long-Term Growth Stock ScorerLong-Term Growth Stock Scorer plots a 7-criterion scoring system on any stock, identifying high-quality growth setups and signaling 200 EMA retest entries. Designed for long-term investors building positions in trending stocks with confirmed strength across trend, momentum, and participation.
THE 7-CRITERION SCORECARD
Each stock is scored 0-7 based on:
Price above daily 200 EMA — primary trend
50 EMA above 200 EMA — golden cross alignment
200 EMA sloping up — confirmed long-term uptrend
Price above weekly 200 EMA — multi-timeframe confirmation
Relative strength vs benchmark (S&P 500, NASDAQ 100, TSX Composite, FTSE, ASX, Russell 2000, or any custom symbol)
RSI in healthy range (40-70) — momentum quality, not exhausted
Volume trend rising — institutional participation expanding
SIGNALS
BUY label fires when a qualified stock (score >= threshold) retests its 200 EMA on volume
WEAK label fires when a held position drops below the qualification threshold
Background highlight when current score is in the qualified zone
Three built-in alerts: buy signal, score weakening, and score strengthening (entering the qualified zone)
FEATURES
Configurable benchmark index — works for any major market or custom symbol
Live dashboard showing each criterion's pass/fail status, current RSI value, and distance from 200 EMA
Six dashboard position options
Adjustable minimum score threshold (default 5/7)
Volume confirmation toggle for retest signals
HOW TO USE
Run on any stock chart on the daily timeframe. Set your benchmark to match the stock's market (S&P 500 for US stocks, TSX Composite for Canadian stocks, etc.). Use the dashboard to scan watchlist stocks for current qualification. When a qualified stock retests its 200 EMA on rising volume, the BUY signal fires.
Best used as a confirmation layer alongside fundamental analysis — strong technical setups need strong businesses underneath.
Open-source. Feedback and forks welcome.
Pine Script®指标
Fracture Threshold Strategy [JOAT]Fracture Threshold Strategy
Introduction
Fracture Threshold Strategy (FTS) is an open-source, automated Pine Script v6 trading strategy that combines three independent filters — a seven-condition MasterTrend EMA alignment score, a relative volume regime gate, and a session time restriction — into a single, unified entry system. Entry is triggered by an EMA 4/5 crossover when all three filters are simultaneously satisfied. Stop loss is placed at 1.5× ATR from entry. Take profit is set at a 3:1 reward-to-risk ratio by default. All orders are executed on bar close (process_orders_on_close=false), and signals are gated on barstate.isconfirmed to eliminate intrabar repainting.
FTS is designed to demonstrate how institutional-grade filtering layers can be combined into a programmatic strategy with realistic, auditable results. It is not a black box — every condition is visible in the dashboard and the source code is fully open. The strategy description explains the exact logic, the default backtesting parameters, and the limitations of any backtesting approach.
Core Concepts
1. MasterTrend Seven-EMA Alignment Score
Seven trend conditions are evaluated on each bar. Each satisfied condition contributes one point to a bull or bear score (0–7):
EMA 4 above/below EMA 5 — fast momentum direction
RSI above/below 50 — momentum confirmation
Price above/below EMA 21 — short-term trend
EMA 21 above/below SMA 50 — medium-term structure
SMA 50 above/below EMA 55 — medium-to-intermediate trend
EMA 55 above/below EMA 89 — intermediate trend
Price above/below EMA 750 — long-term macro trend
Entry requires the bull or bear score to equal or exceed the configurable minimum (default: 5 out of 7). This prevents entries during low-conviction, mixed-alignment market conditions.
2. Relative Volume Regime Gate
Volume regime is measured as the ratio of a short-term volume MA to a long-term volume MA, smoothed by an EMA:
float volRatio = ta.ema(volShort / math.max(volLong, 1.0), i_volSmth)
bool volOK = volRatio >= i_volMin
The default minimum ratio is 0.90 — entries are blocked when recent volume is more than 10% below the long-term average. This prevents the strategy from entering trades during dead, low-participation conditions where institutional order flow is absent.
3. Session Filter
Trading is restricted to the London session (08:00–17:00) and New York session (14:00–21:00) in the selected timezone, with both independently toggleable. Entries outside the active sessions are blocked. This keeps the strategy focused on the highest-liquidity periods of the trading day.
4. EMA 4/5 Crossover Entry Trigger
The entry trigger is an EMA 4 crossover above EMA 5 (for longs) or crossunder (for shorts), evaluated on confirmed bar closes. The crossover is a fast momentum signal — it fires at the beginning of a new short-term directional move. Combined with the full filter stack, it identifies the specific bar where momentum begins aligning with the broader structural trend.
5. ATR Stop Loss and 3:1 Take Profit
Stop loss is placed at 1.5× ATR from entry. Take profit is placed at 3× the stop distance (configurable). Both levels are computed at entry and fixed — they do not trail. The strategy uses Pine Script's strategy.exit() function with explicit stop and limit prices for clean, non-discretionary execution.
Default Backtesting Properties
The strategy has been published with the following default Properties settings. These values are used in all performance metrics shown on the chart:
Initial Capital: $10,000 (realistic for an individual trader)
Position Size: 2% of equity per trade (risk-managed sizing)
Commission: 0.05% per side (representative of standard exchange or broker fees)
Slippage: 2 ticks
Pyramiding: 0 (one trade open at a time)
process_orders_on_close: false (orders execute on the next bar open, not at the signal bar close)
Using 2% of equity per trade with a 1.5× ATR stop means the maximum percentage of equity at risk per trade scales with position size dynamically — at a 3:1 RR ratio, three losing trades in a row lose approximately 6% of equity, which is within the TradingView recommended range. A dataset that generates at least 100 trades is recommended for meaningful statistical evaluation. On lower timeframes (5m, 15m) on major equity indices or forex pairs with London and NY sessions active, the default settings typically produce sufficient trade counts.
Features
Three-Layer Entry Filter: MasterTrend score, volume regime, and session — all three must be satisfied simultaneously
Configurable Minimum Score: Adjustable minimum MasterTrend alignment score threshold (1–7, default: 5)
EMA 4/5 Crossover Trigger: Fast momentum crossover as entry signal within aligned conditions
ATR Stop Loss: Dynamic stop placement based on current ATR — adapts to instrument volatility
Fixed Ratio Take Profit: 3:1 default reward-to-risk — adjustable
Session Restriction: London and New York sessions independently configurable with timezone setting
Volume Regime Gate: Minimum volume ratio filter blocks entries during low-participation conditions
TP/SL Visualization: Active trade TP and SL boxes drawn from entry and extended on each bar — color changes on outcome
Entry Markers: Triangle plotshapes at long and short entry bars for clear chart identification
EMA Reference Plots: EMA 4, EMA 5, EMA 21, and EMA 750 plotted as reference
Non-Repainting: process_orders_on_close=false; all entry conditions gated on barstate.isconfirmed
Dashboard (Top Right): Live MasterTrend state, volume regime, session, current position, net P&L, win rate, profit factor, max drawdown, average win/loss, and RR ratio
Entry Context Labels: Each entry label now shows the MasterTrend score and volume regime tag at the moment of entry in the format "L 6/7 | V:HI" — full entry context visible on the chart without needing to consult the dashboard
Position Candle Tint: Candles colored green while a long position is open, red while a short position is open — provides an immediate visual record of all trade durations across the full chart history
Per-Session Performance Breakdown: London and New York win rates tracked and displayed separately in the dashboard — identifies which session produces the strongest historical edge for the current instrument and timeframe
Expanded Dashboard (15 Rows): Dashboard expanded to 15 rows — now includes a full session performance section with London and NY win rates alongside the existing strategy performance metrics
Input Parameters
MasterTrend EMA Stack:
EMA 4, EMA 5, EMA 21, SMA 50, EMA 55, EMA 89, EMA 750: All periods individually configurable
RSI Length: RSI period for momentum condition (default: 14)
Volume Regime Filter:
Short Vol MA / Long Vol MA: Volume baseline calculation periods (default: 10, 40)
Vol Smooth: EMA smoothing for ratio (default: 3)
Min Vol Ratio: Minimum ratio threshold for entry permission (default: 0.90)
Session Filter:
Timezone: Session evaluation timezone (default: America/New_York)
Session Filter: Master toggle (default: enabled)
Allow London / Allow NY: Independent session toggles (both default: enabled)
Entry Trigger:
EMA4/5 Cross Entry: Use crossover as trigger (default: enabled)
Min MasterTrend Score: Minimum score required for entry (default: 5)
Risk Management:
ATR Length: ATR period (default: 14)
ATR SL Multiplier: Stop distance as ATR multiple (default: 1.5)
Reward:Risk Ratio: TP multiple (default: 3.0)
How to Use This Strategy
Step 1: Verify the Filter Stack is Active
The dashboard shows MasterTrend state, volume regime, and current session at all times. Before a trade can occur, all three must be aligned — a bull score ≥ 5, volume ratio ≥ 0.90, and an active London or NY session window.
Step 2: Observe the EMA 4/5 Crossover
The entry trigger is the EMA 4 crossing EMA 5. With all filters active, the next crossover in the trend direction will generate an entry. The entry is executed at the open of the following bar (process_orders_on_close=false), which is the realistic execution point.
Step 3: Manage the Open Trade
The TP/SL boxes extend from the entry bar and update on each subsequent bar. The strategy's exit function manages the trade automatically — no manual management is required. The dashboard shows the current position state (LONG / SHORT / FLAT) at all times.
Step 4: Evaluate Backtesting Results Critically
Past results do not predict future performance. Before drawing conclusions from any backtest, ensure the trade count is at least 100. A small sample (under 50 trades) produces unreliable win rate and profit factor estimates. Test across multiple instruments and timeframes — a strategy that performs well on one asset in one period may not generalize.
Strategy Limitations
The EMA 750 requires 750 bars of chart history. On timeframes or instruments with limited bar history, the 750-period EMA will be inaccurate for the first 750 bars — backtest results including those bars should be discounted
Backtesting does not account for liquidity, market impact, or partial fills on real orders. The 2-tick slippage setting is an approximation — on illiquid instruments or during news events, actual slippage may be significantly higher
The EMA 4/5 crossover is a fast signal. In choppy, sideways markets where EMAs cross frequently, the strategy may enter multiple trades quickly that all exit at stop loss before the filter stack re-assesses. The session and volume filters reduce but do not eliminate this behavior
A fixed 3:1 RR ratio requires the market to travel 3× the initial risk without reversing. On short timeframes or on instruments with narrow average ranges relative to ATR, achieving the full TP target may be less frequent than on smoother-trending assets
Commissions, taxes, and regulatory fees vary by broker, instrument, and jurisdiction. The 0.05% commission default is a general estimate — actual trading costs should be substituted with broker-specific values before drawing performance conclusions
This strategy is one specific configuration of the underlying filter system. Adjusting the minimum MasterTrend score, volume threshold, session windows, or RR ratio will produce different results. Any configuration change constitutes a separate strategy with its own performance characteristics
Originality Statement
FTS implements a programmatic entry system by combining a seven-condition quantitative trend score, a relative volume regime gate, and a session time restriction into a unified, fully transparent open-source strategy. This is original for the following reasons:
The MasterTrend alignment score functions as a structural quality gate — rather than entering on any EMA crossover, the strategy explicitly requires a minimum number of the seven structural conditions to be simultaneously satisfied, producing a much stricter entry criterion than a standard crossover system
The volume regime gate uses a normalized ratio (not a raw volume level) to block entries during low-participation conditions — making the filter relevant across instruments and timeframes without requiring instrument-specific volume threshold calibration
The combination of structural alignment (EMA stack), activity quality (volume regime), and time context (session filter) as three independent prerequisites creates a compounding selectivity effect — the strategy only enters the specific intersection of all three conditions, which is a smaller, higher-conviction subset than any single filter alone
The live dashboard displaying all filter states, position context, and key performance metrics simultaneously provides full transparency into why any given bar does or does not produce a signal, making the strategy auditable in real time
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Backtesting results shown are based on historical data and do not guarantee or predict future performance. Past results are not indicative of future results. Commission and slippage values used in backtesting are estimates — actual trading costs will vary. The strategy does not account for all real-world execution factors. Always use proper risk management and consult a qualified financial professional before making trading decisions. The author is not responsible for any trading losses resulting from the use of this strategy.
-Made with passion by jackofalltrades
Pine Script®策略
Trend Pullback EMA Combo: Algorithmic Trend FollowingThis strategy is designed to capture high-probability trend continuations by identifying "pullbacks" within a strong structural trend. By combining the long-term smoothing of EMA 200 with the medium-term EMA 50 and the momentum oscillators of WaveTrend (VuManChu style), it filters out noise and enters trades only when price momentum aligns with the primary market direction.
he system evaluates the market based on three layers of confirmation:
Trend Filter: Defines the primary direction via EMA 200.
Pullback Zone: Looks for price positioning between EMA 50 and EMA 200 to ensure we aren't chasing overextended moves.
Trigger: Uses a crossover of WaveTrend (WT1 & WT2) to identify the momentum shift.
Entry Logic:
Long: Price > EMA 200 AND Price < EMA 50 AND WT1 crosses over WT2.
Short: Price < EMA 200 AND Price > EMA 50 AND WT1 crosses under WT2.
I am committed to making this tool as effective as possible. Your feedback is invaluable! Please share your backtest results in the comments below. If you have ideas for technical improvements or code optimizations, feel free to suggest them. Together, we can refine this system for the whole community
Disclaimer: Trading involves significant risk of loss and is not suitable for all investors. Past performance does not guarantee future results. This script is for educational purposes only. Never trade with money you cannot afford to lose.
Pine Script®策略
Iteratively Reweighted Least Squares (IRLS) [Jamallo]Author's Note: This script is published as a unique mathematical contribution to TradingView's open-source public library. It is intended to introduce a novel application of a robust statistical method for the community and developers to study, adapt, and build upon, rather than to serve as a standalone, out-of-the-box trading strategy.
Introduction
Almost all moving averages and smoothing filters in technical analysis treat historical price data equally or apply a fixed mathematical decay (like an EMA). The problem? A massive, anomalous wick or a sudden volatility spike will inevitably drag the average away from the true underlying market consensus.
Enter Iteratively Reweighted Least Squares (IRLS) .
IRLS is a robust statistical method that calculates a "consensus" price by actively identifying and down-weighting outliers. Instead of letting a large wick distort the line, the algorithm assigns less weight to prices that deviate furthest from the current estimate. The result is a filter that cuts through noise, ignores price-distant spikes, and naturally locks onto the dominant, high-density price levels.
How It Works
The indicator uses the Hardy weight function to determine how heavily each historical candle influences the current estimate. On every bar, the algorithm checks the distance of each sample from the current consensus and iteratively refines the line until it converges on a robust mean. Epsilon — the outlier rejection scale — is derived dynamically from the average High–Low range, keeping the filter dimensionless and consistent across all instruments and timeframes.
Parameters
Window Size (N) : The rolling lookback window of historical samples the kernel considers. Larger values produce a smoother, slower-responding line.
Sparsity (s/N) : The core behavioral control. Dictates the fraction of the window allowed to "vote" on the estimate.
Low Sparsity (e.g., 0.1) : Only the 10% of samples closest to the current estimate participate. Produces a snappy, selective line that locks tightly onto the most dominant price cluster.
High Sparsity (e.g., 1.0) : All samples participate, resulting in a smoother, more conventional robust mean.
Gamma (ε scale) : Controls the strength of outlier rejection. Lower values enforce harsh, median-like rejection. Higher values soften the rejection toward a standard weighted mean.
Iterations : The number of reweighting convergence passes per bar. 2–3 is sufficient for practical convergence.
Potential Applications
The Hardy IRLS filter provides a unique lens into market structure by shifting the focus from simple time-averaged prices to spatial price consensus. Because it rejects price-distant wicks and noise spikes by design, it can serve as a foundation for:
Custom trailing stops
Dynamic support and resistance trackers
Baseline trend or regime filters
Feel free to inspect the open-source code, experiment with extreme sparsity and gamma settings, and integrate the IRLS core into your own quantitative projects.
References
Li Shuang, "Sparse Representation of Hardy Function by Iteratively Reweighted Least Squares," 2020 International Symposium on Computer Engineering and Intelligent Communications (ISCEIC), IEEE, 2020. DOI: 10.1109/ISCEIC51027.2020.00020
Pine Script®指标
Swing + Value Setup [Marcos]Swing + Value Setup — Descripción para TradingView
Título sugerido
Swing + Value Setup — Multi-Filter Entry Signal
Descripción (inglés — recomendado para mayor alcance)
🎯 What is this indicator?
Swing + Value Setup is a multi-condition entry filter designed for swing traders looking for high-quality setups in stocks with strong technical and structural foundations. Instead of relying on a single signal, this indicator requires 6 simultaneous conditions to be met before printing an entry label — dramatically reducing false signals and noise.
It also features a real-time status panel that shows exactly which conditions are passing or failing on any given bar, so you always know how close a setup is to triggering.
⚙️ How it works
The indicator combines trend, momentum, volume, and structure analysis into a single unified signal:
✅ 6 Required Conditions (all must be true simultaneously):
Price above EMA 200 — confirms the stock is in a long-term uptrend
Supertrend bullish — active trend filter, eliminates choppy/sideways markets
RSI between 40–55 — entry during healthy pullback, not extreme oversold
MACD signal — bullish crossover OR histogram rising below zero (momentum recovering)
OBV above its EMA — confirms institutional accumulation behind the move
Pullback to EMA 21 or EMA 50 (±1.5%) — optimal entry zone, not chasing price
⭐ High Conviction Bonus:
When a bullish RSI divergence is also detected (price making lower lows while RSI makes higher lows), the label upgrades to a High Conviction signal — historically the strongest setups.
📊 Visual elements
EMA 21 / 50 / 200 plotted directly on price
Supertrend line changes color with trend direction
Green background shading when a valid setup is active
Brighter shading for high conviction entries
Labels printed at signal candles (standard ✅ or high conviction 🎯)
Status table (top-right corner) showing live ✅/❌ for each condition
🔔 Built-in Alerts (3 total)
AlertTriggerSetup Swing/ValueAll 6 conditions met for the first timeSetup ALTA CONVICCIÓN ⭐Full setup + RSI divergence confirmedDivergencia RSI BullishBullish divergence in uptrend (early warning)
Set alerts from the indicator menu → Add Alert → select the condition.
🕐 Recommended Timeframes
TimeframePurposeWeeklyOverall bias and macro structureDailyPrimary signal timeframe (recommended)4H / 1HEntry timing and fine-tuning
Best results on Daily charts for swing positions of 5–30 days.
📐 Trade Management (suggested)
Stop Loss: Below the signal candle low or EMA 50
Target 1: Prior resistance / VPVR high-volume node
Target 2: Fibonacci 1.272 or 1.618 extension
Minimum R:R: 1:2.5
⚠️ Disclaimer
This indicator is a technical analysis tool only. It does not constitute financial advice. Always manage your risk, use stop losses, and do your own research before entering any trade. Past performance of any indicator does not guarantee future results.
Descripción (español — versión alternativa)
🎯 ¿Qué es este indicador?
Swing + Value Setup es un filtro de entrada multi-condición diseñado para swing traders que buscan setups de alta calidad en acciones con estructura técnica sólida. En lugar de depender de una sola señal, el indicador exige que 6 condiciones se cumplan simultáneamente antes de generar una señal — reduciendo drásticamente las falsas entradas y el ruido del mercado.
Incluye un panel de estado en tiempo real que muestra exactamente qué condiciones están activas o fallando en cualquier vela, para que siempre sepas qué tan cerca está un setup de activarse.
⚙️ Cómo funciona
✅ 6 Condiciones obligatorias (todas deben cumplirse a la vez):
Precio sobre EMA 200 — confirma tendencia alcista de largo plazo
Supertrend alcista — filtra mercados laterales y tendencias bajistas
RSI entre 40 y 55 — entrada en pullback sano, sin sobreventa extrema
Señal MACD — cruce alcista O histograma subiendo bajo cero
OBV sobre su media — confirma acumulación institucional detrás del movimiento
Pullback a EMA 21 o EMA 50 (±1.5%) — zona de entrada óptima sin perseguir precio
⭐ Bonus Alta Convicción:
Cuando además se detecta una divergencia bullish en RSI (precio haciendo mínimos más bajos mientras el RSI hace mínimos más altos), la señal se convierte en Alta Convicción — históricamente los setups más fuertes.
🔔 Alertas incluidas
Setup Swing/Value — cuando se cumplen las 6 condiciones
Setup Alta Convicción ⭐ — setup completo + divergencia RSI
Divergencia RSI Bullish — aviso temprano de posible giro
⚠️ Aviso legal
Este indicador es únicamente una herramienta de análisis técnico. No constituye asesoramiento financiero. Gestiona siempre tu riesgo y realiza tu propio análisis antes de operar.
swing trading value ema supertrend rsi macd obv multi-condition stocks entry signal divergence trend following pullback screener alerts
Pine Script®指标
SNP420 - SAO - Ultima - Multi-Asset Momentum IndicatorMulti-timeframe trend-following indicator for H1 charts. Combines D1 + H4 trend alignment with H1 entry precision using EMA, RSI, MACD, and ADX filters. Designed for EURUSD, USDJPY, and GBPUSD during London/NY
sessions.
Entry: Requires D1 and H4 trend agreement, price above/below EMA21, RSI in momentum zone (50-75 long / 25-50 short), positive MACD histogram, and ADX above 25. Signals only fire during active sessions (London,
Overlap, NY).
Exit logic (8 layers, priority-ordered): Hard SL at 2.5×ATR, TP at 5R, trailing stop from 2R profit, breakeven protection at 2R, stale position killer at 8 bars, D1/H4 trend reversal exits, and adaptive time
stops (48 bars losers / 96 bars winners).
On-chart display: Entry arrows (LONG/SHORT), color-coded exit labels (SL, TP, TRAIL, BE, STALE, FLIP, TIME), live SL/TP/trail level lines, trend background shading, EMA ribbon (21/50/200), and real-time info
panel showing D1/H4 trend, ADX, RSI, session status, and position state. Built-in alerts for all entry and exit events.
Backtested: +448% in 2025 (12/12 months profitable), +107% in 2026 Q1. Profit driven by TRAIL exits (100% WR, 83% of total profit). Robust across 10 synthetic market Monte Carlo scenarios (100% profitable, avg
78% of backtest performance).
Piece and love.
Pine Script®指标
MULTIVITAMIN1. What is MULTIVITAMIN?
MULTIVITAMIN is a custom-built, open-source algorithmic scalping indicator designed for TradingView. Its primary goal is to capture high-probability momentum trades by combining pure Price Action (PA) mechanics with advanced trend and volatility filters, specifically engineered to avoid "chop" (ranging/flat markets) and deliver healthy, actionable signals.
2. What does it cover? (Core Modules)
Price Action Engine: The core of the system. It detects real-time structural market shifts by identifying Engulfing patterns, Order Blocks (OB) with volume confirmation, and Fair Value Gaps (FVG).
Trend & Momentum Filters: Utilizes a multi-timeframe Hull Moving Average (HMA) for signal smoothing, a 50-period EMA for macro trend direction, and an ADX filter to ensure the market has sufficient momentum before entering a trade.
Pro Walls (Anti-Chop System): Features advanced, optional defensive mechanisms: an ATR-based volatility filter (ensuring candle size is larger than average market noise) and an EMA slope filter (ensuring the trend line is actually pointing up or down, not moving sideways).
Volume Supported Breakout (BKR): An optional hybrid feature that looks for extreme volume spikes (compared to a 20-period SMA) combined with local high/low breakouts.
Lifecycle Management: A built-in state machine (Idle, Long, Short) that tracks the trade's status, preventing overlapping entries and managing exits based on user-defined criteria.
3. What is its operational logic?
Step 1: Scanning & Setup: The script continuously monitors price action for base entry conditions.
Step 2: The Gauntlet (Filtering): A setup must pass through all active user filters (EMA, ADX, Volatility, etc.) before being validated.
Step 3: State Execution: If all conditions align, the internal bot state shifts from 0 (Idle) to 1 or -1, plotting an ENTER shape on the chart and triggering an external webhook alert.
Step 4: The Exit: The bot remains in this state until a valid exit condition (like a reverse PA signal) is met.
4. ⚠️ CRITICAL: How to Set Up Alerts (The Anti-Repainting Rule) ⚠️
If you are using the "Exit on Reverse Signal" (Ters Sinyalde Çık) feature in the settings, you MUST configure all your TradingView alerts (both ENTER and EXIT alerts) to trigger "Once Per Bar Close".
Why? If you set them to "Once Per Bar" (anlık tetikleme), intra-bar price fluctuations (wicks) will trigger premature exit/entry orders to your exchange before the candle officially closes, leading to repainting on the chart and ghost orders in your account. Always wait for the candle to close to confirm the structural shift!
Pine Script®指标
BAEMFX | Institutional Suite & Smart Zones BAEMFX | Institutional Suite is a comprehensive all-in-one trading tool designed for Smart Money Concepts (SMC) and Institutional Price Action traders. This script automates the detection of market structure, supply/demand imbalances, and liquidity gaps, allowing you to focus on execution rather than manual charting.
The indicator is optimized for Pine Script v6, ensuring high performance and real-time calculation accuracy across all timeframes.
Key Features
1. Automated Market Structure (BOS)
- Identifies Break of Structure (BOS) based on customizable pivot lookbacks.
- Visualizes trend shifts with clean, dashed lines and labels.
- Helps traders stay on the right side of the institutional flow.
2. Dynamic Supply & Demand Zones
- Automatically draws high-probability zones based on recent market movements.
- Real-time Mitigation: Zones can be set to "Cut on Touch" or "Remove on Touch" to keep your chart clean and relevant.
- Customizable depth to show only the most recent active zones.
3. Smart Fair Value Gaps (FVG)
- Detects price imbalances (liquidity gaps) where institutional orders are often filled.
- Auto-Cleanup: Includes a dedicated mitigation logic that removes or shrinks the FVG box as soon as the price mitigates the gap.
- Includes a "Minimum Gap Size" filter to ignore market noise.
4. Professional Session Tracking
- Visualizes the Asia, London, and New York sessions.
- Displays the high/low range of each session, which is crucial for identifying liquidity sweeps and "Judas Swings."
5. Institutional Trend Filter
- Integrated 50, 100, and 200 EMAs to provide a quick overview of the higher timeframe trend and dynamic support/resistance levels.
How to Use
- Identify the Trend: Use the EMAs and BOS to determine the current market bias.
- Locate Interest Areas: Look for unmitigated Supply/Demand zones or FVGs.
- Wait for Mitigation: Monitor price action as it enters a FVG or S&D zone.
- Execute: Combine these institutional levels with your favorite entry patterns (e.g., LTF Change of Character).
Settings
- Swing Lookback: Adjust for sensitivity in structure detection.
- Mitigation Mode: Choose between "Remove" (cleaner look) or "Cut" (historical context).
- Session Times: Fully customizable timezones and session hours.
Disclaimer:
Trading involves significant risk. This script is a tool to assist analysis and does not guarantee profits. Always use proper risk management.
Pine Script®指标
Key Level SuiteKey Level Suite is a comprehensive label indicator that displays the most important price levels directly on your chart — always anchored to the right edge so they stay out of your price action and are easy to read at a glance.
Instead of drawing horizontal lines across the entire chart, Key Levels renders clean, minimal text labels at each price level. When multiple levels converge within a configurable threshold, they are automatically merged into a single label showing all contributing names (e.g. wVWAP | mH | pdVAH), making confluences immediately visible without any manual work.
📌 Levels Included
🔹 VWAP & Value Area (VAH / VAL)
Session VWAP with one standard-deviation bands for Daily, Weekly, Monthly, Quarterly, and Yearly periods.
🔹 Previous VWAP & Value Area
The final VWAP, VAH, and VAL from the completed prior session — Daily through Yearly.
🔹 Rolling VWAP & Value Area
Volume-weighted average price over rolling windows of 1, 7, 30, 90, and 365 days, each with its own VAH/VAL band.
🔹 Highs & Lows
Current and previous session high/low for all five periods.
🔹 Opens
Session open price for Daily, Weekly, Monthly, Quarterly, and Yearly.
🔹 EMA (10 slots)
Up to 10 exponential moving averages with independently configurable length and timeframe per slot. Leave the timeframe blank to use the chart timeframe.
⚙️ Settings
Style
Choose label text size: Tiny, Small, Normal, or Large.
Colors
Individual color pickers for each timeframe group — Daily, Weekly, Monthly, Quarterly, Yearly — plus separate colors for High/Low, Open, and EMA labels. All current, previous, and rolling levels of the same timeframe share one color, making it immediately clear which timeframe a level belongs to.
Merge
Enable or disable automatic label merging and set the proximity threshold as a percentage. Levels within this distance of each other are combined into a single label listing all contributing names — no more overlapping text at confluence zones.
VWAP / Previous VWAP / Rolling VWAP / Statics / EMA
Every individual level and group can be toggled on or off independently, so you only see what is relevant to your trading style.
Pine Script®指标
EMA Crossover VisualizerThis indicator allows you to plot two fully customizable Exponential Moving Averages (EMAs) and visually highlight their intersection points directly on the chart.
Users can define both EMA periods (e.g. 50, 100, 200), choose individual colors for each EMA, and control the overall appearance of the indicator to fit their trading style.
Key Features:
* Two configurable EMAs (EMA1 & EMA2)
* Custom period inputs (e.g. 50 / 200)
* Adjustable colors for each EMA
* Optional display of crossover signals
* Optional display of labels
* Customizable cross color
When the two EMAs intersect, the indicator plots a clear "X" marker at the crossover point, making it easy to identify potential trend changes and key trading signals.
This tool is designed for traders who want a clean and minimal visualization of EMA crossovers while maintaining full control over styling and signal visibility.
Pine Script®指标
VWAP + 15m NY ORB + 9/21/50 EMA + 200 SMA + Levels, etc.Multiple indicators all in one.
VWAP, EMA clouds, SMA, ORB, open price and pre-market levels and yesterdays high and low
Pine Script®指标
Pine Script®指标
Prismatic Trend Matrix [JOAT]Prismatic Trend Matrix
Introduction
The Prismatic Trend Matrix is an advanced open-source multi-dimensional trend analysis system that combines Hull Moving Average, SuperTrend, ADX strength filtering, and moving average confluence into a unified trend detection engine. This indicator analyzes trend across multiple dimensions simultaneously, creating a prismatic view of market direction with gradient visualization that reveals trend strength and conviction.
Unlike single-indicator trend systems, the Prismatic Trend Matrix provides multi-layered trend intelligence through Hull MA smoothing, SuperTrend band analysis, ADX strength measurement, and EMA/SMA alignment detection. The indicator is designed for traders who understand that strong trends require confirmation across multiple analytical dimensions.
Why This Indicator Exists
This indicator addresses the need for comprehensive trend analysis that goes beyond simple moving averages. By combining four distinct trend methodologies with gradient visualization, it reveals:
Hull Moving Average: Weighted moving average with reduced lag for responsive trend detection
SuperTrend Component: ATR-based bands that identify trend direction and support/resistance
ADX Strength Filter: Measures trend strength to separate strong trends from weak/choppy conditions
Moving Average Matrix: Three EMAs and two SMAs create alignment-based trend confirmation
Trend Classification: Five-state system (Strong Bull, Weak Bull, Sideways, Weak Bear, Strong Bear)
Counter-Trend Detection: Identifies potential reversals when price moves against established trend
Prismatic Gradient: Visual fill between Hull MA and SuperTrend shows trend intensity
Core Components Explained
1. Hull Moving Average (HMA)
The Hull MA uses weighted moving averages to create a smooth trend line with minimal lag:
The calculation involves three steps:
Step 1: Calculate WMA of half-length period
Step 2: Calculate WMA of full-length period
Step 3: Calculate WMA of the difference using square root of length
The result is a moving average that responds quickly to price changes while maintaining smoothness. The indicator applies additional EMA smoothing (default 3 periods) to reduce noise.
2. SuperTrend Calculation
SuperTrend uses ATR-based bands to identify trend direction:
Source: Average of high and low (HL2)
Upper Band: Source + (ATR × Factor)
Lower Band: Source - (ATR × Factor)
Direction: Bullish when close > upper band, bearish when close < lower band
Three modes control band adjustment:
Strict Mode: Bands adjust only when price crosses or previous band is breached
Quick Mode: Bands adjust when price crosses previous band
Quicker Mode: Bands adjust immediately with price
SuperTrend provides dynamic support/resistance levels that adapt to volatility.
3. ADX Strength Measurement
The Average Directional Index measures trend strength:
DI+ (Directional Indicator Plus): Measures upward directional movement
DI- (Directional Indicator Minus): Measures downward directional movement
ADX: Smoothed average of the difference between DI+ and DI-, normalized
Threshold: ADX above threshold (default 25) indicates strong trend
Rising ADX: Indicates strengthening trend momentum
ADX filters out weak trends and choppy conditions, ensuring signals occur only during strong directional movement.
4. Moving Average Matrix
Five moving averages create a trend alignment system:
Fast EMA (9): Short-term trend direction
Medium EMA (21): Intermediate trend direction
Slow EMA (50): Primary trend direction
Fast SMA (50): Smoothed primary trend
Slow SMA (200): Long-term institutional trend
Alignment is measured by comparing the order of these averages:
Bullish Alignment: EMA9 > EMA21 > EMA50 > SMA50 (all in ascending order)
Bearish Alignment: EMA9 < EMA21 < EMA50 < SMA50 (all in descending order)
Mixed Alignment: Averages not in order (choppy or transitional conditions)
Perfect alignment indicates strong institutional conviction in the trend direction.
5. Composite Trend Classification [/b>
The indicator combines all components into a five-state trend classification:
Strong Bull (State 2): Hull rising + SuperTrend bullish + MA alignment bullish + ADX strong
Weak Bull (State 1): Hull rising + (SuperTrend bullish OR MA alignment bullish)
Sideways (State 0): Mixed signals or weak trend conditions
Weak Bear (State -1): Hull falling + (SuperTrend bearish OR MA alignment bearish)
Strong Bear (State -2): Hull falling + SuperTrend bearish + MA alignment bearish + ADX strong
This classification provides clear trend assessment at a glance.
6. Counter-Trend Detection [/b>
The indicator identifies potential reversals when price moves against established trend:
Counter-Trend Bull: Trend state neutral/bearish + close > open + price rising + DI+ > DI- + close > Hull + ADX > 20
Counter-Trend Bear: Trend state neutral/bullish + close < open + price falling + DI- > DI+ + close < Hull + ADX > 20
Counter-trend signals include anti-overlap logic to prevent signal clustering and ensure clean placement.
7. Prismatic Gradient Visualization
The indicator creates a gradient fill between Hull MA and SuperTrend:
Gradient Layers: Multiple intermediate values calculated between Hull and SuperTrend (default 15 layers)
Color Intensity: Transparency increases from Hull (solid) to SuperTrend (transparent)
Dynamic Coloring: Gradient color matches trend state (green = bullish, red = bearish, cyan = sideways)
Visual Effect: Creates a glowing prismatic effect that emphasizes trend strength
The gradient provides intuitive visual feedback on trend intensity and direction.
8. Platform Levels
Platform levels are horizontal lines at the current Hull MA value:
Extension: Lines extend forward and backward from current bar (default 7 bars each direction)
Color Coding: Platform color matches current trend state
Purpose: Provides visual reference for potential support/resistance at Hull MA level
Platforms help identify key levels where price may find support or resistance.
Visual Elements
Hull Trend Line: Thick line (3px) with regime-based coloring showing primary trend
SuperTrend Line: Medium line (2px) with step-line style showing dynamic support/resistance
EMA Matrix: Three thin lines showing fast, medium, and slow EMAs with transparency
Prismatic Gradient: Multi-layer fill between Hull and SuperTrend creating glow effect
Platform Levels: Horizontal lines at Hull MA value extending forward/backward
Counter-Trend Signals: Triangles marking potential reversal points
Background Coloring: Subtle background tint for strong bull/bear states
Information Dashboard: Displays trend state, Hull direction, ADX strength, momentum, alignment, SuperTrend, DI balance, price vs Hull, gradient zone, counter-trend status, and signal
How to Use This Indicator
Step 1: Check Trend State
Monitor the dashboard for current trend state (Strong Bull, Weak Bull, Sideways, Weak Bear, Strong Bear). Trade in the direction of strong states.
Step 2: Verify ADX Strength
Ensure ADX is above threshold (default 25) for strong trends. Low ADX indicates choppy conditions - avoid trend-following strategies.
Step 3: Confirm MA Alignment
Check if moving averages are aligned (Bullish/Bearish/Mixed). Perfect alignment confirms institutional conviction.
Step 4: Monitor Hull Direction
Hull rising = bullish bias, Hull falling = bearish bias. Hull provides the primary trend direction signal.
Step 5: Use SuperTrend for Support/Resistance
SuperTrend line acts as dynamic support in uptrends and resistance in downtrends. Breaks of SuperTrend warn of trend changes.
Step 6: Watch for Counter-Trend Signals
Counter-trend signals at extreme levels may indicate reversals. Use these cautiously and confirm with other factors.
Step 7: Assess Gradient Zone
Price in upper gradient zone (near Hull) = strong trend, price in lower zone (near SuperTrend) = weak trend or potential reversal.
Best Practices
Trade only in Strong Bull or Strong Bear states for highest probability
Avoid trading in Sideways state - wait for clear trend establishment
Use ADX as a filter - only trade when ADX > 25 for strong trends
Confirm trend with MA alignment before entering positions
Use SuperTrend as trailing stop level in trending markets
Counter-trend signals work best at extreme levels with divergence
Monitor gradient zone - price near SuperTrend may indicate trend exhaustion
Combine with higher timeframe trend for additional confirmation
Input Parameters
Hull Trend Engine:
Hull Length: Period for Hull MA calculation (default: 20)
Hull Smoothing: Additional EMA smoothing (default: 3)
SuperTrend Layer:
ATR Period: Period for ATR calculation (default: 10)
ATR Factor: Multiplier for band width (default: 3.0)
Mode: Strict, Quick, or Quicker (default: Quick)
Trend Strength:
ADX Length: Period for ADX calculation (default: 14)
ADX Smoothing: Smoothing period for ADX (default: 14)
Strength Threshold: Minimum ADX for strong trend (default: 25)
MA Matrix:
Fast EMA: Short-term EMA (default: 9)
Medium EMA: Intermediate EMA (default: 21)
Slow EMA: Primary EMA (default: 50)
Fast SMA: Smoothed primary (default: 50)
Slow SMA: Long-term institutional (default: 200)
Visual Configuration:
Bullish/Bearish Trend Colors: Customizable colors for trend states
Sideways/Weak Trend Colors: Colors for neutral and weak states
Gradient Layers: Number of gradient fills (default: 15)
Show Platforms: Toggle platform level display (default: enabled)
Platform Extension: Bars to extend platforms (default: 7)
Originality Statement
This indicator is original in its multi-dimensional trend approach. While individual components (Hull MA, SuperTrend, ADX, EMAs) are established concepts, this indicator is justified because:
It combines four distinct trend methodologies into a unified classification system
The five-state trend classification provides clear trend assessment
Prismatic gradient visualization creates intuitive trend intensity display
Counter-trend detection with anti-overlap logic identifies potential reversals
MA alignment analysis measures institutional conviction
Integration of Hull MA smoothness with SuperTrend adaptability creates balanced trend detection
The comprehensive dashboard presents all trend dimensions simultaneously
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Trend analysis does not guarantee profitable trades. Past trends do not guarantee future trends. Always use proper risk management and never risk more than you can afford to lose.
-Made with passion by officialjackofalltrades
Pine Script®指标
Faraz-EMA13 x VWAP Cross + MA200EMA13 × VWAP Crossover Scalp Indicator spots intraday scalp entries by detecting crossovers between the EMA(13) and VWAP.
Signals:
🟢 LONG — EMA crosses above VWAP
🔴 SHORT — EMA crosses below VWAP
Best On: 5-min chart · NQ, ES, MNQ, MES, Stocks & ETFs
Pine Script®指标
OneDose - MTF Trend Dashboard (FREE V1)This free multi time frame trend dashboard indicator that uses EMA based signals across multiple time frames to quickly identify overall market direction and strength to BUY or SELL.
FEATURES
Multi-Timeframe Trend Dashboard
M5 → Monthly trend alignment
50 / 200 EMA trend detection
Real-time directional arrows (▲ ▼)
BIAS % showing overall trend strength
Clean UI (dark & light mode support)
Toggle background visibility
Fully optimized for clarity and readability
HOW TO USE
Use this indicator to align trades with the dominant trend by checking the BIAS and individual timeframe arrows.
When most timeframes align (UP or DOWN) the indicator will point a stronger directional conviction bias with a % showing BUY or SELL.
Use higher timeframes (Daily, Weekly, Monthly) to confirm the broader market bias.
Use lower timeframes (M5–H1) for timing entries in the direction of the trend.
Avoid trading against strong multi timeframe alignment for better high probability trading setups.
Pine Script®指标
Scalp Options Call/Put Signals v3This captures three things to help with scalping and provides a flag showing entry, exit, and stop loss points*:
VWAP alignment
Momentum confirmation (RSI + EMA)
Trend continuation / breakout structure
Those three together remove most random chop signals.
Recommended setup:
Utilize the 5 minute chart for signaling.
*NOTE: I don't use the stop loss recommended on the flag. It is only a recommendation, not a sword to die on. Use your own structure.
Back Test Results (From Nov 3, 2025 to March 5, 2026)
Trades analyzed when signal was triggered: 72
Correct direction: 56 (Some were fast profit and some had to sit and cook)
Incorrect direction: 16 (These would have been stopped out of based on your structure.)
Win rate:
56 / 72 = 77.78%
That is extremely strong for directional signals.
For context:
Many professional trading systems operate around 55-65%.
Anything above 70% is considered very strong if the risk management is sound.
Some days you will see multiple signals firing off. Some days you will see none.
3/20/2026 Update:
1. Added the entire trading session and removed premarket and aftermarket hours, so you no longer need to remove that from your view.
2. Adjusted the Stop ATR multiplier from .8 to 1.0 to loosen the stops from getting eaten by options spread/premium.
3. Cooldown is set to 4 bars to help with overtrading tendency.
4. Adjusted the volume multiplier from 1.0 to 1.2 to filter out weaker setups.
5. Turned off the continuation entries by default. This was generating signals on every trending bar.
Bug Fixes:
a. Fresh cross adjustment to ensure EMA and VWAP cross for confirmation.
b. Pullback logic adjusted to remove same bar detection flags.
c. Opposing signal filter to stop put and call signals from firing off simultaneously.
d. Removed duplicate labels.
Now Open Source
Pine Script®指标
Geass SRV - Support Resistance VolumeGeass SRV - Support Resistance Volume
by MasterTony
Volume profile engine adapted from Zeiirman's work — used with respect and full credit.
Most indicators tell you where price is. This one tells you where the market lives. The Support Band + Volume Profile is built around a single idea: price gravitates toward zones where real participation has happened, and it respects dynamic boundaries defined by the market's own momentum structure. This indicator surfaces both at once — a trend-adaptive zone on price and the volume history behind it.
How It's Calculated
Trend Direction (ADX + 200 SMA)
Market direction is read continuously using the DMI system — DI+ vs DI− for directional dominance, with the 200 SMA as a tiebreaker when they are equal. There is no neutral state. The indicator always commits to bull or bear, and all colors and zone behavior follow from that.
The Support Band (SMA 20 / EMA 21)
The innermost layer is a filled zone between the 20-period SMA and the 21-period EMA. These two averages are nearly identical in length but calculated differently, so the gap between them stays tight — producing a precise dynamic level rather than a wide smear. This is the mean of the recent trend. In a bull market it is the floor price returns to on pullbacks. In a bear market it is the ceiling price fails at on rallies. Green in a bull trend, red in a bear trend.
The Kijun Band — Main Trend Support and Resistance
The outer layer is the primary structural boundary of the indicator. The Kijun-Sen and Tenkan-Sen form a filled zone that acts as the main dynamic support in uptrends and the main dynamic resistance in downtrends, derived from Ichimoku Cloud. When price holds above this band the trend is intact. When price breaks through it and cannot reclaim it, the trend is in trouble.
Both lines adapt their lengths based on market conditions — compressing when momentum is strong and price is trending cleanly, expanding when conditions are weak or choppy. This means the boundary zone tightens in fast trends and widens when the market is uncertain, automatically adjusting to the environment. The lines are colored cyan in a bull regime and magenta in a bear regime, keeping them distinct from the inner band at all times.
The Kijun line within that band is the single most important level to watch. It is the baseline the trend must hold. Everything else in the indicator gives context to what happens at the Kijun.
Volume Profile — Reading the Zones
Volume profile engine adapted from Zeiirman's original work.
The volume profile is drawn to the right of price covering the last 240 bars. It answers the question the bands cannot: how much real participation has happened at each price level. A band sitting on a high-volume node is structurally different from a band sitting in empty space.
Point of Control (POC): The price level with the highest total volume — the market's center of gravity. When the POC aligns with the Kijun or the support band, that level is not just a moving average. It is a price the market has repeatedly chosen, making it the highest-conviction read the indicator can produce.
Value Area: The central 68% of all volume, shown as the brightest bars on the profile. The edges of the Value Area are high-probability reaction levels. Price approaching from outside tends to stall at the boundary or accelerate into the core. When the band zone overlaps a Value Area edge, dynamic structure and volume history are stacked at the same level.
Buy/Sell Split: Every row is divided between buying volume (green) and selling volume (red). When one side exceeds 60% it renders as a strong single color. This shows not just where volume was high — it shows who was in control. A dominant green node below price is demand. A dominant red node above is supply.
Low Volume Gaps: Rows with very little volume are structural gaps. Price moves through them quickly with little friction and accelerates until it hits the next meaningful cluster. When the band sits at the edge of a gap, a break can be fast and directional.
Freshness Fade: Recent volume glows brighter. Older volume fades. This prevents the profile from treating a level from 200 bars ago the same as one from yesterday.
Price Pivot S/R Lines
The last three swing highs and swing lows drawn as horizontal dashed lines — red for resistance, green for support. These are price memory. The exact levels where the market has previously reversed.
Bollingerbands
Custom Bollinger bands that can be toggled on to see outer lines of directional trend
How to Read It
The zone between the support band and the Kijun boundary is the core read. Green means the corridor is support — healthy pullbacks happen here. Red means it is resistance — rallies fail here. A tight narrow zone signals strong trend momentum. A wide zone signals a slower or more uncertain market.
The Kijun line is the level that matters most. A pullback that holds above it and bounces is trend continuation. A close below it is a warning. A reclaim from below is the first sign of a potential reversal. Every trade setup built with this indicator lives or dies at the Kijun.
The volume profile tells you whether the Kijun level carries real weight. A Kijun sitting on a large green volume node has been defended by buyers repeatedly — it has structural backing. A Kijun sitting in thin faded volume is unproven. When the POC and the Kijun are at the same price, that is the strongest signal this indicator can produce.
Value Area edges add a second volume-based reference layer. Watch for the band or Kijun to overlap with the top or bottom of the Value Area — that is confluence of two independent structural forces at the same level.
Pivot lines show the nearest price structure above and below. A green pivot just below the Kijun in a bull trend means two separate historical references are stacked — structural and volume-based support reinforce each other.
How to Trade With It
Bull Trend Pullback
Band is green. Price pulls back into the support band or toward the Kijun. Check the volume profile — is there a high-volume green node or the POC near that level? If yes, the zone has volume backing. Wait for a reversal signal inside the zone. Enter long with a stop below the Kijun. The nearest green pivot below is your hard invalidation.
Bear Trend Rally
Band is red. Price rallies into the band or toward the Kijun. Check the volume profile — is there a high-volume red node or the POC near the Kijun? If yes, the resistance is volume-confirmed. Wait for rejection inside the zone. Enter short with a stop above the Kijun. The nearest red pivot above is your invalidation.
Volume Gap Move
When price breaks out of the band and enters a low-volume section of the profile, expect the move to accelerate. There is no structural resistance in that gap. Price will run until it hits the next meaningful volume cluster. Use the profile to identify where that cluster is and target it.
Trend Change Warning
When the band flips color, stop trading the previous direction. Wait for price to pull back and hold the newly-colored zone on a retest before entering the new direction. Check the POC — if it is already on the new direction's side of price, the flip has volume support and is more likely to hold.
Confluence Filter
The cleanest setups occur when everything agrees: band color matches the trade direction, price is testing the Kijun, the POC or a high-volume node is at or near that level, and a pivot line adds nearby structure. When all of that stacks at one price, the zone is as high-conviction as this indicator gets.
Credits
Volume profile engine — Gaussian volume distribution, buy/sell split, POC calculation, Value Area logic, and freshness fade — adapted from Zeiirman's original work. Full credit to Zeiirman for the foundation that powers the volume layer of this indicator.
Pine Script®指标






















