Range Expansion Index (REI)Introduction and History
I'm sharing an indicator today that I have developed: the Range Expansion Index (REI). This powerful oscillator was developed by the renowned technical analyst Thomas DeM., known for his unique approach to market timing and price exhaustion. The REI was introduced as part of his comprehensive suite of technical tools, detailed in his influential work, such as "The New Science of Technical Analysis."
DeM. designed the REI to be a more refined momentum oscillator. His goal was to create an indicator that could accurately reflect the underlying strength or weakness of price movements while minimizing the false signals often generated by traditional oscillators during sideways or choppy markets. The REI achieves this by focusing on significant price expansions and contractions, comparing recent price behavior to the overall price changes over a specified lookback period.
You can find more information and the basis for this indicator here:
QuantifiedStrategies: www.quantifiedstrategies.com
Infront Help Center: infront-portfolio-manager.helpcenter.infront.co
How the REI Works
The core of the REI's calculation lies in identifying and quantifying "strong" price changes within a given period (typically 8 bars). It does this by evaluating specific price relationships and conditions between current and past bars. The indicator then computes a ratio comparing the sum of these "strong" price changes to the sum of the absolute total price changes over the lookback period, scaling the result to oscillate between -100 and +100.
The key levels for interpreting the REI are generally:
+60: Overbought Zone
-60: Oversold Zone
Unlike oscillators that might simply signal overbought/oversold upon entering these zones, the REI's interpretation, according to DeM., often focuses on the exit from these extreme areas.
Traditional Trading Signals
Based on DeM.'s methodology and the descriptions in the provided links, the primary trading signals generated by the REI occur when the indicator crosses back from an extreme zone:
Sell Signal: The REI moves above the +60 level and then crosses back down below +60. This suggests potential price weakness after a period of strong upward momentum.
Buy Signal: The REI moves below the -60 level and then crosses back up above -60. This indicates potential price strength after a period of strong downward momentum.
Duration Analysis: An Optional Signal Filter
The QuantifiedStrategies link highlights the concept of "Duration Analysis," suggesting that the amount of time (number of bars) the REI spends in the overbought or oversold region can add crucial context. A brief stay might precede a reversal, while a prolonged stay could indicate a strong, persistent trend.
The indicator incorporates this concept as an optional filter. You can enable this feature and specify a number of bars. When enabled, a buy or sell signal will only be triggered if the REI crosses the respective overbought/oversold level AND the duration of the REI being in that extreme zone precisely matches the number of bars you specify in the input settings.
Indicator Features in This Pine Script
The Pine Script code I have developed provides a comprehensive implementation of the REI with additional trading utilities:
REI Calculation: Implements the core REI formula based on conditional price changes and summations over a defined period.
Configurable REI Period: Easily adjust the main lookback period for the REI calculation.
Customizable Lookback Parameters: Fine-tune the specific lookback periods used in the internal conditions (n1L, n2L, n3L) as described in the calculation method.
Plotting: Displays the REI line in a separate pane, along with horizontal lines at +60 (Overbought), -60 (Oversold), and 0 (Zero Line) for clear visual analysis.
Configurable Alerts: Set up Buy and Sell alerts that trigger when the REI crosses the +60/-60 levels. Control global alert enabling, and specifically enable/disable Buy and Sell alerts.
Plot Shapes for Signals: Optionally display visual triangle shapes directly on the price chart (red triangle down for Sell above the bar, green triangle up for Buy below the bar) to easily spot signal occurrences. Control global shape enabling and specifically enable/disable Buy/Sell shapes.
Optional Duration Analysis Filter: Activate a filter that requires the REI to have spent an exact number of consecutive bars in the overbought/oversold zone at the moment of the cross for a signal to be considered valid. Configure the required number of bars.
How to Use This Code in TradingView
Open TradingView and navigate to the Pine Editor (usually the icon on the left sidebar or via the bottom panel).
Delete any existing code in the editor and paste the REI code.
Save the script (you can name it "Range Expansion Index with Duration Filter" or similar).
Add the indicator to your chart by clicking the "Add to Chart" button in the Pine Editor.
Access the indicator's settings on your chart to adjust the REI Period, Lookbacks, and enable/disable Alerts, Plot Shapes, and the optional Duration Filter (including setting the number of bars).
To receive actual notifications: You must set up alerts manually through the TradingView platform's alert system (right-click on the indicator -> Add alert on Range Expansion Index (REI)...). Select the specific conditions "REI Sell Signal" or "REI Buy Signal" from the dropdown menu and configure your desired notification methods (popup, email, etc.).
Disclaimer:
Trading financial markets involves risk, and past performance is not indicative of future results. This indicator is a tool for analysis and should be used as part of a comprehensive trading strategy, always combined with other techniques and proper risk management. Always conduct your own research and backtest the indicator to understand its behavior on the markets and timeframes you trade.
M-oscillator
Disparity Index with Volatility ZonesDisparity Index with Volatility Zones
is a momentum oscillator that measures the percentage difference between the current price and its simple moving average (SMA). This allows traders to identify overbought/oversold conditions, assess momentum strength, and detect potential trend reversals or continuations.
🔍 Core Concept:
The Disparity Index (DI) is calculated as:
DI = 100 × (Price − SMA) / SMA
A positive DI indicates the price is trading above its moving average (potential bullish sentiment), while a negative DI suggests the price is below the average (potential bearish sentiment).
This version of the Disparity Index introduces a dual-zone volatility framework, offering deeper insight into the market's current state.
🧠 What Makes This Version Unique?
1. High Volatility Zones
When DI crosses above +1.0% or below –1.0%, it often indicates the start or continuation of a strong trend.
Sustained readings beyond these thresholds typically align with trending phases, offering opportunities for momentum-based entries.
A reversal back within ±1.0% after exceeding these levels can suggest a shift in momentum — similar to how RSI exits the overbought/oversold zones before reversals.
These thresholds act as dynamic markers for breakout confirmation and potential trend exhaustion.
2. Low Volatility Zones
DI values between –0.5% and +0.5% define the low-volatility zone, shaded for visual clarity.
This area typically indicates market indecision, sideways price action, or consolidation.
Trading within this range may favor range-bound or mean-reversion strategies, as trend momentum is likely limited.
The logic is similar to interpreting a flat ADX, tight Bollinger Bands, or contracting Keltner Channels — all suggesting consolidation.
⚙️ Features:
Customizable moving average length and input source
Adjustable thresholds for overbought/oversold and low-volatility zones
Optional visual fill between low-volatility bounds
Clean and minimal chart footprint (non-essential plots hidden by default)
📈 How to Use:
1. Trend Confirmation:
A break above +1.0% can be used as a bullish continuation signal.
A break below –1.0% may confirm bearish strength.
Long periods above/below these thresholds support trend-following entries.
2. Reversal Detection:
If DI returns below +1.0% after exceeding it, bullish momentum may be fading.
If DI rises above –1.0% after falling below, bearish pressure may be weakening.
These shifts resemble overbought/oversold transitions in oscillators like RSI or Stochastic, and can be paired with divergence, volume, or price structure analysis for higher reliability.
3. Sideways Market Detection:
DI values within ±0.5% indicate low volatility or a non-trending environment.
Traders may avoid breakout entries during these periods or apply range-trading tactics instead.
Observing transitions out of the low-volatility zone can help anticipate breakouts.
4. Combine with Other Indicators:
DI signals can be enhanced using tools like MACD, Volume Oscillators, or Moving Averages.
For example, a DI breakout beyond ±1.0% supported by a MACD crossover or volume spike can help validate trend initiation.
This indicator is especially powerful when paired with Bollinger Bands:
A simultaneous price breakout from the Bollinger Band and DI moving beyond ±1.0% can help identify early trend inflection points.
This combination supports entering positions early in a developing trend, improving the efficiency of trend-following strategies and enhancing decision-making precision.
It also helps filter false breakouts when DI fails to confirm the move outside the band.
This indicator is designed for educational and analytical purposes and works across all timeframes and asset classes.
It is particularly useful for traders seeking a clear framework to identify momentum strength, filter sideways markets, and improve entry timing within a larger trading system.
WaveFunction MACD (TechnoBlooms)WaveFunction MACD — The Next Generation of Market Momentum
WaveFunction MACD is an advanced hybrid momentum indicator that merges:
• The classical MACD crossover logic (based on moving averages)
• Wave physics (modeled through phase energy and cosine functions)
• Hilbert Transform theory from signal processing
• The concept of a wavefunction from quantum mechanics, where price action is seen as a probabilistic energy wave—not just a trend.
✨ Key Features of WaveFunction MACD
• Wave Energy Logic : Instead of using just price and MA differences, this indicator computes phase-corrected momentum using the cosine of the wave phase angle — revealing the true energy behind market moves.
• Phase-Based Trend Detection : It reads cycle phases using Hilbert Transform-like logic, allowing you to spot momentum before it becomes visible in price.
• Ultra-Smooth Flow : The main line and histogram are built to follow price flow smoothly — eliminating much of the noise found in traditional MACD indicators.
• Signal Amplification via Energy Histogram : The histogram doesn’t just show momentum changes — it shows the intensity of wave energy, allowing you to confirm the strength of the trend.
• Physics-Driven Structure : The algorithm is rooted in real-world wave mechanics, bringing a scientific edge to trading — ideal for traders who believe in natural models like cycles and harmonics.
• Trend Confirmation & Early Reversals : It can confirm strong trends and also catch subtle shifts that often precede big reversals — giving you both reliability and anticipation.
• Ready for Fusion : Designed to work seamlessly with liquidity zones, price action, order blocks, and structure trading — a perfect fit for modern trading systems.
🧪 The Science Behind It
This tool blends:
• Hilbert Transform: Measures the phase of a waveform (price cycle) to detect turning points
• Cosine Phase Energy: Calculates true wave energy using the cosine of the phase angle, revealing the strength behind price movements
• Quantum Modeling: Views price like a wavefunction, offering predictive insight based on phase dynamics
CoinWise - Longs & ShortsCOINWISE LONGS & SHORTS
Track the real-time positioning battle between longs / shorts and know who’s really in control.
🔹 What Is It? Why Does It Matter?
The CoinWise Longs & Shorts indicator gives you a precision view into the positioning behavior behind each move in the market.
Instead of relying on price alone, this tool analyzes the volume of opened and closed long and short positions by combining three powerful data sources:
Open Interest to measure true commitment
Cumulative Volume Delta (CVD) to detect buying vs. selling aggression
Price Action to add context and direction
It doesn’t just show you whether traders are buying or selling it reveals how they’re behaving :
Are they confidently entering? Hesitating and closing? Getting trapped and liquidated?
By tracking this behavior live, you get a constant pulse on market sentiment and potential pressure zones long before they appear on price alone.
🔹 Core Components
The Longs & Shorts Indicator calculates four key trade behaviors in real time:
New Longs : Bullish positioning where price, OI, and CVD are all rising
Rekt Longs : Capitulating longs where price drops and OI/CVD unwind
New Shorts : Bearish pressure stacking in with momentum
Rekt Shorts : Short positions closing into strength potential for squeezes
From these behaviors, the indicator calculates:
Net Longs
Net Shorts
Net Delta (Longs - Shorts)
This gives you a live view of who’s dominating the market and when they lose control.
🔹 Customization and Settings
You have full control over how the data is displayed to match your trading style:
Plot Type:
Choose between candlesticks (full OHLC behavior of net positioning) or a clean line plot for momentum reading.
Show Data:
Focus on just the visible range for real-time scalping, or scan the full dataset for macro positioning shifts.
Candle Values:
Display data in either Tokens (raw position count) or Currency (capital commitment behind the positions).
Select What’s Visible:
Show or hide Longs, Shorts, and Net Delta independently, with customizable color schemes for clarity.
Legend Overlay:
Enable or disable the on-chart info panel showing live totals for each stream.
All controls are built for seamless tuning during live sessions.
🔹 Practical Application
Use CoinWise Longs & Shorts to:
Confirm whether a breakout is driven by conviction or liquidation
Spot early signs of trap formations as shorts start exiting into strength
Detect exhaustion moves where net longs shrink despite rising prices
Monitor the net delta to confirm bias before executing entries
Pair this tool with VWAP, structural levels, or Divergences to build a confluence map of positioning pressure and price intent . This is how institutional traders operate with a real-time read of who’s trapped, who’s loading, and where the fuel lies next.
CoinWise - DivergencesCOINWISE DIVERGENCES
Detects hidden shifts between price and underlying momentum
🔹 What Is It? Why Does It Matter?
The CoinWise Divergences Indicator is designed to uncover critical moments where price action and momentum separate. By identifying both regular divergences and hidden divergences , it offers traders an early warning system for potential reversals, trend continuations, or exhaustion points.
Where most indicators react after the fact, divergences give you a front-row seat to where momentum might fail or accelerate.
Whether you are confirming the strength behind a breakout, spotting hidden continuation setups, or catching fading moves before the crowd, Divergences deliver a tactical edge at key structural moments.
🔹 Core Components
The CoinWise Divergences Indicator scans across multiple oscillators and sources, including:
Cumulative Volume Delta ( CVD )
Relative Strength Index ( RSI )
Moving Average Convergence Divergence ( MACD )
Momentum ( MOM )
On Balance Volume ( OBV )
Stochastic Oscillator ( STK )
Money Flow Index ( MFI )
Volume Weighted Moving Average ( VWMA )
Chaikin Money Flow ( CMF )
External Source ( Custom Indicator Inputs )
It detects:
Regular Divergences:
Suggesting potential trend reversals.
Hidden Divergences:
Indicating trend continuation.
The system overlays divergence lines either directly on the oscillator window or optionally on the main price chart for full flexibility . Both bullish and bearish patterns are automatically color-coded for fast, clear recognition
🔹 Customization and Settings
CoinWise Divergences is fully adjustable to fit any trading style:
Oscillator Selection:
Choose from a wide range of built-in or external sources.
Pivot Depth Control:
Define how many historical pivots are analyzed for divergence matching.
Data Basis:
Select between High/Low or Open/Close pivots for divergence detection.
Maximum Bar Distance:
Control how far apart divergence points can be, allowing tighter or looser matching.
Main Chart Plotting:
Enable divergence lines to be shown directly on the main chart alongside price candles.
Visual Styling:
Customize the thickness, color, transparency, and visual separation between regular and hidden divergences.
Oscillator Specific Settings:
Fine-tune input parameters like length, source, smoothing method, and calculation basis for each oscillator independently.
🔹 Practical Application
CoinWise Divergences is a precision tool for both discretionary and systematic traders use it to:
Detect early signs of trend reversal when momentum weakens against price direction.
Confirm pullbacks and continuation setups in strong trends via hidden divergence detection.
Spot exhaustion before the broader market reacts, gaining superior entry and exit points.
Integrate multiple timeframes for stacking divergences for the highest-probability plays.
By surfacing these hidden behavioral clues between price and underlying market participation, Divergences help you trade smarter where imbalance begins, not where it’s already priced in.
4H Golden Cross - The Sign of GloryCalculates the golden cross on the 4-hour timeframe
Displays the result on any timeframe
Draws a green vertical beam (a vertical line or background stripe) on the bar where the golden cross happened, so it’s clearly visible regardless of your chart timeframe
This is used to see the effectiveness of the 4h golden cross without having to change timeframes continually
Pulse DPO with Z-Score📌 Pulse DPO with Z-Score — Indicator Description (English)
The Pulse DPO (Detrended Price Oscillator) helps identify major market cycle tops and bottoms by removing long-term trends and focusing on shorter-term price cycles.
This enhanced version includes:
A normalized oscillator (0–100) based on recent price deviations.
A smoothed signal to reduce noise.
A Z-Score transformation, scaling the output to a range from –3 to +3, where:
–3 represents extreme oversold conditions (former normalized value = 100),
+3 represents extreme overbought conditions (former normalized value = 1).
🔍 How it works:
The indicator subtracts a delayed moving average from price to isolate short-term cycles (DPO logic).
It then normalizes the oscillator within a lookback window.
Finally, it converts this to a Z-Score scale for easier interpretation of extremes.
🟢 Suggested Usage:
Consider Long entries or Short exits when Z-Score reaches –2 to –3 (deep oversold).
Consider Short entries or Long exits when Z-Score reaches +2 to +3 (deep overbought).
Use in combination with other signals for higher-confidence setups.
Hurst Exponent Oscillator [PhenLabs]📊 Hurst Exponent Oscillator -
Version: PineScript™ v5
📌 Description
The Hurst Exponent Oscillator (HEO) by PhenLabs is a powerful tool developed for traders who want to distinguish between trending, mean-reverting, and random market behaviors with clarity and precision. By estimating the Hurst Exponent—a statistical measure of long-term memory in financial time series—this indicator helps users make sense of underlying market dynamics that are often not visible through traditional moving averages or oscillators.
Traders can quickly know if the market is likely to continue its current direction (trending), revert to the mean, or behave randomly, allowing for more strategic timing of entries and exits. With customizable smoothing and clear visual cues, the HEO enhances decision-making in a wide range of trading environments.
🚀 Points of Innovation
Integrates advanced Hurst Exponent calculation via Rescaled Range (R/S) analysis, providing unique market character insights.
Offers real-time visual cues for trending, mean-reverting, or random price action zones.
User-controllable EMA smoothing reduces noise for clearer interpretation.
Dynamic coloring and fill for immediate visual categorization of market regime.
Configurable visual thresholds for critical Hurst levels (e.g., 0.4, 0.5, 0.6).
Fully customizable appearance settings to fit different charting preferences.
🔧 Core Components
Log Returns Calculation: Computes log returns of the selected price source to feed into the Hurst calculation, ensuring robust and scale-independent analysis.
Rescaled Range (R/S) Analysis: Assesses the dispersion and cumulative deviation over a rolling window, forming the core statistical basis for the Hurst exponent estimate.
Smoothing Engine: Applies Exponential Moving Average (EMA) smoothing to the raw Hurst value for enhanced clarity.
Dynamic Rolling Windows: Utilizes arrays to maintain efficient, real-time calculations over user-defined lengths.
Adaptive Color Logic: Assigns different highlight and fill colors based on the current Hurst value zone.
🔥 Key Features
Visually differentiates between trending, mean-reverting, and random market modes.
User-adjustable lookback and smoothing periods for tailored sensitivity.
Distinct fill and line styles for each regime to avoid ambiguity.
On-chart reference lines for strong trending and mean-reverting thresholds.
Works with any price series (close, open, HL2, etc.) for versatile application.
🎨 Visualization
Hurst Exponent Curve: Primary plotted line (smoothed if EMA is used) reflects the ongoing estimate of the Hurst exponent.
Colored Zone Filling: The area between the Hurst line and the 0.5 reference line is filled, with color and opacity dynamically indicating the current market regime.
Reference Lines: Dash/dot lines mark standard Hurst thresholds (0.4, 0.5, 0.6) to contextualize the current regime.
All visual elements can be customized for thickness, color intensity, and opacity for user preference.
📖 Usage Guidelines
Data Settings
Hurst Calculation Length
Default: 100
Range: 10-300
Description: Number of bars used in Hurst calculation; higher values mean longer-term analysis, lower values for quicker reaction.
Data Source
Default: close
Description: Select which data series to analyze (e.g., Close, Open, HL2).
Smoothing Length (EMA)
Default: 5
Range: 1-50
Description: Length for smoothing the Hurst value; higher settings yield smoother but less responsive results.
Style Settings
Trending Color (Hurst > 0.5)
Default: Blue tone
Description: Color used when trending regime is detected.
Mean-Reverting Color (Hurst < 0.5)
Default: Orange tone
Description: Color used when mean-reverting regime is detected.
Neutral/Random Color
Default: Soft blue
Description: Color when market behavior is indeterminate or shifting.
Fill Opacity
Default: 70-80
Range: 0-100
Description: Transparency of area fills—higher opacity for stronger visual effect.
Line Width
Default: 2
Range: 1-5
Description: Thickness of the main indicator curve.
✅ Best Use Cases
Identifying if a market is regime-shifting from trending to mean-reverting (or vice versa).
Filtering signals in automated or systematic trading strategies.
Spotting periods of randomness where trading signals should be deprioritized.
Enhancing mean-reversion or trend-following models with regime-awareness.
⚠️ Limitations
Not predictive: Reflects current and recent market state, not future direction.
Sensitive to input parameters—overfitting may occur if settings are changed too frequently.
Smoothing can introduce lag in regime recognition.
May not work optimally in markets with structural breaks or extreme volatility.
💡 What Makes This Unique
Employs advanced statistical market analysis (Hurst exponent) rarely found in standard toolkits.
Offers immediate regime visualization through smart dynamic coloring and zone fills.
🔬 How It Works
Rolling Log Return Calculation:
Each new price creates a log return, forming the basis for robust, non-linear analysis. This ensures all price differences are treated proportionally.
Rescaled Range Analysis:
A rolling window maintains cumulative deviations and computes the statistical “range” (max-min of deviations). This is compared against the standard deviation to estimate “memory”.
Exponent Calculation & Smoothing:
The raw Hurst value is translated from the log of the rescaled range ratio, and then optionally smoothed via EMA to dampen noise and false signals.
Regime Detection Logic:
The smoothed value is checked against 0.5. Values above = trending; below = mean-reverting; near 0.5 = random. These control plot/fill color and zone display.
💡 Note:
Use longer calculation lengths for major market character study, and shorter ones for tactical, short-term adaptation. Smoothing balances noise vs. lag—find a best fit for your trading style. Always combine regime awareness with broader technical/fundamental context for best results.
The Ultimate Buy and Sell Indicator: Unholy Grail Edition"You see, Watson, the market is not random—it simply whispers in a code too complex for the average trader. Lucky for you, I am not average."
They searched for the Holy Grail of trading for decades—promises, false prophets, and overpriced PDFs.
But they were all looking in the wrong place.
This isn’t a relic buried in the desert.
This is the Unholy Grail — a machine-forged fusion of logic, engineering, and tactical overkill .
Built by Sherlock Macgyver , this is not a mystical object. It’s a surveillance system for trend detection, signal validation, and precision entries .
⚠️ Important: This script draws its own candles.
To see it properly, disable regular candles by turning off "Body", "Wick" and "Border" colors.
🔧 What You’re Looking At
This overlay plots confirmed Buy/Sell signals , momentum-based “watch” zones , adaptive candle coloring , SuperTrend bias detection , dual Bollinger Bands , and a moving average ribbon .
It’s not “minimalist” —it’s comprehensive .
📍 Configuring the Tool: Follow the Breadcrumbs
Every setting includes a tooltip — read them . They're not filler. They explain exactly how each feature functions so you can dial this thing in like you're tuning a surveillance rig in a Cold War bunker .
If you skip them, you're walking blind in a minefield .
🕰️ Timeframes: The Signal Sweet Spot
Each asset has a tempo . You need to find the one where signals align with clarity —not chaos .
Start with 4H or 1H —work up or down from there.
Too many fakeouts? → Higher timeframe
Too slow? → Drop to 15m or 5m —but expect more noise and adjust settings accordingly.
The signals scale with time, but you must find the rhythm that best fits your asset—and your trading lifestyle .
♻️ RSI Cycle = Signal Sensitivity
This is the heart of the system . It controls how reactive the RSI engine is.
Adjust based on noise level and how often you can actually monitor your charts.
Short cycle (14–24): More signals, more speed, more noise
Longer cycle (36–64): Smoother entries, better for swing traders
Tip: If your signals feel too jittery, increase the cycle. If they lag too much, reduce it.
📉 SuperTrend: Your Trend Bias Compass
This isn’t your average SuperTrend. It adapts with RSI overlay logic and detects market “silence” via EMA compression— turning white right before the chaos . That said, you still control its aggression.
ATR Length = how many bars to average
ATR Factor = how tight or loose it hugs price
Lower = more sensitive (more trades, more noise)
Higher = confirmation only (fewer, but stronger signals)
Tweak until it feels like a sniper rifle.
No, you won’t get it perfect on the first try.
Yes, it’s worth it.
🛠️ Modular Signals: Why Things Fire (or Don’t)
Buy/Sell entries require conditions to align. The logic is modular, and that’s on purpose.
RSI signals only fire if RSI crosses its smoothed MA outside the dead zone and a “Watch” condition is active.
SuperTrend signals can be enabled to act on crossovers, optionally ignoring the Watch filter .
Watch conditions (colored squares) act as early recon and hint at possible upcoming trades.
Background color changes are “pre-signal warnings” and will repaint . Use them as leading signals, not gospel.
Want more trades? Loosen your filters .
Want sniper entries? Lock them down .
🌈 Candles and MAs: Visual Market Structure
Candles adapt in real-time to MA structure:
Green = bullish (above both fast/slow MAs)
Yellow = indecision (between)
Red = bearish (below both)
Buy/Sell signals override candles with bright orange and fuchsia —because subtlety doesn’t win wars .
You can also enable up to 8 customizable moving averages —great for confluence , trend confirmation , or just looking like a wizard .
🧠 Pro Usage Tips (TL;DR for Smart People):
Use tooltips in the settings menu —every toggle and slider is explained
Test timeframes until signal frequency and reliability match your goals
Adjust RSI cycle to reduce noise or speed up signals based on how frequently you trade
Tweak SuperTrend factor and ATR to fit volatility on your asset
Start with visual confirmation :
• Are watch signals lining up with trend zones?
• Are backgrounds firing before price moves?
• Are candle colors agreeing with signal direction?
📣 Alerts & Integration
Alerts are available for:
Buy/Sell entries (confirmed or advanced background)
Watch signals
Full band agreement (both Bollinger bands bullish or bearish)
Use these with webhook systems , bots , or your own trade journals .
Created by Sherlock Macgyver
Because sometimes the best trade…
is knowing exactly when not to take one.
RSI BAND – RSI-Based Support & Resistance Levels📃 Description
RSI BAND is an original technical analysis tool that builds support and resistance levels based on the RSI (Relative Strength Index) indicator. This script is designed to enhance traders' understanding of RSI behavior and provide potential price zones where reversals or continuations may occur.
🔍 What it does
Calculates and visualizes horizontal levels on the price chart corresponding to RSI-based thresholds (e.g., RSI = 40, 50, 60).
Calculates and visualizes horizontal levels on the price chart corresponding to RSI's EMA9 & WMA45.
Detects pivot highs and lows in the RSI and marks corresponding price levels.
🎯 Key Features
🔺 RSI Resistance (e.g., RSI 60) and 🔻 RSI Support (e.g., RSI 40) levels calculated as price zones.
📉 Real-time calculation of price levels that correspond to RSI EMA (9) and RSI WMA (45).
🌀 Detects RSI Pivot Lows and Pivot Highs.
🎯 Includes alerts for Pivot points.
🧩 Fully configurable visibility and styling options for each plotted level.
🔬 How to read data
✅ How to Use
Use this indicator to:
See price action at key RSI levels (40, 50, 60) and RSI's EMA & WMA: For setting up reversal entries.
Identify RSI's pivot points at overbought or oversold levels: For setting up divergence entries.
📊 Visualizing RSI-Based Levels for Price Action
This script plots key RSI-based levels directly onto the chart, such as RSI support, resistance, and the 50-level, to help traders to easily see price action at key RSI zones.
The RSI Resistance and RSI Support levels (such as RSI = 60 and RSI = 40), RSI's EMA9 & WMA45 are plotted on the chart. These levels act as significant price action zones, where traders can anticipate potential reactions from the price based on the RSI's behavior.
By visualizing these levels as plots on the chart, traders can quickly see where price is in relation to these key RSI thresholds, allowing them to make more informed decisions when the price approaches these zones. For example, if the price is near the RSI resistance zone (RSI = 60), it might indicate a potential resistance area where the price could face selling pressure.
By utilizing these RSI-based plots, this script provides a clear, visual representation of key levels, enabling traders to make quicker and more confident decisions in relation to the price action and RSI dynamics.
🧠 Underlying Logic
The script uses standard RSI calculation (length = 14), combined with a reverse-engineered formula to calculate the required price change to reach a specific RSI value. This unique approach creates realistic price levels aligned with RSI expectations, unlike traditional static zones.
Function to calculate price from RSI level:
f_calc_target_price(targetRSI, close_price, avgGain, avgLoss, rsiLength) =>
targetRS = 100 / (100 - targetRSI) - 1
if targetRSI >= 50
requiredGain = targetRS * avgLoss - avgGain
requiredChange = requiredGain * rsiLength
close_price + requiredChange
else
requiredLoss = avgGain / targetRS - avgLoss
requiredChange = requiredLoss * rsiLength
close_price - requiredChange
Depending on whether the target RSI is above or below 50:
If RSI ≥ 50, the function estimates the additional gain needed to raise the RSI to the target, and adds the corresponding value to the current price.
If RSI < 50, it estimates the required loss and subtracts that value from the current price.
⚠️ Important Notes
Pivot Detection Offset: The script uses an offset of 3 bars to identify pivot points. This means that the pivot high and low points are calculated using the values from 3 bars before the current one. As a result, the pivot points may appear slightly delayed compared to the most recent price action.
No Lookahead Bias: The script does not rely on future data (lookahead bias). It strictly uses past price information for all calculations to maintain accuracy and avoid misleading results. The pivot points are plotted after the price has already formed, ensuring that the script does not predict future price movement but rather reacts to established patterns.
[RenkoCore] PublicThis indicator suite is a multi-part system designed only for Renko chart to enhance technical analysis by providing real-time market structure clarity through trend detection, dynamic level recognition and market balance. Consists of three different unique tools that aim to simplify decision-making with an simple visual layout.
Part 1. Balance Module
This examines the relationship between price delta and the market’s prevailing direction. By observing how price momentum evolves, the indicator identifies shifts in the market's structural integrity, providing crucial signals when a potential change in market behavior is likely.
📉 Divergence Detection System
A key feature is the multi-level divergence scanner, which tracks three independent pivot zones (short, medium, and long-range) to detect:
Regular Bullish Divergences: Oscillator higher lows vs. lower price lows
Regular Bearish Divergences: Oscillator lower highs vs. higher price highs
Each divergence level is labeled (1°, 2°, 3°) on the chart to reflect its sensitivity.
🛠 Customizable Inputs
Balance Length and EMA Length
Pivot Detection Levels (short to long range)
Enable/Disable EMA or Base view
Alert System for divergence detection
🧩 Use Cases
Assess price movement imbalance over time
Visually filter trending vs. weakening moves
Spot early reversal clues using multi-tier divergence logic
Combine with structure-based setups or existing strategies
Part2. Trend Module
One of a kind module that provides trend direction while filtering zones of market
consolidation characterized by a lack of directional momentum, applicable to the native chart settings.
🔧 Key Features:
Multi-Stage Trend Recognition
Utilizes a 3-pass price-action structure to generate trend direction based on price displacements and adaptive thresholds. Each round refines the signal for improved confirmation and smoothing.
Pre-Configured Templates
Short Term: Detects short-cycle trends suitable for scalping and high-frequency setups.
Long Term: Filters out noise to focus on macro trends for swing or position trading.
Custom: Allows full control over trend ratio settings for advanced users seeking optimized tuning.
Dynamic Candle Overlay
Candles are plotted directly on the chart using weighted moving average smoothing and contextual coloring to visualize momentum shifts in real-time.
Consolidation Filter Mode
An optional secondary system that isolates non-trending zones using critical price-action ratios. Ideal for filtering out ranging or low-momentum phases before entering trades.
Integrated Alert Logic
Optional filter alerts signal when price enters a consolidation zone — only applicable to the native chart settings — offering a built-in market phase detector.
📌 Use Cases:
Identify and confirm valid trends before making decision.
Filter out low-probability trades during range-bound markets.
Combine with other modules (momentum or divergence) for a multi-confirmation system.
Part 3. Level Module
This module helps identify potential reversal levels by analyzing internal oscillator behavior alongside classic RSI dynamics. It provides early detection signals during overbought or oversold conditions when divergence suggests weakening momentum.
When enabled, it plots dynamic price zones—areas where price may pause or reverse—based on historical reactions to similar divergence conditions. These zones adapt in real time and only appear when confirmed by the underlying conditions.
Key Features:
✅ Early Signal Option — Highlights when a divergence occurs under extreme RSI conditions.
📈 Adaptive Zone Visualization — Auto-detects and plots resistance/support bands as price reacts to momentum imbalance.
🚨 Zone Alerts — Notifies you when a new potential limit area is formed.
⚙️ Configurable RSI Length — Tune the sensitivity for your trading style.
🔶 CONCLUSION & ACCESS
This tool bundle is intended for use as part of a broader analysis framework. While Renko chart has its advantages and disadvantages over other type of charts (particularly candle-stick chart), my aim was to alleviate some of the disadvantages by providing some structure, which is not inherently present on Renko chart. It can assist with identifying trend direction, early reversal signals, and potential reaction zones based on price structure and oscillator behavior.
Please see Author's instruction to get access.
⚠️ Disclaimer
This tool is a technical visualization aid and does not issue buy/sell recommendations. It is intended for chart analysis only.
The information contained in this indicator bundle does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information. This is for educational purposes only.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, back-test, forward-test, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Momentum IndexMomentum Index - Advanced Market Momentum Detector
This indicator combines two specialized oscillators to detect market momentum shifts with high precision. Unlike standard momentum indicators, it integrates both short-term volatility analysis and longer-term trend strength to provide a comprehensive view of market dynamics.
How It Works
The Momentum Index measures directional power through a dual-oscillator system:
A short-term volatility oscillator compares upward movement power (high minus previous low) against downward movement power (low minus previous high), normalized by ATR to ensure volatility independence.
A longer-term trend oscillator uses logarithmic price relationships to detect underlying trend strength through two complementary methods.
These oscillators are normalized, averaged, and enhanced with a momentum acceleration component for increased sensitivity to directional changes.
Trading Signals
The critical signal occurs when the indicator crosses the 50 line:
Crossing ABOVE 50: Bullish momentum is now dominant (green histogram)
Crossing BELOW 50: Bearish momentum is taking control (red histogram)
These crossings often precede significant price movements, making them valuable for both trend confirmation and early reversal detection.
Customization Options
Length: Adjusts the short-term oscillator sensitivity (default: 6)
Smoothing: Enables Ehlers smoothing to reduce noise
Smoothing Period: Controls the smoothing intensity
Display Options: Show as histogram or line
For optimal results, use on any timeframe from 15-minute to daily charts across all major markets. The indicator works particularly well for identifying momentum shifts at key support/resistance levels.
Mean Reversion Bundle [ActiveQuants]The Mean Reversion Bundle indicator is a powerful and versatile toolkit designed for traders who specialize in mean reversion strategies . This comprehensive bundle integrates eight key technical indicators renowned for their ability to identify potential price reversals, overbought/oversold conditions, and market exhaustion points. By consolidating Moving Averages (Fast & Slow) , Bollinger Bands , RSI (with Divergence) , Stochastic , Keltner Channels , Standard Pivot Points , ATR , and the Choppiness Index into a single, efficient script, it significantly streamlines chart analysis and empowers robust strategy development.
This bundle operates on the core principle of mean reversion: prices tend to revert to their historical average or mean over time . The included indicators provide multiple perspectives to assess these potential turning points:
Dynamic Support/Resistance: Moving Averages, Bollinger Bands, Keltner Channels, Pivot Points.
Momentum Oscillators: RSI, Stochastic.
Overbought/Oversold Conditions: RSI, Stochastic, Bollinger Bands.
Volatility Assessment: ATR, Bollinger Bands, Keltner Channels.
Market Condition Filter: Choppiness Index (Range vs. Trend).
Reversal Signals: RSI Divergence, Bollinger Band recovery.
By enabling users to selectively activate, extensively customize, and visualize these tools ( often with multi-timeframe capabilities ), the Mean Reversion Bundle facilitates a nuanced and layered approach to identifying high-probability mean reversion setups.
█ KEY FEATURES
All-in-One Mean Reversion Suite: Access eight distinct mean reversion indicators within a single TradingView script slot, saving valuable indicator space.
Modular Design: Easily toggle each indicator (Fast MA, Slow MA, Bollinger Bands, RSI, Stochastic, Keltner Channels, Pivot Points, ATR, Choppiness Index) On or Off through the intuitive settings menu to tailor your analysis.
Deep Customization: Fine-tune a wide array of parameters for every indicator, including lengths, sources, MA types, colors, line styles, levels, and specific calculation methods to precisely match your trading strategy and the asset's characteristics.
Multi-Timeframe (MTF) Capability: Configure most indicator components to analyze data from a different timeframe than your main chart, providing crucial higher-level context for mean reversion signals (e.g., daily RSI on an hourly chart).
Integrated Alert System: Pre-built alert conditions for critical mean reversion events such as:
- Price Crossover/Crossunder (Fast MA)
- Price Crossover/Crossunder (Slow MA)
- Lower Bollinger Band Recovery
- Upper Bollinger Band Recovery
- Bullish RSI Divergence
- Bearish RSI Divergence
Set up these alerts directly through TradingView's alert creation dialog. (See section on "█ SETTING UP ALERTS " for more details).
Advanced MA & RSI Smoothing: Option to apply a secondary smoothing MA or even Bollinger Bands directly to the Fast MA, Slow MA, and RSI lines for refined signal generation.
Sophisticated Pivot Points Module: Includes multiple Pivot Point types (Traditional, Fibonacci, Woodie, Classic, DM, Camarilla) with flexible timeframes (Daily to Decennially) and dynamic drawing of historical levels.
RSI Divergence Detection: Automatically plots potential bullish and bearish divergences between price and the RSI, a classic reversal signal.
█ USER INPUTS
The settings panel is organized into distinct sections for each of the 8 core indicator components:
Fast MA & Slow MA: On/Off, MA Type, Source, Length, Color, Line Width, Smoothing Type (None, MA, or MA + BBs), Smoothing Length, BB StdDev (if smoothing with BBs), Timeframe, Wait TF Close.
Bollinger Bands: On/Off, Length, Basis MA Type, Source, StdDev Multiplier, Offset, Colors, Timeframe, Wait TF Close.
RSI: On/Off, Source, Length, Overbought/Middle/Oversold Levels, Color, Line Width, Smoothing Type (None, MA, or MA + BBs), Smoothing Length, BB StdDev (if smoothing with BBs), Plot Divergence, Divergence Lookback Left/Right, Timeframe, Wait TF Close.
Stochastic: On/Off, %K Length, %K Smoothing, %D Smoothing, Overbought/Middle/Oversold Levels, Colors, Timeframe, Wait TF Close.
Keltner Channels: On/Off, Length, Multiplier, Source, Use Exponential MA (for basis), Bands Style (ATR, TR, Range), ATR Length, Colors, Timeframe, Wait TF Close.
Pivot Points: On/Off, Type, Pivots Timeframe (Anchor), Number of Pivots Back, Use Daily-based Values, Show Labels, Show Prices, Labels Position, Line Width, Line Style, and individual color/visibility toggles for P, S1-S5, R1-R5.
ATR: On/Off, Length, Smoothing Type, Color, Timeframe, Wait TF Close.
Choppiness Index: On/Off, Length, Offset, Upper/Middle/Lower Band Levels, Color, Timeframe, Wait TF Close.
█ SETTING UP ALERTS
The Mean Reversion Bundle comes with several pre-configured alert conditions to notify you of potential trading opportunities. To set up an alert:
Click the " Alert " button (clock icon) on TradingView's right-hand toolbar or top panel.
In the " Condition " dropdown, select " Mean Reversion Bundle ".
A second dropdown will appear, allowing you to choose from the specific alert conditions built into the script (e.g., " Price Crossover (Fast MA) ", " Bullish RSI Divergence ", " Lower Bollinger Band Recovery ").
You can also create more complex alerts by selecting one of the indicator's plotted lines (e.g., " RSI ", " Stochastic %K ", " Bollinger Band Basis ") in the first condition box, then choosing a comparison (e.g., " Crossing Down ", " Greater Than "), and then selecting another value or plotted line from the indicator in the third box.
Choose your preferred " Trigger " option:
- " Only Once ": The alert triggers the first time the condition is met, even on an unclosed (intra-bar) candle. The alert then deactivates.
- " Once Per Bar Close ": (Recommended for most mean reversion signals) The alert triggers only after the current bar closes if the condition was true on that closed bar. This ensures signals are based on confirmed price action and allows the alert to re-trigger on subsequent bars if the condition remains true.
- Other options like " Once Per Bar " or " Once Per Minute " are also available for different needs.
Customize the alert name, message, and notification preferences.
Click " Create ".
█ STRATEGY EXAMPLES
The following examples are for illustrative purposes only to demonstrate how indicators in this bundle can be combined for mean reversion strategies. They are not financial advice. Always conduct thorough backtesting and research.
1. Bollinger Band Reversal with RSI Confirmation
Goal: Identify potential reversals when price touches an outer Bollinger Band and RSI shows overbought/oversold conditions.
Setup: Enable Bollinger Bands (e.g., 20,2), RSI (e.g., 14), and optionally the Choppiness Index.
Entry (Long):
- Price touches or briefly closes below the Lower Bollinger Band.
- RSI is in the oversold region (e.g., below 30) or shows bullish divergence.
- Optional Filter: Choppiness Index > 61.8 (indicating a ranging market favorable for BB mean reversion).
- Enter on a confirming candle (e.g., price closes back inside the Lower Band, or a bullish candle pattern forms).
Entry (Short): Reverse logic for Upper Bollinger Band and overbought RSI (e.g., above 70) or bearish divergence.
Management: Stop-loss beyond the recent swing low/high or a multiple of ATR. Target the Bollinger Band basis line or the opposite band.
2. Stochastic Oversold/Overbought with Pivot Point Support/Resistance
Goal: Trade bounces from key Pivot Point levels when confirmed by Stochastic extremes.
Setup: Enable Stochastic (e.g., 14,3,3), Pivot Points (e.g., Daily Traditional), and Fast MA (e.g., 9 EMA) for short-term trend context.
Entry (Long):
- Price approaches a significant Pivot Support level (S1, S2).
- Stochastic %K and %D lines are in the oversold region (e.g., below 20) and ideally show a bullish crossover (%K crosses above %D).
- Optional Filter: Price is above the Fast MA, or the Fast MA starts to slope up.
- Enter on signs of price rejection at the Pivot level.
Entry (Short): Reverse logic for Pivot Resistance levels (R1, R2) and overbought Stochastic (e.g., above 80) with a bearish crossover.
Management: Stop-loss below the Pivot Support (for longs) or above Pivot Resistance (for shorts). Target the next Pivot level or a fixed risk-reward ratio.
3. RSI Divergence at Keltner Channel Extremes
Goal: Capitalize on weakening momentum (divergence) as price tests the outer Keltner Channel bands.
Setup: Enable RSI (with Divergence plotting enabled), Keltner Channels (e.g., 20,2 EMA basis, ATR 10), and ATR (for stop placement).
Entry (Long):
- Price is testing or near the Lower Keltner Channel band.
- A Bullish RSI Divergence is plotted (price makes a lower low, but RSI makes a higher low).
- Enter once the divergence is confirmed and price shows signs of turning up.
Entry (Short):
- Price is testing or near the Upper Keltner Channel band.
- A Bearish RSI Divergence is plotted (price makes a higher high, but RSI makes a lower high).
- Enter once divergence is confirmed and price shows signs of turning down.
Management: Place stop-loss based on ATR (e.g., 1.5x ATR below entry for longs) or beyond the Keltner Channel. Target could be the Keltner basis line or a measured move.
█ CONCLUSION
The Mean Reversion Bundle offers a sophisticated yet user-friendly suite of tools essential for traders focusing on mean reversion. By consolidating these powerful indicators, providing extensive customization , multi-timeframe analysis , and integrated alerts , this bundle simplifies the analytical workflow and aids in the development of more robust and nuanced trading strategies. Whether identifying potential exhaustion points, confirming overbought/oversold conditions, or finding precise entry near dynamic support/resistance, this bundle is a versatile asset for your technical analysis toolkit.
█ IMPORTANT NOTES
⚠ Parameter Optimization: The default settings are starting points. Always adjust indicator parameters (lengths, multipliers, levels) based on the specific asset, its volatility, and the timeframe you are trading. Thorough backtesting is crucial.
⚠ Multi-Timeframe Dynamics: Using the " Timeframe " input can be very powerful. If " Wait TF Close " is enabled (default), signals from higher timeframes will only update upon the close of that higher timeframe bar. Disabling it may lead to signals changing intra-bar.
⚠ Confluence is Key: Avoid relying on a single indicator. The strength of this bundle lies in combining signals from multiple indicators to build a confluence case for a trade.
⚠ Chart Clarity: While many tools are available, only enable those pertinent to your current strategy to maintain a clear and actionable chart.
⚠ Signal Confirmation: Indicator signals are typically finalized on bar close. Be cautious when acting on intra-bar signals, as they can change before the bar is complete. Using " Once Per Bar Close " for alerts is generally recommended for mean reversion signals.
█ RISK DISCLAIMER
Trading involves a substantial risk of loss and is not suitable for all investors. The Mean Reversion Bundle indicator is provided for educational and informational purposes only . It does NOT constitute financial advice or a recommendation to buy or sell any asset. Indicator signals identify potential patterns based on historical data but do not guarantee future price movements or profitability. Always conduct your own thorough research, utilize multiple sources of information, and implement robust risk management practices before making any trading decisions. Past performance is not indicative of future results.
📊 Happy trading! 🚀
Simple Portfolio System | QuantumResearchStatic Allocation Engine for Smarter Crypto Exposure
The Simple Portfolio System (SPS) by QuantumResearch is a lightweight yet powerful asset allocation framework, designed for investors who want a smarter, more disciplined alternative to passive buy-and-hold. SPS allocates capital across four customizable assets — BTC, ETH, SOL, and SUI — using a volatility-adjusted momentum engine powered by the proprietary AVWO indicator.
🔍 Key Features:
✅ Adaptive Allocation Logic
Every day, the system evaluates trend strength using the AVWO oscillator. Each asset showing a bullish signal receives a fixed 25% portfolio allocation.
📉 Dynamic Cash Protection
If no asset is trending, SPS automatically shifts to 100% cash, minimizing exposure during sideways or bearish market phases.
📈 Equity Curve Overlay
Compare the strategy's performance against traditional Buy & Hold — both equity curves are plotted for clear benchmarking.
🧠 Proprietary Signal Engine
Powered by AVWO, a custom volatility-weighted oscillator developed by QuantumResearch, designed to filter noise and highlight adaptive trend signals.
📋 Live Performance Dashboard
Real-time metrics include:
Sharpe Ratio
Sortino Ratio
Omega Ratio
Max Drawdown (%)
Current Asset Allocations & Weights
⚙️ System Logic Overview:
Up to four assets analyzed: BTC, ETH, SOL, SUI
If one or more assets are detected as trending, each receives 25% allocation
If none are trending, capital remains unallocated (cash)
Allocation signals are recalculated daily
Backtest begins: 03 May 2023
📌 Use Case:
This system is ideal for:
-Investors seeking to avoid overexposure during weak or range-bound markets
-Traders who want to capture clear trend opportunities
-Portfolio builders looking to benchmark adaptive exposure vs. passive HODL strategies
Built by QuantumResearch — engineered for simplicity, clarity, and tactical trend participation.
⚠️ Important Disclaimer:
Past performance is not indicative of future results. All trading strategies carry risk.
This tool is provided for educational and research purposes only.
Not financial advice. Always conduct your own analysis and consult with a financial advisor before making investment decisions.
Super Stoch ScalperTheoretically, the higher the number, the stronger the signal.
However, in this mixed up world, the 1 and 2 seems stronger than the 4 at times. That's why I'm still working at McDonald's.
Number over candle = Short.
Number under candle = Long.
Best used for scalping.
God help you with your exits.
Market Sentiment Index US Top 40 [Pt]▮Overview
Market Sentiment Index US Top 40 [Pt} shows how the largest US stocks behave together. You pick one simple measure—High Low breakouts, Above Below moving average, or RSI overbought/oversold—and see how many of your chosen top 10/20/30/40 NYSE or NASDAQ names are bullish, neutral, or bearish.
This tool gives you a quick view of broad-market strength or weakness so you can time trades, confirm trends, and spot hidden shifts in market sentiment.
▮Key Features
► Three Simple Modes
High Low Index: counts stocks making new highs or lows over your lookback period
Above Below MA: flags stocks trading above or below their moving average
RSI Sentiment: marks overbought or oversold stocks and plots a small histogram
► Universe Selection
Top 10, 20, 30, or 40 symbols from NYSE or NASDAQ
Option to weight by market cap or treat all symbols equally
► Timeframe Choice
Use your chart’s timeframe or any intraday, daily, weekly, or monthly resolution
► Histogram Smoothing
Two optional moving averages on the sentiment bars
Markers show when the faster average crosses above or below the slower one
► Ticker Table
Optional on-chart table showing each ticker’s state in color
Grid or single-row layout with adjustable text size and color settings
▮Inputs
► Mode and Lookback
Pick High Low, Above Below MA, or RSI Sentiment
Set lookback length (for example 10 bars)
If using Above Below MA, choose the moving average type (EMA, SMA, etc.)
► Universe Setup
Market: NYSE or NASDAQ
Number of symbols: 10, 20, 30, or 40
Weights: on or off
Timeframe: blank to match chart or pick any other
► Moving Averages on Histogram
Enable fast and slow averages
Set their lengths and types
Choose colors for averages and markers
► Table Options
Show or hide the symbol table
Select text size: tiny, small, or normal
Choose layout: grid or one-row
Pick colors for bullish, neutral, and bearish cells
Show or hide exchange prefixes
▮How to Read It
► Sentiment Bars
Green means bullish
Red means bearish
Near zero means neutral
► Zero Line
Separates bullish from bearish readings
► High Low Line (High Low mode only)
Smooth ratio of highs versus lows over your lookback
► MA Crosses
Fast MA above slow MA hints rising breadth
Fast MA below slow MA hints falling breadth
► Ticker Table
Each cell colored green, gray, or red for bull, neutral, or bear
▮Use Cases
► Confirm Market Trends
Early warning when price makes highs but breadth is weak
Catch rallies when breadth turns strong while price is flat
► Spot Sector Rotation
Switch between NYSE and NASDAQ to see which group leads
Watch tech versus industrial breadth to track money flow
► Filter Trade Signals
Enter longs only when breadth is bullish
Consider shorts when breadth turns negative
► Combine with Other Indicators
Use RSI Sentiment with trend tools to spot overextended moves
Add volume indicators in High Low mode for breakout confirmation
► Timeframe Analysis
Daily for big-picture bias
Intraday (15-min) for precise entries and exits
Trend Oscillator# Trend Oscillator: Advanced Technical Analysis Indicator
## Overview
The Trend Oscillator is a sophisticated technical analysis tool designed to identify market trends, momentum shifts, and potential reversal points. Unlike basic oscillators, this indicator combines key analytical approaches to provide a more comprehensive market analysis:
1. **Mean Deviation-Based Oscillator**:(160) At its core, it measures price deviations from moving averages normalized by mean deviation
2. **Fixed Reference Levels**: Clear overbought/oversold thresholds that define extreme market conditions
3. **Trend Filtering**: EMA(36)-based trend direction confirmation to reduce false signals
## Technical Foundation
### Core Calculation Method
The indicator derives its primary oscillator value using a normalized deviation method:
- Calculates a typical price (average of source + high + low)
- Measures the deviation of typical price from its moving average
- Normalizes this deviation by the mean deviation multiplied by a scaling factor (0.015)
This formula effectively creates a momentum oscillator that quantifies how far price has moved from its equilibrium value, relative to typical market volatility.
### Fixed Overbought/Oversold Levels
The Trend Oscillator uses consistent reference levels to identify extreme market conditions:
- Standardized overbought level set at +100
- Standardized oversold level set at -100
- Neutral zone centered around the zero line
These fixed thresholds provide reliable reference points for signal generation and trend strength assessment.
### Trend Filtering Mechanism
The indicator incorporates an EMA-based trend filter that:
- Calculates a directional bias using price position relative to its EMA 36
- Modifies oscillator interpretation based on the prevailing trend
- Helps distinguish between counter-trend corrections and actual reversals
## How to Use the Trend Oscillator
### For Trend Identification
- **Bullish trend**: Oscillator above zero with positive slope
- **Bearish trend**: Oscillator below zero with negative slope
- **Trend strength**: Distance from zero line indicates trend intensity
- **Trend confirmation**: When oscillator and trend filter align
### For Entry Signals
- **Long entry opportunities**:
- Oscillator crossing above the signal line during uptrend
- Oscillator exiting oversold territory with trend filter positive
- Price showing strength while oscillator moves from negative to positive
- **Short entry opportunities**:
- Oscillator crossing below the signal line during downtrend
- Oscillator exiting overbought territory with trend filter negative
- Price showing weakness while oscillator moves from positive to negative
### For Exit Signals
- **Taking profits**: When oscillator approaches extreme levels in your trade direction
- **Stop-loss placement**: When oscillator crosses signal line against your position
- **Trend change warning**: When oscillator crosses zero line against your position
## Customization Options
### General Settings
- **Length**: (160)Controls the calculation period for the oscillator (higher values create smoother, less sensitive readings)
- **Source**: The price data input (close, open, high, low, hl2, hlc3, etc.)
### Signal Line Settings
- **Signal Line**: Optional smoothed version of the oscillator for crossover signals
- **Signal Length**:(36) Determines signal line responsiveness
### Level Settings
- **Overbought/Oversold Levels**: Standard thresholds that define extreme conditions
### Trend Filter Settings
- **Trend Period**: Lookback period for trend direction calculation
- **Trend Source**: Price data used for trend determination
### Visual Settings
- **Show Background Color**: Toggles colored background based on oscillator readings
- **Background Transparency**: Controls the opacity of background coloring
## Trading Strategy Applications
### Trend-Following Approach
1. Enter in the direction of the prevailing trend when:
- Oscillator and trend filter align
- Oscillator crosses signal line in trend direction
- Price pulls back to neutral zone during strong trend
2. Exit when:
- Oscillator crosses signal line against position
- Trend filter changes direction
- Oscillator reaches extreme level in your trade direction
### Counter-Trend Approach
1. Look for reversal opportunities when:
- Oscillator reaches extreme overbought/oversold levels
- Signal line crossover occurs at extreme readings
- Price action confirms potential reversal
2. Exit when:
- Target price levels are reached
- Oscillator returns to neutral zone
- New signals emerge in opposite direction
## Indicator Strengths
- Combines momentum and trend analysis in one comprehensive tool
- Consistent reference levels provide reliable benchmarks
- Reduces false signals through trend filter confirmation
- Visual color-coding provides intuitive market context
## Best Practices
- Effective on all timeframes for trend analysis
- Use in conjunction with support/resistance or price action
- Start with default settings and gradually adjust to your trading style and instrument
- Consider the overall market context when interpreting signals
The Trend Oscillator offers traders a comprehensive technical analysis framework that goes beyond simplistic overbought/oversold readings by incorporating trend context and normalized deviation methodology—providing a nuanced approach to market analysis with clear, consistent reference points.
Precision Trend Shot | JeffreyTimmermansPrecision Trend Shot
The "Precision Trend Shot" Indicator is an advanced technical tool designed to provide a dynamic and adaptive view of market trends. By combining three core components—RSI Oscillator, LSMA ATR, and Adaptable Trend—this indicator delivers precise signals that help traders identify market direction, volatility, and potential trend reversals. The calculated total score, derived from these components, provides a clear, actionable view of market conditions.
Key Features
Multi-Component Analysis: Integrates three key indicators (RSI, LSMA ATR, and Adaptable Trend) for a comprehensive view of market trends.
Dynamic Trend Classification: Categorizes market states as "Bullish" or "Bearish", based on a combined score.
Standard Deviation Bands: Displays standard deviation bands around the score line for enhanced volatility visualization.
Gradient Background Coloring: Visually highlights market phases with gradient colors, aiding quick interpretation.
Customizable Visuals: Offers extensive settings for coloring, background gradients, and signal visibility.
Real-Time Alerts: Generates alerts for significant trend changes or transitions between market states.
Inputs & Settings
RSI Settings:
RSI Source: Default: Close price. Defines the data source for RSI calculation.
RSI Length: Default: 10. Sets the period for calculating RSI.
LSMA ATR Settings:
LSMA Source: Default: Close price. Defines the data source for LSMA calculation.
LSMA Length: Default: 21. Sets the period for calculating the Least Squares Moving Average.
ATR Length: Default: 12. Sets the period for calculating the Average True Range.
Adaptable Trend Settings:
Trend Length: Default: 5. Sets the period for calculating the trend.
Smoothing Length: Default: 5. Controls the smoothing of trend volatility.
Sensitivity: Default: 1.5. Adjusts the sensitivity of trend bands.
Standard Deviation Settings:
Enable Standard Deviation Bands: Default: True. Toggles the display of standard deviation bands.
Standard Deviation Length: Default: 20. Sets the period for standard deviation calculation.
Standard Deviation Multiplier: Default: 2.0. Adjusts the width of the bands.
Smoothing Length: Default: 5. Controls the smoothing of standard deviation bands.
Visual Settings:
Enable Candle Coloring: Default: True. Colors candles based on market state (Bullish or Bearish).
Enable Background Gradient: Default: True. Applies gradient coloring to the background based on trend direction.
Score Line Colors: Customize colors for bullish or bearish score lines.
Calculation Process
RSI Calculation:
Computes the Relative Strength Index (RSI) of the selected source data.
Signals bullish (RSI > 50) or bearish (RSI < 50) conditions.
LSMA ATR Calculation:
Computes LSMA for trend direction and ATR for volatility measurement.
Generates buy and sell signals based on crossover and crossunder of ATR bands.
Adaptable Trend Calculation:
Calculates dynamic trend levels using EMA and standard deviation bands.
Classifies trend states as Bullish or Bearish.
Combined Signal Calculation:
Averages the signals from RSI, LSMA ATR, and Adaptable Trend to generate a total score.
Classifies the market as "Bullish" or "Bearish" based on this score.
Standard Deviation Bands:
Plots standard deviation bands around the combined signal for enhanced volatility analysis.
Gradient Background Coloring:
Colors the chart background based on the identified market state (Bullish or Bearish).
How to Use the Precision Trend Shot Indicator
Identifying Market States:
Bullish Market: Total score > 0, gradient background green.
Bearish Market: Total score < 0, gradient background red.
Confirming Signals:
Use RSI and LSMA ATR signals for early indications.
Use Trend Recon for confirming longer-term trend direction.
Visualizing Volatility:
Standard deviation bands highlight potential reversal zones.
Dynamic Alerts
The Precision Trend Shot Indicator includes a robust alert system for real-time market transitions:
Bullish to Bearish: Market shifts from a bullish to bearish trend.
Bearish to Bullish: Market shifts from a bearish to bullish trend.
Conclusion
The Precision Trend Shot Indicator is an advanced, versatile tool for identifying market trends, visualizing volatility, and generating actionable signals. With customizable settings, dynamic alerts, and clear visual representation, it is an essential addition to any trader’s toolkit.
-Jeffrey
Parsifal.Swing.TrendScoreThe Parsifal.Swing.TrendScore indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
• One-sidedly, aligning with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
The Parsifal Swing Suite
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
The Parsifal.Swing.TrendScore – Specifics
The Parsifal.Swing.TrendScore module combines short-term trend data with information about the current swing state, derived from raw price data and classical technical indicators. It provides an indication of how well the short-term trend aligns with the prevailing swing, based on recent market behavior.
________________________________________
How Swing.TrendScore Works
The Swing.TrendScore calculates a swing score by collecting data within a bin (i.e., a single candle or time bucket) that signals an upside or downside swing. These signals are then aggregated together with insights from classical swing indicators.
Additionally, it calculates a short-term trend score using core technical signals, including:
• The Z-score of the price's distance from various EMAs
• The slope of EMAs
• Other trend-strength signals from additional technical indicators
These two components—the swing score and the trend score—are then combined to form the Swing.TrendScore indicator, which evaluates the short-term trend in context with swing behavior.
________________________________________
How to Interpret Swing.TrendScore
The trend component enhances Swing.TrendScore’s ability to provide stronger signals when the short-term trend and swing state align.
It can also override the swing score; for example, even if a mean reversion appears to be forming, a dominant short-term trend may still control the market behavior.
This makes Swing.TrendScore particularly valuable for:
• Short-term trend-following strategies
• Medium-term swing trading
Unlike typical swing indicators, Swing.TrendScore is designed to respond more to medium-term swings rather than short-lived fluctuations.
________________________________________
Behavior and Chart Representation
The Swing.TrendScore indicator fluctuates within a range, as most of its components are range-bound (though Z-score components may technically extend beyond).
• Historically high or low values may suggest overbought or oversold conditions
• The chart displays:
o A fast curve (orange)
o A slow curve (white)
o A shaded background representing the market state
• Extreme values followed by curve reversals may signal a developing mean reversion
________________________________________
TrendScore Background Value
The Background Value reflects the combined state of the short-term trend and swing:
• > 0 (shaded green) → Bullish mode: swing and short-term trend both upward
• < 0 (shaded red) → Bearish mode: swing and short-term trend both downward
• The absolute value represents the confidence level in the market mode
Notably, the Background Value can remain positive during short downswings if the short-term trend remains bullish—and vice versa.
________________________________________
How to Use the Parsifal.Swing.TrendScore
Several change points can act as entry triggers or aids:
• Fast Trigger: change in slope of the fast signal curve
• Trigger: fast line crosses slow line or the slope of the slow signal changes
• Slow Trigger: change in sign of the Background Value
Examples of these trigger points are illustrated in the accompanying chart.
Additionally, market highs and lows aligning with the swing indicator values may serve as pivot points in the evolving price process.
________________________________________
As always, this indicator should be used in conjunction with other tools and market context in live trading.
While it provides valuable insight and potential entry points, it does not predict future price action.
Instead, it reflects recent tendencies and should be used judiciously.
________________________________________
Extensions
The aggregation of information—whether derived from bins or technical indicators—is currently performed via simple averaging. However, this can be modified using alternative weighting schemes, based on:
• Historical performance
• Relevance of the data
• Specific market conditions
Smoothing periods used in calculations are also modifiable. In general, the EMAs applied for smoothing can be extended to reflect expectations based on relevance-weighted probability measures.
Since EMAs inherently give more weight to recent data, this allows for adaptive smoothing.
Additionally, EMAs may be further extended to incorporate negative weights, akin to wavelet transform techniques.
Ceres Trader Simple Trend & Momentum SignalsCeres Trader – Simple Trend & Momentum Signals
Description:
Cut through chart noise with a lightweight, two-factor signal system that combines a classic trend filter (200 EMA) with momentum confirmation (smoothed RSI as a QQE proxy). This indicator plots clean entry arrows—no background shading, no clutter—so you can trade only in the high-probability regime:
Trend Filter: 200-period exponential moving average
Momentum Filter: RSI(14) smoothed over N bars, offset by 50 to create a zero-line
Long Entry: Price above the 200 EMA and the smoothed RSI crosses up through zero → green up-arrow below bar
Short Entry: Price below the 200 EMA and the smoothed RSI crosses down through zero → red down-arrow above bar
Key Features:
Minimalist display: only the 200 EMA and entry arrows
Customizable inputs: EMA length, RSI length, RSI smoothing period
Ultra-low CPU load: suitable for lower timeframes (e.g. 1 min gold futures)
Yellow label text: for optimal visibility on dark or light chart backgrounds
How to Use:
Add the script to your TradingView chart.
Choose your timeframe and adjust inputs as needed.
Take only the long signals when price is above the EMA, and only the short signals when price is below.
Place stops just beyond the EMA; targets can be measured swings or fixed R-multiples.
Notes:
Designed as a regime-based entry filter—no exits or background fills included.
Feel free to combine with your own stop-loss, take-profit, and money-management rules.
Trade smarter, not harder—let the market tell you only when both trend and momentum align.
ETI IndicatorThe Ensemble Technical Indicator (ETI) is a script that combines multiple established indicators into one single powerful indicator. Specifically, it takes a number of technical indicators and then converts them into +1 to represent a bullish trend, or a -1 to represent a bearish trend. It then adds these values together and takes the running sum over the past 20 days.
The ETI is composed of the following indicators and converted to +1 or -1 using the following criteria:
Simple Moving Average (10 days) : When the price is above the 10-day simple moving averaging, +1, when below -1
Weighted Moving Average (10 days) : Similar to the SMA 10, when the the price is above the 10-day weighted moving average, +1, when below -1
Stochastic K% : If the current Stochastic K% is greater than the previous value, then +1, else -1.
Stochastic D% : Similar to the Stochastic K%, when the current Stochastic D% is greater than the previous value, +1, else -1.
MACD Difference : First subtract the MACD signal (i.e. the moving average) from the MACD value and if the current value is higher than the previous value, then +1, else -1.
William's R% : If the current William's R% is greater than the previous one, then +1, else -1.
William's Accumulation/Distribution : If the current William's AD value is greater than the previous value, then +1, else -1.
Commodity Channel Index : If the Commodity Channel Index is greater than 200 (overbought), then -1, if it is less than -200 (oversold) then +1. When it is between those values, if the current value is greater than the previous value then +1, else -1.
Relative Strength Index : If the Relative Strength Index is over 70 (overbought) then -1 and if under 30 (oversold) then +1. If the Relative Strength Indicator is between those values then if the current value is higher than the previous value +1, else -1.
Momentum (9 days) : If the momentum value is greater than 0, then +1, else -1.
Again, once these values have been calculated and converted, they are added up to produce a single value. This single value is then summed across the previous 20 candles to produce a running sum.
By coalescing multiple technical indicators into a single value across time, traders can better understand how multiple inter-related indicators are behaving at once; high scores indicate that numerous indicators are showing bullish signals indicating a potential or ongoing uptrend (and vice-versa with low scores).
Additional Features
Numerous smoothing transformations have also been added (e.g. gaussian smoothing) to remove some of the noise might exist.
Suggested Use
It is recommended that stocks are shorted when the cross below 0, and are bought when the ETI crosses above -40. Arrows can be shown on the indicator to show these points. However feel free to use levels that work best for you.
Traditionally, I have treated values above +50 as overbought and below -40 as undersold (with -80 indicating extremely oversold); however these levels could also indicate either upwards and downwards momentum so taking a position based on where the ETI is (rather than crossing levels) should be done with caution.
Parsifal.Swing.FlowThe Parsifal.Swing.Flow indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
• One-sidedly, aligning with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
The Parsifal Swing Suite
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
The Parsifal.Swing.Flow – Specifics
The Parsifal.Swing.Flow module aggregates price and trading flow data per bin (a "bin" refers to a single candle or time bucket) and smooths this information over recent historical data to reflect ongoing market dynamics.
________________________________________
How Swing.Flow Works
For each bin, individual data points—called "bin-infolets"—are collected. Each infolet reflects the degree and direction of trading flow, offering insight into buying and selling pressure.
The module processes this data in two steps:
1. Aggregation:
All bin-infolet values within a bin are averaged to produce a single bin-flow value.
2. Smoothing:
The resulting bin-flow values are then smoothed across multiple bins, typically using short-term EMAs.
The outcome is a dynamic representation of the current swing state based on recent trading flow activity.
________________________________________
How to Interpret Swing.Flow
• Range-bound but not a true oscillator:
While individual bin-infolets are range-bound, the Swing.Flow indicator itself is not a classical oscillator.
• Overbought/Oversold Signals:
Historically high or low values in Swing.Flow may signal overbought or oversold conditions.
• Chart Representation:
o A fast curve (orange)
o A slow curve (white)
o A shaded background that illustrates overall market state
• Mean Reversion Signals:
Extreme curve values followed by reversals may indicate the onset of a mean reversion in price.
________________________________________
Flow Background Value
The Flow Background Value represents the net state of trading flow:
• > 0 (green shading) → Bullish mode
• < 0 (red shading) → Bearish mode
• The absolute value reflects the confidence level in the current trend direction
________________________________________
How to Use the Parsifal.Swing.Flow
Several change points can act as entry point triggers:
• Fast Trigger:
A change in the slope of the fast signal curve
• Trigger:
The fast line crossing the slow line or a change in the slope of the slow signal
• Slow Trigger:
A change in the sign of the Background Value
These triggers are visualized in the accompanying chart.
Additionally, market highs and lows that align with the swing indicator values can serve as pivot points for the ongoing price process.
________________________________________
As always, this indicator is best used in conjunction with other indicators and market information.
While Parsifal.Swing.Flow offers valuable insight and potential entry points, it does not predict future price action.
Rather, it reflects the most recent market tendencies, and should therefore be applied with discretion.
________________________________________
Extensions
• Aggregation Method:
The current approach—averaging all infolets—can be replaced by alternative weighting schemes, adjusted according to:
o Historical performance
o Relevance of data
o Specific market conditions
• Smoothing Period:
The EMA-based smoothing period can be varied. In general, EMAs can be enhanced to reflect relevance-weighted probability measures, giving greater importance to recent data for a more adaptive and dynamic response.
• Advanced Smoothing:
EMAs can be further extended to include negative weights, similar to wavelet transform techniques, allowing even greater flexibility in smoothing methodologies.
Parsifal.Swing.RSIThe Parsifal.Swing.RSI indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module facilitates judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These swings within the trend are inherently tradable.
They can be approached:
• One-sidedly, in alignment with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions.
Note: In strong trends, mean reversions often appear as sideways consolidations, making one-sided trades more robust.
________________________________________
The Parsifal Swing Suite
The suite provides insights into current swing states and offers various entry point triggers.
All modules act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., the RSI, which ranges from 0 to 100%).
________________________________________
The Parsifal.Swing.RSI – Specifics
The Parsifal.Swing.RSI is the simplest module in the suite. It uses variations of the classical RSI, explicitly combining:
• RSI: 14-period RSI of the market
• RSIMA: 14-period EMA of the RSI
• RSI21: 14-period RSI of the 21-period EMA of the market
• RSI21MA: 14-period EMA of RSI21
Component Behavior:
• RSI: Measures overbought/oversold levels but reacts very sensitively to price changes.
• RSIMA: Offers smoother directional signals, making it better for assessing swing continuation. Its slope and sign changes are more reliable indicators than pure RSI readings.
• RSI21: Based on smoothed prices. In strong trends, it reaches higher levels and reacts more smoothly than RSI.
• RSI21MA: Further smooths RSI21, serving as a medium-term swing estimator and a signal line for RSI21.
When RSI21 exceeds RSI, it indicates trend strength.
• In uptrends, RSI21 > RSI, with larger exceedance = stronger trend
• In downtrends, the reverse holds
________________________________________
Indicator Construction
The Swing RSI combines:
• RSI and RSIMA → short-term swings
• RSI21 and RSI21MA → medium-term swings
This results in:
• A fast swing curve, derived from RSI and RSI21
• A slow swing curve, derived from RSIMA and RSI21MA
This setup is smoother than RSI/RSIMA alone but more responsive than using RSI21/RSI21MA alone.
________________________________________
Background Value
The Background Value reflects the overall market state, derived from RSI21:
• > 0: shaded green → bullish mode
• < 0: shaded red → bearish mode
• The absolute value reflects confidence in the current mode
________________________________________
How to Use the Parsifal.Swing.RSI
Several change points can act as entry triggers:
• Fast Trigger: change in slope of the fast signal curve
• Trigger: fast line crossing slow line or change in slow signal's slope
• Slow Trigger: change in sign of the Background Value
Examples of these triggers are shown in the chart.
Additionally, market highs and lows aligned with swing values can serve as pivot points in evolving price movements.
________________________________________
As always, this indicator should be used alongside other tools and information in live trading.
While it provides valuable insights and potential entry points, it does not predict future price action.
It reflects the latest tendencies and should be used judiciously.
ADX Forecast [Titans_Invest]ADX Forecast
This isn’t just another ADX indicator — it’s the most powerful and complete ADX tool ever created, and without question the best ADX indicator on TradingView, possibly even the best in the world.
ADX Forecast represents a revolutionary leap in trend strength analysis, blending the timeless principles of the classic ADX with cutting-edge predictive modeling. For the first time on TradingView, you can anticipate future ADX movements using scientifically validated linear regression — a true game-changer for traders looking to stay ahead of trend shifts.
1. Real-Time ADX Forecasting
By applying least squares linear regression, ADX Forecast projects the future trajectory of the ADX with exceptional accuracy. This forecasting power enables traders to anticipate changes in trend strength before they fully unfold — a vital edge in fast-moving markets.
2. Unmatched Customization & Precision
With 26 long entry conditions and 26 short entry conditions, this indicator accounts for every possible ADX scenario. Every parameter is fully customizable, making it adaptable to any trading strategy — from scalping to swing trading to long-term investing.
3. Transparency & Advanced Visualization
Visualize internal ADX dynamics in real time with interactive tags, smart flags, and fully adjustable threshold levels. Every signal is transparent, logic-based, and engineered to fit seamlessly into professional-grade trading systems.
4. Scientific Foundation, Elite Execution
Grounded in statistical precision and machine learning principles, ADX Forecast upgrades the classic ADX from a reactive lagging tool into a forward-looking trend prediction engine. This isn’t just an indicator — it’s a scientific evolution in trend analysis.
⯁ SCIENTIFIC BASIS LINEAR REGRESSION
Linear Regression is a fundamental method of statistics and machine learning, used to model the relationship between a dependent variable y and one or more independent variables 𝑥.
The general formula for a simple linear regression is given by:
y = β₀ + β₁x + ε
β₁ = Σ((xᵢ - x̄)(yᵢ - ȳ)) / Σ((xᵢ - x̄)²)
β₀ = ȳ - β₁x̄
Where:
y = is the predicted variable (e.g. future value of RSI)
x = is the explanatory variable (e.g. time or bar index)
β0 = is the intercept (value of 𝑦 when 𝑥 = 0)
𝛽1 = is the slope of the line (rate of change)
ε = is the random error term
The goal is to estimate the coefficients 𝛽0 and 𝛽1 so as to minimize the sum of the squared errors — the so-called Random Error Method Least Squares.
⯁ LEAST SQUARES ESTIMATION
To minimize the error between predicted and observed values, we use the following formulas:
β₁ = /
β₀ = ȳ - β₁x̄
Where:
∑ = sum
x̄ = mean of x
ȳ = mean of y
x_i, y_i = individual values of the variables.
Where:
x_i and y_i are the means of the independent and dependent variables, respectively.
i ranges from 1 to n, the number of observations.
These equations guarantee the best linear unbiased estimator, according to the Gauss-Markov theorem, assuming homoscedasticity and linearity.
⯁ LINEAR REGRESSION IN MACHINE LEARNING
Linear regression is one of the cornerstones of supervised learning. Its simplicity and ability to generate accurate quantitative predictions make it essential in AI systems, predictive algorithms, time series analysis, and automated trading strategies.
By applying this model to the ADX, you are literally putting artificial intelligence at the heart of a classic indicator, bringing a new dimension to technical analysis.
⯁ VISUAL INTERPRETATION
Imagine an ADX time series like this:
Time →
ADX →
The regression line will smooth these values and extend them n periods into the future, creating a predicted trajectory based on the historical moment. This line becomes the predicted ADX, which can be crossed with the actual ADX to generate more intelligent signals.
⯁ SUMMARY OF SCIENTIFIC CONCEPTS USED
Linear Regression Models the relationship between variables using a straight line.
Least Squares Minimizes the sum of squared errors between prediction and reality.
Time Series Forecasting Estimates future values based on historical data.
Supervised Learning Trains models to predict outputs from known inputs.
Statistical Smoothing Reduces noise and reveals underlying trends.
⯁ WHY THIS INDICATOR IS REVOLUTIONARY
Scientifically-based: Based on statistical theory and mathematical inference.
Unprecedented: First public ADX with least squares predictive modeling.
Intelligent: Built with machine learning logic.
Practical: Generates forward-thinking signals.
Customizable: Flexible for any trading strategy.
⯁ CONCLUSION
By combining ADX with linear regression, this indicator allows a trader to predict market momentum, not just follow it.
ADX Forecast is not just an indicator — it is a scientific breakthrough in technical analysis technology.
⯁ Example of simple linear regression, which has one independent variable:
⯁ In linear regression, observations ( red ) are considered to be the result of random deviations ( green ) from an underlying relationship ( blue ) between a dependent variable ( y ) and an independent variable ( x ).
⯁ Visualizing heteroscedasticity in a scatterplot against 100 random fitted values using Matlab:
⯁ The data sets in the Anscombe's quartet are designed to have approximately the same linear regression line (as well as nearly identical means, standard deviations, and correlations) but are graphically very different. This illustrates the pitfalls of relying solely on a fitted model to understand the relationship between variables.
⯁ The result of fitting a set of data points with a quadratic function:
_______________________________________________________________________
🥇 This is the world’s first ADX indicator with: Linear Regression for Forecasting 🥇_______________________________________________________________________
_________________________________________________
🔮 Linear Regression: PineScript Technical Parameters 🔮
_________________________________________________
Forecast Types:
• Flat: Assumes prices will remain the same.
• Linreg: Makes a 'Linear Regression' forecast for n periods.
Technical Information:
ta.linreg (built-in function)
Linear regression curve. A line that best fits the specified prices over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length - 1 - offset), where intercept and slope are the values calculated using the least squares method on the source series.
Syntax:
• Function: ta.linreg()
Parameters:
• source: Source price series.
• length: Number of bars (period).
• offset: Offset.
• return: Linear regression curve.
This function has been cleverly applied to the RSI, making it capable of projecting future values based on past statistical trends.
______________________________________________________
______________________________________________________
⯁ WHAT IS THE ADX❓
The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder. It measures the strength of a trend in a market, regardless of whether the trend is up or down.
The ADX is an integral part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and the Minus Directional Indicator (-DI). By combining these components, the ADX provides a comprehensive view of market trend strength.
⯁ HOW TO USE THE ADX❓
The ADX is calculated based on the moving average of the price range expansion over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and has three main zones:
• Strong Trend: When the ADX is above 25, indicating a strong trend.
• Weak Trend: When the ADX is below 20, indicating a weak or non-existent trend.
• Neutral Zone: Between 20 and 25, where the trend strength is unclear.
______________________________________________________
______________________________________________________
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔹 +DI > -DI
🔹 +DI < -DI
🔹 +DI > ADX
🔹 +DI < ADX
🔹 -DI > ADX
🔹 -DI < ADX
🔹 ADX > Threshold
🔹 ADX < Threshold
🔹 +DI > Threshold
🔹 +DI < Threshold
🔹 -DI > Threshold
🔹 -DI < Threshold
🔹 +DI (Crossover) -DI
🔹 +DI (Crossunder) -DI
🔹 +DI (Crossover) ADX
🔹 +DI (Crossunder) ADX
🔹 +DI (Crossover) Threshold
🔹 +DI (Crossunder) Threshold
🔹 -DI (Crossover) ADX
🔹 -DI (Crossunder) ADX
🔹 -DI (Crossover) Threshold
🔹 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔸 +DI > -DI
🔸 +DI < -DI
🔸 +DI > ADX
🔸 +DI < ADX
🔸 -DI > ADX
🔸 -DI < ADX
🔸 ADX > Threshold
🔸 ADX < Threshold
🔸 +DI > Threshold
🔸 +DI < Threshold
🔸 -DI > Threshold
🔸 -DI < Threshold
🔸 +DI (Crossover) -DI
🔸 +DI (Crossunder) -DI
🔸 +DI (Crossover) ADX
🔸 +DI (Crossunder) ADX
🔸 +DI (Crossover) Threshold
🔸 +DI (Crossunder) Threshold
🔸 -DI (Crossover) ADX
🔸 -DI (Crossunder) ADX
🔸 -DI (Crossover) Threshold
🔸 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Linear Regression: (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Linear Regression (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : ADX Forecast
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏