Combined and Count of Bull Bear Alerts for OBV, TDI, CCI, MACDCombined and Count of Bull Bear Alerts for OBV, TDI, CCI, MACD
Description
This powerful indicator combines four popular technical analysis tools (On-Balance Volume, Traders Dynamic Index, Commodity Channel Index, and MACD) into a single comprehensive divergence detection system. It monitors all four indicators simultaneously and provides real-time alerts when bullish or bearish divergences occur across multiple indicators, helping traders identify high-probability reversal opportunities.
Key Features
Multi-Indicator Divergence Detection: Simultaneously tracks divergences in OBV, TDI, CCI, and MACD
Comprehensive Signal Counting: Displays real-time count of bullish (1-4) and bearish (1-4) divergences
Four Customizable Alert Conditions:
Alert 1: 1-4 indicators showing bullish divergence
Alert 2: 3-4 indicators showing strong bullish divergence
Alert 3: 1-2 indicators showing bearish divergence
Alert 4: 3-4 indicators showing strong bearish divergence
Visual Signal Display: Clear numerical indicators showing how many tools are signaling divergence
Customizable Parameters: Adjustable settings for each indicator's sensitivity and display preferences
Overlay Display: All signals shown directly on the price chart for easy analysis
How It Works
The indicator continuously monitors each technical tool for both regular and hidden divergences using pivot point analysis. When a divergence pattern is detected, it increments the appropriate counter (bullish or bearish). The system then displays the total count as colored numbers on the chart and can trigger alerts based on your preferred signal strength thresholds.
Trading Applications
Strong Reversal Signals: Look for 3-4 indicator confirmations for high-probability trades
Early Trend Detection: Use 1-2 indicator signals for early entry opportunities
Confirmation Tool: Validate your trading signals with multi-indicator divergence confirmation
Risk Management: Avoid trading against multiple indicator divergences
Customization Options
Adjustable lookback periods for each indicator
Toggle visibility of bullish/bearish counters
Customizable colors, positions, and display styles
Option to show individual indicator signals
Configurable divergence detection parameters
This indicator is particularly valuable for traders who want to combine multiple technical analysis approaches into a single, easy-to-monitor system that highlights confluence opportunities across different market perspectives (volume, momentum, cycle, and trend).
Centered Oscillators
Volatility Normalized Deviation OscillatorThis indicator is used for string traders. It shows what is the highest and lowest point of index less than 60% greater than 60% indicator.
FInal Signal
This indicator for 4H timeframe by default
RSI + Moving Average of RSI from the 1-hour chart
MACD from the 1-hour chart
21 EMA from the 4-hour chart
5 EMA from the Daily chart
This multi-timeframe fusion offers strength: confirming shorter-term momentum with higher-timeframe support.
✅ Buy Conditions:
RSI is above its moving average → signals bullish momentum
MACD line > MACD signal line → confirms trend shift
RSI has upward slope (compared to 2 candles ago)
❌ Sell Conditions:
RSI falls below its moving average
MACD turns bearish (signal line overtakes)
RSI slopes downward
Price trades below daily EMA → confirms weakening trend
🔊 Volume Spike Detection
I also added a volume condition that checks:
If current volume > 2x the moving average (length = 10)
Momentum Candle ProjectionThis indicator projects future price momentum by calculating a directional vector from recent price movements. It uses a custom implementation of the atan2 function to create a vector average of the last N candles and visualizes this projection as a synthetic future candle.
🔍 What It Does:
✅ Tracks recent momentum using geometric vectors from price change.
✅ Projects a synthetic "momentum candle" one bar ahead, showing anticipated direction and magnitude.
✅ Optionally plots a secondary "future candle" based on a smoothed estimate of projected price vs. real current close.
⚙️ Settings:
Vector Lookback (bars): Controls how many bars are used to calculate the momentum vector.
Projection Length Multiplier: Adjusts how far forward the vector is projected based on its strength.
🟢 How To Use:
Use the lime/red projection candle to anticipate short-term directional bias.
Use the orange/maroon future candle to compare projected continuation vs. current closing price.
Spot early reversals, continuation zones, and momentum decay in real-time.
Triple CCI Multi-TimeframeIts simple 3 cci with 3 periods and 3 time frames all original settings just for those people who love to work with cci
TrendShift [MOT]📈 TrendShift – Multi-Factor Momentum & Trend Signal Suite
TrendShift is a precision-built momentum and confluence tool designed to highlight directional shifts in price action. It combines EMA slope structure, oscillator confirmation, volume behavior, and dynamic SL/TP logic into one cohesive system. Whether you're trading with the trend or catching reversals, TrendShift provides data-backed clarity and visual confidence — and it’s available free to the public.
🔍 Core Signal Logic
Buy (🟢 Long) and Sell (🔴 Short) signals are triggered when multiple conditions align within a set bar window (default: 5 bars):
Stochastic RSI K/D cross
RSI crosses above 20 (long) or below 80 (short)
Stochastic RSI breaks 20 (long) or 80 (short)
Volume exceeds 20-bar average
🧭 Visual Trend Dashboard – Signal Table
A real-time on-chart dashboard displays:
EMA Trend: Bullish / Bearish / Mixed (based on 4 EMA slopes)
Stoch RSI: Oversold / Overbought / Neutral
RSI: Exact value with zone label
Volume: Above or Below average
Dashboard theme and position are fully customizable.
📐 Trend Structure with EMA Slope Logic
Plots four EMAs (21, 50, 100, 200) color-coded by slope:
Green = Rising
Red = Falling
These feed into the dashboard's EMA Trend display.
🎯 Optional Take Profit / Stop Loss Zones
When enabled, SL/TP lines plot automatically on valid signals:
Fixed-distance targets (e.g., 10pt TP, 5pt SL)
Auto-remove on TP or SL hit
Separate lines for long vs. short trades
Fully customizable styling
🔁 Trailing Stop Filter (Internal Logic)
A custom ATR-based trailing stop helps validate directional strength:
ATR period
HHV window
ATR multiplier
Used internally — not plotted — to confirm trend progression before entry.
⚙️ Customizable Parameters
Every core component is user-configurable:
EMA periods: 21 / 50 / 100 / 200
ATR trailing logic: period, HHV, multiplier
Oscillator settings: Stoch RSI & RSI
Volume length
SL/TP toggles and point values
Bar clustering window
Dashboard theme and location
🔔 Alerts Included
BUY Signal Triggered
SELL Signal Triggered
Compatible with webhook automation or mobile push notifications.
⚠️ Disclaimer
This tool is for educational purposes only and is not financial advice. Trading involves risk — always do your own research and consult a licensed professional before making trading decisions.
BB-Model Inspired Absolute Strength Index📊 BB-Model Inspired Absolute Strength Index (ASI)
Author: © GabrielAmadeusLau
Category: Momentum Oscillator / Adaptive Model / Divergence Tool
🔍 Overview
The BB-Model Inspired ASI is an advanced oscillator that combines a novel BB-model weighted moving average with percentile-based return normalization to quantify absolute market strength. This hybrid design allows the indicator to adapt dynamically to volume, volatility, and price structure, while detecting divergences and extremes with high sensitivity.
🧠 Key Concepts
🧩 1. BB-Model Weighting Engine
Each price in the lookback period is weighted by:
Fitness: Either Volume or ATR.
Decay: An exponential penalty applied to older data.
This results in a context-aware moving average that prioritizes impactful recent bars while ignoring stale noise.
📈 2. Absolute Strength Index Calculation
Computes returns from the BB-weighted price history.
Sorts returns and identifies thresholds for:
Top Percentile (Winners) – Strong upside moves.
Bottom Percentile (Losers) – Strong downside moves.
The current return is normalized within this dynamic range, scaled to , producing the ASI oscillator.
🧰 3. Signal Line & MA Smoothing
Select from SMA, EMA, WMA, RMA, or HMA to smooth the ASI signal.
Fully customizable length and styling.
🔄 4. Divergence Detection (Optional)
Detects bullish and bearish divergences between ASI and price using pivot highs/lows.
Highly customizable:
Adjustable lookback window.
Optional Heikin-Ashi integration.
Color-coded plots and labels.
Alerts for divergence events.
⚙️ Inputs Summary
Parameter Description
Fitness Source Volume or ATR
Decay Factor Penalty on older bars
Returns Lookback How many bars to calculate return distribution
Percentile Thresholds Set overbought and oversold bands dynamically
MA Type & Length Control signal smoothing
Divergence Settings Toggle divergence logic and sensitivity
📌 Use Cases
Detect when absolute directional strength is reaching exhaustion.
Spot early signs of bullish or bearish divergences between momentum and price.
Filter signals by volume or volatility importance using BB-model weighting.
Use in combination with trend filters for precision entries/exits.
RSI Shift Zone [ChartPrime]OVERVIEW
RSI Shift Zone is a sentiment-shift detection tool that bridges momentum and price action. It plots dynamic channel zones directly on the price chart whenever the RSI crosses above or below critical thresholds (default: 70 for overbought, 30 for oversold). These plotted zones reveal where market sentiment likely flipped, helping traders pinpoint powerful support/resistance clusters and breakout opportunities in real time.
⯁ HOW IT WORKS
When the RSI crosses either the upper or lower level:
A new Shift Zone channel is instantly formed.
The channel’s boundaries anchor to the high and low of the candle at the moment of crossing.
A mid-line (average of high and low) is plotted for easy visual reference.
The channel remains visible on the chart for at least a user-defined minimum number of bars (default: 15) to ensure only meaningful shifts are highlighted.
The channel is color-coded to reflect bullish or bearish sentiment, adapting dynamically based on whether the RSI breached the upper or lower level. Labels with actual RSI values can also be shown inside the zone for added context.
⯁ KEY TECHNICAL DETAILS
Uses a standard RSI calculation (default length: 14).
Detects crossovers above the upper level (trend strength) and crossunders below the lower level (oversold exhaustion).
Applies the channel visually on the main chart , rather than only in the indicator pane — giving traders a precise map of where sentiment shifts have historically triggered price reactions.
Auto-clears the zone when the minimum bar length is satisfied and a new shift is detected.
⯁ USAGE
Traders can use these RSI Shift Zones as powerful tactical levels:
Treat the channel’s high/low boundaries as dynamic breakout lines — watch for candles closing beyond them to confirm fresh trend continuation.
Use the midline as an equilibrium reference for pullbacks within the zone.
Visual RSI value labels offer quick checks on whether the zone formed due to extreme overbought or oversold conditions.
CONCLUSION
RSI Shift Zone transforms a simple RSI threshold crossing into a meaningful structural tool by projecting sentiment flips directly onto the price chart. This empowers traders to see where momentum-based turning points occur and leverage those levels for breakout plays, reversals, or high-confidence support/resistance zones — all in one glance.
Penguin Volatility State StrategyPenguin Volatility State Strategy
This document provides details on the "Penguin Volatility State" trading strategy for the TradingView platform. It is a strategy designed to identify different market conditions and execute trades based on momentum and volatility.
Overview
This strategy uses a combination of several popular indicators, including Bollinger Bands (BB), Keltner Channels (KC), Exponential Moving Averages (EMAs), and the Relative Strength Index (RSI), to classify the market into four main states, represented by different colors on the chart:
Green: Strong uptrend.
Red: Strong downtrend.
Yellow: A pullback or consolidation phase within an uptrend (potential reversal signal).
Blue: A pullback or consolidation phase within a downtrend (potential reversal signal).
The goal of the strategy is to enter trades in the direction of the strong trend (Green and Red states) and allow the user to filter out noise during sideways market conditions (Yellow and Blue states).
How the Indicators Work
Bollinger Bands & Keltner Channels: Used to measure market volatility. The difference between the width of the BB and KC (diff) is used to calculate an RSI to measure the "acceleration" of volatility.
EMAs (Fast & Slow): Used to determine the primary trend direction. If the fast EMA is above the slow EMA, it is considered an uptrend, and vice versa.
RSI of Diff: This is the core component for measuring the momentum of volatility. When this RSI value is above its own moving average, it signifies strong momentum, which is a key condition for entering a trade.
Filters and Strategy Logic
Users can customize the strategy's behavior through three main filters:
Filter Sideways Markets (RULE 1): If enabled, the strategy will only enter trades in the Green state (for Longs) and Red state (for Shorts), avoiding sideways conditions (Yellow and Blue).
Trade Only on Strong Momentum (RULE 2): If enabled, the strategy will only enter trades when there is strong momentum (when the RSI of Diff is above its moving average).
Enter/Exit on Exact Transition (RULE 3): If enabled, the strategy will enter and exit orders only at the exact crossover of the RSI of Diff and its moving average. This can lead to more precise entries/exits but may also cause some opportunities to be missed.
Inputs
BB/KC Length: The number of bars used to calculate Bollinger Bands and Keltner Channels.
BB Multiplier: The standard deviation multiplier for the Bollinger Bands.
KC Multiplier: The ATR multiplier for the Keltner Channels.
Fast EMA Length: The number of bars for the fast EMA.
Slow EMA Length: The number of bars for the slow EMA.
RSI of Diff Length: The number of bars for the RSI of diff.
SMA of RSI Length: The number of bars for the moving average of the RSI of Diff.
Trade Direction: Choose to trade Long Only, Short Only, or Both.
Filters (RULE 1, 2, 3): Enable/disable the filters as described above.
Pine Script Code
Here is the full code for the strategy. You can copy and paste it into the Pine Editor on TradingView.
//@version=5
strategy("Penguin Volatility State Strategy", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_value=0.075)
// ===================================================================
// INPUTS
// ===================================================================
// --- Indicator Settings ---
string group_indicators = "Indicator Settings"
bb_len = input.int(20, "BB/KC Length", group=group_indicators)
bb_mult = input.float(2.0, "BB Multiplier", group=group_indicators)
kc_mult = input.float(2.0, "KC Multiplier", group=group_indicators)
ema_fast_len = input.int(12, "Fast EMA Length", group=group_indicators)
ema_slow_len = input.int(26, "Slow EMA Length", group=group_indicators)
rsi_diff_len = input.int(14, "RSI of Diff Length", group=group_indicators)
rsi_avg_len = input.int(7, "SMA of RSI Length", group=group_indicators)
// --- Strategy Filter Settings ---
string group_filters = "Strategy Filters"
trade_direction = input.string("Both", "Trade Direction", options= , group=group_filters)
use_regime_filter = input.bool(true, "RULE 1: Filter Sideways Markets (Yellow & Blue)?", group=group_filters)
use_strength_filter = input.bool(true, "RULE 2: Trade Only on Strong Momentum (RSI Accel)?", group=group_filters)
use_timing_filter = input.bool(false, "RULE 3: Enter/Exit on Exact Transition?", group=group_filters)
// ===================================================================
// INDICATOR CALCULATIONS
// ===================================================================
// --- Bollinger Bands & Keltner Channel ---
basisBB = ta.sma(close, bb_len)
dev = bb_mult * ta.stdev(close, bb_len)
upperBB = basisBB + dev
lowerBB = basisBB - dev
atr = ta.atr(bb_len)
upperKC = basisBB + kc_mult * atr
lowerKC = basisBB - kc_mult * atr
// --- Diff & RSI of Diff Calculation ---
diff = (upperBB - upperKC) / upperKC * 100
diff_change = ta.change(diff)
up = ta.rma(math.max(diff_change, 0), rsi_diff_len)
down = ta.rma(-math.min(diff_change, 0), rsi_diff_len)
rsi_diff = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
rsi_diff2 = ta.sma(rsi_diff, rsi_avg_len)
// --- EMAs for Market State ---
fast_ma = ta.ema(close, ema_fast_len)
slow_ma = ta.ema(close, ema_slow_len)
apcdc = ta.ema(ohlc4, 2)
// ===================================================================
// STATE DEFINITIONS
// ===================================================================
isBullishTrend = fast_ma > slow_ma
isBearishTrend = fast_ma < slow_ma
isGreen = isBullishTrend and apcdc > fast_ma
isRed = isBearishTrend and apcdc < fast_ma
isYellow = isBullishTrend and apcdc < fast_ma
isBlue = isBearishTrend and apcdc > fast_ma
isRsiAccel = rsi_diff > rsi_diff2
// ===================================================================
// STRATEGY LOGIC
// ===================================================================
// --- Apply Filters to define tradable conditions ---
can_long_base = use_regime_filter ? isGreen : (isGreen or isYellow)
can_short_base = use_regime_filter ? isRed : (isRed or isBlue)
long_condition = use_strength_filter ? can_long_base and isRsiAccel : can_long_base
short_condition = use_strength_filter ? can_short_base and isRsiAccel : can_short_base
entry_long_timing = ta.crossunder(rsi_diff2, rsi_diff) and can_long_base
exit_long_timing = ta.crossunder(rsi_diff, rsi_diff2)
entry_short_timing = ta.crossunder(rsi_diff2, rsi_diff) and can_short_base
exit_short_timing = ta.crossunder(rsi_diff, rsi_diff2)
// --- Determine Final Entry/Exit Conditions ---
final_entry_long = use_timing_filter ? entry_long_timing : long_condition
final_exit_long = use_timing_filter ? exit_long_timing : not long_condition
final_entry_short = use_timing_filter ? entry_short_timing : short_condition
final_exit_short = use_timing_filter ? exit_short_timing : not short_condition
// --- Check Trade Direction permission ---
allow_long = trade_direction == "Both" or trade_direction == "Long Only"
allow_short = trade_direction == "Both" or trade_direction == "Short Only"
// --- Execute Trades ---
if (final_entry_long and allow_long)
strategy.entry("Long", strategy.long)
if (final_exit_long)
strategy.close("Long")
if (final_entry_short and allow_short)
strategy.entry("Short", strategy.short)
if (final_exit_short)
strategy.close("Short")
// ===================================================================
// VISUALIZATION
// ===================================================================
bgcolor(isGreen ? color.new(color.green, 85) : isRed ? color.new(color.red, 85) : isYellow ? color.new(color.yellow, 85) : isBlue ? color.new(color.blue, 85) : na)
Disclaimer
This strategy is provided for educational and informational purposes only and is not financial advice.
Past performance from backtesting does not guarantee future results.
Trading involves risk. Investors should conduct their own research and exercise due diligence before making any investment decisions and should manage their own risk.
Pivot Squeeze IndicatorThe Pivot Squeeze Indicator is an oscillator that identifies when markets are "squeezed" between recent pivot highs and lows, then signals when they're ready to make their next big move.
How it Works
The indicator calculates the percentage distance between the current price and the most recent pivot high vs. pivot low. When this distance gets compressed (small), the market is "squeezed" and building energy. When it expands rapidly, you get your breakout signal.
The indicator adapts to current market volatility using four different modes:
- ATR-Based
- Bollinger Bands
- Keltner Channels
- Fixed %
What to Look For
🟠 Orange Background = Squeeze Zone
Market is compressed between recent pivots
Low volatility, building pressure
🟢 Green Breakout = Bullish Signal
Price breaking out above recent highs
Momentum shifting upward
Time to look for long opportunities
🔴 Red Breakout = Bearish Signal
Price breaking down below recent lows
Momentum shifting downward
Time to look for short opportunities
Using Histogram Colors:
Green bars = Bullish territory (closer to recent highs)
Red bars = Bearish territory (closer to recent lows)
Orange bars = Squeeze conditions (compressed between pivots)
Using MA Line:
When Histogram bars cross below or above MA Line in opposite direction, it might be good time to exit.
Default Settings: ATR-based thresholds with 14-period lookback - works great out of the box, but feel free to experiment with the different threshold modes to find what works best for your trading style! Recommended to use with other indicators to confirm signals
[Top] Unified Divergence DetectorThe Unified Divergence Detector (UDD) is a powerful tool designed to identify both regular and hidden divergences across multiple oscillators—RSI, CCI, and Stochastic—in a single unified indicator.
Unlike other divergence tools that focus on one source at a time, this script cross-checks multiple indicators simultaneously and consolidates the results into a single signal. Labels appear only when at least one divergence is detected, with optional color-coding to distinguish the number and type of divergences:
🐂 Bullish Divergence: Signals a potential reversal or continuation to the upside.
🐻 Bearish Divergence: Signals a potential reversal or continuation to the downside.
The script lets users configure:
Whether to detect regular, hidden, or both types of divergence.
Pivot lookback parameters and divergence detection range.
Separate label colors for 1, 2, or 3+ confirmations from different indicators.
Tooltips are dynamically generated and offer guidance on interpreting each signal based on the oscillator sources involved and the divergence type. Labels are intelligently placed to avoid clutter and display only the strongest, most relevant signals.
⸻
Potential Uses
Trend Reversals: Spot early signs of exhaustion and prepare for a trend change.
Trend Continuations: Confirm existing trends via hidden divergence signals.
Multi-Timeframe Confirmation: Combine this indicator with higher timeframe trend tools to validate entries or exits.
Custom Strategy Building: Integrate into more complex strategies involving price action or volume filters.
⸻
This indicator is ideal for traders who value confirmation from multiple sources and prefer clear, high-confidence signals over constant alerts. It works well across all timeframes and asset classes.
MACD Liquidity Tracker Strategy [Quant Trading]MACD Liquidity Tracker Strategy
Overview
The MACD Liquidity Tracker Strategy is an enhanced trading system that transforms the traditional MACD indicator into a comprehensive momentum-based strategy with advanced visual signals and risk management. This strategy builds upon the original MACD Liquidity Tracker System indicator by TheNeWSystemLqtyTrckr , converting it into a fully automated trading strategy with improved parameters and additional features.
What Makes This Strategy Original
This strategy significantly enhances the basic MACD approach by introducing:
Four distinct system types for different market conditions and trading styles
Advanced color-coded histogram visualization with four dynamic colors showing momentum strength and direction
Integrated trend filtering using 9 different moving average types
Comprehensive risk management with customizable stop-loss and take-profit levels
Multiple alert systems for entry signals, exits, and trend conditions
Flexible signal display options with customizable entry markers
How It Works
Core MACD Calculation
The strategy uses a fully customizable MACD configuration with traditional default parameters:
Fast MA : 12 periods (customizable, minimum 1, no maximum limit)
Slow MA : 26 periods (customizable, minimum 1, no maximum limit)
Signal Line : 9 periods (customizable, now properly implemented and used)
Cryptocurrency Optimization : The strategy's flexible parameter system allows for significant optimization across different crypto assets. Traditional MACD settings (12/26/9) often generate excessive noise and false signals in volatile crypto markets. By using slower, more smoothed parameters, traders can capture meaningful momentum shifts while filtering out market noise.
Example - DOGE Optimization (45/80/290 settings) :
• Performance : Optimized parameters yielding exceptional backtesting results with 29,800% PnL
• Why it works : DOGE's high volatility and social sentiment-driven price action benefits from heavily smoothed indicators
• Timeframes : Particularly effective on 30-minute and 4-hour charts for swing trading
• Logic : The very slow parameters filter out noise and capture only the most significant trend changes
Other Optimizable Cryptocurrencies : This parameter flexibility makes the strategy highly effective for major altcoins including SUI, SEI, LINK, Solana (SOL) , and many others. Each crypto asset can benefit from custom parameter tuning based on its unique volatility profile and trading characteristics.
Four Trading System Types
1. Normal System (Default)
Long signals : When MACD line is above the signal line
Short signals : When MACD line is below the signal line
Best for : Swing trading and capturing longer-term trends in stable markets
Logic : Traditional MACD crossover approach using the signal line
2. Fast System
Long signals : Bright Blue OR Dark Magenta (transparent) histogram colors
Short signals : Dark Blue (transparent) OR Bright Magenta histogram colors
Best for : Scalping and high-volatility markets (crypto, forex)
Logic : Leverages early momentum shifts based on histogram color changes
3. Safe System
Long signals : Only Bright Blue histogram color (strongest bullish momentum)
Short signals : All other colors (Dark Blue, Bright Magenta, Dark Magenta)
Best for : Risk-averse traders and choppy markets
Logic : Prioritizes only the strongest bullish signals while treating everything else as bearish
4. Crossover System
Long signals : MACD line crosses above signal line
Short signals : MACD line crosses below signal line
Best for : Precise timing entries with traditional MACD methodology
Logic : Pure crossover signals for more precise entry timing
Color-Coded Histogram Logic
The strategy uses four distinct colors to visualize momentum:
🔹 Bright Blue : MACD > 0 and rising (strong bullish momentum)
🔹 Dark Blue (Transparent) : MACD > 0 but falling (weakening bullish momentum)
🔹 Bright Magenta : MACD < 0 and falling (strong bearish momentum)
🔹 Dark Magenta (Transparent) : MACD < 0 but rising (weakening bearish momentum)
Trend Filter Integration
The strategy includes an advanced trend filter using 9 different moving average types:
SMA (Simple Moving Average)
EMA (Exponential Moving Average) - Default
WMA (Weighted Moving Average)
HMA (Hull Moving Average)
RMA (Running Moving Average)
LSMA (Least Squares Moving Average)
DEMA (Double Exponential Moving Average)
TEMA (Triple Exponential Moving Average)
VIDYA (Variable Index Dynamic Average)
Default Settings : 50-period EMA for trend identification
Visual Signal System
Entry Markers : Blue triangles (▲) below candles for long entries, Magenta triangles (▼) above candles for short entries
Candle Coloring : Price candles change color based on active signals (Blue = Long, Magenta = Short)
Signal Text : Optional "Long" or "Short" text inside entry triangles (toggleable)
Trend MA : Gray line plotted on main chart for trend reference
Parameter Optimization Examples
DOGE Trading Success (Optimized Parameters) :
Using 45/80/290 MACD settings with 50-period EMA trend filter has shown exceptional results on DOGE:
Performance : Backtesting results showing 29,800% PnL demonstrate the power of proper parameter optimization
Reasoning : DOGE's meme-driven volatility and social sentiment spikes create significant noise with traditional MACD settings
Solution : Very slow parameters (45/80/290) filter out social media-driven price spikes while capturing only major momentum shifts
Optimal Timeframes : 30-minute and 4-hour charts for swing trading opportunities
Result : Exceptionally clean signals with minimal false entries during DOGE's characteristic pump-and-dump cycles
Multi-Crypto Adaptability :
The same optimization principles apply to other major cryptocurrencies:
SUI : Benefits from smoothed parameters due to newer coin volatility patterns
SEI : Requires adjustment for its unique DeFi-related price movements
LINK : Oracle news events create price spikes that benefit from noise filtering
Solana (SOL) : Network congestion events and ecosystem developments need smoothed detection
General Rule : Higher volatility coins typically benefit from very slow MACD parameters (40-50 / 70-90 / 250-300 ranges)
Key Input Parameters
System Type : Choose between Fast, Normal, Safe, or Crossover (Default: Normal)
MACD Fast MA : 12 periods default (no maximum limit, consider 40-50 for crypto optimization)
MACD Slow MA : 26 periods default (no maximum limit, consider 70-90 for crypto optimization)
MACD Signal MA : 9 periods default (now properly utilized, consider 250-300 for crypto optimization)
Trend MA Type : EMA default (9 options available)
Trend MA Length : 50 periods default (no maximum limit)
Signal Display : Both, Long Only, Short Only, or None
Show Signal Text : True/False toggle for entry marker text
Trading Applications
Recommended Use Cases
Momentum Trading : Capitalize on strong directional moves using the color-coded system
Trend Following : Combine MACD signals with trend MA filter for higher probability trades
Scalping : Use "Fast" system type for quick entries in volatile markets
Swing Trading : Use "Normal" or "Safe" system types for longer-term positions
Cryptocurrency Trading : Optimize parameters for individual crypto assets (e.g., 45/80/290 for DOGE, custom settings for SUI, SEI, LINK, SOL)
Market Suitability
Volatile Markets : Forex, crypto, indices (recommend "Fast" system or smoothed parameters)
Stable Markets : Stocks, ETFs (recommend "Normal" or "Safe" system)
All Timeframes : Effective from 1-minute charts to daily charts
Crypto Optimization : Each major cryptocurrency (DOGE, SUI, SEI, LINK, SOL, etc.) can benefit from custom parameter tuning. Consider slower MACD parameters for noise reduction in volatile crypto markets
Alert System
The strategy provides comprehensive alerts for:
Entry Signals : Long and short entry triangle appearances
Exit Signals : Position exit notifications
Color Changes : Individual histogram color alerts
Trend Conditions : Price above/below trend MA alerts
Strategy Parameters
Default Settings
Initial Capital : $1,000
Position Size : 100% of equity
Commission : 0.1%
Slippage : 3 points
Date Range : January 1, 2018 to December 31, 2069
Risk Management (Optional)
Stop Loss : Disabled by default (customizable percentage-based)
Take Profit : Disabled by default (customizable percentage-based)
Short Trades : Disabled by default (can be enabled)
Important Notes and Limitations
Backtesting Considerations
Uses realistic commission (0.1%) and slippage (3 points)
Default position sizing uses 100% equity - adjust based on risk tolerance
Stop-loss and take-profit are disabled by default to show raw strategy performance
Strategy does not use lookahead bias or future data
Risk Warnings
Past performance does not guarantee future results
MACD-based strategies may produce false signals in ranging markets
Consider combining with additional confluences like support/resistance levels
Test thoroughly on demo accounts before live trading
Adjust position sizing based on your risk management requirements
Technical Limitations
Strategy does not work on non-standard chart types (Heikin Ashi, Renko, etc.)
Signals are based on close prices and may not reflect intraday price action
Multiple rapid signals in volatile conditions may result in overtrading
Credits and Attribution
This strategy is based on the original "MACD Liquidity Tracker System" indicator created by TheNeWSystemLqtyTrckr . This strategy version includes significant enhancements:
Complete strategy implementation with entry/exit logic
Addition of the "Crossover" system type
Proper implementation and utilization of the MACD signal line
Enhanced risk management features
Improved parameter flexibility with no artificial maximum limits
Additional alert systems for comprehensive trade management
The original indicator's core color logic and visual system have been preserved while expanding functionality for automated trading applications.
Momentum-Reversal System Signals Pro
Momentum-Reversal System Signals Pro
Overview
A sophisticated signaling system designed to identify high-probability trend-following entries after a price pullback. This indicator is optimized for index futures like the S&P 500 (ES/SPX) on a 5-minute timeframe .
It performs best during periods of established trends and lower volatility. To aid in this, the indicator includes a customizable "No-Trade Zone" highlighter, which is pre-set to the often volatile 8:30 AM - 11:30 AM EST market open. While the default settings are robust and effective in most conditions, the indicator is fully customizable to suit your specific trading style.
How It Works
The core logic is based on a three-step process to filter for high-quality setups:
Trend Confirmation: The script first establishes the overall market direction using an EMA on a higher timeframe (15-minute by default). This ensures you are only looking for trades that align with the dominant trend.
Pullback Detection: Once the trend is confirmed, the script waits for the price to pull back to a dynamic area of value on the main chart (5-minute by default). This "pullback zone" is defined by the 5m EMA and an ATR-based channel around it, which adapts to current market volatility.
Momentum Entry: After a valid pullback occurs, the script waits for a clear sign that momentum is returning in the direction of the primary trend. This is confirmed by a combination of a MACD crossover and a strong RSI reading, signaling that the pullback has likely ended and the trend is ready to resume.
Advanced Quality Filters
What makes this indicator powerful is its multi-layered filtering system designed to weed out low-probability signals and avoid choppy market conditions.
Trend Strength: It doesn't just check the trend direction; it measures the slope of the 15m EMA to ensure the trend has sufficient strength. This is a key filter for avoiding flat, sideways markets.
Momentum Confirmation: An RSI "Dead Zone" around the 50-level ensures that the RSI shows decisive momentum before a signal is generated.
Signal Cooldown: A built-in timer ( Min Bars Between Signals ) prevents the same signal from firing repeatedly in a short period, reducing noise and over-trading.
RSI Volatility: The script checks that the RSI itself is not flat, which is often a sign of market indecision and a precursor to chop.
Pullback Quality: An optional filter ensures that by the time the signal fires, the price has already moved back to the "correct" side of the 5m EMA, confirming the reversal's strength.
Volatility Filter: A crucial risk management filter that blocks signals on abnormally large, high-risk "gasoline" bars that could lead to immediate stops.
How To Use
For Long Signals (Green 'Long' Tag):
Look for the 15m EMA to be green and trending upwards.
Wait for price to pull back towards the orange 5m EMA.
A "Long" signal appears when momentum indicators confirm a reversal back in the direction of the trend.
For Short Signals (Red 'Short' Tag):
Look for the 15m EMA to be red and trending downwards.
Wait for price to pull back towards the orange 5m EMA.
A "Short" signal appears when momentum indicators confirm a reversal back in the direction of the trend.
This tool provides high-probability signals, not guarantees. It is designed to be a core component of a complete trading plan. Always use proper risk management and confluence from your own analysis.
Fine-Tuning & Customization
All settings are fully adjustable in the script's "Inputs" tab to match your risk tolerance and market conditions.
Timeframe & EMA Settings: Adjust the core moving averages that define the trend and pullback zones.
Pullback Settings: Define what constitutes a valid pullback by adjusting the lookback period and the size of the ATR-based "near" zone.
Quality Filters: This is the most important section for tailoring the script's strictness. Increase the EMA Slope, RSI Dead Zone, or Signal Cooldown to receive fewer but potentially higher-quality signals.
Advanced Filters: Enable or disable the Pullback Quality and Volatility filters for an extra layer of confirmation or risk management.
No-Trade Zone Highlighter: Adjust the session and timezone to highlight periods you wish to avoid, such as news events or low-liquidity hours.
Happy trading, and please use this tool responsibly.
Strategy with DI+/DI-, ADX, RSI, MACD, EMA + Time Stop [EXP. 1]Strategy Overview
This is an experimental trend-following strategy combining directional movement indicators, momentum filters, and time-based exits. Built for low timeframes like BTCUSDT 5m, it aims to detect clean directional setups while managing risk tightly.
Indicator Components
• DI+/DI- + ADX – Confirms trend direction and strength
• RSI (14) – Momentum filter (entries only if RSI > 55 or < 45)
• MACD Histogram – Confirms momentum shift in signal direction
• Candle Body % Filter – Screens for strong price commitment bars
• EMA 600 & EMA 2400 – Defines long-term trend alignment
• Time-Based Stop – Closes trade if it doesn’t move 0.75% in 85 bars
• Reward:Risk – 1% stop-loss, 7.5:1 reward-to-risk
• One Trade per EMA Cross – Only trades first valid signal per trend shift
Entry Logic
Long Entry:
• DI+ crosses above DI−
• RSI > 55
• MACD histogram > 0
• Strong bullish candle
• EMA600 > EMA2400
• Occurs within 25 bars of an EMA crossover
Short Entry:
• DI+ crosses below DI−
• RSI < 45
• MACD histogram < 0
• Strong bearish candle
• EMA2400 > EMA600
• Occurs within 25 bars of an EMA crossover
Exit Logic
• Stop-loss: 1% from entry
• Take-profit: 7.5x risk
• Time-stop: Trade closed if price doesn’t move 0.75% in 85 bars
Testing Parameters
• Initial Capital: $10,000
• Commission: 0.04% per trade
• Timeframe: 5-minute
• Tested on: BTCUSDT
• ⚠️ Early-stage strategy — trade count may be low depending on market context. This is shared for educational use and community feedback.
Notes
• This script is experimental and educational
• Please forward-test in a demo environment before using it live
• Open-source for learning and improvement — contributions welcome!
Intraday Spark Chart [AstrideUnicorn]The Intraday Spark Chart (ISC) is a minimalist yet powerful tool designed to track an asset’s performance relative to its daily opening price. Inspired by Nasdaq’s real-time analytics analog dashboards. It visualizes intraday percentage changes as a color-coded sparkline, helping traders quickly gauge momentum and session bias.
Ideal for: Day traders, scalpers, and multi-asset monitors.
Best paired with: 1m to 4H timeframes (auto-warns on higher TFs).
Key metrics:
Real-time % change from daily open.
Final daily % change (updated at session close).
Daily open price labels for orientation.
HOW TO USE
Visual Guide
Sparkline Plot:
A green area/line indicates price is above the daily open (bullish).
A red area/line signals price is below the daily open (bearish).
The baseline (0%) represents the daily open price.
Session Markers:
The dotted vertical lines separate trading days.
Gray labels near the baseline show the exact daily open price at the start of each session.
Dynamic Labels:
The labels in the upper left corner of each session range display the current (or final) daily % change. Color matches the trend (green/red) for instant readability.
Practical Use Cases
Opening Range Breakouts: Spot early momentum by observing how price reacts to the daily open.
Multi-Asset Screening: Compare intraday strength across symbols by applying the indicator to multiple charts.
Session Close Prep: Anticipate daily settlement by tracking the final % change (useful for futures/swing traders).
SETTINGS
Asset (Input Symbol): Defaults to the current chart symbol. Switch to monitor other assets.
TRIX Strong Hand - DidiTrix (or TRIX) is a technical analysis oscillator developed in the 1980s by Jack Hutson, editor of Technical Analysis of Stocks and Commodities magazine. It shows the slope (i.e., the derivative) of a triple-smoothed exponential moving average. The name Trix comes from "triple exponential."
The TRIX is a triple-smoothed exponential moving average used in technical analysis to track trends.
This is a customized version for use in conjunction with other indicators in the Didi Aguiar's CST Method. It has a standard setting of 9 periods and a 4-period average to signal crossovers. It is used as one of the indicators to detect trade exits, nicknamed "Strong Hand" and described as having "three coconuts between the legs" due to its strong confidence that the trade can continue in the trend.
RSI with 2-Pole FilterA momentum indicator that tells you if a stock is overbought or oversold.
RSI goes between 0 and 100.
70 = overbought (might fall)
<30 = oversold (might rise)
It often looks jagged or choppy on volatile days.
Think of this filter like a momentum smoother:
It still follows RSI closely,
But it doesn’t react to every little jiggle in price,
Which helps avoid false signals.
it keeps track of:
The current RSI,
The last 2 RSI values (inputs), and
The last 2 outputs (filtered RSIs).
It uses feedback to shape the output based on previous values, making it smoother than a simple moving average.
MACD + RSI + SMA Strategy with TP/SLThis strategy combines three technical indicators: MACD, RSI, and Simple Moving Average (SMA) to identify high-probability entry points. It enters trades in the direction of the trend (filtered by SMA), confirms momentum shifts (via MACD crossover), and validates signals with RSI to avoid overbought/oversold conditions.
Key Features:
Directional filter using SMA to align trades with the broader trend.
Momentum validation with MACD crossovers.
Risk control through RSI thresholds and fixed percentage-based Take Profit and Stop Loss levels.
Works for both long and short positions.
Disclaimer: This is a sample strategy for educational purposes only.
Trading involves risk. Use at your own discretion.
You bear full responsibility for any profit or loss.
Spread AnalysisSpread Analysis - Futures vs Spot Price Analysis
Advanced spread analysis tool that compares futures/perp prices with spot prices across multiple exchanges, providing insights into market sentiment and potential trading opportunities.
Multi-Asset Support: Automatically detects and analyzes crypto perpetual vs spot spreads, index futures vs cash indices (ES/SPX, NQ/NDX, YM/DJI), and commodity futures vs spot prices (GC/GOLD, CL/USOIL)
Multi-Exchange Aggregation: For crypto, aggregates prices from Binance, BitMEX, Kraken, Bybit, OKX, and Coinbase to calculate mean perp and spot prices
Z-Score Based Alerts: Uses statistical Z-score analysis to identify extreme spread conditions that may signal potential reversals or continuation patterns
Visual Histogram Display: Shows spread differences as colored columns - green for futures premium, red for futures discount
Flexible Calculation Methods: Supports absolute price differences, percentage spreads, or basis point calculations
Trading Applications: Identify market sentiment divergence, spot potential reversal opportunities, and confirm trend strength
Risk Management: Use extreme Z-scores to identify overvalued conditions and potential mean reversion setups
Market Analysis: Understand the relationship between futures and spot markets across different asset classes
Timing Tool: Spread momentum often precedes price moves, providing early signals for entry/exit decisions
Perfect for traders who want to understand the relationship between futures and spot markets, identify divergences, and spot potential reversal opportunities across crypto, indices, and commodities.
Key Features:
• Automatic asset detection and appropriate spread calculation
• Configurable Z-score alerts for extreme conditions
• Comprehensive tooltips and information guide
• Multiple calculation methods (absolute, percentage, basis points)
• Clean, customizable visual display
Use Cases:
• Crypto traders analyzing perp vs spot relationships
• Futures traders monitoring basis relationships
• Mean reversion strategies using extreme spreads
• Trend confirmation using spread momentum
• Market sentiment analysis across asset classes
RSI Mansfield +RSI Mansfield+ – Adaptive Relative Strength Indicator with Divergences
Overview
RSI Mansfield+ is an advanced relative strength indicator that compares your instrument’s performance against a configurable benchmark index or asset (e.g., Bitcoin Dominance, S&P 500). It combines Mansfield normalization, adaptive smoothing techniques, and automatic detection of bullish and bearish divergences (regular and hidden), delivering a comprehensive tool for assessing relative strength across any market and timeframe.
Originality and Motivation
Unlike traditional relative strength scripts, this indicator introduces several distinctive improvements:
Mansfield Normalization: Scales the ratio between the asset and the benchmark relative to its moving average, transforming it into a normalized oscillator that fluctuates around zero, making it easier to spot outperformance or underperformance.
Adaptive Smoothing: Automatically selects whether to use EMA or SMA based on the market type (crypto or stocks) and timeframe (intraday, daily, weekly, monthly), avoiding manual configuration and providing more robust results under varying volatility conditions.
Divergence Detection: Identifies four types of divergences in the Mansfield oscillator to help anticipate potential reversal points or trend confirmations.
Multi-Market Support: Offers benchmark selection among major crypto and global stock indices from a single input.
These enhancements make RSI Mansfield+ more practical and powerful than conventional relative strength scripts with static benchmarks or without divergence capabilities.
Core Concepts
Relative Strength (RS): Compares price evolution between your asset and the selected benchmark.
Mansfield Normalization: Measures how much the RS deviates from its historical moving average, expressed as a scaled oscillator.
Divergences: Detects regular and hidden bullish or bearish divergences within the Mansfield oscillator.
Timeframe Adaptation: Dynamically adjusts moving average lengths based on timeframe and market type.
How It Works
Benchmark Selection
Choose among over 10 indices or market domains (BTC Dominance, ETH Dominance, S&P 500, European indices, etc.).
Ratio Calculation
Computes the price-to-benchmark ratio and smooths it with the adaptive moving average.
Normalization and Scaling
Transforms deviations into a Mansfield oscillator centered around zero.
Dynamic Coloring
Green indicates relative outperformance, red signals underperformance.
Divergence Detection
Automatically identifies bullish and bearish (regular and hidden) divergences by comparing oscillator pivots against price pivots.
Baseline Reference
A clear zero line helps interpret relative strength trends.
Usage Guidelines
Benchmark Comparison
Ideal for traders analyzing whether an asset is outperforming or lagging its sector or market.
Divergence Analysis
Helps detect potential reversal or continuation signals in relative strength.
Multi-Timeframe Compatibility
Can be applied to intraday, daily, weekly, or monthly charts.
Interpretation
Oscillator >0 and green: outperforming the benchmark.
Oscillator <0 and red: underperforming.
Bullish divergences: potential relative strength reversal to the upside.
Bearish divergences: possible loss of momentum or reversal to the downside.
Credits
The concept of Mansfield Relative Strength is based on Stan Weinstein’s original work on relative performance analysis. This script was built entirely from scratch in TradingView Pine Script v6, incorporating original logic for adaptive smoothing, normalized scaling, and divergence detection, without reusing any external open-source code.
Adaptive Squeeze Momentum +Adaptive Squeeze Momentum+ (Auto-Timeframe Version)
Overview
Adaptive Squeeze Momentum+ is an enhanced volatility and momentum indicator designed to identify compression and expansion phases in price action. It is inspired by the classic Squeeze Momentum Indicator by LazyBear but introduces automatic parameter adaptation to any timeframe, making it simpler to use across different markets without manual configuration.
Concepts and Methodology
The script combines Bollinger Bands (BB) and Keltner Channels (KC) to detect periods when volatility contracts (squeeze) or expands (release).
A squeeze occurs when BB are inside KC, suggesting low volatility and potential breakout scenarios.
A squeeze release is detected when BB expand outside KC.
Momentum is derived using a linear regression applied to the difference between price and a midrange reference level.
Original Improvements
Compared to the original Squeeze Momentum Indicator, this version offers several enhancements:
Automatic Adaptation: BB and KC lengths and multipliers are dynamically adjusted based on the chart’s timeframe (from 1 minute up to 1 month), removing the need for manual tuning.
Simplified Visualization: A clean, minimalist histogram and clear squeeze state cross markers allow for faster interpretation.
Flexible Application: Designed to work consistently on intraday, daily, and higher timeframes across crypto, forex, stocks, and indices.
Features
Dynamic Squeeze Detection:
Gray Cross: Neutral (no squeeze detected)
Blue Cross: Active squeeze
Yellow Cross: Squeeze released
Momentum Histogram:
Positive/negative momentum shown with slope-based coloring.
Timeframe-Aware Parameters:
Automatically sets optimal BB/KC configurations.
Usage
Watch for blue crosses indicating an active squeeze phase that may precede a directional move.
Use the histogram color and slope to gauge momentum strength and direction.
Combine squeeze release signals with momentum confirmation for potential entries or exits.
Credits and Licensing
This script was inspired by LazyBear’s OLD “Squeeze Momentum Indicator” (). The implementation here significantly expands upon the original by introducing auto-adaptive parameters, restructured logic, and a new visualization approach. Published under the Mozilla Public License 2.0.
Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Use at your own risk.
WaveTrend w/ Crosses & MTFWaveTrend Oscillator from LazeBear, modified to plot crosses and amplified delta.
Fisher Transform w/ Cross in MTFFisher Transform from Tradingview Technical indicators, modified to hard code settings for various time frames and to plot crosses.
CACo Oscillators// Description: An all-in-one momentum indicator designed to complement the main
// "Charles Ayede Convergence" script. It combines the Awesome
// Oscillator (AO) and the OsMA (MACD) into a single pane with a
// display toggle, visual signals, and custom alerts.