Pengayun
BBS – Bond Breadth Signal"When bonds scream, breadth collapses, and fear spikes — BBS listens."
🧠 BBS – Bond Breadth Signal
A reversal timing tool built on macro conviction, not price noise.
The Bond Breadth Signal (BBS) was developed to identify major market inflection points by combining four key market stress indicators:
1) 10-Year Yield ROC – Measures sharp moves in the bond market
2) Z-Score of the 10Y – Captures statistical extremes
3) NSHF (Net Highs–Lows) – Signals internal market strength or weakness
4) TLT ROC + VIX – Confirmations of flight to safety and volatility-driven fear
When all conditions align, BBS marks either a For-Sure Buy or For-Sure Sell — these are rare, high-confidence signals designed to cut through noise and focus on true market dislocations.
🔧 Features:
-Background color and signal arrows on confirmation days
-Signals remain visually active for 3 days for added clarity
-Fully adjustable thresholds and alert toggles
-Plot panel for yield, TLT, NSHF, VIX, and Z-score visuals
This tool isn’t designed to fire every day. It’s meant to wait for those moments when the market truly bends — not just wiggles.
Best used on major indices (SPY, QQQ, IWM) to assess macro turning points.
RSI with ADX Rising Oscillator (MTF)This Pine Script v6 indicator combines RSI (Relative Strength Index) with an ADX Rising Oscillator, along with optional divergence detection and multi-timeframe support.
Multi-Timeframe Support: The script allows you to analyze RSI and ADX from different timeframes (default 60 minutes) while viewing on your current chart timeframe.
RSI Analysis:
Standard 14-period RSI calculation with customizable source and length
Visual zones for overbought (70+) and oversold (30-) conditions
Optional smoothing with various moving averages (SMA, EMA, etc.) and Bollinger Bands
Bullish/bearish divergence detection with alerts
ADX Rising Oscillator:
Uses ADX (Average Directional Index) to measure trend strength
Creates an oscillator that only shows values when ADX is rising (indicating strengthening trend)
Colors the oscillator based on RSI direction (green for rising RSI, red for falling RSI)
Shows positive values when DI+ > DI- (bullish bias) and negative when DI- > DI+ (bearish bias)
Chaikin Oscillator with EMA and AlertsOverview
This indicator plots the classic Chaikin Oscillator along with an EMA overlay to help identify changes in accumulation or distribution momentum. It includes visual markers and built-in alerts for key crossover events such as crossing the zero line and crossing above or below the Chaikin EMA.
Concepts
The Chaikin Oscillator is calculated as the difference between two EMAs of Accumulation/Distribution (A/D) volume. It is used to measure the momentum behind buying and selling pressure. An EMA is applied to the oscillator itself to smooth out signals and provide an additional layer of trend confirmation. Crossovers above or below zero, and above or below the EMA, are interpreted as potential signals of market sentiment shifts.
How to Use the Indicator
Apply the indicator to any chart and select your preferred short, long, and EMA lengths. The script will plot the Chaikin Oscillator in teal and its EMA in red. Triangles and labels will appear on the chart when the oscillator crosses above or below the zero line, or when it crosses its EMA. Green triangles indicate bullish zero-line crossovers, while red triangles indicate bearish ones. Lime and maroon labels signal EMA crossovers. Use these signals to assess momentum shifts and potential entry or exit points.
Interpretation
When the Chaikin Oscillator is above zero and rising, it suggests strong buying pressure. When it is below zero and falling, it suggests strong selling pressure. A crossover above the EMA may indicate an emerging bullish trend, while a crossover below the EMA may suggest increasing bearish momentum. Using both the zero line and EMA crossover together helps filter noise and improves reliability of momentum-based signals.
Notes
The indicator includes four alert conditions that can be enabled in TradingView to notify you of Chaikin Oscillator crossovers. It works across all asset classes and timeframes. This tool is especially useful for identifying momentum shifts ahead of price moves and for confirming volume-based signals in trend continuation or reversal scenarios. Adjust input lengths to suit your trading style or the volatility of the instrument you are analyzing.
Chaikin Oscillator Multi-Timeframe BiasOverview
Chaikin Oscillator Multi-Timeframe Bias is an indicator designed to help traders align with institutional buying and selling activity by analyzing Chaikin Oscillator signals across two timeframes—a higher timeframe (HTF) for trend bias and a lower timeframe (LTF) for timing. This dual-confirmation model helps traders avoid false breakouts and trade in sync with market momentum and accumulation or distribution dynamics.
Core Concepts
The Chaikin Oscillator measures the momentum of accumulation and distribution based on price and volume. Institutional traders typically accumulate slowly and steadily, and the Chaikin Oscillator helps reveal this pattern. Multi-timeframe analysis confirms whether short-term price action supports the longer-term trend. This indicator applies a smoothing EMA to each Chaikin Oscillator to help confirm direction and reduce noise.
How to Use the Indicator
Start by selecting your timeframes. The higher timeframe, set by default to Daily, establishes the broader directional bias. The lower timeframe, defaulted to 30 minutes, identifies short-term momentum confirmation. The indicator displays one of five labels: CALL Bias, CALL Wait, PUT Bias, PUT Wait, or NEUTRAL. CALL Bias means both HTF and LTF are bullish, signaling a potential opportunity for long or call trades. CALL Wait indicates that the HTF is bullish, but the LTF hasn’t confirmed yet. PUT Bias signals bearish alignment in both HTF and LTF, while PUT Wait indicates HTF is bearish and LTF has not yet confirmed. NEUTRAL means there is no alignment between timeframes and directional trades are not advised.
Interpretation
When the Chaikin Oscillator is above zero and also above its EMA, this indicates bullish momentum and accumulation. When the oscillator is below zero and below its EMA, it suggests bearish momentum and distribution. Bias labels identify when both timeframes are aligned for a higher-probability directional setup. When a “Wait” label appears, it means one timeframe has confirmed bias but the other has not, suggesting the trader should monitor closely but delay entry.
Notes
This indicator includes alerts for both CALL and PUT bias confirmation when both timeframes are aligned. It works on all asset classes, including stocks, ETFs, cryptocurrencies, and futures. Timeframes are fully customizable, and users may explore combinations such as 1D and 1H, or 4H and 15M depending on their strategy. For best results, consider pairing this tool with volume, volatility, or price action analysis.
System 0530 - Stoch RSI Strategy v13 SL-Priority TP-ReversalStrategy Overview: System 0530 - Stochastic RSI Multi-Timeframe
This TradingView Pine Script outlines a strategy primarily based on the Stochastic RSI (Stoch RSI) indicator, employing a multi-timeframe approach for signal generation and confirmation. It is designed to operate on a 5-minute chart, referencing 15-minute data for higher-level context.
Core Mechanics:
Primary Indicator: Stochastic RSI, used to identify overbought/oversold conditions and potential momentum shifts.
Timeframes:
5-minute chart: For initial signal triggers and primary execution.
15-minute chart: For signal confirmation and certain take-profit conditions.
Entry Logic:
Bullish Market Bias Adjustment: Reflecting an overall bullish market trend, this strategy is intended to be applied with more tolerance or lower requirements for triggering long positions compared to short positions. This can be achieved by adjusting the input parameters accordingly (e.g., setting a higher stoch_5min_k_long_trigger threshold, allowing longs to trigger when less oversold, or a higher stoch_15min_long_entry_level, requiring less deep confirmation for longs).
5-Minute Initial Trigger:
Long: 5-minute Stoch RSI K-line crosses above its D-line, AND the K-value at the time of the cross is below a specified stoch_5min_k_long_trigger level.
Short: 5-minute Stoch RSI K-line crosses below its D-line, AND the K-value at the time of the cross is above a specified stoch_5min_k_short_trigger level.
15-Minute Confirmation:
After a 5-minute trigger, the strategy waits for a configurable number of 5-minute bars (wait_window_5min_bars) for confirmation from the 15-minute timeframe.
Long Confirmation: 15-minute Stoch RSI K-line must be strictly greater than its D-line, AND the 15-minute K-value must be below stoch_15min_long_entry_level.
Short Confirmation: 15-minute Stoch RSI K-line must be strictly less than its D-line, AND the 15-minute K-value must be above stoch_15min_short_entry_level.
Position Lock: No new entry signals are generated if the strategy already holds an open position.
Duplicate Signal Filter: A cooldown period, defined by min_bars_between_signals, must pass before another signal in the same direction can be considered.
Exit Logic:
Stop-Loss (SL):
The SL is set based on the low (for longs) or high (for shorts) of the 5-minute bar on which the trade was entered.
The position is closed if a subsequent 5-minute bar's closing price moves beyond this SL level.
SL checks are prioritized over Take-Profit checks.
Take-Profit (TP) - Two-Stage Mechanism:
TP1 (Closes 50% of the position):
Priority A (Extreme K Levels): If the 5-minute Stoch K OR 15-minute Stoch K value exceeds extreme_long_tp_level (for longs) or drops below extreme_short_tp_level (for shorts).
Priority B (Conditional 5-min Cross + 15-min K-Reversal): If Extreme K conditions are not met, TP1 is triggered if:
A 5-minute Stoch RSI K/D crossover occurs (K crosses below D for longs; K crosses above D for shorts - using strict ta.crossunder/ta.crossover).
AND this 5-minute crossover is confirmed by a 15-minute Stoch K-value "reversal" (current 15m K < previous 15m K for longs; current 15m K > previous 15m K for shorts).
TP2 (Closes remaining 50% of the position):
This stage is active only after TP1 has been taken.
If the 5-minute Stoch K OR 15-minute Stoch K value reaches the same extreme_long_tp_level or extreme_short_tp_level again, a waiting period begins, defined by tp2_extreme_k_wait_bars (number of 5-minute bars).
If the extreme K condition persists after this waiting period, TP2 is executed.
If the extreme K condition disappears during the waiting period, the TP2 attempt for that instance is cancelled.
If tp2_extreme_k_wait_bars is set to 0, TP2 will trigger immediately upon the extreme K condition being met after TP1.
Note on Fine-Tuning (as per user context):
This strategy has been specifically fine-tuned for SPY. As with any trading system, its performance can vary across different instruments and market conditions. The user notes that to potentially maximize profits, especially in trending scenarios where the current "Extreme K" based TP2 might exit prematurely, it is advisable to explore and integrate other indicators or alternative take-profit methodologies. Dynamic approaches like ATR (Average True Range) trailing stops or trend-following exit signals could be considered for managing the second portion of the position.
Combined ATPC & MACD DivergenceTrend Optimizer + Divergence Finder in One Unified Tool
🔍 Overview:
This powerful dual-system indicator merges two proven analytical engines:
✅ The Algorganic Typical Price Channel (ATPC) — a custom trend oscillator that highlights mean-reversion and directional bias.
✅ A refined MACD system with divergence detection, enhanced with an adjusted Donchian midline for real-time trend strength filtering.
Together, they provide a high-confidence, multi-signal system ideal for swing trading, scalping, or confirming reversals with context.
⚙️ Core Components & Logic
🧠 1. ATPC Engine (Trend Commodity Index)
A momentum and volatility-normalized oscillator based on the typical price (H+L+C)/3:
TrendCI Line (Blue) – Main trend signal based on smoothed CCI logic.
TrendLine2 (Orange) – A slower smoothing of TrendCI for crossovers.
Key Zones (customizable):
🔴 Ultra Overbought: +73
🟣 Overbought: +58
🟣 Oversold: -58
🔴 Ultra Oversold: -73
Trade Logic:
✅ Buy Signal: TrendCI crosses above TrendLine2 while in oversold zone
❌ Sell Signal: TrendCI crosses below TrendLine2 while in overbought zone
Additional visual feedback:
Histogram Bars show strength and direction of momentum shift
Green/Red Circles highlight potential long/short setups
📉 2. MACD System + Divergence Finder
Classic MACD enhanced with a Donchian Midline overlay to filter trend bias.
🔷 MACD Line and 🟠 Signal Line show crossover momentum
🟩/🟥 Histogram shows distance from the signal line
🟪 Adjusted Donchian Midline dynamically adapts to range-bound vs trending environments
Background Color provides real-time trend state:
✅ Green = Bullish Trend
❌ Red = Bearish Trend
No color = Neutral / Choppy
MACD Boundaries (user-defined):
Overbought: +1.0
Oversold: -1.0
🔀 3. Divergence Detection
Spot hidden power shifts before price reacts:
🔼 Positive Divergence – Price makes lower lows, but MACD histogram rises
🔽 Negative Divergence – Price makes higher highs, but MACD histogram weakens
These are visually marked with:
Green “+Div” label (bullish reversal cue)
Red “–Div” label (bearish exhaustion signal)
🎯 How to Use It
For Trend Traders:
Stay in sync with macro trend using MACD histogram + background
Use ATPC crossovers for precision entries
Avoid signals during neutral background (chop filter)
For Reversal Traders:
Look for bullish +Div with ATPC buy signal in oversold zone
Look for bearish –Div with ATPC sell signal in overbought zone
Mid-Donchian line can act as confluence or breakout trigger
For Scalpers & Intraday Traders:
Combine with VWAP, liquidity zones, or order flow levels
ATPC crossovers + MACD histogram zero-line flip = potential scalp entry
Use histogram slope and divergence to avoid false momentum traps
🧩 Customizable Inputs
🎛️ ATPC: Channel & Smoothing lengths, overbought/oversold thresholds
🎛️ MACD: Fast/slow EMAs, signal smoothing, Donchian period, bounds
🎨 Fully theme-compatible with adjustable colors and line styles
🔔 Alerts (Add Your Own)
While this version doesn’t contain built-in alerts, you can easily add alerts based on:
buySignal or sellSignal from ATPC logic
Histogram cross zero or trend flip
MACD Divergence event
📜 “This indicator doesn't just show signals—it tells a story about who’s in control of the market, and when that control might be slipping.”
Momentum StrategyMomentum Strategy using Volume, RSI and MACD
Optimised using AI to determine:
"Volume MA Lookback" and Volume Spike Threshold"
"RSI Length" vs. "RSI Midline Level"
"MACD Fast Length" , "MACD Slow Length" and"MACD Signal Length"
to generate a "Slow MA Length"
P4H SFP StrategySignals Long or Short Entries based on Previous 4H low/high. Entry criteria are SFP/Rejection of P4h L/H and candle close in opposite direction. RSI must be 65/35 but can customize. Stop/TP 1% from entry. All of this is customizable. Stats are shown and you can change the time range of that as well.
Universal Valuation | QuantMAC🎯 Universal Valuation | QuantMAC
🚀 Professional-Grade Valuation Engine with 14+ Technical Components
The Universal Valuation indicator is a sophisticated composite analysis tool that combines multiple technical indicators, statistical measures, and risk ratios to provide a comprehensive assessment of asset valuation across all market conditions and timeframes.
📊 Core Architecture & Methodology
🔬 Z-Score Normalization System
Each component is normalized using statistical Z-scores, which measure how many standard deviations a value is from its historical mean. This standardization allows different indicators to be combined meaningfully:
Positive Z-scores indicate values above historical average (potentially overvalued)
Negative Z-scores indicate values below historical average (potentially undervalued)
Individual lookback periods for each component ensure optimal sensitivity
Real-time statistical calculations with dynamic standard deviation adjustments
📈 Composite Scoring Algorithm
The final valuation score is calculated as the weighted average of all enabled components, providing a unified view of market conditions while maintaining granular control over individual inputs.
🛠️ Technical Components Breakdown
📊 Momentum & Oscillator Components
🎯 RSI (Relative Strength Index)
Function: Measures price momentum and overbought/oversold conditions
Default Settings: 21-period RSI with 150-period Z-score normalization
Analysis: Values above 70 (traditional) become positive Z-scores, indicating potential overvaluation
Edge: Z-score normalization adapts to changing market volatility unlike fixed thresholds
🌊 CCI (Commodity Channel Index)
Function: Identifies cyclical price patterns and extreme price levels
Default Settings: 30-period CCI with 150-period Z-score normalization
Analysis: Measures price deviation from statistical mean using typical price (HLC/3)
Edge: Excellent for identifying price extremes in trending and ranging markets
🔵 Chande Momentum Oscillator
Function: Advanced momentum indicator using sum of gains vs. sum of losses
Default Settings: 50-period calculation with 50-period Z-score normalization
Analysis: Formula: 100 * (Sum_Gains - Sum_Losses) / (Sum_Gains + Sum_Losses)
Edge: Less prone to whipsaws compared to RSI, better momentum persistence detection
🎭 IMI (Intraday Momentum Index)
Function: Combines RSI concept with intraday price action analysis
Default Settings: 100-period calculation with 150-period Z-score normalization
Analysis: Uses gains/losses based on close vs. open rather than close-to-close
Edge: Captures intraday sentiment and gap behavior effectively
📈 Price Action & Trend Components
📊 Bollinger Bands Position
Function: Measures price position relative to volatility-adjusted bands
Default Settings: 30-period bands with 50-period Z-score normalization
Analysis: (Price - SMA) / (2 * Standard_Deviation) normalized to Z-score
Edge: Adapts to volatility changes, providing context-aware overbought/oversold levels
💹 Price Z-Score
Function: Direct statistical analysis of price deviation from historical mean
Default Settings: 150-period lookback for Z-score calculation
Analysis: Pure price momentum without indicator lag or smoothing
Edge: Unfiltered price analysis, excellent for mean reversion strategies
📊 Disparity Index
Function: Measures percentage deviation of price from its moving average
Default Settings: 10-period SMA with 150-period Z-score normalization
Analysis: 100 * (Price - SMA) / SMA, then normalized to Z-score
Edge: Highly sensitive to short-term price deviations, excellent for timing entries
🎯 TEMA (Triple Exponential Moving Average)
Function: Advanced moving average with reduced lag and improved responsiveness
Default Settings: 10-period TEMA with 150-period Z-score normalization
Analysis: Triple-smoothed EMA that maintains trend-following capability with less noise
Edge: Superior trend identification with minimal lag compared to traditional MAs
📊 Volume & Market Structure Components
📈 VWAP (Volume Weighted Average Price)
Function: Incorporates volume into price analysis for institutional perspective
Default Settings: Standard VWAP with 300-period Z-score normalization
Analysis: Compares current price to volume-weighted institutional benchmark
Edge: Reveals institutional sentiment and identifies fair value zones
⚡ Intraday Momentum
Function: Measures session-based momentum using open-to-close movement
Default Settings: (Close - Open) / Open * 100 with 250-period Z-score normalization
Analysis: Captures daily sentiment and gap behavior in percentage terms
Edge: Excellent for intraday trading and gap analysis strategies
🎲 Advanced Statistical Components
🌊 Hurst Exponent (Optional)
Function: Measures market efficiency and trend persistence characteristics
Default Settings: 100-period calculation with 200-period Z-score normalization
Analysis: Values > 0.5 indicate trending markets, < 0.5 indicate mean-reverting markets
Edge: Identifies market regime changes and optimal strategy selection
Note: Computationally intensive, disabled by default for performance
📊 Risk-Adjusted Performance Ratios
⚡ Sharpe Ratio
Function: Risk-adjusted return measurement using total volatility
Default Settings: 400-period calculation with 120-period Z-score normalization
Analysis: (Return - Risk_Free_Rate) / Standard_Deviation of returns
Edge: Identifies periods of superior risk-adjusted performance
🎯 Sortino Ratio
Function: Risk-adjusted return using only downside deviation (superior to Sharpe)
Default Settings: 400-period calculation with 120-period Z-score normalization
Analysis: (Return - Risk_Free_Rate) / Downside_Deviation
Edge: More accurate risk assessment as it ignores upside volatility
🌟 Omega Ratio
Function: Advanced risk measure comparing gains above threshold to losses below
Default Settings: 400-period calculation with 200-period Z-score normalization
Analysis: Sum_of_Gains_Above_Threshold / Sum_of_Losses_Below_Threshold
Edge: Captures full return distribution, not just mean and variance
🎨 Visualization & Interface
🌈 Dual Color Schemes
Bright Mode: Vibrant colors for clear daylight visibility
Dark Mode: Muted tones for low-light trading environments
Adaptive Gradients: Color intensity scales with Z-score magnitude
Background Highlighting: Optional panel and chart background coloring for extreme conditions
📊 Comprehensive Data Table
Real-time Z-scores for each enabled component
Composite score with gradient coloring
Valuation phase classification (6 distinct levels)
Toggle individual components on/off for custom analysis
🎯 Valuation Phase Classifications
📈 Systematic Valuation Levels
Extremely Undervalued: Z-score ≤ -2.0 (Exceptional buying opportunity)
Strongly Undervalued: Z-score ≤ -1.3 (Strong buying signal)
Moderately Undervalued: Z-score < -0.65 (Potential buying opportunity)
Fairly Valued: Z-score -0.65 to 0.5 (Neutral zone)
Slightly Overvalued: Z-score 0.5 to 1.2 (Caution zone)
Moderately Overvalued: Z-score 1.2 to 2.0 (Potential selling zone)
Strongly Overvalued: Z-score ≥ 2.0 (Strong selling signal)
🌍 Universal Asset Compatibility
✅ Equity Markets - Individual stocks, ETFs, indices, sector rotation analysis
✅ Cryptocurrency - Bitcoin, altcoins, DeFi tokens, NFT projects
8H
12H
4H
🚀 Key Strategic Advantages
🔬 Scientific Approach
Unlike traditional indicators that use fixed thresholds, the Universal Valuation employs dynamic statistical normalization that adapts to changing market conditions and volatility regimes.
⚡ Multi-Dimensional Analysis
Combines momentum, trend, volume, and risk-adjusted metrics to provide a 360-degree view of market valuation, reducing false signals and improving decision accuracy.
🎯 Customizable Framework
Enable or disable individual components to create custom valuation models tailored to specific assets, strategies, or market conditions.
📊 Institutional-Grade Metrics
Incorporates sophisticated risk ratios (Sharpe, Sortino, Omega) typically used by hedge funds and institutional investors.
💡 Professional Trading Applications
🎯 Mean Reversion Strategies
Identify extreme valuation levels for contrarian entries
Use composite Z-score thresholds for systematic signal generation
Combine with volume analysis for confirmation
📈 Trend Following Enhancement
Avoid trend entries during overvalued conditions
Use undervalued readings to add to existing positions
Time trend continuation trades with valuation support
🔄 Portfolio Management
Asset allocation based on relative valuation scores
Risk management using integrated Sharpe/Sortino ratios
Sector rotation timing using cross-asset comparison
⚡High-Frequency Applications
Intraday momentum component for scalping strategies
VWAP analysis for institutional order flow
Real-time composite scoring for algorithmic systems
🛠️ Configuration Best Practices
📊 Conservative Setup (Long-term)
Enable all components except Hurst Exponent
Use longer Z-score periods (200+) for stability
Focus on -1.3/+2.0 thresholds for major signals
⚡ Aggressive Setup (Short-term)
Emphasize momentum components (RSI, CCI, Chande)
Shorter Z-score periods (50-100) for responsiveness
Use -0.65/+1.2 thresholds for frequent signals
🎯 Risk-Focused Setup
Prioritize Sharpe, Sortino, and Omega ratios
Enable VWAP and price components
Use conservative thresholds with position sizing guidance
---
🏆 Professional Multi-Asset Valuation System
The Universal Valuation indicator represents a quantum leap in technical analysis sophistication, combining academic rigor with practical trading applications. By normalizing diverse technical components through statistical Z-scores, it provides objective, data-driven valuation assessments that adapt to any market condition.
---
📝 Disclaimer: This indicator is for educational and informational purposes only. The statistical models and risk ratios do not guarantee future performance. Always conduct thorough analysis and implement proper risk management practices.
ADX with Signal & ThresholdsHere’s a concise description and instruction set for your ADX script:
📊 ADX with Signal & Thresholds – Description & Instructions
This indicator plots the ADX line, a custom signal line, and up to three threshold levels to help assess trend strength.
🔧 How It Works
• ADX measures trend strength (not direction)
• Signal Line is a smoothed version of ADX using your selected MA type
• Thresholds highlight trend significance levels (e.g. 20 = weak, 25/40 = strong)
⚙️ Inputs
• ADX Length: Defines smoothing period
• Signal Line: Customizable MA type (EMA/SMA/RMA/TMA) and length
• Threshold Lines: Adjustable levels with individual colors
🧠 Use It To
• Spot trend confirmation when ADX > Signal
• Detect strong trends above threshold levels (e.g. >25 or >40)
• Filter out sideways markets when ADX < 20
Let me know if you want to add alerts for crossovers or threshold breaches.
Ind1_MIST_TMRSThis script combines multiple indicators (Trend, Momentum and relative Strength), so that user can decide on entry points based on the combination.
It uses
1) ADX
2) RSI
3) Relative strength (RS)
ADX and RSI has threshold value settings. ADX Threshold values is generally between 20 and 25, whereas RSI threshold value is between 50 and 55. The threshold lines will appear on indicator.
Relative strength of an asset under review can be compared against the main index or sectoral index.
Set relative strength period as given below for best analysis
1) 12 for Monthly charts
2) 52 for weekly charts
3) 123 for daily charts
The RS is displayed as background color. By default background color is Green for RS>0 and Red for RS<0
Note:
RSI, ADX and RS can be hidden by deselecting "Show RSI", "Show ADX" and "Show RS" from inputs settings
When RS is deselected from inputs setting then background color is white
This indicator will be displayed in the section below the chart.
QG-Particle OscillatorThis is an advanced oscillator based on auxiliary particle filter. It separates signal from noise and uses smoothing algorithm similar to JMA.
The main oscillator line is a smoothed and detrended version of the price series similar to detrended oscillator line. The purple/aqua lines are a prediction based on an additional adaptive smoothing technique and current volatility.
The prediction is smoothed twice and is supposed to represent the true signal without any noise, thus the prediction should always be less than the raw detrend line. However, certain volatile conditions will cause the prediction to cross above/below the detrend line. When this happens the likelihood of a reversal or pullback is extremely high.
There are 3 dots on the zero line- Red, Green and Yellow. The yellow dots warn of an eminent pullback 2 bars before it actually occurs. This is a non-repainting indicator.
One can also use this indicator to trade CCI signals, similar to zero line rejection in existing trend.
The indicator has 2 settings- Period and Phase. The phase represents cycle phase and Period represents oscillator period.
Credits: This indicator has been originally published for Ninjatrader and this is conversion into pinescript.
CNN Statistical Trading System [PhenLabs]📌 DESCRIPTION
An advanced pattern recognition system utilizing Convolutional Neural Network (CNN) principles to identify statistically significant market patterns and generate high-probability trading signals.
CNN Statistical Trading System transforms traditional technical analysis by applying machine learning concepts directly to price action. Through six specialized convolution kernels, it detects momentum shifts, reversal patterns, consolidation phases, and breakout setups simultaneously. The system combines these pattern detections using adaptive weighting based on market volatility and trend strength, creating a sophisticated composite score that provides both directional bias and signal confidence on a normalized -1 to +1 scale.
🚀 CONCEPTS
• Built on Convolutional Neural Network pattern recognition methodology adapted for financial markets
• Six specialized kernels detect distinct price patterns: upward/downward momentum, peak/trough formations, consolidation, and breakout setups
• Activation functions create non-linear responses with tanh-like behavior, mimicking neural network layers
• Adaptive weighting system adjusts pattern importance based on current market regime (volatility < 2% and trend strength)
• Multi-confirmation signals require CNN threshold breach (±0.65), RSI boundaries, and volume confirmation above 120% of 20-period average
🔧 FEATURES
Six-Kernel Pattern Detection:
Simultaneous analysis of upward momentum, downward momentum, peak/resistance, trough/support, consolidation, and breakout patterns using mathematically optimized convolution kernels.
Adaptive Neural Architecture:
Dynamic weight adjustment based on market volatility (ATR/Price) and trend strength (EMA differential), ensuring optimal performance across different market conditions.
Professional Visual Themes:
Four sophisticated color palettes (Professional, Ocean, Sunset, Monochrome) with cohesive design language. Default Monochrome theme provides clean, distraction-free analysis.
Confidence Band System:
Upper and lower confidence zones at 150% of threshold values (±0.975) help identify high-probability signal areas and potential exhaustion zones.
Real-Time Information Panel:
Live display of CNN score, market state with emoji indicators, net momentum, confidence percentage, and RSI confirmation with dynamic color coding based on signal strength.
Individual Feature Analysis:
Optional display of all six kernel outputs with distinct visual styles (step lines, circles, crosses, area fills) for advanced pattern component analysis.
User Guide
• Monitor CNN Score crossing above +0.65 for long signals or below -0.65 for short signals with volume confirmation
• Use confidence bands to identify optimal entry zones - signals within confidence bands carry higher probability
• Background intensity reflects signal strength - darker backgrounds indicate stronger conviction
• Enter long positions when blue circles appear above oscillator with RSI < 75 and volume > 120% average
• Enter short positions when dark circles appear below oscillator with RSI > 25 and volume confirmation
• Information panel provides real-time confidence percentage and momentum direction for position sizing decisions
• Individual feature plots allow granular analysis of specific pattern components for strategy refinement
💡Conclusion
CNN Statistical Trading System represents the evolution of technical analysis, combining institutional-grade pattern recognition with retail accessibility. The six-kernel architecture provides comprehensive market pattern coverage while adaptive weighting ensures relevance across all market conditions. Whether you’re seeking systematic entry signals or advanced pattern confirmation, this indicator delivers mathematically rigorous analysis with intuitive visual presentation.
MTF Stochastic RSI AvgUse this for best entry och exit help when your strategy rules says buy vs sell.
Combine diffrent timeframes or just have a bigger or smaller timeframe stochastic RSI on another timeframe chart.
RSI-Adaptive T3 [ChartPrime]The RSI-Adaptive T3 is a precision trend-following tool built around the legendary T3 smoothing algorithm developed by Tim Tillson , designed to enhance responsiveness while reducing lag compared to traditional moving averages. Current implementation takes it a step further by dynamically adapting the smoothing length based on real-time RSI conditions — allowing the T3 to “breathe” with market volatility. This dynamic length makes the curve faster in trending moves and smoother during consolidations.
To help traders visualize volatility and directional momentum, adaptive volatility bands are plotted around the T3 line, with visual crossover markers and a dynamic info panel on the chart. It’s ideal for identifying trend shifts, spotting momentum surges, and adapting strategy execution to the pace of the market.
HOIW IT WORKS
At its core, this indicator fuses two ideas:
The T3 Moving Average — a 6-stage recursively smoothed exponential average created by Tim Tillson , designed to reduce lag without sacrificing smoothness. It uses a volume factor to control curvature.
A Dynamic Length Engine — powered by the RSI. When RSI is low (market oversold), the T3 becomes shorter and more reactive. When RSI is high (overbought), the T3 becomes longer and smoother. This creates a feedback loop between price momentum and trend sensitivity.
// Step 1: Adaptive length via RSI
rsi = ta.rsi(src, rsiLen)
rsi_scale = 1 - rsi / 100
len = math.round(minLen + (maxLen - minLen) * rsi_scale)
pine_ema(src, length) =>
alpha = 2 / (length + 1)
sum = 0.0
sum := na(sum ) ? src : alpha * src + (1 - alpha) * nz(sum )
sum
// Step 2: T3 with adaptive length
e1 = pine_ema(src, len)
e2 = pine_ema(e1, len)
e3 = pine_ema(e2, len)
e4 = pine_ema(e3, len)
e5 = pine_ema(e4, len)
e6 = pine_ema(e5, len)
c1 = -v * v * v
c2 = 3 * v * v + 3 * v * v * v
c3 = -6 * v * v - 3 * v - 3 * v * v * v
c4 = 1 + 3 * v + v * v * v + 3 * v * v
t3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3
The result: an evolving trend line that adapts to market tempo in real-time.
KEY FEATURES
⯁ RSI-Based Adaptive Smoothing
The length of the T3 calculation dynamically adjusts between a Min Length and Max Length , based on the current RSI.
When RSI is low → the T3 shortens, tracking reversals faster.
When RSI is high → the T3 stretches, filtering out noise during euphoria phases.
Displayed length is shown in a floating table, colored on a gradient between min/max values.
⯁ T3 Calculation (Tim Tillson Method)
The script uses a 6-stage EMA cascade with a customizable Volume Factor (v) , as designed by Tillson (1998) .
Formula:
T3 = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3
This technique gives smoother yet faster curves than EMAs or DEMA/Triple EMA.
⯁ Visual Trend Direction & Transitions
The T3 line changes color dynamically:
Color Up (default: blue) → bullish curvature
Color Down (default: orange) → bearish curvature
Plot fill between T3 and delayed T3 creates a gradient ribbon to show momentum expansion/contraction.
Directional shift markers (“🞛”) are plotted when T3 crosses its own delayed value — helping traders spot trend flips or pullback entries.
⯁ Adaptive Volatility Bands
Optional upper/lower bands are plotted around the T3 line using a user-defined volatility window (default: 100).
Bands widen when volatility rises, and contract during compression — similar to Bollinger logic but centered on the adaptive T3.
Shaded band zones help frame breakout setups or mean-reversion zones.
⯁ Dynamic Info Table
A live stats panel shows:
Current adaptive length
Maximum smoothing (▲ MaxLen)
Minimum smoothing (▼ MinLen)
All values update in real time and are color-coded to match trend direction.
HOW TO USE
Use T3 crossovers to detect trend transitions, especially during periods of volatility compression.
Watch for volatility contraction in the bands — breakouts from narrow band periods often precede trend bursts.
The adaptive smoothing length can also be used to assess current market tempo — tighter = faster; wider = slower.
CONCLUSION
RSI-Adaptive T3 modernizes one of the most elegant smoothing algorithms in technical analysis with intelligent RSI responsiveness and built-in volatility bands. It gives traders a cleaner read on trend health, directional shifts, and expansion dynamics — all in a visually efficient package. Perfect for scalpers, swing traders, and algorithmic modelers alike, it delivers advanced logic in a plug-and-play format.
Trend Signals StrategyThis strategy is designed to follow the dominant market trend and only take trades in the direction of that trend. It uses two moving averages for trend detection and candlestick confirmation for entries. The strategy can be used on any timeframe but works best on 15m to 1H for intraday trading.
Wave Trend With SignalsBased on Wave Trend With Signals ...thx bro. Added RSI and a little of fine tuning.
Enjoy!
Nick's 1m MACD Scalp StrategyI created a script for a successful scalping strategy I found on Reddit.
All credits go to u/United_Occasion_439 and the strategy can be found here:
www.reddit.com
This indicator does allow you to switch SL type between ATR/ Swing Low/ Fixed.
CHN BUY SELL with EMA 200Overview
This indicator combines RSI 7 momentum signals with EMA 200 trend filtering to generate high-probability BUY and SELL entry points. It uses colored candles to highlight key market conditions and displays clear trading signals with built-in cooldown periods to prevent signal spam.
Key Features
Colored Candles: Visual momentum indicators based on RSI 7 levels
Trend Filtering: EMA 200 confirms overall market direction
Signal Cooldown: Prevents over-trading with adjustable waiting periods
Clean Interface: Simple BUY/SELL labels without clutter
How It Works
Candle Coloring System
Yellow Candles: Appear when RSI 7 ≥ 70 (overbought momentum)
Purple Candles: Appear when RSI 7 ≤ 30 (oversold momentum)
Normal Candles: All other market conditions
Trading Signals
BUY Signal: Triggered when closing price > EMA 200 AND yellow candle appears
SELL Signal: Triggered when closing price < EMA 200 AND purple candle appears
Signal Cooldown
After a BUY or SELL signal appears, the same signal type is suppressed for a specified number of candles (default: 5) to prevent excessive signals in ranging markets.
Settings
RSI 7 Length: Period for RSI calculation (default: 7)
RSI 7 Overbought: Threshold for yellow candles (default: 70)
RSI 7 Oversold: Threshold for purple candles (default: 30)
EMA Length: Period for trend filter (default: 200)
Signal Cooldown: Candles to wait between same signal type (default: 5)
How to Use
Apply the indicator to your chart
Look for yellow or purple colored candles
For LONG entries: Wait for yellow candle above EMA 200, then enter BUY when signal appears
For SHORT entries: Wait for purple candle below EMA 200, then enter SELL when signal appears
Use appropriate risk management and position sizing
Best Practices
Works best on timeframes M15 and higher
Suitable for Forex, Gold, Crypto, and Stock markets
Consider market volatility when setting stop-loss and take-profit levels
Use in conjunction with proper risk management strategies
Technical Details
Overlay: True (plots directly on price chart)
Calculation: Based on RSI momentum and EMA trend analysis
Signal Logic: Combines momentum exhaustion with trend direction
Visual Feedback: Colored candles provide immediate market condition awareness
Candle Count RSI📈 Candle Count RSI — A Dual-Perspective Momentum Engine
The Candle Count RSI is a custom-built momentum oscillator that expands on the classic Relative Strength Index (RSI) by introducing a directional-only variant that tracks the frequency of bullish or bearish closes, rather than price magnitude. It gives traders a second lens through which to evaluate momentum, trend conviction, and subtle divergences—often invisible to traditional price-based RSI.
💡 What Makes It Unique?
While the standard RSI is sensitive to the size of price changes, the Candle Count RSI is magnitude-blind. It counts candle closes above/below open over a lookback period, generating a purer signal of directional consistency. To enhance signal fidelity, it includes a streak amplifier, dynamically weighting extended runs of green or red candles to reflect intensity of market bias—without introducing artificial price sensitivity.
This dual-RSI approach allows for:
- Divergence detection between directional bias and price magnitude.
- Smoother trend confirmation in choppy markets.
- Cleaner visual cues using dynamic glow and background logic.
📐 How Standard RSI Actually Works (Not What You Think)
RSI doesn’t just check if price went up or down over a span—it checks each individual candle and tracks whether it closed higher or lower than the one before. Here's how it works under the hood:
1.) For each bar, it calculates the change from the previous close.
2.) It separates those changes into gains (upward moves) and losses (downward moves).
3.) Then it computes a smoothed average of those gains and losses (usually using an RMA).
4.) It calculates the Relative Strength (RS) as:
RS = AvgGain / AvgLoss
5.) Finally, it plugs that into the RSI formula:
RSI = 100 - (100 / (1 + RS))
⚖️ What Does the 50 Line Mean?
- The RSI scale runs from 0 to 100, but 50 is the true neutral zone:
- RSI > 50 means average gains outweigh average losses over the period.
- RSI < 50 means losses dominate.
- RSI ≈ 50? The market is balanced—momentum is indecisive, no clear trend bias.
- This makes 50 a powerful midline for trend filters, directional bias tools, and divergence detection—especially when paired with alternative RSI logic like Candle Count RSI.
🔧 Inputs and Customization
- Everything is fully modular and customizable:
🧠 Core Settings
- RSI Length: Used for both the standard RSI and Candle Count RSI.
📉 Standard RSI
- Classic RSI calculation based on price changes.
- Optional WMA smoothing to reduce noise.
- Glow effect toggle with custom intensity.
🕯 Candle Count RSI
- Computes RSI using only the count of up/down candles.
- Optional smoothing for stability.
- Amplifies streaks (e.g., multiple consecutive bullish candles increase strength).
- Glow effect toggle with adjustable strength.
🎇 Glow Visuals
- Background glow (subpane and/or main chart).
- Fades based on RSI distance from the 50 midpoint.
- Independent color settings for bull and bear bias.
🧬 Divergence Zones
- Detects when Candle RSI and Standard RSI diverge.
- Highlights:
- Bullish Divergence: Candle RSI > 50, Standard RSI < threshold.
- Bearish Divergence: Candle RSI < 50, Standard RSI > threshold.
- Background fill optionally shown in subpane and/or main chart.
📊 Directional Histogram
- MACD-style histogram showing the difference between the two RSI lines.
- Color-coded based on directional agreement:
- Both rising → green.
- Both falling → red.
- Conflict → yellow.
🧠 Under the Hood — How It Works
🔹 Standard RSI
- Classic ta.rsi() applied to close prices, optionally WMA-smoothed.
🔹 Candle Count RSI (CCR)
- Counts how many candles closed up/down over the period.
- Computes a magnitude-free RSI from these counts.
- Applies a streak-based multiplier to exaggerate trend strength during consecutive green/red runs.
- Optionally smoothed with WMA to create a clean signal line.
- This makes CCR ideal for detecting true directional bias without being faked out by volatile price spikes.
🔹 Divergence Logic
- When Candle RSI and Standard RSI disagree strongly across defined thresholds, background fills highlight early signs of momentum decay or hidden accumulation/distribution.
🔹 Glow Logic
- Glow zones are controlled by a master toggle and drawn with dynamic transparency:
- Further from 50 = stronger conviction = darker glow.
- Shows up in subpane and/or main chart depending on user preference.
📷 Suggested Use Case / Visual Setup
- Use in conjunction with your primary price action system.
- Watch for divergences between the Candle Count RSI and Standard RSI for early trend reversals.
- Use glow bias zones on the main chart to get subconscious directional cues during fast scalping.
- Histogram helps you confirm when both RSI variants agree—useful during strong trending conditions.
🛠️ Tip for Traders
- This tool isn’t trying to “predict” price. It’s designed to visualize hidden market psychology—when buyers are showing up with consistent pressure, or when momentum has a disconnect between conviction and magnitude. Use this to filter entries, spot weak rallies, or sense when a trend is about to break down.
⚠️ WARNING
- Not for use with Heikin Ashi, Renko, etc.).
🧠 Summary
Candle Count RSI is not just another mashup—it's a precision-built, dual-perspective oscillator that captures directional conviction using real candle behavior. Whether you're scalping intraday or swing trading momentum, this script helps clarify trend integrity and exposes hidden weaknesses with elegance and clarity.
—
🛠️ Built by: Sherlock_MacGyver
Feel free to share feedback or reach out if you'd like to collaborate on custom features.
RSI Trend RiderRSI Trend Rider is a long only, momentum-based trend-following strategy designed for rules based trading. It combines a setup of EMAs (20, 50, 200), RSI(4), ADX filtering, and a daily 120 EMA to capture high-probability long trades in trending markets.
Works best on intraday timeframes (2h, 4h)
Key Features:
Multi-timeframe trend confirmation (EMA alignment + daily EMA)
RSI(4) pullback entries in strong trends
ADX filter to avoid low-momentum conditions
Configurable fixed and EMA-based stop loss/target options
Built-in performance dashboard with key metrics like PnL, drawdown, win rate, and buy & hold comparison (can be turned off on mobile or small screens).
Customizable backtest period and risk settings
Ideal for traders looking for a simple, data-driven system that rides trends and compounds small, consistent wins.
Stochastic RSI and BB - RKDual-Power Indicator: Stochastic RSI and On-Chart Bollinger Bands!
I'm excited to present my latest Pine Script indicator, "Stochastic RSI and BB - RK." I designed this script to bring two of the most popular and effective technical analysis tools together into a single, cohesive view. By combining the power of Stochastic RSI in a lower pane with directly plotted Bollinger Bands on your main chart, I believe this indicator offers a unique advantage for identifying momentum shifts, overbought/oversold conditions, and volatility trends.
What I've Built In
I've carefully crafted this indicator with distinct features for both components:
1. Stochastic RSI (Lower Pane)
I've included a fully customizable Stochastic RSI in a separate pane below your main chart. This momentum oscillator helps you gauge whether an asset is overbought or oversold, based on its RSI value.
Smooth K & D Lines: I've provided inputs to fine-tune the smoothing periods for both the %K and %D lines, allowing you to adjust sensitivity to market noise.
RSI and Stochastic Lengths: You have full control over the lookback periods for both the underlying RSI calculation and the Stochastic process itself.
Customizable Source: I've made the RSI source adjustable, defaulting to close, but allowing you to experiment with other price types.
Clear Overbought/Oversold Zones: I've plotted standard 80 and 20 levels, along with a middle 50 line, and filled the area between 80 and 20 to easily visualize overbought and oversold regions.
2. On-Chart Bollinger Bands (Main Chart Overlay)
I've integrated Bollinger Bands directly onto your main price chart. These dynamic bands are a powerful tool for measuring volatility and identifying potential price reversal points.
Adjustable Length & Standard Deviation: I've included inputs for you to set the period for the moving average and the standard deviation multiplier, giving you flexibility to adapt to different instruments and timeframes.
Multiple MA Types: I've ensured you have a choice of popular moving average types for the basis of the bands: SMA, EMA, SMMA (RMA), WMA, or VWMA.
Offset Option: I've added an offset input for those who prefer to shift the bands horizontally.
Visual Clarity: The area between the upper and lower bands is filled, which I find greatly enhances readability and helps in quickly identifying periods of expansion or contraction.
How I Envision You Using This
I believe this dual-purpose indicator can be incredibly beneficial for confirming trade signals. For example, you might look for:
Potential Reversals: When price touches the Bollinger Band extremes while the Stochastic RSI is in an overbought/oversold zone and showing signs of turning.
Breakouts: When the Bollinger Bands narrow (indicating low volatility), followed by a breakout of the bands, confirmed by strong momentum on the Stochastic RSI.
Trend Confirmation: Using the Bollinger Bands to identify the prevailing trend and the Stochastic RSI to pick optimal entry and exit points within that trend.
I've put a lot of effort into making this a valuable tool for your trading arsenal. I truly hope this combination provides you with the clarity and edge needed to make more informed decisions.
If you find this script useful, please consider boosting it to show your support and encourage me to create more tools like this. Your feedback is highly appreciated as I constantly strive to improve.
I wish you all the best on your trading journey!