Market Entropy IndexMarket Entropy Index (MEI)
Most risk indicators react to price. They measure what has already happened. The Market Entropy Index takes a different approach: it measures the structural organization of the market itself, identifying fragility before it becomes visible in price. When sector participation narrows, when sectors stop agreeing on direction, and when credit markets become complacent, the MEI detects these precursor conditions. It applies information theoretic entropy to three independent dimensions of market structure, producing a single composite that distinguishes broad, healthy markets from concentrated, fragile ones. This makes it a leading indicator of structural risk, not a coincident crash detector.
What entropy means in financial markets
Entropy, as formalized by Shannon (1948), quantifies uncertainty in a probability distribution. In information theory, a distribution where all outcomes are equally likely has maximum entropy. A distribution concentrated on a single outcome has minimum entropy. Applied to financial markets, this framework has been used in two distinct ways that should not be confused.
The first is temporal return entropy: measuring how the distribution of an index's daily returns changes over time. Risso (2008) showed that Shannon entropy of stock market return distributions drops before financial crashes, as returns become more extreme and less uniformly distributed. Zunino et al. (2009) found that permutation entropy of return series tracks market efficiency and deteriorates during stress. Gu (2017) extended this to multiple time scales. These studies all measure the statistical properties of a single return series over time.
The second is cross-sectional entropy, which is what the MEI uses. Instead of asking "how are returns distributed over time?", it asks "how is market activity distributed across sectors right now?" When all nine S&P 500 GICS sectors contribute equally to market movement, the entropy of their return distribution reaches its theoretical maximum: roughly log2(9) = 3.17 bits. This corresponds to broad, healthy participation. When movement concentrates in two or three sectors while the rest are flat, entropy drops. The market relies on a narrow base.
These two types of entropy can move in opposite directions. During an acute crash, temporal return entropy drops (Risso's finding: returns become extreme and non-normal). But cross-sectional breadth entropy often rises, because all sectors sell off together, producing a more uniform distribution across the cross-section. The MEI does not measure temporal return entropy. It measures cross-sectional breadth entropy and two related structural conditions. This distinction matters for interpretation (see the section on what the MEI does not do).
How the MEI is constructed
The indicator combines three dimensions, each measuring a distinct aspect of market fragility. All three were validated through statistical screening with Bonferroni correction across seven different parameter configurations to guard against data-mining bias.
Sector Breadth Concentration (weight: 0.40)
This is the primary dimension. It computes the Shannon entropy of the distribution of smoothed absolute returns across nine GICS sector ETFs (XLB, XLE, XLF, XLI, XLK, XLP, XLU, XLV, XLY) over a 21-day rolling window. The entropy value is normalized to the theoretical maximum so it ranges from 0 (all activity in one sector) to 1 (perfectly uniform distribution).
The critical finding from backtesting: low sector entropy (concentrated breadth) is the danger condition, not high entropy. When market movement narrows to a few sectors, the rally or sell-off lacks structural support. This is consistent with the well-documented market breadth divergence effect: narrow rallies tend to precede corrections. In our testing, the low-entropy tercile showed significantly worse forward returns than the high-entropy tercile across a 21-day horizon (spread = +1.18%, t = 5.81, p = 7.3e-09, Bonferroni-significant in all seven parameter configurations).
Sector Directional Discord (weight: 0.30)
This dimension measures the fraction of sectors that agree on daily direction (all up or all down), averaged over 21 days. When eight of nine sectors move in the same direction, concordance is high, indicating a coherent market. When sectors split nearly evenly between positive and negative days, concordance drops, signaling confusion, rotation, or conflicting macro forces.
Low concordance (high discord) is the danger condition. Sectors disagreeing on direction means the market lacks conviction and is vulnerable to dislocations. This dimension was Bonferroni-significant in five of seven parameter configurations (21d: spread = +0.97%, t = 5.20, p = 2.2e-07).
Credit Complacency (weight: 0.30)
The third dimension measures the rolling standard deviation of the daily return spread between iShares High Yield Corporate Bond ETF (HYG) and iShares Investment Grade Corporate Bond ETF (LQD), normalized by its 252-day average. This ratio captures how volatile credit spreads are relative to their recent history.
Low credit spread volatility is the danger condition. When credit markets are calm and spreads barely move, it often reflects complacent risk pricing. The empirical parallel is well-supported: Gilchrist and Zakrajsek (2012) showed that credit spread dynamics, specifically the excess bond premium, predict economic downturns and equity returns. In our testing, this dimension produced the strongest individual t-statistic (63d: spread = +1.89%, t = 6.73, p = 2.2e-11, Bonferroni-significant in three of seven configurations).
Signal processing
Each dimension is z-scored over a 252-day lookback and clipped at three standard deviations. The z-scores are sign-inverted so that high values consistently indicate danger across all three dimensions. After weighting, the composite is re-standardized over 252 days to restore the variance lost through averaging weakly correlated signals. The result is scaled to a 0-10 range (5.0 + z * 2.0) and smoothed with a Kaufman Adaptive Moving Average (Kaufman, 2013). The KAMA adjusts its smoothing speed based on the efficiency ratio of the composite: during clear regime transitions, it responds quickly; during choppy sideways periods, it filters noise. A minimum smoothing constant floor prevents the filter from becoming excessively sluggish.
How to read the MEI
0 to 3: Low Risk. All three dimensions read safe. Sectors participate broadly, agree on direction, and credit markets are actively pricing risk. These conditions are historically associated with favorable forward equity returns.
3 to 7: Normal. No structural signal in either direction. The market is in equilibrium. This is the expected reading roughly two-thirds of the time.
7 to 10: Elevated Risk. One or more dimensions show stress. Sector participation is narrowing, directional agreement is breaking down, or credit markets have become complacent. The higher the reading, the more dimensions agree on risk.
The dashboard shows each dimension individually, so you can diagnose what is driving the composite. The historical percentile tells you where the current reading sits relative to the past 252 days. The trend direction (with arrow symbols) shows whether risk is rising or falling.
What the MEI detects and what it does not
The MEI is a leading indicator of structural fragility, not a coincident crash detector. It measures conditions that build up before market stress: narrowing sector participation, loss of directional agreement, and complacent credit pricing. These are precursor conditions. They describe a market that has become structurally fragile, not one that is already falling apart.
During an acute sell off, the MEI typically drops toward the green zone. This is not a malfunction. When all sectors sell off together, breadth entropy actually increases (uniform distribution across sectors), concordance rises (all sectors agree on the down direction), and credit spread volatility spikes (the opposite of complacency). All three dimensions read "safe" precisely because the structural fragility has already resolved through the sell-off itself.
The practical implication: the MEI is most useful in the quiet periods before stress, when markets look calm but the underlying structure is deteriorating. If the MEI reads 8 while the SPX is making new highs, that is a warning worth paying attention to. If the MEI reads 2 during a violent correction, that means the correction is broad-based and structural participation is actually healthy, which is historically a better setup for recovery than a narrow, concentrated decline.
How to use it in practice
The MEI is a regime monitor, not a timing signal. It answers the question "what kind of market are we in?" rather than "should I buy or sell today?" The most productive way to use it:
As a confluence filter: combine the MEI with your existing trend-following or mean-reversion strategy. When the MEI reads above 7, tighten stops, reduce position sizes, or require stronger entry signals. When it reads below 3, conditions favor taking positions.
As an allocation tool: for portfolio managers running multi-asset or tactical allocation, the MEI provides a daily structural risk reading that can scale equity exposure. Reduce equity allocation when the composite is elevated, increase when it is low.
As a diagnostic tool: enable the individual components (Breadth Concentration, Directional Discord, Credit Complacency) to understand what is driving the composite. If only one dimension is elevated while the others are normal, the risk may be localized. If all three converge, the structural case is stronger.
For monitoring credit conditions: the Credit Complacency dimension alone serves as a real-time gauge of credit market risk pricing. Low readings (complacency) have historically preceded episodes of spread widening.
Quant fund applications
For systematic portfolio managers and quantitative research teams, the MEI framework offers several practical applications.
As a regime classifier for conditional strategies: most equity strategies behave differently in ordered versus disordered markets. Momentum strategies, for example, tend to work well when breadth entropy is high (broad participation) and poorly when it is low (concentrated leadership). The MEI provides a daily regime classification that can condition strategy selection or parameter adjustment. In our backtesting, the composite showed a spread of +2.86% (21-day forward returns, t = 5.91) in high-volatility regimes, offering a quantitatively meaningful signal for regime-conditional allocation.
As a risk budget input: the three z-scored danger signals can feed directly into a risk budgeting framework. When breadth_danger or credit_danger exceeds one standard deviation, the risk model can automatically reduce gross exposure or hedge tail risk. The low cross-correlation between dimensions (breadth-credit: rho = -0.07, breadth-discord: rho = 0.20) means each dimension adds genuine incremental information to the risk estimate.
As an alpha decay monitor: sector concentration (low breadth entropy) is one mechanism through which crowded trades develop. When the breadth dimension rises, it may indicate that a previously broad factor exposure has narrowed to a few names or sectors, which is a warning sign for factor crowding and potential alpha decay.
As a multi-asset overlay: the framework extends naturally beyond equities. The same entropy-based approach can be applied to any cross-section of assets (currencies, commodities, fixed income sectors) to detect concentration and complacency.
Limitations
This indicator has clear boundaries that users should understand.
It detects fragility, not crashes. The MEI measures structural precursors (concentration, complacency, discord) that build up before stress events. During acute sell-offs, the indicator typically drops because the conditions it measures dissolve once panic selling is broad-based. Do not expect the MEI to read red during a crash. Expect it to read red before one.
The signal is regime-dependent. In high-volatility and bear markets, the composite works as designed: high readings correspond to worse forward returns, low readings to better. In calm, trending bull markets, the relationship weakens and can reverse. This is because the "danger" conditions (concentrated breadth, credit complacency) can persist for extended periods during healthy trends without leading to corrections. Weight MEI readings more heavily when realized volatility is already elevated.
It is designed for the S&P 500. The sector ETFs and credit instruments are U.S.-specific. Applying the indicator to other indices or asset classes without modifying the data sources would not be methodologically sound.
It requires a daily timeframe. The cross-sector entropy and credit spread calculations require daily closing prices. Intraday data introduces noise that degrades the signal quality.
It needs historical depth. The z-score normalization uses a 252-day lookback. Results during the first year of data should be treated with caution.
It is not a standalone system. No single indicator captures all relevant market dynamics. The MEI measures structural conditions. It does not measure momentum, valuation, sentiment, or liquidity directly. Use it alongside other analytical tools.
References
Gilchrist, S. and Zakrajsek, E. (2012) 'Credit Spreads and Business Cycle Fluctuations', American Economic Review, 102(4), pp. 1692-1720.
Gu, R. (2017) 'Multiscale Shannon entropy and its application in the stock market', Physica A, 484, pp. 215-224.
Kaufman, P.J. (2013) Trading Systems and Methods. 5th edn. Hoboken: Wiley.
Risso, W.A. (2008) 'The informational efficiency and the financial crashes', Research in International Business and Finance, 22(3), pp. 396-408.
Shannon, C.E. (1948) 'A Mathematical Theory of Communication', Bell System Technical Journal, 27(3), pp. 379-423.
Zunino, L., Zanin, M., Tabak, B.M., Perez, D.G. and Rosso, O.A. (2009) 'Forbidden patterns, permutation entropy and stock market inefficiency', Physica A, 388(14), pp. 2854-2864.
Indicator

Bitcoin RSI Channel (2W, M)Bitcoin RSI Channel (2W, M)
The Bitcoin RSI Channel is a macro-analytical tool designed to identify long-term cyclical tops and bottoms of Bitcoin by applying linear regression modeling to the Relative Strength Index (RSI).
Traditionally, RSI levels like 70 and 30 are used as static markers for overbought and oversold conditions. However, as Bitcoin matures and its volatility dampens, its cyclical RSI peaks and troughs have historically followed a descending trajectory. This script accounts for that "fading" volatility by using mathematically fitted trendlines that track the actual historical extremes of Bitcoin’s momentum.
Main Objectives
Curve Fitting: Plots mathematically modeled linear regression lines through historical RSI peaks and bottoms, ensuring the channel remains as close as possible to the actual turning points of previous cycles.
Normalized View: Provides an optional "Normalized" mode where the dynamic channel is flattened into a 0-1 "Risk Metric" for easier comparison between cycles.
Main Chart Visualization: Directly projects overbought and oversold zones onto the price chart via plot coloring, allowing for a seamless confluence of price action and momentum analysis.
Cycle Forecasting: Designed as a high-timeframe tool to assist in predicting global market tops and generational buying opportunities.
IMPORTANT: Timeframe & Methodology
Please note that the regression lines in this script are specifically modeled for the 2-Week (2W) and Monthly (1M) timeframes.
These high timeframes were chosen because they significantly reduce market noise, making them superior for identifying global cycle shifts. The coefficients used in the code were derived from an approximation (fitting) of data points from 2011 through 2023.
Recommendation: Always wait for the candle to close on the 2W or Monthly timeframe to confirm a signal. Intra-candle fluctuations can be volatile and may provide premature signals before the period is finalized.
How to Use
Identifying Extremes: When the RSI enters the green "Buy Zone" or the red "Sell Zone," it historically indicates that Bitcoin has reached extreme oversold or overbought levels. These periods suggest the proximity of a potential cyclical bottom or top.
Visualizing on Price: These macro shifts are intuitively reflected through the price overlay on the main chart, providing immediate visual feedback on the current stage of the market cycle.
Strategic Caution: These zones have not been infallible in the past, and this indicator should not be used in isolation. Always seek confluence with other technical or fundamental analysis before making trading decisions.
User Tips
Clean View: You can hide the Bitcoin price bars on your main chart (via the Chart Settings) to focus entirely on the risk-based coloring provided by the indicator overlay.
Overlay Toggle: If you prefer to keep the indicator purely in its own pane, you can disable the "Plot on Main Pane" option in the script settings.
Settings & Parameters
View Mode: Switch between "Fit Lines" (standard RSI inside a diagonal channel) and "Normalized" (RSI converted into a Risk Metric).
Sell/Buy Zone Levels: Adjustable thresholds (default 0.90 and 0.10) to define your personal risk appetite for overbought and oversold conditions.
Plot on Main Pane: Toggle to enable/disable price bar colorization based on the current Risk Metric.
Limitations & Disclaimer
BTC Specificity: This indicator is purpose-built for Bitcoin. While you can load it on other symbols, the indicator pane will always calculate based on INDEX:BTCUSD data to maintain its cyclical logic. The main chart overlay, however, will color the plot of whatever instrument you are currently viewing.
Fixed RSI Optimization: The regression model is strictly optimized using the default RSI settings (14-period, Source: Close). The linear regression lines were fitted specifically to these values; therefore, the ability to modify the RSI length or source has been intentionally omitted from the settings. Changing these parameters would render the channel irrelevant, as the trendlines would no longer align with historical market extremes.
Static Modeling: The regression coefficients are "hardcoded" based on historical peaks and troughs up to 2023. As the market evolves, future cycles may require new approximations to account for shifting volatility.
No Guarantees: Mathematical models describe the past but do not guarantee the future. There is no guarantee that Bitcoin will reach the upper or lower boundaries in any given cycle, or that it will stay within them. Use this tool as one part of a comprehensive trading strategy.
Indicator

SOXL Swing Signals v8.11 SOXL Swing Signals v8.11 — Long-side primary, opt-in shorts
A multi-tier signal indicator excusively for SOXL (Direxion 3x semiconductor bull ETF), coded by Claude Opus 4.7 AI.
It identifies high-conviction swing entries based on a combination of price action, momentum, volatility, and underlying-index context.
⚠ Important disclaimers
This indicator does not constitute financial advice. It is an analytical tool designed to surface specific technical setups; it does not account for your individual financial situation, risk tolerance, tax circumstances, or trading goals.
Do not use this indicator mechanically as a trading strategy. Signals are intended to provide useful context to support discretionary trading decisions, not to be acted on without independent judgement. Past performance metrics shown below come from historical backtesting and are not predictive of future results. Always combine signals with your own analysis of broader market conditions, risk management, and position sizing.
SOXL is a 3x leveraged ETF with significant decay risk. It is not suitable for buy-and-hold investing, and even short-term positions carry substantial risk of loss exceeding the underlying index's move.
What the indicator does in plain language
The indicator scans every trading day for combinations of conditions that have historically preceded notable price moves on SOXL. When enough conditions align, it draws a green ▲ triangle below price for a long entry suggestion, or a red ▼ triangle above price for a short entry suggestion. Each signal includes a small label showing which "tier" fired (the type of setup) and a star rating (1 to 7 stars) indicating how many supporting conditions were present at the same time.
The indicator also draws regression channels and Bollinger bands on the chart, plus a dashboard table in the top-right corner showing current values for the key metrics it tracks. Coloured warning zones in the background flag periods where price has reached extreme levels relative to its recent range.
Long signals — reasonably reliable
Long entries fire when SOXL appears oversold and ready to bounce. The indicator looks at seven different "tiers" of long setup, ranging from deep capitulation (price collapsing on high volatility, broad index also weak) to subtle pullbacks within an uptrend. By default, the indicator only fires long signals when at least 3 of 7 supporting conditions are present (the "conviction filter").
Historical performance with conviction filter (10 years of SOXL data, 2016 to 2026):
- About 25 long signals over that period (roughly 2 to 4 per year)
- Profit factor approximately 3 to 4 in-sample (total winning return divided by total losing return)
- Win rate around 65 to 70 percent for a 14-day hold
- Walk-forward validation profit factor of 2.28 — meaningfully, the validation period performed BETTER than the training period, which is a strong indicator of genuine edge rather than overfitting
Realistic live expectations: profit factor 2.0 to 2.5 after typical out-of-sample shrinkage, with about 3 to 4 fires per year. The strongest tier (T7 "waterfall") catches genuine semiconductor cycle bottoms — examples include the 2020 COVID low, the 2022 chip-cycle bottom, and the April 2025 tariff-reversal low.
Short signals — very unreliable, opt-in only
This is important: the short side is significantly weaker than the long side and should be treated with extra caution. SOXL spends most of its time in upward-trending semiconductor bull cycles, and shorting against that trend is inherently lower-probability. Through extensive testing, the original "exhaustion-based" short tiers (predicting tops) showed negative expectancy in live conditions and have been disabled by default.
Two opt-in short architectures are available, both turned off by default:
ST9 "bear-cycle" short (turn on via "Enable ST9 bear-cycle shorts" in settings)
- Only fires when the underlying SOX index is in a confirmed bear regime (200-day moving average declining)
- Waits for breakdown confirmation (price below 50-day average, new 20-day low) rather than trying to predict tops
- 7-day intended hold
- Historical: 8 fires over 10 years, profit factor 3.61 in-sample, but 6 of the 8 wins came from a single 6-month window in 2022. Live profit factor likely shrinks to 2.0 to 3.0.
- Recommendation: only enable when you've independently identified a bear cycle starting
ST10 "top-fade" short (turn on via "Enable ST10 top-fade shorts" in settings)
- Fires at single-day exhaustion patterns: upper Bollinger band touch, overbought stochastic, deeply extended above 20-day average, AND price stalls (closes below previous close on a small-change day)
- 3-day intended hold
- Historical: 17 fires over 10 years, profit factor 6.45 in-sample. Holds above 5.0 in every walk-forward split tested.
- Recommendation: enable when comfortable with discretionary top-fade trading. Hold strictly 3 days.
Honest caveats on shorts:
- Both short architectures have small historical sample sizes (8 and 17 fires respectively)
- Both have large performance variance — a few outlier wins inflate the headline numbers
- Short edges in leveraged-ETF land are genuinely fragile and asset-specific. The same architectures we tested on TQQQ and TNA produced losing results despite working on SOXL.
- Treat any individual short signal as a hypothesis to investigate, not a trade to execute mechanically
How the moving parts come together
The indicator runs through this logic each day:
1. Calculate base technicals: SMAs (20, 50, 200), Bollinger bands, stochastic, MACD, RSI, regression channels, and distance-from-mean metrics
2. Pull external context: VIX (volatility index) for the broad market, plus SMH (1x semi ETF) for divergence checking and SOX index for Wyckoff phase classification
3. Check tier conditions: each of the 7 long tiers and 2-5 short tiers has its own combination of thresholds; the indicator evaluates all of them
4. Compute conviction score: 7 supporting factors are checked (volatility panic, oversold bands, MACD direction, vol level, slope/extension, anchored regression position, Fibonacci levels for longs; symmetric set for shorts). Each contributing factor adds 1 to the conviction score (max 7)
5. Apply hard gates: long signals only fire if conviction is at least 3 (default). Short signals only fire if their respective opt-in toggle is enabled
6. Apply cooldown: at most one signal of each type per 8 trading days, to prevent clustering
7. Draw the signal: triangle, label, and details on the chart, plus alert-eligible event for PulseWire notifications
The dashboard table in the corner of the chart shows current values of all the key inputs (distance from moving averages, stochastic, RSI, MACD, VIX, regime classification, Wyckoff phase) so you can see exactly why a signal is or isn't firing right now.
Suggested usage
- Use long signals as candidates for swing entries, not automatic buys. Verify against your broader market view, sector context, and risk parameters
- Combine with options for leveraged exposure: 45 to 90 days to expiration, slightly out-of-the-money or at-the-money calls. Avoid weekly options — moves typically play out over 2 to 3 weeks
- Track real-world signal performance for your own use. After 5 to 10 actual trades, you'll have personal evidence of how the indicator behaves in your trading approach
- For shorts: leave both toggles off until you have a specific reason to expect a downturn. When you do enable, use long-dated puts (45 to 90 days) and exit on the indicator's intended hold horizon regardless of where the trade is
Settings worth knowing
- Min conviction for LONG signal (default 3): higher values produce fewer but higher-quality signals
- Enable SHORT signals (default off): controls the original ST1/ST_VIX exhaustion shorts — kept disabled because they showed negative expectancy
- Enable ST9 bear-cycle shorts (default off): trend-following shorts during confirmed bear regimes
- Enable ST10 top-fade shorts (default off): single-day reversal shorts at extended tops
- Show warning zones: background tinting for extreme zones (informational only)
- All thresholds for each tier are individually adjustable in the settings, but the defaults represent the validated configuration
Version history
- v8.11: adds ST10 top-fade short tier with 3-day hold (PF=6.45 in-sample)
- v8.10: adds ST9 bear-cycle short tier with 7-day hold (PF=3.61 in-sample)
- v8.9: introduces conviction-3 hard gate on longs, disables broken short architectures by default
- v8.6 and earlier: development versions, not recommended
This indicator has been designed to work exclusively with SOXL. It has been built with extensive walk-forward validation, evaluator bug correction, and cross-asset testing against TQQQ and TNA equivalents. Indicator

Indicator

Indicator

Alpha Forge Oscillator v2Alpha Forge Oscillator is an open-source momentum and pressure visualization tool designed to provide additional context below the price chart.
The script displays directional momentum, signal-line behavior, and changes in momentum expansion or contraction. It can be used alongside price action, trend tools, or other indicators to study whether momentum is rising, falling, flattening, or changing direction.
This script is provided for educational chart analysis. It does not predict future price movement and does not provide trading advice.
What It Shows
The oscillator is designed to display several types of momentum information:
Directional bias
Momentum expansion
Momentum contraction
Signal-line relationship
Possible exhaustion conditions
Bullish or bearish pressure changes
The goal is to provide a visual way to study internal momentum behavior, not to generate guaranteed trading outcomes.
How To Read It
When the oscillator rises, bullish momentum is increasing according to the script’s formula.
When the oscillator falls, bearish momentum is increasing according to the script’s formula.
When the oscillator flattens or contracts, momentum may be weakening or becoming less directional.
Bullish Context
Bullish momentum context may be present when the oscillator is above its center area, above its signal layer, or expanding upward.
Bearish Context
Bearish momentum context may be present when the oscillator is below its center area, below its signal layer, or expanding downward.
Mixed Context
Mixed or neutral context may be present when the oscillator is flat, compressed, near its center area, or frequently crossing its signal layer.
Using The Oscillator With Price
The oscillator can be used as supporting context when reviewing price action.
For example, users may compare:
Price direction versus oscillator direction
Trend movement versus momentum movement
Signal-line crosses
Momentum expansion versus contraction
Possible divergence between price and oscillator behavior
The oscillator should not be used as the only reason for entering or exiting a trade.
Companion Use
This oscillator can be used alongside the Alpha Forge Core indicator or as a standalone momentum display.
When used with the Core indicator, the main chart provides trend and structure context, while the oscillator provides momentum context.
When used by itself, the oscillator can help users study pressure shifts and momentum behavior below the chart.
Possible Use Cases
Momentum review
Trend-context confirmation
Divergence study
Exhaustion study
Continuation or reversal research
Comparing price movement with internal pressure
These use cases are for chart study only and should be combined with independent analysis.
Markets And Timeframes
The oscillator can be applied to different markets, including stocks, crypto, forex, and indices.
It can also be used on different timeframes. Lower timeframes may produce more frequent movement, while higher timeframes may produce smoother readings.
Important Notes
This script is open source.
It is for educational and research use.
It does not provide financial advice.
It does not guarantee signal accuracy.
It does not guarantee future results.
It should not be used as the only basis for trading decisions.
All colors, labels, lines, and visual states are based on the script’s programmed conditions and should be interpreted as informational chart context only. Indicator

Indicator

Sortino Ratio Oscillator [MarkitTick]💡 The Sortino Ratio Oscillator introduces a sophisticated, risk-adjusted performance metric typically reserved for portfolio analysis, adapting it into a highly responsive momentum oscillator. By strictly penalizing downside volatility while rewarding upside momentum, it provides a much clearer picture of market strength compared to traditional oscillators that treat all volatility equally.
✨ Originality and Utility
Standard momentum indicators measure the velocity of price movement based on general variance. However, traditional models penalize both upside and downside volatility. A massive bullish breakout creates "high volatility," which standard indicators often misinterpret as an overextended or risky market condition.
This script resolves that inherent flaw by migrating the academic Sortino Ratio into a technical trading framework. It isolates "bad" volatility (price drops) from "good" volatility (price gains). The utility here is immense: traders can identify trends where the price action is genuinely supported by positive risk-adjusted returns, filtering out noisy markets where the downside deviation is too high. Furthermore, this tool features an integrated divergence detection engine, dynamic histogram coloring, and built-in webhook alert formatting, making it a comprehensive suite for algorithmic and discretionary traders alike.
🔬 Methodology and Concepts
The core engine of this indicator relies on continuously assessing the bar-to-bar percentage return of the asset.
First, it calculates the raw percentage return between the current close and the previous close.
Next, it isolates the downside returns. If a return is positive, it is ignored for the risk calculation (treated as zero). If it is negative, it is squared to emphasize larger drawdowns, following standard variance practices.
The script then computes the Simple Moving Average of these squared negative returns over a user-defined lookback window, calculating the square root to determine the final Downside Deviation.
Simultaneously, the Simple Moving Average of the raw returns is calculated to find the mean return over the same period.
The final Sortino Ratio is produced by dividing the mean return by the downside deviation.
To smooth the output and generate actionable crossovers, a secondary Signal Line is derived by applying an average to the raw Sortino Ratio.
To enhance the analytical depth, the script incorporates a robust divergence engine that scans for pivot highs and lows over a customizable lookback window. By comparing price action pivots with the oscillator's momentum peaks and troughs, it systematically maps out both regular and hidden divergences.
🎨 Visual Guide
The visual presentation is meticulously structured to provide instant clarity on risk-adjusted momentum states.
• The Sortino Histogram
The core oscillator is plotted as a multi-colored histogram. It utilizes a four-state coloring system to indicate momentum shifts:
Solid Bull Color: The ratio is above zero and rising, indicating accelerating positive risk-adjusted returns.
Transparent Bull Color: The ratio is above zero but falling, suggesting positive momentum is decelerating.
Solid Bear Color: The ratio is below zero and falling, indicating accelerating downside risk.
Transparent Bear Color: The ratio is below zero but rising, showing that downside risk is waning.
• Signal Line and Cloud Fill
A highlighted Signal Line tracks the moving average of the Sortino Ratio. The space between the Sortino histogram and the Signal Line is filled with a dynamic cloud, helping traders easily spot shifts in immediate trend strength.
• Threshold Lines
Dashed lines represent the Overbought and Oversold thresholds. A solid gray line marks the Zero Level, acting as the primary baseline for positive versus negative risk-adjusted states.
• Divergence Mapping
Regular Bullish (RB): Displayed as a solid line connecting price lows to oscillator lows, complete with a label below the candle.
Hidden Bullish (HB): Displayed as a dashed line, indicating trend continuation.
Regular Bearish (RD): Displayed as a solid line connecting price highs to oscillator highs.
Hidden Bearish (HD): Displayed as a dashed line.
• Candle Coloring
When enabled, the price chart's candles are painted to match the four-state color logic of the Sortino Histogram, linking the oscillator's data directly to the price action on the main chart.
📖 How to Use
Traders can interpret the Sortino Ratio Oscillator through several distinct frameworks depending on their trading style.
• Zero-Line Crossovers
A baseline shift occurs when the histogram crosses the zero line. A cross into positive territory confirms that the average returns now outweigh the downside deviation, signaling a structurally sound bullish environment. Conversely, a drop below zero warns that downside volatility is dominating the asset's behavior.
• Signal Line Interactions
Watch for the histogram to cross the Signal Line. When the Sortino Ratio spikes above its signal line, momentum is expanding. When it crosses below, it often precedes a consolidation or a reversal, as highlighted by the cloud fill changing colors.
• Extremes and Reversals
The Overbought and Oversold threshold lines act as exhaustion markers. An asset sustaining a Sortino Ratio above the Overbought level is exhibiting unusually high, unpenalized upside movement. While strong, traders should watch for the histogram to peak and cross back below the Signal Line as an early warning of a pullback.
• Trading Divergences
Divergences are perhaps the most powerful signals generated by this tool. Look for Regular Bullish Divergences when the price makes a lower low, but the Sortino Ratio makes a higher low. This indicates that despite the price drop, the underlying downside volatility is shrinking relative to the mean return, hinting at a bottom. Hidden Divergences are excellent for trading pullbacks in the direction of the macro trend.
⚙️ Inputs and Settings
• Sortino Settings
Lookback Length: Defines the period used to calculate the mean return and downside deviation. A shorter length is highly reactive, while a longer length provides macroscopic trend stability.
Signal Length: Adjusts the smoothness of the Signal Line.
Overbought / Oversold Levels: Customizes the threshold lines for extreme readings.
• Candle Coloring
A simple toggle to enable or disable the dynamic coloring of the main chart price candles based on the oscillator's state.
• Divergence Settings
Enable Divergence: Master toggle for the divergence engine.
Show Regular / Hidden: Independent toggles to filter specific divergence types.
Pivot Lookback Left / Right: Determines the strictness of the pivot point detection. Higher values require more significant peaks and troughs to form a valid pivot, filtering out noise.
• Webhook Action Names
Customizable string inputs allowing algorithmic traders to map specific script events directly to JSON payloads for automated execution platforms.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The Sortino Ratio, developed by Dr. Frank A. Sortino, is a vital modification of the Sharpe Ratio. In Modern Portfolio Theory, the Sharpe Ratio evaluates the performance of an investment by adjusting for its risk, defined universally as the standard deviation of its returns. However, standard deviation measures total volatility, treating an unexpected positive gain exactly the same as a negative loss.
This oscillator resolves that mathematical paradox by isolating downside deviation. The scientific framework dictates that a minimum acceptable return—in this script's case, zero—must be established. Only returns falling strictly below this threshold are aggregated and squared to calculate the downside variance. By exclusively measuring the standard deviation of negative asset returns, the formula effectively removes the penalty for upside volatility.
In a purely academic sense, a high Sortino Ratio mathematically proves that the asset is generating its returns without suffering significant, erratic drawdowns. Translated into technical analysis, when the indicator rises, it mathematically proves that the ratio of upward momentum relative to downward variance is expanding. This makes it an incredibly robust statistical measure, completely immune to the standard look-around bias of typical mathematical oscillators that collapse under the weight of sudden, positive price shocks.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Market PressureMarket Pressure — Description & Usage
Market Pressure is a normalized oscillator designed to characterize whether buying or selling pressure is dominating the market, and how persistent that pressure is over time. It does not attempt to predict price or generate signals. Instead, it measures the consistency of directional behavior by combining where price closes within each bar, the strength of the candle body, the level of volume participation, and alignment with trend. These components are smoothed and scaled into a range between -100 and +100, allowing the user to quickly assess who is in control and how strong that control is relative to recent conditions.
Values above zero indicate net buying pressure, while values below zero indicate net selling pressure. The most important region is the neutral zone around zero, defined by the user, which represents a balanced market where neither side has clear control. When the histogram remains within this neutral range, price action is typically rotational and prone to false moves. When the indicator moves and sustains itself outside of that range, it reflects a shift toward directional control. Strong readings toward the extremes suggest persistent and coordinated pressure, often associated with trend continuation rather than random movement.
This indicator is best used as a contextual filter rather than an entry tool. When Market Pressure is positive and holding above the neutral boundary, it suggests focusing only on long opportunities and avoiding shorts. When it is negative and holding below the neutral boundary, the opposite applies. When it is inside the neutral zone, the most effective action is often to stand aside, as the market lacks a dominant participant. The behavior of the histogram also provides insight into the quality of a move. Expanding values indicate strengthening pressure, while contracting values suggest that the dominant side may be losing control.
Because the indicator is normalized using a rolling lookback window, all readings are relative to recent history rather than fixed absolute levels. This allows it to adapt across different markets and timeframes, but also means that extremes represent the strongest pressure observed within that window, not an absolute threshold. The result is a flexible tool that highlights when the market is trending with conviction, when it is losing momentum, and when conditions are best avoided altogether. Indicator

Aura Breadth Thrust Oscillator [Pineify]Aura Breadth Thrust Oscillator
Aura Breadth Thrust Oscillator measures market participation by dividing advancing issues by total advancing plus declining issues, then smoothing the ratio with a 10-period EMA. It borrows from Zweig breadth thrust analysis, but its signals are threshold crosses, not the full classic timed thrust rule.
Key Features
Requests NYSE or NASDAQ advance/decline data when available.
Uses a rolling price-action proxy when breadth symbols are unavailable.
Shows a gradient oscillator, zones, markers, alerts, and source table.
How It Works
For NYSE, the script requests NYSE: USI:ADV and NYSE:$DEC. For NASDAQ, it requests NASDAQ: INDEX:ADVQ and NASDAQ:$DECQ. It builds a breadth ratio from 0 to 100, then applies a 10-period EMA.
Advancing issues are compared with total advancing plus declining issues.
The smoothed ratio becomes the Aura Breadth oscillator.
Crosses above 61.5 mark bullish participation. Crosses below 40 mark breadth weakness.
If external breadth is missing, proxy mode counts up candles as advancing and down candles as declining. Proxy readings are useful context, but they are not exchange-wide breadth.
How the Components Work Together
The ratio supplies participation context, the EMA filters noise, and the thresholds define zones. The table matters because external signals describe broad participation, while proxy signals only describe the current chart.
Trading Ideas and Insights
A cross above 61.5 may be useful after a weak range, especially if price is reclaiming structure.
A move below 40 may show selling pressure or exhaustion; waiting for stabilization can reduce whipsaw risk.
If price rises while breadth fails near the midline, participation may be narrowing.
This is a context tool, not a complete system. Breadth can lag during fast reversals, and proxy mode is approximate.
Unique Aspects
External breadth is preferred automatically, with proxy mode used only when feeds are invalid.
The active data source is shown directly in the pane.
How to Use
Choose NYSE or NASDAQ, then check the table's active source.
Watch crosses around 61.5 and 40, using 50 as a midpoint.
Use the built-in alerts for bullish thrust or breadth breakdown crosses.
Customization
Market Data Exchange (default: NYSE) - Selects the breadth universe.
Proxy Lookback Period (default: 20) - Higher values smooth proxy mode.
Bullish Thrust Level (default: 61.5) - Adjusts the bullish threshold.
Oversold Level (default: 40.0) - Adjusts the weakness threshold.
Conclusion
Aura Breadth Thrust Oscillator gives a compact read on participation behind index moves, breakouts, and reversals. Read each signal with the active data source. Indicator

Indicator

Ember Glow Oscillator [forexobroker]Ember Glow Oscillator accumulates volume on small-range bars only -- the slow, quiet bars where accumulation or distribution tends to hide -- and signs it by candle direction. When the accumulated "ember" is strongly positive or negative and an ignition candle (large-range, directional) finally prints, the ember's direction has burst into flame.
Built for traders who want to catch moves born from stealth accumulation rather than chasing already-visible trends.
🔶 CONCEPTS
Large, obvious candles attract everyone's attention, but the real positioning often happens on small, boring bars that nobody pays attention to. If you track which small bars closed up vs down, weight by their volume, and sum over a window, you get a quiet signature of accumulation or distribution that isn't visible on the candles alone. When that hidden ember is strongly positive and an ignition candle finally arrives to release the stored energy, the move usually continues further than expected, because it's backed by the stealth positioning. This oscillator formalizes that "quiet before it catches fire" dynamic.
🔶 HOW IT WORKS
- Classifies each bar as small when its range <= Small Bar Ceiling (ATR multiple)
- Takes signed volume on small bars only: +volume for up-closes, -volume for down-closes, 0 otherwise
- Sums signed volume over the Ember Window to form the ember signal
- Normalizes by total small-bar absolute volume to get an ember ratio between -1 and +1
- Detects ignition candles when current bar range >= Ignition Range (ATR multiple) with directional close
- Combines ember ratio, ignition event, and bias EMA slope into a 0-100 Ember Score
- Classifies state as COLD, SMOLDERING, IGNITED, or BLAZING
- Fires signal when ember ratio and ignition align with bias EMA direction
🔶 HOW TO USE
1. Add the indicator -- background tints green for positive ember, pink for negative, gold when blazing
2. Watch the dashboard (top-right) for live ember ratio, small-bar flag, range/ATR, and ignition state
3. Green BUY triangles with "EMBER ↑" label fire on bullish ignition after positive ember accumulation; pink SELL triangles inverse
4. The Bias EMA plotted with glow filters signals to the macro direction
5. Raise Ignition Range (ATR) for only the most decisive releases; lower it for more frequent signals
🔶 FEATURES
- Non-repainting signals (barstate.isconfirmed)
- Works on all timeframes and instruments
- 9 alert conditions with JSON webhook support
- Small-bar-only volume accumulation that isolates stealth positioning
- Ignition-candle trigger that times entries to the visible release
🔶 SETTINGS GUIDE
- Ember Window -- Bars accumulated for the slow-burn ember
- ATR Length -- ATR period used for small-bar and ignition thresholds
- Small Bar Ceiling (ATR) -- Range <= this ATR multiple counts as small
- Ignition Range (ATR) -- Bar range required to qualify as ignition
- Bias EMA Length -- Macro EMA used to confirm the ignition direction
- Ember Score Threshold -- Minimum 0-100 score required at fire
- Signal Cooldown Bars -- Minimum bars between consecutive signals
🔶 ALERTS
- EGO Buy Ember -- Bullish ignition with positive ember ratio
- EGO Sell Ember -- Bearish ignition with negative ember ratio
- EGO Any Signal -- Any ember signal
- EGO Blazing -- Ember score reaches 85+
- EGO Positive Ember -- Sustained positive small-bar volume
- EGO Negative Ember -- Sustained negative small-bar volume
- EGO Bull Ignite -- Bullish ignition candle (informational)
- EGO Bear Ignite -- Bearish ignition candle (informational)
- EGO Webhook JSON -- Generic webhook payload for external automation
🔶 LIMITATIONS & DISCLAIMER
- This is a technical analysis tool, not financial advice. Always use proper risk management.
- Volume-based logic is weaker on instruments with unreliable volume.
- Stealth accumulation can persist before ignition; waiting is part of the design.
- The Ember Score is a composite heuristic, not a calibrated probability.
Indicator

Chameleon Regime Adapter [forexobroker]
Chameleon Regime Adapter classifies the current market into one of five regimes (Trending-Wild, Trending, Volatile-Range, Range, Quiet) and switches its signal logic accordingly -- trend-follow when the market is trending, mean-revert when it is ranging. One tool, two opposite styles, selected automatically by the market itself.
Designed for traders tired of using trend systems in chop or reversion systems in runs, and who want one indicator that behaves correctly in both environments.
🔶 CONCEPTS
Most indicators fail because they are built for one environment and deployed in another. A trend follower gets chopped up in a range; a mean-revert system gets run over in a trend. The robust solution is to first detect the regime and then route the signal. ADX separates trending from ranging; ATR percentile separates high-volatility from quiet; Bollinger Band width confirms compression or expansion. Once the regime is known, the signal rules that apply are the ones appropriate to that regime: pullbacks with RSI above 50 in trends; band touches with oversold/overbought in ranges.
🔶 HOW IT WORKS
- Classifies regime from three inputs: ADX (trend strength), ATR percentile (volatility tier), and BB width (compression)
- Selects signal mode: TREND-FOLLOW in trending regimes, MEAN-REVERT in ranging regimes
- Generates trend entries: pullback above regime EMA with rising RSI and DI+ leading (inverse for sells)
- Generates range entries: touch of the opposite band with oversold/overbought RSI and slope inflection
- Combines ADX, BB width, and alignment into a 0-100 Signal Score that gates the final fire
- Color-coded background by regime so the chart instantly tells you which mode is active
🔶 HOW TO USE
1. Add the indicator -- background is tinted by regime (gold = trending-wild, green = trending, pink = volatile-range, purple = range, cyan = quiet)
2. Watch the dashboard (top-right) for live regime, active mode, ADX, ATR percentile, BB width, and RSI
3. Green BUY triangles with "ADAPT ↑" label fire using the mode appropriate to the current regime; pink SELL triangles inverse
4. The Bollinger Bands with glow give visual support/resistance for range-mode entries
5. Tune ADX Trend Floor and ATR percentile bounds to match the instrument's typical behavior
🔶 FEATURES
- Non-repainting signals (barstate.isconfirmed)
- Works on all timeframes and instruments
- 9 alert conditions with JSON webhook support
- Automatic regime classification with visual background cue
- Dual-mode signal logic (trend-follow + mean-revert) with no manual toggling
🔶 SETTINGS GUIDE
- ADX Length -- Period for ADX and DMI
- ADX Trend Floor -- ADX level above which the regime is considered trending
- BB Width Length / BB Mult -- Parameters for the Bollinger Bands used in range entries
- ATR Length -- ATR period used for the volatility percentile
- ATR Percentile Window -- Lookback for the ATR percentile rank
- Low-Vol / High-Vol Percentile -- Bounds that define quiet vs high-volatility regimes
- RSI Length -- Momentum oscillator length used by both modes
- Regime EMA Length -- Macro EMA for trend-mode directional bias
- Signal Score Threshold -- Minimum composite score required at fire
- Signal Cooldown Bars -- Minimum bars between consecutive signals
🔶 ALERTS
- CRA Buy Adapt -- Bullish adaptive signal confirmed
- CRA Sell Adapt -- Bearish adaptive signal confirmed
- CRA Any Signal -- Any directional adaptive signal
- CRA Entered Trend -- Regime classified as trending
- CRA Entered Range -- Regime classified as non-trending
- CRA High Vol -- ATR percentile exceeds high-volatility threshold
- CRA Quiet -- ATR percentile below low-volatility threshold
- CRA Any Bull Setup -- Bullish setup present in either mode
- CRA Webhook JSON -- Generic webhook payload for external automation
🔶 LIMITATIONS & DISCLAIMER
- This is a technical analysis tool, not financial advice. Always use proper risk management.
- Regime boundaries are fuzzy; transitions may cause temporary mode thrashing.
- Range-mode entries at band edges carry reversal risk if a new trend is starting.
- The Signal Score is a composite heuristic, not a calibrated probability.
Indicator

[ A L P H A X ] Momentum FlowAlphaX Momentum Flow — 4-Color MACD Histogram, Divergence Detection, Squeeze Breakout, Zero Line Cross Markers & Live Dashboard
AlphaX Momentum Flow is a professional-grade MACD oscillator rebuilt from the ground up in Pine Script v6 under the AlphaX visual system. It takes the classic MACD framework and extends it with four additional signal layers — divergence detection, histogram squeeze breakout, zero line cross markers, and a real-time live dashboard — all presented through a clean, clutter-free visual design that eliminates the label noise common in most enhanced MACD indicators. Every signal is confirmed on bar close with zero repainting.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Visual Overview
AlphaX Momentum Flow showing the 4-color histogram, MACD and signal lines, cross dots, zero line triangles, divergence ring markers, squeeze background flash, and the live dashboard
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The MACD Engine
At the core of AlphaX Momentum Flow is the standard MACD calculation — fast EMA minus slow EMA, smoothed by a signal line, with the histogram representing the gap between them. The defaults (12 / 26 / 9) match the classic configuration used across most trading platforms, so the indicator is immediately familiar and directly comparable to any standard MACD setup.
What separates Momentum Flow from a plain MACD is everything built on top of that core — the visual system, the additional signal layers, and the live dashboard that synthesizes everything into a single readable state panel.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 4-Color Histogram
The histogram uses four distinct colors to communicate not just direction but momentum quality at a glance — telling you whether the current move is building or fading before the MACD line has even crossed.
Bright green (bull bright) — histogram is above zero and expanding. Bullish momentum is actively building. The strongest bullish histogram state.
Dim green (bull dim) — histogram is above zero but contracting. Bullish momentum exists but is beginning to fade. Watch for a potential cross or reversal.
Bright red (bear bright) — histogram is below zero and expanding downward. Bearish momentum is actively building. The strongest bearish histogram state.
Dim red (bear dim) — histogram is below zero but contracting back toward zero. Bearish momentum exists but is weakening. A potential reversal or cross may be forming.
Reading the histogram in 4-color mode gives you earlier warning of momentum shifts than waiting for a MACD/signal line cross — a transition from bright to dim in either direction is the first sign that the current move is losing energy.
4-color mode can be toggled off to display the histogram in a single neutral color if you prefer the classic look.
4-color histogram in action — bright colors marking strong momentum phases, dim colors showing early fading
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
〇 Signal Line Cross Dots
When the MACD line crosses the signal line, a filled circle is plotted directly on the signal line at the cross bar:
Bright green dot — MACD crossed above signal. Bullish momentum shift.
Bright red dot — MACD crossed below signal. Bearish momentum shift.
Cross dots are placed on the signal line rather than the histogram, keeping them visually separated from the histogram bars and easy to spot even during busy market conditions. They are confirmed on bar close only — no repainting.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▲ Zero Line Cross Markers
When the MACD line crosses above or below zero, a small triangle is plotted directly on the zero line:
▲ Green triangle — MACD crossed above zero. Macro bullish bias confirmed — the fast EMA has moved above the slow EMA.
▼ Red triangle — MACD crossed below zero. Macro bearish bias confirmed.
Zero line crosses are more significant than signal line crosses. A signal line cross tells you momentum is shifting within the current trend. A zero line cross tells you the macro trend itself has changed — price is now on the other side of its moving average equilibrium. Use zero line crosses to set your directional bias and signal line crosses to time entries within that bias.
Markers are pinned exactly on the zero line — no floating labels, no clutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
◆ Divergence Detection
AlphaX Momentum Flow detects both bullish and bearish divergence automatically, confirmed on bar close with zero repainting.
Bullish Divergence — price makes a lower low over the lookback window while the MACD makes a higher low at the same time, and MACD is currently below zero. This combination signals that selling pressure is weakening even though price is still falling — a classic early warning of a potential reversal upward.
Bearish Divergence — price makes a higher high over the lookback window while the MACD makes a lower high at the same time, and MACD is currently above zero. This signals that buying pressure is weakening even though price is still rising — an early warning of a potential reversal downward.
Divergence is marked with a distinctive ring marker — a larger outer circle with a dark center — plotted directly on the MACD line at the divergence bar. The ring design is intentionally distinct from the smaller, filled cross dots so you can differentiate the two signal types instantly without reading any text.
Two additional guards keep divergence signals meaningful:
Bullish divergence only fires when MACD is below zero — divergence from within bearish territory is structurally more significant than divergence above the zero line
Bearish divergence only fires when MACD is above zero — same logic in reverse
The divergence lookback window is configurable from 5 to 50 bars.
Divergence ring markers on the MACD line — larger ring shape clearly distinguishes them from the cross dots
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Histogram Squeeze Breakout
The Squeeze detector monitors the histogram for periods of compression — when the bars are getting progressively smaller in absolute terms, momentum is coiling and a breakout move is building. When the compression resolves and the histogram begins expanding again, the squeeze breakout fires.
How the squeeze is detected:
The absolute value of the histogram is tracked over the squeeze lookback window
When the recent minimum absolute histogram value is very small relative to the broader historical range — below 15% of the recent high-low range — the market is in a squeeze state
The squeeze breakout signal fires on the first bar where the histogram was in a squeeze state on the prior bar and is now actively expanding in a clear direction
A bullish squeeze breakout fires when the histogram is above zero and expanding
A bearish squeeze breakout fires when the histogram is below zero and expanding
The signal is deliberately designed to mark the start of the new move rather than the quiet period before it. The squeeze period itself is shown in the dashboard as ● COILING so you can see compression building in real time, and the moment it resolves the dashboard switches to ⚡ BULL SQUEEZE or ⚡ BEAR SQUEEZE .
Visually, the squeeze breakout is shown as a single-bar background flash — the pane background briefly highlights in green or red at the breakout bar only, then returns to normal. This is clean and unambiguous — no labels stacking on the histogram, no text overlapping other signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 Bias Background Tint
When both the MACD line and the histogram agree on direction — both above zero for bullish, both below zero for bearish — a very subtle, persistent background tint is applied to the oscillator pane. Green for confirmed bull bias, red for confirmed bear bias, invisible when conditions are mixed or uncertain.
The tint is set at near-full transparency so it never competes with the histogram or lines visually — it is purely an ambient cue that tells you the overall momentum alignment without requiring you to actively check both values.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Dashboard
The dashboard gives you a real-time text readout of every MACD state in a compact panel — no need to read individual values off the chart manually. Eight rows update on every bar close:
MACD — live MACD line value, green when above zero, red when below
SIGNAL — live signal line value
HISTOGRAM — live histogram value, green when positive, red when negative
HIST MOM — histogram momentum state: ▲ EXPANDING or ▼ FADING, reflecting whether the current histogram bar is larger or smaller than the previous one
BIAS — overall momentum bias: ▲ BULL (both MACD and histogram positive), ▼ BEAR (both negative), ▲ WEAK BULL or ▼ WEAK BEAR when they disagree. Highlighted in green or red when a strong bias is active.
CROSS — shows ▲ BULL CROSS or ▼ BEAR CROSS when a signal line cross occurred on the current bar, highlighted in the corresponding color, otherwise — NONE
SIGNAL — shows the highest-priority active special signal: ◆ BULL DIVERGENCE, ◆ BEAR DIVERGENCE, ⚡ BULL SQUEEZE, ⚡ BEAR SQUEEZE, ● COILING (squeeze building but not yet broken), or — NONE
Dashboard position is configurable — Top Right, Top Left, Bottom Right, or Bottom Left.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
📊 4-color histogram — bright/dim bull and bear shading shows momentum direction AND quality simultaneously
〇 Signal line cross dots — filled circles on the signal line, bull green and bear red, confirmed on bar close
▲ Zero line cross markers — small triangles pinned at zero, marking macro trend shifts cleanly with no floating labels
◆ Divergence detection — bullish and bearish divergence with configurable lookback, marked with distinctive ring markers on the MACD line
⚡ Squeeze breakout detection — compression period monitoring with a single-bar background flash on breakout, no labels
🎨 Bias background tint — subtle ambient pane color when MACD and histogram both confirm the same direction
📋 Live 8-row dashboard — MACD, signal, histogram values, histogram momentum, bias state, cross status, and special signal — all updating in real time
🔔 10 alert conditions — individual alerts for every signal type plus combined any-bull and any-bear alerts
✅ Zero repainting — all signals confirmed on bar close only
🎨 Full AlphaX visual theme — yellow-green for bullish, red for bearish, dark background dashboard, consistent across all chart elements
⚙ Fully configurable — all MACD periods, source, display toggles, divergence lookback, and squeeze sensitivity adjustable from the settings panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
MACD Settings
Fast Length — EMA period for the fast moving average (default: 12)
Slow Length — EMA period for the slow moving average (default: 26)
Signal Length — SMA period for the signal line smoothing (default: 9)
Source — price source used for all calculations (default: close)
Display
Show MACD Line — toggle the MACD line on or off
Show Signal Line — toggle the signal line on or off
Show Histogram — toggle the histogram bars on or off
Histogram 4-Color Mode — toggle between 4-color momentum shading and single neutral color
Show Bias Background Tint — toggle the ambient pane tint when bias is confirmed
Signals
Show Signal Cross Dots — toggle cross dot markers on the signal line
Show Zero Line Cross Markers — toggle triangle markers at the zero line
Show Divergence Markers — toggle divergence ring markers on the MACD line
Divergence Lookback — number of bars to look back for divergence comparison (default: 14, range: 5–50)
Show Squeeze Breakout Markers — toggle squeeze breakout background flash
Squeeze Lookback (bars) — number of bars to measure histogram compression over (default: 5, range: 3–20)
Dashboard
Show Dashboard — toggle the live dashboard panel on or off
Position — placement of the dashboard (Top Right, Top Left, Bottom Right, Bottom Left)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Bull Signal Cross — MACD crossed above signal line
Bear Signal Cross — MACD crossed below signal line
Bull Zero Line Cross — MACD crossed above zero
Bear Zero Line Cross — MACD crossed below zero
Bullish Divergence — price lower low with MACD higher low below zero
Bearish Divergence — price higher high with MACD lower high above zero
Bullish Squeeze Breakout — histogram expanding bullish after compression
Bearish Squeeze Breakout — histogram expanding bearish after compression
Any Bull Signal — fires on any of the four bullish events above
Any Bear Signal — fires on any of the four bearish events above
All alert messages include {{ticker}} and {{interval}} placeholders for webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Read AlphaX Momentum Flow — Step by Step
Step 1 — Set your directional bias from the zero line
MACD above zero → macro bullish bias. Prioritize long setups and look for bullish signal line crosses and bullish divergence.
MACD below zero → macro bearish bias. Prioritize short setups and look for bearish signal line crosses and bearish divergence.
A zero line cross triangle tells you the moment the bias has officially flipped.
Step 2 — Read histogram momentum for timing
Bright color = momentum actively building in that direction. The strongest bars to align entries with.
Dim color = momentum fading. Not the time to chase — a cross or reversal may be forming.
Watch for dim → bright transitions as early momentum re-acceleration signals.
Step 3 — Use signal line crosses for entry timing
A green dot on the signal line during a bullish bias (MACD above zero) is a confirmation entry signal — momentum is re-aligning with the macro trend.
A red dot during a bearish bias is the equivalent for shorts.
Cross dots that occur against the zero line bias (e.g., a red cross dot while MACD is above zero) are counter-trend signals — treat them with more caution or use them only for partial exits.
Step 4 — Watch for divergence as early reversal warning
A ◆ ring marker on the MACD line means price and momentum are disagreeeing — one of them is about to correct toward the other.
Bullish divergence below zero is one of the highest-probability reversal setups on this indicator — price is making new lows but the selling force is measurably weakening.
Do not act on divergence alone — wait for a signal line cross or zero line cross to confirm the reversal is beginning.
Step 5 — Act on squeeze breakouts for impulsive move entries
When the dashboard shows ● COILING, momentum is compressing. A larger move is building.
When the pane flashes and the dashboard switches to ⚡ BULL SQUEEZE or ⚡ BEAR SQUEEZE, the compression has resolved — the new move is starting.
Squeeze breakouts are particularly powerful when they occur after a zero line cross — compressed momentum breaking out in the direction of a fresh macro bias shift.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
📈 MACD users who want more information without more clutter — every enhancement adds insight through visual design, not text labels stacking on the chart
🥇 Momentum traders on any instrument or timeframe — works on forex, gold, indices, crypto, and equities across all timeframes
🧠 Traders who use MACD for trend confirmation — the zero line cross markers and bias tint make the macro trend state immediately obvious without reading numbers
🔍 Traders who rely on divergence — automated detection with a clean ring marker removes the manual scanning process
⚡ Breakout traders — the squeeze detector gives early warning when momentum is coiling before an impulsive move
🔔 Alert-driven traders — 10 alert conditions cover every signal type with clean webhook-ready messages
📋 Traders who want a live status readout — the dashboard replaces manual value checking with a real-time state panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — Momentum Flow does not repaint. Signals visible on historical bars will not move or disappear.
The divergence detector compares the current bar's close and MACD value against the lowest or highest values seen in the lookback window. Increasing the lookback produces fewer but more structurally significant divergence signals. Decreasing it produces more frequent signals on smaller swings.
The squeeze sensitivity is controlled by the Squeeze Lookback setting. Shorter lookback = more squeeze signals on minor compressions. Longer lookback = only major compression periods qualify.
The MACD line color changes dynamically based on whether it is above or below the signal line — green when above, red when below — giving an additional at-a-glance view of cross state beyond the dot markers.
Default MACD settings (12 / 26 / 9) are the universal standard. They work well across all timeframes and instruments without adjustment. Modify them only if you have a specific reason based on your instrument's volatility profile.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ 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 more from their MACD — without more noise on their chart. Indicator

Negative Volume Index Oscillator [ZOM]Negative Volume Index Oscillator (NVI Oscillator) is a momentum-based indicator designed to highlight underlying market activity by focusing on periods of declining volume. Built around the classic Negative Volume Index (NVI) , this tool transforms the raw data into a normalized oscillator, making it easier to interpret shifts in trend, momentum, and potential reversals.
The oscillator measures the deviation of smoothed NVI from its long-term average, presenting this relationship as a percentage-based value centered around a zero line. This allows traders to quickly identify whether price action is supported by quieter, more “ informed ” market participation, which is often associated with institutional positioning.
A configurable signal line is included to help identify momentum shifts through crossovers and crossunders. These interactions can be used to spot early trend changes or confirm continuation depending on market context.
To provide additional structure, the indicator includes optional volatility bands derived from standard deviation. These bands help identify statistically stretched conditions where price may be overextended, increasing the likelihood of mean reversion or consolidation.
The script also features built-in divergence detection, comparing oscillator movement to price action. Bullish and bearish divergences are automatically identified, offering early warning signals of potential reversals when momentum and price begin to disagree.
Key features include:
- Oscillator derived from smoothed Negative Volume Index
- Signal line with multiple moving average options
- Volatility bands for identifying extreme conditions
- Histogram visualization for momentum strength
- Automatic bullish and bearish divergence detection
- Crossover and crossunder markers for signal clarity
- Fully customizable smoothing, lengths, and visual settings
This indicator is designed to complement price action analysis by providing a deeper view into momentum behavior during low-volume conditions, helping traders identify potential turning points and confirm trend strength. Indicator

Indicator

Indicator

Indicator

Indicator

[CT] Relative Trend Index Advanced ColoringThe Relative Trend Index Advanced Coloring is an enhanced visual version of the original Relative Trend Index, RTI, created by Zeiierman. Full credit and respect go to Zeiierman for the original RTI concept, calculation logic, and foundation of this indicator. This ChaosTrader63 version preserves the original RTI calculation while adding visual upgrades designed to make bullish pressure, bearish pressure, and momentum shifts easier to read in real time.
The Relative Trend Index helps traders evaluate where price is positioned within a dynamic trend range. Instead of only reacting to raw price movement, RTI gives traders a smoother view of whether price is showing strength, weakness, or a possible directional shift. This can help traders recognize developing trend pressure before the move becomes obvious on the price chart.
Updates Added by ChaosTrader63
Automatic Bullish and Bearish RTI Line Coloring
The RTI line now changes color based on the selected condition. When the RTI condition is bullish, the line turns green. When the RTI condition is bearish, the line turns red. This makes the indicator easier to read quickly, especially during fast-moving markets.
Selectable RTI Color Mode
This version includes two different coloring modes, RTI vs MA and RTI vs 50. The RTI vs MA mode colors the RTI based on whether it is above or below its signal line, which can help identify earlier momentum shifts. The RTI vs 50 mode colors the RTI based on whether it is above or below the 50 midline, which can help provide broader trend confirmation.
Optional Price Bar Coloring
A price bar coloring option has been added so the chart candles can match the RTI condition. When enabled, bullish RTI conditions color the price bars green, and bearish RTI conditions color the price bars red. This helps connect the lower indicator directly to the price chart so traders can see when price action and RTI pressure are aligned.
User-Selectable Bullish and Bearish Colors
Traders can now choose their own bullish and bearish colors. This allows the indicator to better match each trader’s chart theme, visual preference, or existing trading system.
User-Selectable Moving Average Color
The RTI signal line color can also be customized. This makes it easier to separate the RTI line from the signal line visually and helps improve chart readability.
Cleaner Input Organization
The settings have been organized into cleaner groups, including RTI settings, signal line settings, overbought and oversold settings, color settings, and price bar settings. This makes the indicator easier to adjust and understand.
Original RTI Calculation Preserved
The core Zeiierman RTI calculation has not been changed. This update focuses on visualization and usability, not replacing the original logic.
Original Levels and Alert Conditions Preserved
The 50 midline, overbought level, oversold level, background fill, gradient fills, and alert conditions remain included so traders still have access to the original RTI structure and key reference zones.
This indicator can be used as a trend pressure tool, a momentum confirmation tool, or a visual filter when combined with price action, moving averages, market structure, support and resistance, volume, or ATR-based targets. The goal of this version is to make RTI easier to interpret at a glance while respecting and preserving the original work created by Zeiierman.
The Relative Trend Index is a trend pressure and momentum tool designed to show where price is trading within a dynamic trend range. Instead of simply looking at whether price is moving up or down, the RTI evaluates price in relation to upper and lower trend boundaries. This helps traders see whether the market is showing bullish strength, bearish weakness, or a possible shift in directional pressure.
When the RTI is rising, it can suggest that bullish pressure is building. When the RTI is falling, it can suggest that bearish pressure is increasing. When the RTI moves above its signal line, momentum may be shifting in favor of the bulls. When the RTI moves below its signal line, momentum may be shifting in favor of the bears. The 50 midline can also be used as a broader trend reference. Readings above 50 generally show stronger bullish pressure, while readings below 50 generally show stronger bearish pressure.
The overbought and oversold zones provide additional context. When the RTI moves into the upper zone, it may show strong bullish pressure or an extended move. When it moves into the lower zone, it may show strong bearish pressure or an extended downside move. These areas should not be treated as automatic buy or sell signals, because strong trends can remain elevated or depressed for long periods. The real value of the RTI is in helping traders read pressure, momentum, and possible trend shifts before the move becomes obvious on the price chart.
This tool can be used as a trend pressure indicator, a momentum confirmation tool, or a visual trade filter. Traders may use it with moving averages, price action, market structure, support and resistance, volume, or ATR targets. For example, if the RTI turns bearish, moves below the signal line, and price also breaks below a key moving average, that may confirm stronger downside pressure. If the RTI turns bullish, moves above the signal line, and price reclaims trend structure, that may confirm improving upside pressure. Indicator

Swing Trade Master v2 [14-Confirm]Overview
Instead of relying on any single indicator, this script runs 14 indicators simultaneously on every bar and assigns each one a vote — bullish or bearish. Those votes are tallied into a score out of 14. A trade signal only fires when the score clears your chosen threshold and a momentum trigger fires at the exact same bar, ensuring both the broad market context and short-term timing agree. A Choppiness Index gate sits above everything and blocks all signals when the market is ranging rather than trending.
How a signal is generated — step by step
Choppiness gate check
The Choppiness Index is calculated first. If it reads above 61.8 (ranging/choppy market), all signals are suppressed for that bar and bars tint gray. This prevents entries during sideways price action where trend indicators give false signals.
Each indicator casts a vote
All 14 indicators evaluate the current bar. Each one produces a binary result — bullish (1) or bearish (0). Trend indicators look at alignment, momentum oscillators look at zones, and volume/flow indicators check buying vs selling pressure.
Scores are tallied
Bull votes are summed into a Bull Score (0–14) and bear votes into a Bear Score (0–14). Both are displayed live in the HUD table on the top-right of your chart. A score of 7 or above means at least half of all indicators agree on direction.
Score threshold check
The bull/bear score must reach your configured minimum (default 7/14). This filters out weak or ambiguous setups where indicators disagree. The higher you set this threshold, the fewer but stronger signals you receive.
Momentum trigger required
Even with a passing score, the signal won't fire unless a momentum-based crossover also occurs on the same bar — one of: MACD cross, RSI exiting oversold/overbought, Stochastic RSI cross, Williams %R exit, Super trend flip, or Parabolic SAR flip. This provides precise timing, so you don't enter mid-trend.
Opposing score tie-break
A final sanity check: if the opposing score is higher than the signal score, the signal is blocked. For example, a bull score of 8 is blocked if the bear score is 9 — the market is too mixed to take confidently.
De-duplication
Once a BUY or SELL fires, it is locked in. Subsequent bars that would trigger the same direction are suppressed until a signal in the opposite direction appears. This means you never see stacks of BUY labels on consecutive bars.
ATR stop loss and take profit drawn
On signal bars, horizontal SL and TP lines are drawn. Stop Loss = entry price minus (ATR × 1.5). Take Profit = entry price plus (ATR × 3.0). This gives a default 2:1 risk/reward ratio. Both multipliers are adjustable in settings.
Exit monitoring begins
After entry, the script monitors 10 exit conditions. A minimum of 3 bars must pass before any exit can fire. Then either a single strong exit (Super trend or PSAR flip) or 2+ standard exit conditions must agree simultaneously. Only one exit signal per trade is shown — never repeated.
Signal types on the chart
▲ BUY — green label below bar
All conditions met. Shows score, SL price, TP price in a detail label. Teal PSAR dots switch below price. Supertrend line turns green.
▼ SELL — red label above bar
All conditions met for short entry. Shows score, SL, TP. PSAR dots switch above price. Supertrend line turns red.
✕ Exit long — orange X above bar
Fired after 3+ bars when Supertrend/PSAR flips bearish, or 2+ of: RSI OB cross, MACD cross, Stoch, CCI, WPR, MFI, or VWAP cross.
✕ Exit short — cyan X below bar
Fired after 3+ bars when Supertrend/PSAR flips bullish, or 2+ of the same conditions reversed. One exit maximum per trade.
When the market is choppy (Choppiness Index > 61.8), bars tint gray and a ⚠ CHOP label appears on the last bar. No BUY or SELL signals will fire until trending conditions return.
Recommended settings by market type
Stocks (trending)
Score 7–8 · 4H or Daily · ATR SL 1.5 · TP 3.0
Crypto (volatile)
Score 8–9 · 4H or Daily · ATR SL 2.0 · TP 4.0
Forex (ranging)
Score 8+ · Daily only · Lower Chop to 55 · SL 1.2
Index ETFs
Score 6–7 · Daily · Default ATR · Standard Chop Indicator

Structural Sequence Pressure [JOAT]Structural Sequence Pressure
Introduction
Structural Sequence Pressure is a market-structure breakout indicator built around the idea that not all pivot levels carry the same weight. A level formed after one isolated pivot is ordinary. A level formed after repeated higher lows or lower highs represents structural persistence. This script quantifies that persistence, plots the resulting support and resistance levels, and highlights when those levels break.
The indicator is designed for traders who want clean structure without overfitting. It tracks sequence depth, manages active levels, and focuses attention on breaks that matter more because the market spent time constructing them.
Why This Indicator Exists
Sequence-Based Structure: Measures how many pivots formed in the same directional progression
Level Significance Filter: Helps distinguish weak levels from structurally reinforced ones
Live Break Detection: Signals when meaningful support or resistance gives way
Clutter Control: Caps active lines and labels to keep charts readable
Statistical Feedback: Shows the most recent sequence pressure behavior directly in the dashboard
Core Components Explained
1. Confirmed Pivot Detection
pivHigh = ta.pivothigh(high, leftBars, rightBars)
pivLow = ta.pivotlow(low, leftBars, rightBars)
The script only reacts to confirmed pivots. This means levels are built from validated swing points rather than from intrabar noise, which keeps the tool stable and non-repainting after pivot confirmation.
2. Upward and Downward Sequence Counting
When a new pivot low forms higher than the previous pivot low, the upward sequence count increases. When a new pivot high forms lower than the previous pivot high, the downward sequence count increases. If the relationship fails, the sequence resets to one.
Higher lows: Build upward structural pressure
Lower highs: Build downward structural pressure
Longer sequences: Represent stronger structural continuity
3. Active Level Engine
Every confirmed pivot creates a horizontal level that extends right. Support levels come from pivot lows. Resistance levels come from pivot highs. Each level stores:
Its price
Whether it is support or resistance
Its sequence depth
Its creation time
Levels are trimmed by age and capped by quantity so the chart stays clean.
4. Break Logic
brokeSupport = close < supportLevel
brokeResistance = close > resistanceLevel
Only levels with sequence depth greater than or equal to the selected threshold can trigger signals. This creates a cleaner breakout map that emphasizes structurally meaningful failures and expansions.
5. Chart Hygiene Controls
The script stores and prunes pivot labels so they do not accumulate indefinitely. Broken or expired levels are removed from active management, and broken levels can optionally be deleted immediately for a cleaner chart.
Visual Elements
Support Lines: Teal dashed levels extending from higher-low pivots
Resistance Lines: Red dashed levels extending from lower-high pivots
Pivot Labels: Compact U/D sequence tags showing progression depth
Break Markers: Triangles on bullish resistance breaks and bearish support breaks
Dashboard: Up sequence, down sequence, total breaks, last break depths, and active level count
Input Parameters
Pivot Left / Right Bars: Confirmation strength for structural swings
Minimum Sequence: Required sequence depth before a break can trigger
Max Active Levels: Hard cap for line management and chart cleanliness
Max Level Age: Removes stale structure from consideration
Delete Broken Levels: Optional cleanup for a more minimal chart
How to Use This Indicator
Step 1: Identify whether the market is building higher lows or lower highs.
Step 2: Focus on levels with deeper sequence counts.
Step 3: Treat bullish signals as upside breaks of resistance sequences.
Step 4: Treat bearish signals as downside breaks of support sequences.
Step 5: Use the level count and recent break depths to judge whether structure is compressing or resolving.
Best Practices
Use larger pivot settings on volatile instruments to reduce noise
Increase minimum sequence length when markets are choppy
Pair with trend or participation tools to separate continuation from exhaustion
Respect old levels less than fresh ones unless they were built with deep sequence pressure
Use the dashboard to calibrate structure sensitivity instrument by instrument
Indicator Limitations
Pivot-based tools confirm after the fact by design
Sequence strength measures persistence, not certainty
Very low pivot settings can create too many structural levels
Very high pivot settings can delay signals
Breakouts can still fail, especially in range-bound conditions
Technical Implementation
Built in Pine Script v6 using:
Confirmed pivot detection
Directional sequence counting
Array-managed line storage
Label retention caps for chart cleanliness
Age-based level cleanup
Non-repainting break logic on confirmed bars
Originality Statement
This indicator is original in its focus on sequence depth as the source of structural weighting. Many support and resistance tools draw levels; this one grades their importance by the persistence of the swing process that created them, then filters breakout logic through that structural pressure.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Structural breaks can fail, reverse, or whipsaw. Always use independent analysis, stops, and appropriate risk management.
-Made with passion by officialjackofalltrades
Indicator

Centro de Mando Quant: Z-Score & F*cking Sortino RatioWhat the f*ck is up, traders? Listen to me. If you are looking for a magical indicator that paints little green and red arrows to tell you when to buy and sell like a toddler, keep walking. This tool is not for you.
90% of retail traders get absolutely slaughtered in the markets because they trade based on emotions, hope, and imaginary lines drawn blindly on a chart. This script was forged with a strictly military and quantitative mindset. We don't guess here; we calculate probabilities, standard deviations, and asymmetric risk.
I present to you the Quant Command Center, a rolling tactical dashboard designed specifically to measure the guts of any highly volatile crypto, without cluttering your price action.
⚙️ THE QUANTITATIVE ARSENAL (Under the Hood)
This panel does NOT give automated signals. It gives you raw data so YOU can make the decision to pull the trigger.
Price Z-Score (Statistical Anomalies): Calculates how many standard deviations the current price is from its mean. If the Z-Score breaks +2.5 or drops below -2.5, you are looking at an unsustainable parabolic move. It tells you exactly when the market is overextended so you stop buying the top out of pure FOMO.
Volume Z-Score: Confirms if the current move is backed by heavy artillery (institutional money) or if it's just a weekend skirmish with zero real volume.
Rolling Sharpe Ratio: Measures the performance of price action against total volatility over the selected period.
The Sortino Ratio (Asymmetric Risk): The real survival filter. Unlike the Sharpe ratio, Sortino ONLY penalizes downside volatility. If the Sortino is red, the trend will tear you apart. If it's green, the bullish momentum has a clear, clean path.
🛠️ TACTICAL INSTRUCTIONS
Apply the indicator on 1H or 4H timeframes to filter out market noise.
Keep your eyes locked on the Statistical Context in the bottom right panel.
Use extreme Z-Scores to hunt for Mean Reversions or to lock in your profits.
Use positive Sortino ratios to confirm your entries on Breakouts.
"In war and in the markets, hope is not a tactical strategy. Cold data and discipline are your only salvation."
If you aren't willing to manage your risk, this dashboard won't save you. But if you have the discipline to read the numbers, plan your trade, and execute without hesitation, this tool will give you an unfair statistical advantage over the rest of the market.
Lock and load. Do your backtesting, execute your plan, and stop giving your money away to the market. Dismissed! Indicator
