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
Osilatörler
Supertrend + Stochastic RSIThe Supertrend + Stochastic RSI indicator is designed for scalping and short-term trading, combining the trend-following power of the Supertrend with the momentum insights of the Stochastic RSI to generate reliable buy and sell signals. This indicator aims to reduce false signals by requiring confirmation from both trend direction and momentum, making it suitable for traders targeting quick, high-probability trades in fast-moving markets on lower timeframes (e.g., 1-minute to 15-minute charts).
How It Works
The indicator integrates two technical components to produce actionable signals:
Supertrend for Trend Direction:
The Supertrend, calculated with a default length of 10 and a factor of 3.0, identifies the prevailing trend. It plots a line above or below the price, turning green when the trend is bullish (price above Supertrend) and red when bearish (price below Supertrend). This helps traders stay aligned with the market’s direction, reducing trades against the trend.
Stochastic RSI for Momentum Confirmation:
The Stochastic RSI, computed over a 14-period RSI with 3-period smoothing for %K and %D lines, measures momentum. A buy signal is generated when the %K line crosses above the oversold level (default: 20), indicating potential upward momentum, while a sell signal occurs when %K crosses below the overbought level (default: 80), suggesting downward momentum.
Signal Generation
Signals are produced only when both conditions align, using the previous bar’s values to prevent repainting:
Buy Signal: The Stochastic RSI %K crosses above the oversold level, and the Supertrend confirms a bullish trend (price above Supertrend). Displayed as a green upward triangle below the bar.
Sell Signal: The Stochastic RSI %K crosses below the overbought level, and the Supertrend confirms a bearish trend (price below Supertrend). Displayed as a red downward triangle above the bar.
Adaptive Volume-Weighted RSI (AVW-RSI)Concept Summary
The AVW-RSI is a modified version of the Relative Strength Index (RSI), where each price change is weighted by the relative trading volume for that period. This means periods of high volume (typically driven by institutions or “big money”) have a greater influence on the RSI calculation than periods of low volume.
Why AVW-RSI Helps Traders
Avoids Weak Signals During Low Volume
Standard RSI may show overbought/oversold zones even during low-volume periods (e.g., during lunch hours or after news).
AVW-RSI gives less weight to these periods, avoiding misleading signals.
Amplifies Strong Momentum Moves
If RSI is rising during high volume, it's more likely driven by institutional buying—AVW-RSI reflects that stronger by weighting the RSI component.
Filters Out Retail Noise
By prioritizing high-volume candles, it naturally discounts fakeouts caused by thin markets or retail-heavy moves.
Highlights Institutional Entry/Exit
Useful for spotting hidden accumulation/distribution that classic RSI would miss.
How It Works (Calculation Logic)
Traditional RSI Formula Recap
RSI = 100 - (100 / (1 + RS))
RS = Average Gain / Average Loss (over N periods)
Modified Step – Apply Volume Weight
For each period
Gain_t = max(Close_t - Close_{t-1}, 0)
Loss_t = max(Close_{t-1} - Close_t, 0)
Weight_t = Volume_t / AvgVolume(N)
WeightedGain_t = Gain_t * Weight_t
WeightedLoss_t = Loss_t * Weight_t
Weighted RSI
AvgWeightedGain = SMA(WeightedGain, N)
AvgWeightedLoss = SMA(WeightedLoss, N)
RS = AvgWeightedGain / AvgWeightedLoss
AVW-RSI = 100 - (100 / (1 + RS))
Visual Features on Chart
Line Color Gradient
Color gets darker as volume weight increases, signaling stronger conviction.
Overbought/Oversold Zones
Traditional: 70/30
Suggested AVW-RSI zones: Use dynamic thresholds based on historical volatility (e.g., 80/20 for high-volume coins).
Volume Spike Flags
Mark RSI turning points that occurred during volume spikes with a special dot/symbol.
Trading Strategies with AVW-RSI
1. Weighted RSI Divergence
Regular RSI divergence becomes more powerful when volume is high.
AVW-RSI divergence with volume spike is a strong signal of reversal.
2. Trend Confirmation
RSI crossing above 50 during rising volume is a good entry signal.
RSI crossing below 50 with high volume is a strong exit or short trigger.
3. Breakout Validation
Price breaking resistance + AVW-RSI > 60 with volume = Confirmed breakout.
Price breaking but AVW-RSI < 50 or on low volume = Potential fakeout.
Example Use Case
Stock XYZ is approaching a resistance zone. A trader sees:
Standard RSI: 65 → suggests strength.
Volume is 3x the average.
AVW-RSI: 78 → signals strong momentum with institutional backing.
The trader enters confidently, knowing this isn't just low-volume hype.
Limitations / Tips
Works best on liquid assets (Forex majors, large-cap stocks, BTC/ETH).
Should be used alongside price action and volume analysis—not standalone.
Periods of extremely high volume (news events) might need smoothing to avoid spikes.
Bullish vs Bearish Strength IndicatorBullish Body Size (Green Line)
The cumulative size of all bullish candles over the selected period.
Bearish Body Size (Red Line)
The cumulative size of all bearish candles over the selected period.
Bull/Bear Ratio (Blue Line)
Real-time ratio of Bullish to Bearish strength.
Zero Line (Gray Line)
Optional visibility to track neutral zones.
Configurable Settings:
Toggle visibility of each plot.
Customize colors directly from the settings panel.
Relative Strength IndexHello everyone! 👋
This is the standard RSI indicator with some small visual enhancements. Extra bands and background fills have been added to highlight overbought, oversold, and mid-level zones. There's also an option to enable RSI-based Bollinger Bands and basic divergence markers.
Feel free to use it if you find the extras helpful!
Multi-Speed ADX with AlertsADX 5 speed ForexAlien Wave following
You can wait for all the waves to grow and trade in the direction of the price action.
You can trade the three shortest waves for more action.
This will help you catch the longer momentum wave, allowing you to stay invested for days and avoid tying up your cash for an extended period.
15 years of chart pounding - ForexAlien
Best used where you can see that all the ADX speeds are compressed at the bottom, like a Bollinger band squeeze, and then explode out with a vengeance.
Let the force be with you!
MACD, WT CROSS & HVPThis indicator combines three powerful tools for market analysis:
1️⃣ MACD (Moving Average Convergence Divergence)
The main histogram shows the MACD, which measures the difference between two exponential moving averages.
Red (negative) bars indicate selling pressure.
Green/blue (positive) bars indicate buying pressure.
This indicator is very useful for detecting trend changes and momentum strength.
2️⃣ WT CROSS Signal Dots
The small green and red dots over the histogram show key cross signals detected by the WT CROSS tool.
Green dots indicate a potential bullish cross (buy signal).
Red dots indicate a potential bearish cross (sell signal).
This helps quickly spot moments when the market may be about to reverse direction.
3️⃣ Historical Volatility Percentile (HVP)
The purple vertical flashes in the background highlight moments when historical volatility is extremely low.
When the HVP flashes, it signals a period of compressed volatility, often followed by a strong price move.
It acts as a trader alert, as low volatility phases often precede breakouts or sharp movements.
Moving Average ExponentialColor Logic Integrated - The EMA line now changes to green when the price is above it and red when the price is below.
Smoothing MA Options - Added various types of MAs (SMA, EMA, SMMA, WMA, VWMA) that you can switch to dynamically.
Bollinger Bands Integration - If you select "SMA + Bollinger Bands," it will plot the bands around the moving average.
Background Fill - For Bollinger Bands, a light green fill is added when it's enabled.
siqbots 10,21,50
A ribbon for the 10 and 21 MA, and another line for the 50 MA.
Got the idea from Christopher Uhl - OVTLYR who uses the 10, 20, 50, but to make it original I made it the 21.
stockan – Oscillator Matrixstockan – Oscillator Matrix
A multi-layer RSI-based momentum & trend tool with signal smoothing, short-segment regression lines, fade-style histogram, reversal markers, and a blocky heat-bar.
stockan is designed to give you a crystal-clear view of short-term momentum shifts and trend bias all in one pane. It builds upon the classic 0–100 RSI by:
Smoothing it with a quick SMA to generate a clean crossover signal.
Drawing tiny linear-regression segments on both RSI and its signal line to highlight the slope (i.e. local trend direction) over a handful of bars.
Filling between RSI and signal in green/red so you can instantly see when momentum flips.
Plotting a soft-fade histogram of (RSI – signal), where stronger moves produce more opaque bars, while smaller divergences fade into the background.
Marking local peaks and troughs on the RSI curve with dots—perfect for fine-tuning entries or exits.
Rendering a bottom “heat” strip as blocky columns that switch from red to green once RSI crosses your chosen threshold, giving you a persistent bias indicator.
🔧Inputs & Settings
You can customize every aspect of stockan in the Indicator Settings:
Price Source (default = Close)
Choose which price series (Open, High, Low, Close, or a custom series) you want the RSI to use.
Oscillator Length (RSI) (default = 14)
The look-back period for the RSI calculation. Shorter values make the oscillator more sensitive.
Signal Smoothing (default = 3)
The length of the simple moving average applied to the RSI. Higher values produce slower, cleaner signals.
Trend-LR Length (default = 20)
Number of bars used in each linear-regression segment. Longer lengths smooth trends but react more slowly.
Heat Threshold (default = 50)
The cutoff level (on the 0–100 RSI scale) above which the bottom heat-blocks turn green.
Histogram Max for Fade (default = 20)
The absolute difference (RSI – signal) that maps to 100% opacity in the histogram. Smaller differences fade out; larger ones stand out.
🚀 How to Use stockan
Identify Momentum Shifts
Watch for the green/red fill to flip—when the RSI line crosses above its signal, green fill indicates building bullish momentum; red indicates bearish pressure.
Sense Short-Term Trend with Mini-Regression Lines
The tiny sloping segments on both RSI and signal lines give an immediate visual cue: upward-tilted segments = short-term uptrend, downward = downtrend.
Gauge Strength with the Fade-Style Histogram
Opaque bars mean strong momentum divergence; faint bars mean weak or consolidating moves. Use these to avoid low-conviction signals.
Fine-Tune Entries & Exits Using Reversal Dots
Gray dots mark local RSI highs (possible short setups), green dots mark local lows (possible long entries).
Confirm Bias with the Heat-Bar
A steady green row at the bottom tells you RSI has been above your threshold consistently—ideal for trend-following. A red row suggests caution or counter-trend trades.
🎯 Benefits
All-in-One Pane: No need to juggle RSI, MA, histogram and custom script separately.
Clean Visuals: Soft fades and blocky heat bars reduce clutter and highlight what matters.
Non-Repainting: Uses only closed-bar data; once a bar is closed, nothing moves or disappears.
Highly Customizable: Every length, threshold, color and transparency can be adjusted in Settings.
Lightweight & Self-Contained: Pure Pine v5—no external libraries, no proprietary code—fully compliant with TradingView’s policies.
Stockan Momentum MeterStockan Momentum Meter (SMM)
Advanced Momentum Acceleration Oscillator
Version: 1.0 | Category: Momentum Oscillator | Type: Open Source
Detailed Technical Specification
Key Features
Dual-Layer Momentum Calculation
Calculates momentum using double derivative of price (ROC of ROC)
First Layer: Standard Rate of Change (ROC)
Second Layer: Momentum of Momentum (ROC applied to first ROC)
Signal Smoothing System
EMA filtering of raw momentum values
Adaptive smoothing based on user-defined length
4-State Color Coding
Quadrant-based visualization system:
Strong Bullish (Green): Histogram > Threshold
Moderate Bullish (Blue): 0 < Histogram ≤ Threshold
Moderate Bearish (Orange): -Threshold ≤ Histogram < 0
Strong Bearish (Red): Histogram < -Threshold
Dynamic Threshold System
Adjustable baseline levels for sensitivity control
Symmetrical upper/lower boundaries
Detailed Working Mechanism
Calculation Pipeline
Raw Momentum (momo):
momo = ROC(ROC(close, length), length)
Measures acceleration/deceleration in price movements
Double derivation filters out noise while capturing momentum shifts
Smoothed Signal (ema_momo):
ema_momo = EMA(momo, length)
Creates reference line for momentum comparison
Reduces whipsaws in volatile markets
Histogram Value:
histogram = momo - ema_momo
Visualizes difference between raw and smoothed momentum
Positive values = accelerating momentum
Negative values = decelerating momentum
PARAMETER CONFIGURATION
Momentum Length (Default: 14)
Range: 1-100 | Controls historical window for momentum calculations
Base Line Threshold (Default: 0.0)
Range: 0-100 | Determines sensitivity for color changes
COLOR CODING SYSTEM
GREEN Signals:
Histogram value ABOVE threshold level = Strong bullish momentum
BLUE Signals:
Positive values BETWEEN 0 and threshold = Moderate bullish pressure
ORANGE Signals:
Negative values BETWEEN 0 and -threshold = Moderate bearish pressure
RED Signals:
Histogram value BELOW -threshold = Strong bearish momentum
Key Benefits for Traders
Early Reversal Detection
Identifies momentum exhaustion before price reversal occurs
Divergence Spotting
Clear visualization of:
Bullish divergence (Price ↓ + Histogram ↑)
Bearish divergence (Price ↑ + Histogram ↓)
Trend Strength Measurement
Histogram height indicates momentum intensity
Multi-Timeframe Compatibility
Works effectively on:
Scalping (1-15min)
Swing Trading (1H-4H)
Position Trading (Daily-Weekly)
Customizable Sensitivity
Adjust threshold levels for:
Day traders (higher threshold = fewer signals)
Long-term investors (lower threshold = more sensitivity)
Usage Scenarios
Bullish Signal
Green histogram crossing above threshold
Blue → Green color transition
Bearish Signal
Red histogram crossing below negative threshold
Orange → Red color transition
Confirmation Tool
Use with trend indicators (EMA, MACD):
Green histogram + Price above 200 EMA = Strong uptrend
Red histogram + Price below 200 EMA = Strong downtrend
KEY ADVANTAGES OVER POPULAR INDICATORS
Faster Signals vs RSI
Detects momentum shifts earlier through double ROC calculation
Clearer Visuals vs MACD
Four-color system replaces confusing line crossovers with instant visual cues
Better Filtering vs Stochastic
Dual-layer calculation reduces market noise more effectively
Custom Sensitivity
Adjustable threshold outperforms fixed settings in traditional oscillators
How to Use
Add to chart from TradingView Public Library
Default settings work for most timeframes
Adjust parameters based on:
Aggressive trading: Reduce length (10-12)
Conservative trading: Increase length (20-25)
Combine with:
Trendlines for breakout confirmation
Volume indicators for signal validation
Notes
Best Performance: Ranging markets with clear support/resistance
Risk Management: Use with stop-loss (2x ATR recommended)
Limitations: May give false signals during low-volume periods
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.
分层 + 手动分位 StochRSI(红蓝点版)用 getPercentile() 手动对数组排序取分位,避免引用不存在的 API。
ATR 数组 atrArr 定期 push/shift,实时分层。
对应波动层分别维护 lowArr/midArr/highArr,计算 osLine/obLine。
用两条 plot(..., style=plot.style_circles),掩码表达式 buySig ? osLine : na 与 sellSig ? obLine : na,只在穿越当根 K 线上画蓝/红圆点,且精准落在阈值线上。
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.
Multi RSI (3,7,14,21,50)Multi time frame RSI. Helps figure out the overall market on multi time frames.
Fire Sling Shot Stochastic// ============================================================================
// Stochastic Indicator (5,3,3) Explanation
// ============================================================================
//
// The Fire Sling Shot strategy uses a Stochastic oscillator (5,3,3) as a
// confirming indicator to enhance the reliability of EMA crossover signals.
//
// WHAT IS STOCHASTIC?
// The Stochastic oscillator is a momentum indicator that compares a security's
// closing price to its price range over a specific period. The indicator
// oscillates between 0 and 100, with readings above 80 considered overbought
// and readings below 20 considered oversold.
//
// SETTINGS USED:
// - %K Period: 5 (faster sensitivity to price movements)
// - %D Period: 3 (smoothing of %K)
// - Smoothing: 3 (additional smoothing applied to the %K line)
// - Overbought Level: 80
// - Oversold Level: 20
//
// HOW IT'S USED IN THIS STRATEGY:
//
// 1. Bull Signal Enhancement:
// When the 15 EMA crosses above the 50 EMA (primary signal), we check
// if the Stochastic is below 20 or has just crossed above 20. This suggests
// momentum is starting to turn upward from an oversold condition, improving
// the quality of the long entry.
//
// 2. Bear Signal Enhancement:
// When the 15 EMA crosses below the 50 EMA (primary signal), we check
// if the Stochastic is above 80 or has just crossed below 80. This suggests
// momentum is starting to turn downward from an overbought condition,
// improving the quality of the short entry.
//
// 3. Early Warning:
// Stochastic movements below 20 or above 80 can provide early warning of
// potential EMA crossovers, allowing traders to prepare for possible entry
// signals.
//
// The Stochastic filter is optional and can be enabled/disabled through the
// strategy inputs. When disabled, the strategy relies solely on EMA crossovers
// for entry signals.
//
// NOTE: While Stochastic can improve signal quality, no indicator is perfect.
// False signals can occur, especially in ranging or choppy markets. Always
// combine with proper risk management and consider the overall market context.
//
// ============================================================================
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.
RSI + RSI MA + Choppiness IndexThe indicator is an extension of the Chopiness & RSI Index but takes it one step further by adding the RSI based MA .
Strong uptrend occurs when the RSI is at least 15% above the RSI based MA and the choppiness index value is below the RSI based MA.
Strong downtrend occurs when the Choppiness index line is at least 15% above the RSI based MA and the RSI is below the RSI based MA.
When both the RSI and Chopiness index are above the RSI based MA, this can mean either an uptrend or approaching downtrend.
When both the RSI and Chopiness index are below the RSI based MA, this can mean either an downtrend or approaching uptrend.
*Use at own risk.
RSI + RSI MA + Choppiness IndexThe indicator is an extension of the Chopiness & RSI Index but takes it one step further by adding the RSI based MA .
Strong uptrend occurs when the RSI is at least 15% above the RSI based MA and the choppiness index value is below the RSI based MA.
Strong downtrend occurs when the Choppiness index line is at least 15% above the RSI based MA and the RSI is below the RSI based MA.
When both the RSI and Chopiness index are above the RSI based MA, this can mean either an uptrend or approaching downtrend.
When both the RSI and Chopiness index are below the RSI based MA, this can mean either an downtrend or approaching uptrend.
*Use at own risk.
Adaptive RSI | Lyro RSThe Adaptive RSI | 𝓛𝔂𝓻𝓸 𝓡𝓢 indicator enhances the traditional Relative Strength Index (RSI) by integrating adaptive smoothing techniques and dynamic bands. This design aims to provide traders with a nuanced view of market momentum, highlighting potential trend shifts and overbought or oversold conditions.
Key Features
Adaptive RSI Calculation: Combines fast and slow Exponential Moving Averages (EMAs) of the RSI to capture momentum shifts effectively.
Dynamic Bands: Utilizes a smoothed standard deviation approach to create upper and lower bands around the adaptive RSI, aiding in identifying extreme market conditions.
Signal Line: An additional EMA of the adaptive RSI serves as a signal line, assisting in confirming trend directions.
Customizable Color Schemes: Offers multiple predefined color palettes, including "Classic," "Mystic," "Accented," and "Royal," with an option for users to define custom colors for bullish and bearish signals.
How It Works
Adaptive RSI Computation: Calculates the difference between fast and slow EMAs of the RSI, producing a responsive oscillator that adapts to market momentum.
Band Formation: Applies a smoothing factor to the standard deviation of the adaptive RSI, generating dynamic upper and lower bands that adjust to market volatility.
Signal Line Generation: Computes an EMA of the adaptive RSI to act as a signal line, providing additional confirmation for potential entries or exits.
Visualization: Plots the adaptive RSI as color-coded columns, with colors indicating bullish or bearish momentum. The dynamic bands are filled to visually represent overbought and oversold zones.
How to Use
Identify Momentum Shifts: Observe crossovers between the adaptive RSI and the signal line to detect potential changes in trend direction.
Spot Overbought/Oversold Conditions: Monitor when the adaptive RSI approaches or breaches the dynamic bands, signaling possible market extremes.
Customize Visuals: Select from predefined color palettes or define custom colors to align the indicator's appearance with personal preferences or chart themes.
Customization Options
RSI and EMA Lengths: Adjust the lengths of the RSI, fast EMA, slow EMA, and signal EMA to fine-tune the indicator's sensitivity.
Band Settings: Modify the band length, multiplier, and smoothing factor to control the responsiveness and width of the dynamic bands.
Color Schemes: Choose from predefined color modes or enable custom color settings to personalize the indicator's appearance.
⚠️ DISCLAIMER ⚠️: This indicator alone is not reliable and should be combined with other indicator(s) for a stronger signal.
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 𐓷𐓏