Moving Average Structure MatrixMoving Average Structure Matrix is not a basic multi-MA ribbon.
The moving-average lines are only the visible base layer. The main contribution is a neutral MA structure layer that quantifies how the enabled moving averages are ordered, clustered, twisting, and positioned relative to the selected source.
This script is designed for traders who want quick structural context from multiple EMA/SMA lines without relying only on visual inspection. It is a context and visualization tool only. It does not provide trade-action instructions and it is not a trading system.
What it shows
- Up to 8 user-configurable EMA/SMA slots.
- A moving-average ensemble centerline.
- The high and low boundary of the enabled MA group.
- Optional fill between the MA bundle boundaries.
- A compact context table.
- Optional factual event labels.
- Neutral alert conditions for structure changes.
The MA lines are useful visually, but the structure layer is the main feature.
Core structure fields
Pairwise Stack Score
The script compares enabled moving averages pair by pair.
For each pair with different lengths, the shorter-length MA is treated as the faster MA and the longer-length MA as the slower MA.
If the faster MA is meaningfully above the slower MA, the pair contributes positively.
If the faster MA is meaningfully below the slower MA, the pair contributes negatively.
If the pair is too close to classify, it contributes as tied.
The Stack Score summarizes this pairwise ordering on an approximate -100 to +100 scale.
A positive Stack Score means shorter MAs are generally above longer MAs.
A negative Stack Score means shorter MAs are generally below longer MAs.
A value near zero means the group is mixed or tied.
Order Purity
Order Purity measures how much of the eligible pairwise structure agrees with the dominant side.
For example, a high positive Stack Score with high Order Purity describes a cleaner upward ordering of shorter and longer averages. A mixed pair structure will usually show lower purity.
Order Purity is descriptive only. It is not a forecast or a trade instruction.
Tie Ratio
Tie Ratio measures how many eligible MA pairs are too close to classify after applying the stack-separation threshold.
A higher Tie Ratio means more of the MA group is structurally tied or compressed into similar values.
Slope Consensus
Slope Consensus measures how many enabled moving averages are rising, falling, or flat over the selected slope lookback.
Each enabled MA receives a slope sign:
- rising
- falling
- flat
The Slope Score summarizes the group on an approximate -100 to +100 scale.
Bundle Width and Width Rank
The script calculates the high and low values of the enabled MA group.
Bundle Width measures the distance between those two boundaries.
Bundle Width % expresses that distance relative to the MA centroid.
Width Rank compares the current bundle width with its own recent history. This is a moving-average bundle context only. It is not a volatility regime and it does not forecast future movement.
Width context can read as:
- Clustered
- Middle width
- Wide bundle
- n/a
Twist Rate
Twist Rate describes internal reordering of the MA group.
For each eligible fast/slow pair, the script compares the current pair relationship with the previous bar's relationship. When a pair changes from one ordered side to the other, it counts as a twist.
Twist Rate summarizes how much internal crossing or reordering has occurred over the selected lookback.
This helps distinguish a clean MA structure from a churning or mixed MA group.
Fast/Slow Cohort Spread
The script can compare shorter-length and longer-length MA groups.
The fast cohort contains shorter MAs.
The slow cohort contains longer MAs.
Cohort Spread % compares the average position of the fast cohort with the average position of the slow cohort.
This gives a second view of the structure beyond individual pair comparisons.
Source-vs-Bundle location
The selected source can be:
- Above bundle
- Inside bundle
- Below bundle
- n/a
The script also calculates Bundle Position %, which describes where the source sits relative to the current MA bundle.
Values can be below 0 or above 100 when the source is outside the bundle.
Structure State
The script combines stack ordering, order purity, slope consensus, bundle width context, twist rate, and source location into a neutral state label.
Possible states include:
- Need 2+ MAs
- Need different MA lengths
- Warming up
- Ordered upward
- Ordered downward
- Upward stack / mixed slopes
- Downward stack / mixed slopes
- Churning bundle
- Clustered mixed bundle
- Flat bundle
- Transitioning upward
- Transitioning downward
- Intermixed
These states describe the current MA structure. They do not imply continuation or reversal.
Structure Age
Structure Age counts how long the current structure state has persisted.
The script uses distinct internal state IDs, so the age resets when the actual structure state changes, not just when broad direction changes.
Structure Fingerprint
The Fingerprint is a compact summary of the current MA structure.
Example:
O+ S+ Wm Pa A34
Meaning:
- O+ means positive stack polarity.
- O- means negative stack polarity.
- O0 means no clear stack polarity.
- S+ means positive slope consensus.
- S- means negative slope consensus.
- S0 means no clear slope consensus.
- Wc means clustered width.
- Wm means middle width.
- Ww means wide bundle.
- Wn means width unavailable.
- Pa means source above the bundle.
- Pi means source inside the bundle.
- Pb means source below the bundle.
- Pn means source location unavailable.
- A shows the current structure age.
The Fingerprint is a compact context summary. It is not a trade instruction.
Structure Footprint
The Footprint expands the context by combining:
- Structure age
- Previous state age
- Width motion
- Twist Rate
- Order Purity
- Tie Ratio
This helps users read how the MA group is currently organized without relying only on line spacing.
Context table
The default context table is compact and placed in the upper-right area.
Compact layout shows:
- State
- Fingerprint
- Stack Score
- Slope Score
- Width / Twist
- Price location
- Structure Age
Standard and Detailed layouts add more research fields, including:
- Footprint
- Order Purity
- Tie Ratio
- Twist Rate
- Cohort Spread
- Bundle Width %
- Width Rank
- Bundle Position %
- Enabled MA count
- Eligible pairs
- Equal-length pairs skipped
- Up / Down / Tied pair counts
- Fast / Slow cohort counts
- Centroid
- Bundle high
- Bundle low
- Active warm-up bars
- State ID
- Enabled MA names
Research fields are available in the Detailed context table without adding extra chart plots. The context table is the primary research surface.
Events and labels
Event labels are optional and off by default.
When enabled, labels are factual and neutral. They describe events such as:
- structure became ordered upward
- structure became ordered downward
- structure became intermixed
- bundle entered churning context
- bundle entered clustered width context
- bundle left clustered width context
- source moved above the MA bundle
- source moved below the MA bundle
- source crossed the MA centroid
Event markers use capped labels rather than plotshape markers, so the script stays within PulseWire's plot-count limit. Older labels are removed after the user-defined label cap is reached.
Alerts
The script includes factual alert conditions for the same structure events.
Alerts respect the selected confirmed-bar behavior by default. Intrabar mode is available, but realtime values can update until the bar closes.
Customization
Users can adjust:
- source
- slope lookback
- warm-up behavior
- EMA/SMA type for each MA slot
- length for each MA slot
- color, width, transparency, and name for each MA slot
- stack separation threshold
- ordered stack threshold
- order purity threshold
- slope flat threshold
- slope consensus threshold
- width-rank lookback
- clustered / wide width thresholds
- twist lookback
- churning twist threshold
- cohort split length
- automatic cohort split
- event persistence
- event cooldown
- context table layout
- context table position
- table text size
- table colors
- marker colors
- envelope colors
- fill transparency
Visual customization does not affect calculations.
Most input values are hidden from the chart status line by default to keep the chart label compact. All inputs remain available in the Settings / Inputs tab.
Different from other tools
This script does not use ATR channels, session shading, volatility-regime classification, VWAP, volume weighting, or RSI slope divergence.
It focuses only on the geometry of an enabled EMA/SMA ensemble.
Limitations
Moving averages lag by design.
A clean MA structure does not guarantee continuation.
A churning MA structure does not imply reversal.
MA order can persist, unwind, or flip.
Default lengths are common visual reference points, not optimized settings.
Width and cluster context are descriptive of the enabled MA group and its own history.
Changing enabled MAs, lengths, or thresholds changes the structure readings.
This script is not financial advice and not a trading system.
Japanese notes
このスクリプトは単なる複数移動平均線ではなく、EMA/SMA群の並び、純度、近接度、傾きの一致、束の広がり、ねじれ、価格位置、状態の継続時間を構造として表示する可視化ツールです。売買判断や将来予測ではなく、MA群の現在の構造を把握するための補助として設計しています。 Indicator

5 Advanced MAs MTF🔵 OVERVIEW
5 Advanced MAs MTF is a professional moving averages indicator designed for traders who need to see multiple trend layers on a single chart simultaneously, each one with its own independent configuration and — above all — its own timeframe.
Unlike typical "ribbon" or "multi-MA" indicators on the market, which display several averages all computed on the active chart's timeframe, this indicator allows each of the 5 averages to have its own timeframe. You can have your EMA 8 on the 15-minute chart, your EMA 20 on the 1-hour, your EMA 50 on the 4-hour, and your SMA 200 on the daily, all plotted on the same 15-minute chart. That turns the indicator into a complete multi-timeframe control panel without needing to open four separate charts or saturate your installed indicators list.
🔶 KEY FEATURES
• 5 fully independent moving averages — each one configured separately and enabled or disabled individually.
• True multi-timeframe per MA — the core differentiator. Each MA can read its value from a higher, lower, or equal timeframe relative to the active chart. Leave it empty to use the chart's current timeframe.
• 9 moving average types — SMA, EMA, WMA, RMA, HMA, VWMA, TEMA, KAMA, and JMA. The last three (TEMA, KAMA, JMA) are implemented with their original formulas, no shortcuts. JMA uses Mark Jurik's standard defaults (Phase = 50, Power = 2).
• Configurable source per MA — Close, Open, High, Low, hl2, hlc3, ohlc4.
• Full visual styling per MA — color, width (1 to 10), and line style (solid, dashed, or dotted).
• Smart labels — each MA can show its label directly on the line, with configurable content (type, length, timeframe, or any combination of the three). Adjustable horizontal bar offset and text size.
• Interactive summary table — placed at any of the 9 chart anchors, displaying color column, type, length, timeframe, and price distance from each MA (in percentage and absolute value). Toggle to include or exclude hidden MAs.
• 22-alert system — 10 for Price↔MA crosses (bullish and bearish for each MA), 10 for MA↔MA crosses across 5 configurable slots (you pick which MA pairs to monitor), and 2 wildcard "any cross detected" alerts. All compatible with webhooks and automation.
• Works on any market and any timeframe — equities, futures, crypto, forex, commodities. From tick charts to monthly charts.
🔹 USE CASES BY TRADER STYLE
▪️ Day trader / scalper
Configure the first 3 MAs as short EMAs (8, 20, 50) on the chart's timeframe (5m or 15m) and leave MAs 4 and 5 as SMA 200 and VWMA 100 but reading them from a higher timeframe (1H, 4H, or daily). Result: you see your fast entry signals and the higher-timeframe bias at the same time without switching charts.
▪️ Swing trader
Recommended setup: EMA 20 and EMA 50 on the active chart (1H or 4H) + SMA 200 read from daily + VWMA 100 read from weekly. This lets you watch pullbacks against the EMA 20 on your operative timeframe with immediate confirmation that the higher-timeframe bias is aligned, plus the weekly VWMA as a volume-weighted "fair price" reference.
▪️ Position trader / long-term
Enable all 5 MAs on daily or weekly to build a complete structural map of the asset. The default configuration (EMA 8, EMA 20, EMA 50, SMA 200, and VWMA 100, all on daily) covers everything from fast momentum to the institutional level, combining pure-price references (SMA 200) with volume-weighted references (VWMA 100). The summary table shows the exact distance of price from each one.
▪️ Systematic crossover trader
The MA↔MA alert slots let you configure up to 5 specific crossovers simultaneously. Classic Golden Cross / Death Cross setup: Slot 1 with MA 3 (EMA 50) crossing MA 4 (SMA 200) on daily, with an automatic alert sent to your bot's webhook or notification system.
▪️ Multi-timeframe confluence trader
The most differentiating use case. Assign each MA to a different timeframe: MA 1 on 5m, MA 2 on 15m, MA 3 on 1H, MA 4 on 4H, MA 5 on daily or weekly. The summary table shows you in real time the distance of current price from the key level of each of those timeframes. When several MAs from different timeframes converge on the same price zone, that zone becomes a high-density structural level — one of the most-used concepts among institutional traders.
⚙️ INPUTS & CUSTOMIZATION
The entire indicator is 100% configurable from the Inputs panel. Each MA has its own expandable group with 14 controls. The summary table is also fully customizable (position, text size, background/border/text colors). The JMA global parameters (Phase and Power) live in their own section so advanced users can adjust them without cluttering the individual groups.
By default, all 5 MAs are enabled with a configuration tailored for daily and swing use: EMA 8 (blue, 1D), EMA 20 (red, 1D), EMA 50 (yellow, 1D), SMA 200 (green dashed, 1D), and VWMA 100 (pink dotted, 1D). The user can modify any of the parameters or reassign the MAs to other timeframes at any moment.
🔔 ALERTS
The indicator ships with 22 precompiled alerts ready to use:
• 5 alerts "Price crosses above MA N"
• 5 alerts "Price crosses below MA N"
• 10 alerts across 5 configurable slots for MA↔MA crossovers (bullish and bearish per slot)
• 2 wildcard alerts "any cross detected"
All messages include the {{ticker}} and {{close}} placeholders so they are directly parseable by webhooks, bots, and automation systems.
❓ FAQ
Does the indicator repaint?
No. The moving averages are computed on confirmed historical data. Cross alerts fire on the bar of the cross and values are not modified retroactively. To avoid signals that appear and disappear intra-bar, set the alerts to "Once per bar close".
Does it work on any timeframe?
Yes. From tick charts to monthly. In addition, each MA can have its own higher, lower, or equal timeframe relative to the active chart. The default timeframe is the current chart's timeframe.
Why 9 MA types?
Because each type behaves differently. SMA is the pure average; EMA weights recent bars more; HMA virtually eliminates lag; KAMA adapts to volatility; JMA is the smoothest while staying responsive; VWMA weights by volume. Having all of them available lets you use the right tool for each analysis without installing several separate indicators.
What are the 5 MA↔MA alert slots for?
They let you configure specific crossovers between any pair of MAs without having to create all possible combinations. In each slot you pick the fast MA and slow MA from dropdowns and receive alerts for the bullish and bearish crossovers of that pair. Example: Slot 1 = MA 3 crosses MA 4 (classic Golden Cross / Death Cross when MA 3 = EMA 50 and MA 4 = SMA 200).
What is the best MA combination?
There is no single "best" — it depends on the trading style and the asset. The Use Cases section above includes recommended configurations for the 5 most common profiles.
Is it compatible with webhooks and automation?
Yes. The 22 alerts use {{ticker}} and {{close}} placeholders in their messages, making them directly compatible with PulseWire Webhooks, copy-trading platforms, Telegram/Discord bots, and any system that parses JSON.
Is it free to use?
Yes. Open-source indicator under the Mozilla Public License 2.0. You can review the full code, use it freely on PulseWire, and create derivative copies while respecting the license terms.
⚠️ DISCLAIMER
This indicator is a technical analysis tool provided solely for educational and informational purposes. It does not constitute financial advice, an investment recommendation, or an invitation to trade any instrument. Moving averages are reactive (not predictive) indicators: they are based on historical data and, by their nature, can produce delayed signals in markets with sharp trend changes. In ranging or low-volatility market contexts, crossovers can be frequent and not particularly informative. Every trading decision is the sole responsibility of the trader. Past performance does not guarantee future results.
© 2026 Lic. Farias Foresi, Leandro M. — License: Mozilla Public License 2.0
Indicator

Indicator

Multi-Timeframe MA Structure & RSI ConfluenceThis indicator combines multi-timeframe moving averages, RSI-based swing structure labels, and a compact RSI confluence panel into one chart overlay.
Features:
EMA/SMA 50 and 200 for 15m, 1h, 4h, Daily and Weekly timeframes
Optional automatic hiding of lower-timeframe MAs on higher-timeframe charts
EMA/SMA visual distinction using solid and dashed lines
RSI-based swing high/low labels: HH, HL, LH, LL
Developing swings marked with “?”
Structure-based label coloring: HH/HL green, LH/LL red
Regular bullish and bearish RSI divergence labels
Compact RSI panel showing RSI value, regime, momentum, RSI vs MA, recent MA cross and recent divergence
The indicator is designed as a visual market-structure and confluence tool. It does not generate buy or sell signals and should not be used as a standalone trading system.
The swing logic is inspired by RSI overbought/oversold cycle concepts originally published by BalintDavid. Indicator

Cloud Institutional Bands | Rainbow MatrixGENERAL OVERVIEW
The Cloud Institutional Bands is a statistical price-envelope indicator that maps institutional accumulation and exhaustion zones using deviation channels built on a Log-Normal regression anchored to a dynamic VWAP. Instead of treating the chart as a series of fixed support and resistance levels, the indicator continuously classifies the current price into one of four statistical regimes — and colors the chart accordingly.
The main goal of this indicator is to give traders a clean, automatic read on how stretched price is relative to its own statistical baseline — without having to manually identify trend strength, overextension, or exhaustion zones bar by bar. Every band you see on the chart represents a specific deviation from the volume-weighted regression base, and every color tells you which statistical zone is currently active.
It plots four pairs of deviation bands (eight bands in total: four above the regression base and four below), each calibrated to a Fibonacci-proportioned sigma multiplier. Combined with the dynamic VWAP and the Zone Info Panel, the indicator gives a complete read on directional bias, statistical position, and proximity to extreme zones — all from a single visual.
This indicator was developed for traders who already understand band-based indicators (Bollinger, Keltner, Donchian) and want a statistically corrected envelope that handles asymmetric price distributions properly, particularly during volatility expansion phases.
WHAT IS THE THEORY BEHIND THIS INDICATOR?
Most envelope indicators on PulseWire — Bollinger Bands, Keltner Channels, and their derivatives — share a common architectural choice: they apply standard deviation directly to the price series, using a Simple Moving Average (or similar linear estimator) as the central tendency. This treats price as a symmetric variable.
The problem: price is not symmetric. Price has a hard floor at zero and unbounded upside. Its returns follow a log-normal distribution, not a normal one. Applying linear statistics to asymmetric data introduces a systematic bias — bands that are too wide on one side and too narrow on the other, especially during volatility expansion. This bias becomes most visible at exactly the moments traders need accuracy most: trend climaxes, blow-off tops, capitulation lows.
This indicator addresses that bias by performing the regression in log space. The price series is first transformed via the natural logarithm, the linear regression is fitted on the log-prices, the standard deviation of the residuals is computed, and the resulting deviation bands are exponentiated back to price space. The math is standard — what makes it useful is applying it to a series that actually follows the underlying distribution it assumes.
Why traders use it: each band represents a probabilistic boundary. When price sits between the regression base and the first deviation band, it is statistically inside its normal operating range — equilibrium. When price crosses into the second band, the move has crossed into directional territory. The third band marks the threshold beyond which most of the impulse has already happened — exhaustion. The fourth band marks the tail of the distribution — a Black Swan event in Taleb's sense — where less than 1% of candles reach under normal conditions.
The dynamic VWAP overlay adds a second dimension: directional bias. While the regression bands tell you how stretched price is, the VWAP tells you whether the volume-weighted average favors buyers or sellers. Together they give a two-axis read on every bar: directional bias plus statistical zone.
CLOUD INSTITUTIONAL BANDS FEATURES
The indicator includes 6 main features:
Log-Normal Regression Engine
Fibonacci-Proportioned Deviation Bands
Dynamic VWAP with Glow
Rainbow Zone Fills
Zone Info Panel (HUD)
Black Swan Alerts
Multilingual interface and full customization across all visual layers.
LOG-NORMAL REGRESSION ENGINE
🔹 What It Does
The core of the indicator. Every bar, the engine performs four operations:
◇ Transforms the price series (hlc3) into log space via the natural logarithm.
◇ Fits a linear regression through the log-prices over the configured lookback window.
◇ Computes the standard deviation of the residuals — the gap between actual log-price and the regression line.
◇ Exponentiates the regression line and the deviation bands back to price space.
The result is a statistical baseline (the Base Line) and four pairs of deviation bands that respect the asymmetric nature of price distribution.
🔹 Method
The regression base is calculated using a standard linear regression on the log-price series. This is the classic least-squares fit — every bar in the lookback window contributes equally. The result is a baseline that represents where the market would be statistically if it were tracking its own trend perfectly.
🔹 Period
The Band Period input sets the rolling lookback window for both the regression and the standard deviation calculation. Larger values produce smoother, wider bands that respond slowly to new price action. Smaller values produce tighter, more reactive bands that follow recent volatility more closely. The default is 200 bars, calibrated for the 223-minute Bitcoin chart. For other instruments and timeframes, the period should be adjusted to match the natural cycle length of the asset.
FIBONACCI-PROPORTIONED DEVIATION BANDS
🔹 The Four Sigma Multipliers
Instead of plotting bands at integer multiples of the standard deviation (1σ, 2σ, 3σ), this indicator uses Fibonacci-inspired proportions:
◇ ±1.50σ — Breathing Zone (yellow above, green below)
◇ ±1.85σ — Alert Zone (orange above, teal below)
◇ ±2.75σ — Exhaustion Zone (red above, blue below)
◇ ±3.85σ — Black Swan Zone (purple above, aqua below)
Each multiplier corresponds to a different probabilistic regime:
◇ Breathing Zone: equilibrium. Most candles operate inside this range. Low conviction, no signal.
◇ Alert Zone: directional move in progress. Trend is asserting itself. Watch for follow-through.
◇ Exhaustion Zone: most of the impulse has already happened. Pullback probability rising. New entries in trend direction have unfavorable risk-reward.
◇ Black Swan Zone: statistical extreme. Less than 1% of candles reach this band under normal market conditions. Elevated probability of either mean reversion or volatility regime change.
snapshot
DYNAMIC VWAP WITH GLOW
🔹 What It Does
A Volume-Weighted Moving Average is plotted alongside the regression bands, using the same lookback window. The VWAP renders in teal when price trades above it (bullish bias) and in red when price trades below (bearish bias).
🔹 Glow Effect
The VWAP line carries a proximity-based glow: the closer price gets to the VWAP, the more intense the glow becomes. This visual cue prepares the eye for proximity to a high-liquidity zone, where reactions often occur.
🔹 Why It Matters
The regression bands tell you how stretched price is. The VWAP tells you what bias the volume-weighted average favors. Together they give a complete read on every bar:
◇ Price above VWAP and inside Breathing Zone: healthy uptrend.
◇ Price above VWAP and at +2.75σ: uptrend in exhaustion.
◇ Price below VWAP and at -3.85σ: capitulation or imminent reversal.
RAINBOW ZONE FILLS
🔹 What They Show
The space between adjacent deviation bands is filled with a semi-transparent color matching the zone palette. This makes the current zone immediately visible without having to read the Z-Score number — the chart background tells you the regime at a glance.
🔹 Toggleable
Fills can be turned off for traders who prefer to see only the band lines themselves. The lines alone (with the Base Line and VWAP) still provide all the information; the fills are a visual aid to make zone identification faster.
ZONE INFO PANEL (HUD)
🔹 What It Shows
A compact corner panel reports three live values:
◇ ZONE — the name of the currently active zone (e.g., "ALERT — HIGH RISK ZONE", "EQUILIBRIUM — BASE LINE")
◇ DEV. — the current Z-Score, expressed in standard deviations (e.g., "+2.44σ")
◇ VWAP — the current position relative to the dynamic VWAP ("VWAP: BUY ZONE" or "VWAP: SELL ZONE")
🔹 Why It Helps
The HUD removes the need to interpret colors and band positions visually. It tells you in plain language where price is, how stretched it is, and which direction the volume-weighted bias is leaning. Useful for live trading where decisions need to happen quickly.
🔹 Customization
The HUD can be positioned in any of the four chart corners and rendered in any of five font sizes. The display language is controlled by the System Language input.
snapshot
BLACK SWAN ALERTS
🔹 What Triggers
The indicator fires an alert when price touches the ±3.85σ band — the Black Swan zone. Two separate alerts are available: one for the upper extreme (potential capitulation top), one for the lower extreme (potential capitulation bottom).
🔹 How They Fire
Alerts are gated by barstate.isconfirmed, which means they only trigger on the close of the bar that touched the band — not intra-bar. This prevents false signals from wicks that get rejected before the bar closes.
🔹 Frequency
Each alert uses alert.freq_once_per_bar, ensuring no duplicate firings on the same candle.
MULTILINGUAL INTERFACE
The indicator supports five languages for the HUD display and alert messages: English (default), Português, Español, Русский, and 中文 (Chinese). Code, comments, and configuration tooltips remain in English regardless of the selected language.
For reference, the English text of all multilingual UI strings used in the HUD and alerts:
◇ BLACK SWAN — EXTREME HIGH / BLACK SWAN — EXTREME LOW
◇ BUYING EXHAUSTION / SELLING EXHAUSTION
◇ ALERT — HIGH RISK ZONE / ALERT — LOW RISK ZONE
◇ INSTITUTIONAL BREATHING ZONE
◇ EQUILIBRIUM — BASE LINE
◇ VWAP: BUY ZONE / VWAP: SELL ZONE
◇ ZONE: / DEV.: / VWAP:
◇ Black Swan Alert High: "Price at 4th standard deviation — EXTREME HIGH. High probability of severe reversal."
◇ Black Swan Alert Low: "Price at 4th standard deviation — EXTREME LOW. High probability of explosive reversal."
HOW TO USE
This indicator is not a signal generator. It is a state classifier: it tells you which statistical zone the current price is in, and how that zone relates to the volume-weighted bias.
🔹 Reading the Chart
◇ Identify the current Z-Score from the Zone Info Panel.
◇ Note the active zone color in the panel and on the chart fills.
◇ Combine with VWAP position for directional context.
🔹 Tactical Reading
◇ Z-Score between -1.50 and +1.50: market is in equilibrium. Mean-reversion strategies have higher edge than breakout strategies.
◇ Z-Score crossing ±1.85: breakout in progress. Trend-following entries have higher edge than fade entries.
◇ Z-Score at ±2.75: trend is mature. Trailing stops should be tightened. New entries in trend direction have unfavorable risk-reward.
◇ Z-Score touching ±3.85: Black Swan touch. Statistically the tail. Mean reversion has elevated probability — but Black Swans can also indicate regime change, where volatility expands and a new range opens. Use the Black Swan Alert to catch these events.
🔹 Multi-Timeframe Reading
◇ On lower timeframes (1m, 5m, 15m), the bands react to micro-trends and serve as dynamic support and resistance.
◇ On higher timeframes (1h, 4h, daily), the bands map macro regime — the outer bands at higher timeframes represent multi-day exhaustion zones.
INPUTS EXPLAINED
🔹 System Language
Display language for the HUD and alert messages. Options: English (default), Português, Español, Русский, 中文 (Chinese).
🔹 Band Period (bars)
Rolling lookback for the Log-Normal regression and the VWAP. Range 50–500, default 200. Higher values produce smoother, wider bands; lower values produce tighter, more reactive bands.
🔹 Show Thermal Zone Fills
Toggle for the semi-transparent rainbow fills between adjacent bands.
🔹 Show Black Swan Glow (4th Std Dev)
Toggle for the glow effect on the outermost ±3.85σ bands. The glow intensifies as price approaches the band.
🔹 Show Base Line (Gravitational Center)
Toggle for the regression central line — the statistical baseline around which the bands are computed.
🔹 Show Dynamic VWAP (Macro)
Toggle for the volume-weighted reference line with proximity glow.
🔹 Show Zone Info Panel
Toggle for the corner HUD reporting current zone, Z-Score, and VWAP position.
🔹 Panel Position
Position of the HUD on the chart. Four corners available: Top Right (default), Top Left, Bottom Right, Bottom Left.
🔹 Font Size
HUD font size. Options: Tiny (default), Small, Normal, Large, Huge.
🔹 Black Swan Alert (4th Std Dev touch)
Toggle for the alerts that fire when price touches the ±3.85σ band. Two alerts: one for the upper extreme, one for the lower extreme.
IMPORTANT NOTES
The Cloud Institutional Bands works on any timeframe. The Band Period default of 200 is calibrated for the 223-minute chart and may need adjustment for other timeframes — a good rule of thumb is to set the period to approximately one full daily cycle for the chart timeframe (e.g., 288 bars for 5-minute charts, 96 bars for 15-minute charts).
The indicator works best on instruments with reliable volume data: crypto perpetual contracts, large-cap equities, major forex pairs. On low-volume instruments, the dynamic VWAP component becomes less reliable, though the regression bands continue to function correctly.
Alerts fire once per confirmed bar. Historical bars never repaint after they close. The live bar updates intra-bar as expected for a real-time indicator.
The four sigma multipliers (1.50, 1.85, 2.75, 3.85) are intentionally non-standard. They are Fibonacci-inspired proportions, not arbitrary choices, and they map to four behavioral regimes derived from observation rather than to integer statistical thresholds.
Pine Script v6. Open-source under Mozilla Public License 2.0.
UNIQUENESS
The Cloud Institutional Bands is unique in three ways. First, it performs the regression in log space, addressing the asymmetric nature of price distribution that linear estimators (such as the Simple Moving Average used by Bollinger Bands) fail to account for. This produces bands that behave correctly during volatility expansion phases, where standard envelopes show systematic bias. Second, it uses Fibonacci-proportioned sigma multipliers (1.50, 1.85, 2.75, 3.85) instead of integer steps, mapping the bands to four behavioral regimes — breathing, alert, exhaustion, and Black Swan — that correspond to observable phases of institutional order flow rather than to arbitrary thresholds. Third, it integrates a dynamic VWAP overlay with proximity-based glow alongside the regression bands, giving traders a two-axis read on every bar: how stretched price is statistically, and which direction the volume-weighted bias favors. The combination of log-space regression, Fibonacci sigma calibration, and integrated VWAP context produces a statistical envelope that behaves differently from standard band-based indicators, particularly at trend climaxes and capitulation events where standard envelopes are least reliable. Indicator

Indicator

Indicator

Standard Deviation Supertrend | GForgeStandard Deviation Supertrend ~ 𝒢𝐹𝑜𝓇𝑔𝑒
A Supertrend indicator that replaces ATR with Standard Deviation for volatility measurement, combined with a selectable Moving Average anchor for noise reduction.
━━━━━━━━━━━━━━━━━━━━━━━━
What This Indicator Does
This is a trend-following overlay that plots a single trailing line on your chart. When price is above the line, the trend is bullish. When price crosses below, the trend flips bearish. Signals fire on each flip.
The core mechanic is identical to the classic Supertrend — ratcheting bands that tighten in the direction of the trend and only reset when price breaks through the opposite side.
━━━━━━━━━━━━━━━━━━━━━━━━
Why Standard Deviation Instead of ATR
ATR measures the average candle range. It treats all bars the same — a strong directional candle and a choppy gap produce equal ATR contributions.
Standard Deviation measures how far price disperses from its mean. During clean directional moves, prices cluster on one side of the mean, producing low StdDev and tighter bands. During erratic, sideways price action, prices scatter around the mean, producing high StdDev and wider bands.
The result: the trailing stop naturally tightens when the trend is clean and loosens when conditions are noisy. This is adaptive behavior that ATR-based Supertrends don't provide.
━━━━━━━━━━━━━━━━━━━━━━━━
Two Smoothing Layers
Raw Supertrend inputs can be noisy. A single wick or volatile candle can jerk the trailing band and cause a premature flip. This indicator addresses that with two optional smoothing layers:
Anchor MA — applies a Moving Average to the price source before bands are calculated. Instead of building bands around raw hl2 (which reacts to every wick), the bands are built around a smoother baseline. 11 MA types are available:
• None (hl2) — raw, classic Supertrend behavior
• SMA, EMA, WMA — standard options with varying lag
• HMA — very low lag, can overshoot on reversals
• DEMA, TEMA — reduced lag variants of EMA
• VWMA — volume-weighted, naturally anchors to high-volume levels
• RMA — Wilder's smoothing, very stable
• ALMA — Gaussian-weighted with tunable offset and sigma
• T3 — Tillson, extremely smooth with adjustable volume factor
StdDev Smoothing — applies an EMA to the raw Standard Deviation output before it scales the bands. This prevents abrupt band width changes when a volatile bar enters or exits the lookback window. Set to 1 to disable.
Together, these improve parameter robustness — small changes to settings produce smaller changes in output, meaning the indicator is less likely to break under slight parameter variation.
━━━━━━━━━━━━━━━━━━━━━━━━
Settings Overview
• Anchor Source — price input for the Supertrend. hl2 is the classic default.
• StdDev Length — lookback period for the Standard Deviation calculation.
• StdDev Multiplier — band width. Higher values require a larger move to flip direction. This serves the same purpose as a "threshold" in oscillator-based indicators.
• Anchor MA Type / Length — which Moving Average smooths the anchor, and its period.
• StdDev Smoothing — EMA period applied to the raw StdDev. 1 = no smoothing.
• ALMA Offset / Sigma — only active when ALMA is selected.
• T3 Volume Factor — only active when T3 is selected.
• Current settings work best on BTC 1D
━━━━━━━━━━━━━━━━━━━━━━━━
Visual Elements
• Glow trail — the Supertrend line pulses with a layered glow that changes color on trend direction.
• Trend fill — gradient fill between price and the trailing line.
• Inactive band — shown as crosses, marking where the opposite flip point sits.
• Anchor MA line — subtle reference line showing the smoothed anchor (hidden when set to None).
• Bar coloring — candles colored by current trend direction.
• Signal diamonds — dual-layer markers (halo + core) on trend flips.
All visual elements can be toggled on or off individually. 13 color themes are included.
━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Disclaimer
This indicator is a technical analysis tool, not financial advice. It does not guarantee profitable results. Past performance on any asset or timeframe does not indicate future results. No indicator can predict market direction with certainty.
Always use proper risk management. Do not rely on any single indicator for trading decisions. Test thoroughly on your chosen instruments and timeframes before applying to live markets. You are solely responsible for your own trading decisions and outcomes.
━━━━━━━━━━━━━━━━━━━━━━━━
Developed by 𝒢𝐹𝑜𝓇𝑔𝑒 Indicator

Capital Rotational Event (CRE)Capital Rotational Event (CRE) – Inter-Asset Rotation Detector
This open-source, non-overlay indicator identifies potential **capital rotation events** between two user-selected assets by combining:
1. Relative Strength (RS) — measures how one asset is performing compared to another
2. Momentum of that RS line — detects acceleration or deceleration in the relative outperformance
The goal is to highlight periods when capital appears to be rotating **into** or **out of** the second asset (e.g., from stocks → gold, equities → bonds, risk-on → risk-off, etc.).
Core Concept
In macro-driven or rotational markets, money often flows between asset classes or correlated instruments. When one asset starts consistently outperforming another (and the outperformance is accelerating), it can signal a shift in investor preference, risk appetite, or sector leadership.
This script uses a smoothed relative strength ratio + its momentum to create a simple, objective filter for these rotational shifts.
How It Works
1. Fetches closing prices of two symbols:
- Asset #1 (lead/default: SPY) – the reference/benchmark
- Asset #2 (rotate into/default: GLD) – the asset being evaluated
2. Calculates Relative Strength line:
RS = SMA( (close₂ / close₁) × 100 , length )
→ Values > 50 = Asset 2 outperforming Asset 1
→ Values < 50 = Asset 1 outperforming Asset 2
3. Computes momentum of the RS line:
Mom(RS) = SMA( change(RS) , momentum length )
4. Generates CRE signal:
- Bullish CRE (+1): RS > its own SMA **and** RS momentum > 0
→ Asset 2 is outperforming **and** the outperformance is accelerating
- Bearish CRE (-1): RS < its own SMA **and** RS momentum < 0
→ Asset 2 is underperforming **and** the underperformance is accelerating
- Neutral (0): otherwise
Visual Output
- Blue line: Relative Strength (Asset 2 vs Asset 1, scaled around 100)
- Gray hline at 50: Neutral level
- Orange line: Momentum of RS (oscillates around zero)
- Green upward triangles (bottom): Bullish Capital Rotation Event
- Red downward triangles (top): Bearish Capital Rotation Event
- Background coloring: light green (bullish rotation), light red (bearish rotation)
Why this combination?
- Raw RS ratio shows **who is stronger**, but can be slow-moving or noisy.
- Adding momentum of RS filters for **dynamic shifts** — catching the moments when rotation is actually gaining steam rather than just drifting.
- The dual-condition logic (RS above/below average + positive/negative momentum) reduces false signals and focuses on meaningful acceleration in relative performance.
Typical Use Cases
- Macro rotation: SPY vs GLD (risk-on vs safe-haven), SPY vs TLT (equities vs bonds), QQQ vs XLF (tech vs financials)
- Sector rotation: XLE vs XLU (energy vs utilities), XLK vs XLV (tech vs healthcare)
- Currency pairs or crypto: BTCUSD vs ETHUSD, USD vs gold, etc.
- Timeframes: Daily/weekly for macro swings, 4h/1h for shorter tactical rotations
How to Use
1. Apply to any chart (timeframe of your choice).
2. Set Asset #1 (benchmark) and Asset #2 (target) via inputs.
3. Adjust RS Length (default 14) and Momentum Length (default 9) to match your timeframe.
4. Watch for triangle signals + background color change as early clues of rotation.
5. Combine with price action on the actual assets — CRE is a relative bias tool, not a direct buy/sell signal.
6. Best in trending or regime-shifting markets; less useful in strong correlated moves.
Inputs
- Asset #1 (lead): default SPY
- Asset #2 (rotate into): default GLD
- RS Length: smoothing period for relative strength (default 14)
- Momentum Length: smoothing period for RS change (default 9)
Publishing Notes
- Publish with a clean chart (only this indicator active).
- Recommended example setup: daily or 4h chart with SPY + GLD (or your preferred pair).
- No other overlays/indicators needed for basic interpretation.
This script is fully open-source for learning and transparency. It is an educational tool — not a guaranteed predictor of market direction. Trading and investing involve significant risk of loss.
Feedback welcome — happy rotating! Indicator

MTF Moving Averages [ST]**MTF Moving Averages ** is a professional Multi-Timeframe (MTF) indicator designed to plot Daily and Weekly trend lines directly on intraday charts (e.g., 5m, 15m, 1H).
This tool solves the common problem of losing "big picture" context while day trading. It allows you to see exactly where the Daily 20 EMA or Weekly 200 SMA sits without ever switching timeframes.
### 🛠 Key Features
1. **Stepline Accuracy (The "Step" Style):**
* Unlike standard MTF indicators that smooth out lines (creating a repainting illusion), this tool uses a **Stepline** visualization by default.
* **Why it matters:** It shows exactly what the Daily/Weekly value was *at that specific moment in time*. If the line is flat, the higher timeframe bar hasn't closed yet. This offers zero lag and true historical accuracy.
2. **Ultra-Clean Interface:**
* **Status Line Hidden:** We have removed the cluttered list of values (often shown as "Ø Ø Ø") from the chart header. The title remains strictly `MTF MAs `.
* **Data Window:** Exact values are fully accessible via the Data Window or by hovering over the lines.
3. **Dual Groups (D & W):**
* **Daily Group:** EMA 9, EMA 20, SMA 50, SMA 200.
* **Weekly Group:** EMA 9, EMA 20, SMA 50, SMA 200.
* *Note:* By default, only the **Daily 9, 20, and 50** are enabled to keep the chart clean. The SMA 200 and Weekly lines can be enabled in the settings.
### 📚 How to Use
* **Trend Filter:** Use the **Daily EMA 20 (Orange)** as your primary "Line in the Sand". If the intraday price is holding above the Daily 20, the macro trend is bullish.
* **Major Reversals:** The **SMA 200 (Red)** on Daily/Weekly frames acts as major institutional support/resistance. These are high-probability areas for bounces or rejections.
* **Confluence:** Watch for intraday setups (like flags or wedges) that form right on top of a Daily "Step". These setups have higher success rates due to higher timeframe alignment.
### ⚙️ Standardization
* Part of the suite.
* English-native codebase and settings.
* Optimized using `barmerge.gaps_off` for seamless data connectivity.
---
*Disclaimer: This tool is for educational purposes and technical analysis assistance only. Always manage your risk.* Indicator

5, 8, 21, 200 EMA Daily 200 SMA Daily VWAPMulti-timeframe EMA stack with Daily VWAP & 200 SMA
This clean overlay indicator combines popular exponential moving averages (5, 8, 21, 200 EMA on current timeframe) with a higher-timeframe Daily 200 SMA and session-resetting Daily VWAP — perfect for trend following, dynamic support/resistance, and intraday bias on stocks, forex, crypto, or futures.
Key Features:
• 5 EMA (very fast) – quick momentum & scalping filter (default lime)
• 8 EMA (fast) – short-term trend & pullback entries (default blue)
• 21 EMA (medium) – intermediate trend & confluence zone (default orange)
• 200 EMA (long) – major trend direction & big-picture support/resistance (default purple)
• Daily 200 SMA – smooth higher-timeframe trend line that stays constant on lower TFs (default teal, thicker line)
• Daily VWAP – volume-weighted average price that resets each trading day (default yellow)
All lines feature right-edge labels that auto-refresh daily and follow price action (toggleable + size adjustable).
Common uses:
- Trend alignment: Trade in direction of higher EMAs + Daily 200 SMA
- Pullbacks: Enter near 5/8/21 EMA when aligned with 200s
- Intraday mean reversion: Use Daily VWAP as fair value anchor
- Dynamic S/R: Watch reactions at these levels
Fully customizable colors, lengths, and label visibility. Clean code, no repainting issues on historical bars.
Happy trading! Indicator

Indicator

Indicator

paigep.llc - SuperMASuperMA is a multi-layered moving-average and candle-coloring system that combines SMA, EMA, and optional HMA logic to help traders visualize trend shifts, pullbacks, and momentum changes in a clean, structured way.
The script includes multiple modules: trend-based moving averages, pullback signals, exit logic, and an optional HMA cross engine.
📌 Core Features
1. Full SMA + EMA Framework
The indicator plots multiple moving averages (8, 9, 13, 20, 50, 200) using both SMA and EMA calculations. Each line automatically colors bullish or bearish based on its relationship to the 200-period baseline.Users can toggle SMAs and EMAs independently for clearer chart control.
2. Main Trend Entry & Exit Logic (8×200 and 8×20)
Built-in crossover logic detects:
Main Entry: SMA 8 crossing above/below EMA 200
Main Exit: SMA 8 and SMA 20 cross (with an option to choose which SMA is treated as the “fast” leg)
A “first exit only” option allows the script to ignore additional exit signals until a new trend regime begins.
3. Pullback Module (20 SMA Interaction)
Pullback entries and exits occur when price crosses the 20 SMA during existing trend conditions.
This includes:
Pullback entries through the 20 SMA
Pullback exits back across the 20 SMA
Labels and candle colors are available for all pullback events.
4. Optional HMA Cross Module
A separate module allows traders to use two Hull Moving Averages (HMA) with customizable:
Lengths
Independent timeframes
Line colors
Cross-based entries and exits
This module has its own events, labels, and optional candle coloring.
5. Advanced Candle Coloring System
Candle coloring is layered in priority order, based on:
Main trend entries
Main exits
HMA entries
HMA exits
Pullback entries
Pullback exits
Trend-only candles (based on SMA 8 relative to EMA 200)
Users may also independently color wicks and borders.
6. Configurable Alerts (Fully Decoupled from Visuals)
Alerts are available for all major events, including:
Main Entries (8×200)
Main Exits (8×20)
Pullback Entries and Exits
HMA Entries and Exits
Bull or Bear Trend candles
Any colored candle event
Alerts can fire on bar close only or intrabar, depending on user preference.
📌 Use Cases
SuperMA helps traders visualize:
Trend direction using SMA/EMA structure
Momentum shifts through HMA crosses
Pullback zones around the 20 SMA
Early regime transitions based on the 8×200 relationship
Candle-level context through color-coded bars
The indicator works across all markets and timeframes.
⚠️ Note
This tool is for visual and analytical assistance only. It does not guarantee future performance and should be combined with additional analysis and risk management. Indicator

paigep.llc - SuperMA
SuperMA is a multi-layered moving-average and candle-coloring system that combines SMA, EMA, and optional HMA logic to help traders visualize trend shifts, pullbacks, and momentum changes in a clean, structured way.
The script includes multiple modules: trend-based moving averages, pullback signals, exit logic, and an optional HMA cross engine.
📌 Core Features
1. Full SMA + EMA Framework
The indicator plots multiple moving averages (8, 9, 13, 20, 50, 200) using both SMA and EMA calculations. Each line automatically colors bullish or bearish based on its relationship to the 200-period baseline. Users can toggle SMAs and EMAs independently for clearer chart control.
2. Main Trend Entry & Exit Logic (8×200 and 8×20)
Built-in crossover logic detects:
Main Entry: SMA 8 crossing above/below EMA 200
Main Exit: SMA 8 and SMA 20 cross (with an option to choose which SMA is treated as the “fast” leg)
A “first exit only” option allows the script to ignore additional exit signals until a new trend regime begins.
3. Pullback Module (20 SMA Interaction)
Pullback entries and exits occur when price crosses the 20 SMA during existing trend conditions.
This includes:
Pullback entries through the 20 SMA
Pullback exits back across the 20 SMA
Labels and candle colors are available for all pullback events.
4. Optional HMA Cross Module
A separate module allows traders to use two Hull Moving Averages (HMA) with customizable:
Lengths
Independent timeframes
Line colors
Cross-based entries and exits
This module has its own events, labels, and optional candle coloring.
5. Advanced Candle Coloring System
Candle coloring is layered in priority order, based on:
Main trend entries
Main exits
HMA entries
HMA exits
Pullback entries
Pullback exits
Trend-only candles (based on SMA 8 relative to EMA 200)
Users may also independently color wicks and borders.
6. Configurable Alerts (Fully Decoupled from Visuals)
Alerts are available for all major events, including:
Main Entries (8×200)
Main Exits (8×20)
Pullback Entries and Exits
HMA Entries and Exits
Bull or Bear Trend candles
Any colored candle event
Alerts can fire on bar close only or intrabar, depending on user preference.
Use Cases
SuperMA helps traders visualize:
Trend direction using SMA/EMA structure
Momentum shifts through HMA crosses
Pullback zones around the 20 SMA
Early regime transitions based on the 8×200 relationship
Candle-level context through color-coded bars
The indicator works across all markets and timeframes.
⚠️ Note
This tool is for visual and analytical assistance only. It does not guarantee future performance and should be combined with additional analysis and risk management. Indicator

Fixed High Timeframe Moving AveragesFixed High Timeframe Moving Averages (W/D/4H)
Summary
This indicator plots essential, high-timeframe (HTF) Moving Averages onto your chart, **no matter which timeframe you are currently viewing**.
It is designed for traders who need multi-timeframe context at a glance. Stop switching charts to see where the 200-Week or 50-Day MA is—now you can see all critical HTF levels directly on your 5-minute (or any other) chart.
---
Who it’s for
Traders who rely on moving averages but like to work on lower chart timeframes while keeping higher timeframe context in sight. If you scalp on 1–15m yet want Weekly/Daily/4H MAs always visible, this is for you.
---
What it shows
Pinned (“fixed”) moving averages from higher timeframes—Weekly (20/100/200) , Daily (50/100/200/365) and 4H (200) —rendered on any chart timeframe. Your favorite HTF MAs stay on screen no matter what TF you’re currently analyzing.
---
Features
* **MA types:** SMA, EMA, VWMA, Hull.
* **Fully configurable:** toggle each line, set periods, colors, and thickness.
* **Two alert modes (see below):** intrabar vs confirmed HTF close.
* **Works on any symbol & chart TF** using `request.security` to fetch HTF data.
---
Alerts & Modes
This indicator solves the biggest problem with MTF alerts: false signals. You can choose one of two modes:
1. **Intrabar mode** — compares current chart price to the HTF MA. Triggers as soon as price crosses the HTF line; great for early signals but may update until the HTF bar closes.
2. **Confirmed mode** — checks HTF close vs HTF MA. Signals only on the higher-TF bar close; fewer false starts, no intrabar repainting on that TF.
Per-line *Cross Above / Cross Below* conditions are provided for all enabled MAs (e.g., “20W — Cross Above”, “365D — Cross Below”, etc.).
**How to use alerts:** add the script → “Create Alert” → pick any condition from the script’s list.
---
Why this helps
* Keeps Weekly/Daily structure visible while you execute on LTF.
* Classic anchors (e.g., 200D, 20W/100W/200W) are popular for trend bias, dynamic support/resistance, and pullback context.
* Lets you standardize MA references across all your lower-TF playbooks.
---
Notes on confirmation & repainting
* Intrabar signals can change until the higher-TF bar closes (that’s expected with multi-TF data).
* Confirmed mode waits for the HTF close—cleaner, but later. Choose what fits your workflow.
---
Quick setup
1. Pick `MA Type` (SMA/EMA/VWMA/Hull).
2. Enable the HTF lines you want (Weekly 20/100/200; Daily 50/100/200/365; 4H 200).
3. Choose `Alert Mode` (Intrabar vs Confirmed).
4. Style colors/widths to taste and set alerts on the lines you care about.
---
Good practice
* Combine HTF MAs with price action (swings, structure, liquidity grabs) rather than using them in isolation.
* Always validate signals in your execution TF and use a risk plan tailored to volatility.
* Protect your capital: position sizing, stops, and disciplined risk management matter more than any single line on the chart.
---
Disclaimer
For educational/informational purposes only; not financial advice. Trading involves risk—manage it responsibly. Indicator

ORBs, EMAs, SMAs, AVWAPThis is an update to a previously published script. In short the difference is the added capability to adjust the length of EMAs. Also added 3 customizable SMAs. Enjoy! Let me know what you think of the script please. This is only second one I have ever done. Through practice and people like @LuxAlgo and other Pinescripters this isn't possible. Tedious hrs with ChatGPT to correct nuances, who doesnt seem to learn from (insert pronoun) mistakes
This all-in-one indicator combines key institutional tools into a unified framework for intraday and swing trading. Designed for traders who use multi-session analysis and dynamic levels, it automatically maps out global session breakouts, moving averages, and volume-weighted anchors with high clarity.
Features include:
🕓 Tokyo, London, and New York ORBs (Opening Range Breakouts) — 30-minute configurable range boxes that persist until the next New York open.
📈 Anchored VWAP with Standard Deviation Bands — dynamically anchorable to session, week, or month for institutional-grade price tracking.
📊 Exponential Moving Averages (9, 20, 113, 200) — for short-, mid-, and long-term momentum structure.
📉 Simple Moving Averages (20, 50, 100) — fully customizable lengths, colors, and visibility toggles for trend confirmation.
🏁 Prior High/Low Levels (PDH/PDL, PWH/PWL, PMH/PML) — automatically plotted from previous day, week, and month, with labels placed at each session’s midpoint.
🎛️ Session-Aligned Time Logic — all time calculations use New York session anchors with DST awareness.
💡 Clean Visualization Options — every component can be toggled on/off, recolored, or customized for your workflow.
Best used for:
ORB break-and-retest setups
VWAP and EMA rejections
Confluence-based trading around key session levels
Multi-session momentum tracking Indicator

ORBs, EMAs, AVWAPThis Pine Script (version 6) is a multi-session trading indicator that combines Opening Range Breakouts (ORBs), Exponential Moving Averages (EMAs), and an Anchored VWAP (AVWAP) system — all in one overlay script for PulseWire.
Here’s a clear breakdown of its structure and functionality:
🕒 1. Session Logic and ORB Calculation
Purpose: Identify and plot the high and low of the first 30 minutes (default) for the Tokyo, London, and New York trading sessions.
Session Anchors (NY time):
Tokyo → 20:00
London → 03:00
New York → 09:30
(All configurable in inputs.)
ORB Duration: Default is 30 minutes (orbDurationMin), also user-configurable.
Resets:
London and NY ORBs reset at the start of each new New York trading day (17:00 NY time).
Tokyo ORB resets independently using a stored timestamp.
Process:
For each session:
While the time is within the ORB window, the script captures the session’s high and low.
Once the window closes, those levels remain plotted until reset.
Plot Colors:
Tokyo → Yellow (#fecc02)
London → Gray (#8c9a9c)
New York → Magenta (#ff00c8)
These form visible horizontal lines marking the prior session ranges — useful for breakout or retest trading setups.
📈 2. EMA System
Purpose: Provide trend and dynamic support/resistance guidance.
It calculates and plots four EMAs:
EMA Period Color Purpose
EMA 9 Short-term Green Fast signal
EMA 20 Short-term Red Confirms direction
EMA 113 Medium Aqua Trend filter
EMA 200 Long-term Orange Macro trend baseline
Each EMA is plotted directly on the price chart for visual confluence with ORB and VWAP levels.
⚖️ 3. Anchored VWAP (AVWAP)
Purpose: Display a volume-weighted average price anchored to specific timeframes or events, optionally with dynamic deviation or percentage bands.
Features:
Anchor Options:
Time-based: Session, Week, Month, Quarter, Year, Decade, Century
Event-based: Earnings, Dividends, Splits
VWAP resets when the chosen anchor condition is met (e.g., new month, new earnings event, etc.).
Bands:
Up to three levels of symmetric upper/lower bands.
Choose between Standard Deviation or Percentage-based widths.
Display Toggles:
Each band’s visibility is optional.
VWAP can be hidden on 1D+ timeframes (hideonDWM option).
Color Scheme:
VWAP: Fuchsia (magenta-pink) line
Bands: Green / Olive / Teal with light-filled zones
⚙️ 4. Technical Highlights
Uses ta.vwap() with built-in band calculations.
Handles instruments with or without volume (errors if missing volume).
Uses time-zone aware timestamps (timestamp(NY_TZ, …)).
Uses timeframe.change() to detect new anchors for the VWAP.
Employs persistent variables (var) to maintain session state across bars.
💡 In Practice
This indicator is designed for multi-session intraday traders who:
Trade Tokyo, London, or NY open breakouts or retests.
Use EMA stacking and crossovers for trend confirmation.
Use Anchored VWAP as a fair-value or mean-reversion reference.
Need clear visual structure across different market sessions.
It provides strong session separation, trend context, and volume-weighted price reference — making it ideal for discretionary or semi-systematic trading strategies focused on liquidity zones and session momentum. Indicator

TGFA Flexible Alerts Multi-MA CrossoversTGFA Flexible Alerts, Multi-MA Crossovers
Description
Flexible MA crossovers with BUY/SELL alerts, customizable candle colors, and an info box for ATR/volatility insights. Supports EMA/SMA/HMA/VWAP on any chart.
Overview
TGFA Flexible Alerts is a versatile Pine Script indicator for traders seeking customizable moving average (MA) crossovers, visual signals, and quick-reference metrics. It overlays crossover lines (e.g., fast EMA over slow SMA), generates BUY/SELL labels and alerts, colors candles based on themes, and includes an optional info box with ATR bands, support/resistance, and trend projections. Built for any symbol and timeframe (optimized for 1H intraday), it auto-detects Heikin Ashi charts and handles mixed MA types like responsive HMA with lagging EMAs. All logic uses built-in TA functions for reliability—no repainting on confirmed bars.
Key Features
MA Crossover Engine: Configurable lines (EMA, SMA, HMA, VWAP) with dynamic colors (HMA tints green/red based on slope). Enable/disable via inputs.
Invert Signals Toggle: Flips BUY/SELL logic for mixed MA setups (e.g., HMA as fast line over EMA).
Reasoning: Traditional crossovers assume a fast line (low lag) crossing above a slow line (high lag) for buys. HMA's hull design makes it ultra-responsive, so it may "lead" too aggressively—causing premature signals. Inverting aligns it with user intuition (e.g., HMA dipping below then recovering signals strength), reducing false positives in trending markets. Test on your pairs!
Visual Alerts: BUY/SELL labels at crossover price (with optional price display and offset adjustment).
Single MA Overlays: Independent plots for EMA/SMA/HMA/VWAP (length 0 to hide).
Info Box: Real-time table with current price, ±1/2 ATR bands, median price (over lookback), trend (SMA50 slope), volatility % (ATR normalized), support/resistance (recent highs/lows), and reversal projections (tied to SMA50 pivot for up/down bias).
Candle Coloring: 20+ themes (dark/light canvases) for bull/bear/reversal/low-volume bars—e.g., Emerald Blaze greens uptrends, dims on low vol. Toggle off for no changes.
Chart Source Flexibility: Auto-switches to Heikin Ashi if detected; manual override for Regular/HA.
Alerts fire on crossovers/crossunders (custom messages with ticker/interval). Open-source for forking.
How to Use
Add to Chart: Search in PulseWire's public library, apply to any symbol (e.g., stocks, forex). Best on 1H for intraday, but works on daily/weekly too.
Setup Crossovers: Choose Line 1/2 types/lengths (e.g., HMA 9 over SMA 20). Enable "Invert Signals" if using HMA—prevents lag mismatches in volatile assets.
Alerts & Labels: Toggle labels for visuals; set PulseWire alerts on "Buy"/"Sell" conditions. Use offset for crowded charts.
Info Box Insights: Enable for quick scans—e.g., enter long near support if trend is bullish and price > median. Adjust ATR length (default 14) for sensitivity.
Candle Themes: Pick a scheme (e.g., Neon Pulse for dark mode); it overrides bar colors without altering data.
Customization Tip: For HMA-heavy setups, invert + short lengths (5-9) catch turns early; pair with volume filter in alerts.
Limitations & Disclaimers - Designed for overlay on price charts; may overlap in tight ranges—adjust transparency via styles.
HMA can repaint intra-bar; signals confirm on close. Not back tested for all assets—validate with strategy tester.
Info box projections use SMA(50) as a trend pivot (same for up/down as reference); customize via code for advanced calcs. Candle colors are cosmetic only.
This is an analysis tool, not advice. Trading involves risk; combine with fundamentals/news. Past performance isn't indicative of future results. No liability for losses.
I'm still a newbie, so feedback encouraged!
Thank you!!
ThisGirl
Indicator

Indicator

Anrazzi - EMAs/ATR - 1.0.2Description:
The Anrazzi - EMAs/ATR indicator is a versatile tool for technical traders looking to monitor multiple moving averages alongside the Average True Range (ATR) on any chart. Designed for simplicity and customization, it allows traders to visualize up to six moving averages with configurable type, color, and length, while keeping real-time volatility information via ATR directly on the chart.
This indicator is perfect for spotting trends, identifying support/resistance zones, and gauging market volatility for intraday or swing trading strategies.
Key Features:
Supports up to six independent moving averages (MA1 → MA6)
Each MA is fully customizable:
Enable/disable individually
Type: EMA or SMA
Length
Color
ATR Display:
Custom timeframe
Color and position configurable
Adjustable multiplier
Compact and organized settings for easy configuration
Lightweight and efficient code for smooth chart performance
Watermark
Inputs / Settings:
MA Options: MA1 → MA6 (Enable/Disable, Type, Length, Color)
Additional Settings: ATR (Enable, Timeframe, Color, Multiplier)
How to Use:
Enable the moving averages you want to track
Configure type, length, and color for each MA
Enable ATR if needed and adjust settings
Watch MAs plotted dynamically and ATR in bottom-right corner
Recommended For:
Day traders and swing traders
Trend-following strategies
Volatility analysis and breakout detection
Traders needing a compact multi-MA dashboard
Indicator

Multiple MAsHere's a well-written description in English for your "Multiple MAs" indicator that you can use when publishing on PulseWire. It’s concise, professional, and highlights the key features of the indicator while explaining its purpose for traders.
---
### Multiple MAs Indicator
#### Overview
The **Multiple MAs** indicator is a versatile and straightforward tool designed to help traders visualize price trends using multiple Simple Moving Averages (SMAs) on a single chart. By plotting six SMAs with customizable lengths (MA5, MA10, MA20, MA50, MA100, and MA200), this indicator provides a clear view of short-term, medium-term, and long-term trends, making it ideal for trend-following strategies, crossover analysis, and identifying potential support/resistance levels.
#### Features
- **Customizable MA Lengths**: Adjust the periods of all six moving averages (MA5, MA10, MA20, MA50, MA100, MA200) to suit your trading style and timeframe.
- **Distinct Visuals**: Each MA is plotted with a unique color and line width for easy identification:
- MA5 (Dodger Blue, 1px)
- MA10 (Green, 1px)
- MA20 (Red, 2px)
- MA50 (Purple, 3px)
- MA100 (Gray, 3px)
- MA200 (White, 3px)
- **Overlay on Price Chart**: The indicator overlays directly on the price chart, allowing for seamless integration with other technical analysis tools.
- **High Precision**: Displays values with 8-decimal precision, ensuring accuracy for assets with small price movements (e.g., forex pairs or cryptocurrencies).
#### How to Use
1. **Trend Identification**: Use the longer MAs (e.g., MA100, MA200) to determine the overall trend direction. If the price is above these MAs, the trend is likely bullish; if below, it’s likely bearish.
2. **Crossover Signals**: Look for crossovers between shorter MAs (e.g., MA5 crossing MA20) for potential entry or exit signals. For example:
- A bullish signal occurs when a shorter MA crosses above a longer MA.
- A bearish signal occurs when a shorter MA crosses below a longer MA.
3. **Support and Resistance**: MAs often act as dynamic support or resistance levels. Watch for price reactions around these lines, especially the MA50, MA100, and MA200.
4. **Divergence Analysis**: Compare the slope of different MAs to identify potential trend reversals or weakening momentum.
#### Settings
- **MA5 Length**: Default is 5 bars.
- **MA10 Length**: Default is 10 bars.
- **MA20 Length**: Default is 20 bars.
- **MA50 Length**: Default is 50 bars.
- **MA100 Length**: Default is 100 bars.
- **MA200 Length**: Default is 200 bars.
#### Best Practices
- **Timeframe**: This indicator works on any timeframe but is particularly effective on daily, 4-hour, and 1-hour charts for swing trading or trend-following strategies.
- **Combine with Other Tools**: Pair the Multiple MAs with other indicators like RSI, MACD, or volume analysis to confirm signals and avoid false breakouts.
- **Adjust for Volatility**: For highly volatile assets, consider increasing the MA lengths to reduce noise and focus on broader trends.
#### Notes
- The indicator is lightweight and optimized for performance, ensuring it runs smoothly even on lower timeframes.
- Colors and line widths are pre-set for clarity but can be customized in the indicator settings if needed.
#### Credits
Created by kosar_v. Feedback and suggestions are welcome to improve this tool for the PulseWire community!
Indicator

MACD Volume Strategy (BBO + MACD State, Reversal Type)Overview
MACD Volume Strategy (BBO + MACD State, Reversal Type) is a momentum-based reversal system that combines MACD crossover logic with volume filtering to enhance signal accuracy and minimize noise. It aims to identify structural trend shifts and manage risk using predefined parameters.
※This strategy is for educational and research purposes only. All results are based on historical simulations and do not guarantee future performance.
Strategy Objectives
Identify early trend transitions with high probability
Filter entries using volume dynamics to validate momentum
Maintain continuous exposure using a reversal-style model
Apply a consistent 1:1.5 risk-to-reward ratio per trade
Key Features
Integrated MACD and volume oscillator filtering
Zero repainting (all signals confirmed on closed candles)
Automatic position flipping for seamless direction shifts
Stop-loss and take-profit based on recent structural highs/lows
Trading Rules
Long Entry Conditions
MACD crosses above the zero line (BBO Buy arrow)
Volume oscillator is positive (short EMA > long EMA)
MACD is above the signal line
Close any existing short and enter a new long
Short Entry Conditions
MACD crosses below the zero line (BBO Sell arrow)
Volume oscillator is positive
MACD is below the signal line
Close any existing long and enter a new short
Exit Rules
Take Profit (TP) = Entry ± (risk distance × 1.5)
Stop Loss (SL) = Recent swing low (for long) or high (for short)
Early Exit = Triggered when a reversal signal appears (flip logic)
Risk Management Parameters
Pair: ETH/USD
Timeframe: 10-minute
Starting Capital: $3,000
Commission: 0.02%
Slippage: 2 pip
Risk per Trade: 5% of account equity (adjusted for sustainable practice)
Total Trades: 312 (backtest on selected dataset)
※Risk parameters are fully configurable and should be adjusted to suit each trader's personal setup and broker conditions.
Parameters & Configurations
Volume Short Length: 6
Volume Long Length: 12
MACD Fast Length: 11
MACD Slow Length: 21
Signal Smoothing: 10
Oscillator MA Type: SMA
Signal Line MA Type: SMA
Visual Support
Green arrow = Long entry
Red arrow = Short entry
MACD lines, signal line, and histogram
SL/TP markers plotted directly on the chart
Strategic Advantages & Uniqueness
Volume filtering eliminates low-participation, weak signals
Structurally aligned SL/TP based on recent market pivots
No repainting — decisions are made only on closed candles
Always in the market due to the reversal-style framework
Inspirations & Attribution
This strategy is inspired by the excellent work of:
Bitcoinblockchainonline – “BBO_Roxana_Signals MACD + vol”
Leveraging MACD zero-line cross and volume oscillator for intuitive signal generation.
HasanRifat – “MACD Fake Filter ”
Introduced a signal filter using MACD wave height averaging to reduce false positives.
This strategy builds upon those ideas to create a more automated, risk-aware, and technically adaptive system.
Summary
MACD Volume Strategy is a clean, logic-first automated trading system built for precision-seeking traders. It avoids discretionary bias and provides consistent signal logic under backtested historical conditions.
100% mechanical — no discretionary input required
Designed for high-confidence entries
Can be extended with filters, alerts, or trailing stops
※Strategy performance depends on market context. Past performance is not indicative of future results. Use with proper risk management and careful configuration.
Strategy
