21-Day Trend Direction📈 21-Day Trend Direction Indicator
📊 How It Works:
🎯 Trend Detection Logic:
Analyzes last 21 daily candles
Calculates total price change from start to end
Compares against sideways threshold (default 2%)
Counts bullish vs bearish days
Tracks higher highs and lower lows
📈 Trend Classifications:
• 📈 UPTREND: Price change > +2% over 21 days
• 📉 DOWNTREND: Price change < -2% over 21 days
• ➡️ SIDEWAYS: Price change between -2% and +2%
💪 Trend Strength Levels:
• 🔥 Very Strong: >5% price change
• 💪 Strong: 3-5% price change
• 📊 Moderate: 1.5-3% price change
• 📉 Weak: <1.5% price change
🎨 Visual Features:
📋 Information Table Shows:
• Trend Direction with color coding
• Price Change % over 21 days
• Trend Strength classification
• Bull/Bear Days count
• Higher Highs/Lower Lows count
• Analysis Period (customizable)
📊 Chart Indicators:
• Trend Line (21-day moving average)
• Background Color for quick trend identification
• Trend Arrows (▲ ▼ ➡) on chart
• Customizable display options
⚙️ Customizable Settings:
🎯 Analysis Settings:
• Lookback Days: 5-50 days (default: 14)
• Sideways Threshold: 0.5-10% (default: 2%)
• Trend Strength: Low/Medium/High sensitivity
🎨 Display Options:
• Table Position: 9 different positions
• Table Size: Tiny to Large
• Show/Hide: Table, Trend Line, Background, Arrows
🚨 Alert Options:
• Trend Change to Uptrend
• Trend Change to Downtrend
• Trend Change to Sideways
This indicator gives you a clear, objective view of the 21-day trend with multiple confirmation signals! 🚀
Analisis Trend
Supertrend MACD - XAUUSD STRATEGY 🔶 Supertrend MACD - XAUUSD STRATEGY (v6) (XAUUSD ONLY FOR NOW)
A high-performance, multi-filtered MACD-based strategy tailored for XAUUSD (Gold) traders seeking precision entries during trending conditions. This indicator intelligently combines multiple technical layers—momentum, trend strength, volatility, and market structure—to help identify high-probability trade setups with improved reliability.
🧠 Core Logic & Features Explained:
🔸 MACD Momentum Engine
At the heart of the strategy lies the traditional MACD indicator (Moving Average Convergence Divergence), calculating the difference between two EMAs (fast and slow) and smoothing it with a signal line.
Buy Signal: Triggered when the MACD line crosses above the signal line.
Sell Signal: Triggered when the MACD line crosses below the signal line.
These signals are the foundation, but only the beginning of a layered decision-making process.
🔸 Higher Timeframe (HTF) Trend Confirmation
To filter out noise and false breakouts, the indicator references MACD values from a higher timeframe (configurable by the user). This powerful multi-timeframe approach ensures that entries only occur in alignment with the dominant macro-trend.
Ensures entries are not taken counter to larger market movements.
Helps identify momentum continuation setups and avoid chop.
🔸 Support Arrow Display (Optional)
For visual traders, an option to display support arrows on the chart can be enabled. These assist in identifying visually intuitive entry points and enhance situational awareness.
⚙️ User-Customizable Inputs:
MACD Settings: Fast EMA, Slow EMA, Signal EMA lengths.
Signal Offset: For visual alignment and candle matching.
HTF MACD Settings: Select any timeframe for higher timeframe filtering.
ATR and ADX Thresholds: Fine-tune filters to match your trading style.
Structure Break Lookback: Adjust BOS+ logic sensitivity.
Arrow Toggles: Enable or disable visual support arrows as needed.
THIS indicator is in its alpha stage, currently it only works on XAUUSD pairs, i plan to update this indicator so that it functions on every single pair available on Trading view
Another note, the signals given only become solid after the second the candlestick, after this the signal becomes solid. REPAINTING CAN HAPPEN AFTER THE FIRST CANDLE STICK OF THE SIGNAL BUT NOT AFTER THE SECOND
As this indicator is only in its alpha stage it should be used as such, every person is responsible for there own personal investments
Dynamic Range Filter with Trend Candlesticks (Zeiierman)█ Overview
Dynamic Range Filter with Trend Candlesticks (Zeiierman) is a volatility-responsive trend engine that adapts in real-time to market structure, offering a clean and intelligent visualization of directional bias. It blends dynamic range calculation with customizable smoothing techniques and layered trend confirmation logic, making it ideal for traders who rely on clear trend direction, structural range analysis, and momentum-based candlestick signals.
By measuring scaled volatility over configurable lengths and applying advanced moving average techniques, this indicator filters out market noise while preserving true directional intent. Complementing this, a dual-trend system (range-based and candle-based) enhances clarity and responsiveness, particularly during shifting market conditions.
█ How It Works
⚪ Scaled Volatility Band Calculation
At the core lies a volatility engine that constructs adaptive range bands around price using smoothed high/low calculations. The bands are dynamically adjusted using:
High/Low Smoothing – Applies a moving average to the raw high and low data before calculating the range.
Scaled Range Volatility – A 2.618 multiplier scales the distance between smoothed highs and lows, forming a responsive volatility envelope.
Band Multiplier – Controls how wide the upper/lower range bands extend from the mean.
This filtering process minimizes false signals and highlights only structurally meaningful moves.
⚪ Multi-Type Smoothing Engine
Users can choose from a wide array of smoothing algorithms for trend construction, including:
HMA (default), SMA, EMA, RMA
KAMA – Adapts to market volatility using efficiency ratios.
VIDYA – Momentum-sensitive smoothing using CMO logic.
FRAMA – Dynamically adjusts to fractal dimension in price.
Super Smoother – Ideal for eliminating aliasing in range signals.
This provides the trader with fine-tuned control over reactivity vs. smoothness.
⚪ Trend Detection (Dual Engine)
The indicator includes two independent trend tracking systems:
Main Trend Filter – Based on adaptive volatility band shifts.
Candle Trend Filter – A second-tier confirmation using smoothed candle data, ideal for directional candles and confirmation entries.
█ How to Use
⚪ Trend Confirmation
Use the Trend Line and colored candlesticks for high-probability entries in the trend direction. The more trend layers that align, the higher the confidence.
⚪ Reversal Zones
When the price reaches the outer bands or fails to break them, look for candle color shifts or a crossover in the range to anticipate possible reversals or consolidations.
█ Settings
Scaled Volatility Length – Controls the lookback used to stabilize the base volatility band.
MA Type & Length – Choose and fine-tune the smoothing method (HMA, EMA, KAMA, etc.)
High/Low Smoother – Pre-smoothing for structural high/low banding.
Band Multiplier – Adjusts the width of the dynamic bands.
Trend Length (Candles) – Length used for candle-based trend confirmation.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
EMA Trend Cloud with HH/LL Counter [RanAlgo]Indicator Overview:
This indicator combines EMA-based trend analysis with pivot point detection to identify market trends and potential reversal points. It features:
EMA Cloud System: Dual cloud layers (8/22 EMA and 21/49 EMA) for trend visualization
Pivot Analysis: Identifies Higher Highs (HH), Lower Highs (LH), Higher Lows (HL), and Lower Lows (LL)
Counter System: Tracks daily and session counts of HH/LL patterns
Key Components:
EMA Configuration:
Fast EMAs: 8, 21, 22
Medium EMAs: 49, 50
Slow EMA: 100
Cloud formations between EMAs (8/22 and 21/49) with adjustable opacity
Trend Signals:
Buy signals when EMA8 crosses above EMA22 (green cloud)
Sell signals when EMA8 crosses below EMA22 (red cloud)
Additional confirmation from 21/49 EMA cloud
Pivot Point System:
Customizable lookback period (default 16 bars)
Four pivot types with customizable visuals:
HH (Higher High) - Green
HL (Higher Low) - Blue
LH (Lower High) - Red
LL (Lower Low) - Orange
Extended lines with adjustable length
Counter Table:
Displays daily counts of HH and LL patterns
Six position options for table placement
Color-coded to match pivot line colors
Trading Rules:
Trend Following:
Go long when both clouds are green (EMA8 > EMA22 AND EMA21 > EMA49)
Go short when both clouds are red (EMA8 < EMA22 AND EMA21 < EMA49)
Pivot Confirmation:
Strong uptrend confirmed by consecutive HH and HL patterns
Strong downtrend confirmed by consecutive LH and LL patterns
Potential reversals when pattern sequences break
Counter Interpretation:
Increasing HH count suggests strong bullish momentum
Increasing LL count suggests strong bearish momentum
Divergences between price and counts may signal weakening trends
Customization Options:
Adjustable EMA lengths (hardcoded but can be modified)
Cloud opacity controls
Pivot line colors, styles, and thickness
Lookback period for pivot detection
Line extension length
Table visibility and positioning
Display Features:
Clean visual design that doesn't obscure price action
Non-repainting elements (uses confirmed pivots only)
Minimal screen space usage with optional table
This indicator complies with TradingView's guidelines by:
Using non-repainting calculations (confirmed pivots only)
Providing clear source code with comments
Offering comprehensive customization without overcrowding
Including proper input validation
Maintaining readable visuals at all zoom levels
The tool is designed for trend identification and confirmation, suitable for various timeframes and instruments. Users should combine it with other analysis techniques for best results.
ADX+ Oscillator📈 ADX+ Oscillator — Enhanced Trend Strength Indicator
🔹 Description:
A modified oscillator based on the ADX (Average Directional Index), providing both visual and digital interpretation of trend strength and direction. A powerful tool for filtering sideways markets and identifying strong impulses across any timeframe.
🔹 Features:
• ADX line to assess trend strength
• DI+ and DI− lines to determine trend direction
• Colored background zones:
• Gray: ranging market (ADX < 20)
• Orange: transition zone (20 ≤ ADX < 25)
• Green: strong trend (ADX ≥ 25)
• Digital value labels for ADX / DI+ / DI− on the latest candle
• Signal arrows when DI+ crosses DI− and vice versa
🔹 Why use it:
• Signal filtering: avoid trades in flat markets (ADX < 20)
• Trend confirmation: enter only when ADX is rising above 25
• Directional guidance via DI+ and DI− behavior
🔹 Best for:
• Scalping (1m, 5m)
• Intraday trading (15m, 1h)
• Swing trading (4h and above)
• Breakout and pullback strategies
RSI Buy Sell Signals[RanaAlgo]Overview
This Premium RSI with Enhanced Signals builds upon the classic Relative Strength Index by incorporating multiple confirmation filters and visual enhancements to improve signal reliability. The indicator goes beyond basic overbought/oversold levels by adding volume confirmation, trend alignment, and peak detection logic.
Key Features
Enhanced Signal Detection
Peak Strength Filter: Requires RSI movements to meet minimum strength criteria (configurable from 1-5 bars)
Volume Confirmation: Optional volume filter to ensure signals occur with above-average trading activity
Trend Alignment: Optional trend confirmation that checks price position relative to 20-period EMA
Visual Improvements
Dynamic coloring of RSI line (green in oversold, red in overbought)
Customizable reference lines and zones
Clear buy/sell signals with triangle markers
Comprehensive info panel showing current RSI status
Alert Capabilities
Ready-to-use alert conditions for both buy and sell signals
Visual and audible alerts when signals trigger
How It Works
Core RSI Calculation: Uses standard RSI formula with configurable length (default 14)
Signal Generation:
Buy signals require either:
RSI rising from oversold with volume/trend confirmation (when enabled)
Simple crossover above oversold level (when filters disabled)
Sell signals require either:
RSI falling from overbought with volume/trend confirmation
Simple crossunder below overbought level
Additional Filters:
Minimum peak strength prevents weak, insignificant movements from generating signals
Volume filter helps confirm institutional participation
Trend filter aligns signals with broader price direction
Usage Instructions
Apply to any chart timeframe (works best on 1H or higher)
Configure settings in the input panel:
Adjust RSI length if needed
Set overbought/oversold levels (default 70/30)
Enable/disable volume and trend filters
Customize visual elements
Signals appear as triangles below/above the RSI line
Use alerts to get notified of new signals
Differentiation from Standard RSI
This indicator adds several layers of confirmation that aren't present in the basic RSI:
Multi-bar momentum requirement for peaks/troughs
Volume validation option
Trend confirmation option
Smoothed RSI line for cleaner visualization
Comprehensive info panel with current status
The combination of these features helps filter out false signals that commonly occur with traditional RSI implementations.
Visually Layered OscillatorVisually Layered Oscillator User's Manual
Visually Layered Oscillator is a multi-oscillator designed to provide an intuitive visualization of RSI, MACD, ADX + DMI, allowing traders to interpret multiple signals at a glance.
It is designed to allow comparison within the same panel while maintaining the inherent meaning of each oscillator and compensating for visual distortion issues caused by size differences.
Component Overview
Item Description
RSI (x10) Displays relative buy/sell strength. Values above 70 are overbought; values below 30 are oversold.
MACD (3,16,10) Momentum indicator showing the difference between moving averages. Consists of lines and histograms
ADX ×50 + DMI Indicates the strength of the trend; ADX determines the strength of the trend and DMI determines whether it is buy/sell dominant.
White background color treatment Removes difficult-to-see grid lines to improve visibility.
🖥️ Screen Example
The panel is divided into the following three layers
mathematica
Copy
Edit
Top: ⬆️ RSI (purple)
Middle: 📈 MACD, Signal, Histogram + Color Fill
Bottom: 📉 ADX × 50, DMI+ / DMI- (Red, Blue, Orange)
TIP: If you zoom in on the indicators at a larger scale, you can see that each indicator is drawn at a different height level and placed in such a way that they do not overlap.
⚙️ Settings
Fast Length: MACD Quick Line Duration (Basic 3)
Slow Length: MACD slow line period (basic 16)
Smoothing: Signal line smoothing value (basic 10)
Notes and Tips
RSI × 10 and ADX × 50 are for visualization purposes only multiplied by multiples of the actual values. It does not affect the calculation and maintains the original RSI/ADX characteristics.
The MACD fill color visually highlights crossing conditions.
The background is treated in full white, making the indicator look clean without grid lines.
SMA Zone with Breakouts/Tests 1.0.This indicator plots a dynamic “SMA Zone” between two simple moving averages (one applied to lows, one to highs) and highlights key interaction points with the zone:
Breakouts
Bull Break: price closes above the upper SMA
Bear Break: price closes below the lower SMA
Requires confirmation via either above-average volume or an unusually wide bar (spread > ATR) closing near its extreme
Tests & Retests
After a breakout, the first re-entry into the zone edge is labeled “Test,” subsequent re-entries are numbered “Retest,” “2nd Retest,” etc.
Zone Weakening: each additional Test/Retest signifies diminished zone strength—fewer reliable boundaries remain (Traditional S/R theory)
Alerts
Fires a unified “Zone Signal” alert on every Break, Test, and Retest (set condition to “Any alert() function call”).
Disclaimer:
This is not financial advice and should not be used as a standalone trading signal.
It’s designed to draw your attention to important price-zone interactions so you can manually tune in.
The logic can be further enhanced or combined with other indicators/algorithms as part of a more complex trading system.
Malama's market chopMalama's Market Chop is a technical analysis indicator designed to help traders quickly identify periods of market "choppiness"—that is, when price action is range-bound, lacking clear direction, and prone to false breakouts. By highlighting these sideways, indecisive market conditions, the indicator enables traders to avoid entering trend-following trades during unfavorable environments, or to adapt their strategies for range trading.
Problem Solved:
Many trading strategies perform poorly in choppy, non-trending markets, leading to whipsaws and false signals. This indicator provides a clear, visual method to detect such conditions, allowing traders to filter out low-probability setups and improve their overall decision-making.
While the Choppiness Index is a known concept, this script offers a streamlined, user-friendly implementation with several enhancements:
Custom Summation Function: The script uses a custom function to calculate the sum of bar ranges, ensuring precise control over the calculation and compatibility with Pine Script v6.
Visual Alerts: It provides immediate, on-chart visual cues (background highlights and triangle markers) to signal choppy conditions, making it easy to spot at a glance.
Real-Time Labeling: The current Choppiness Index value is displayed directly on the chart, keeping traders informed of the latest market state.
User Customization: Key parameters such as the lookback period and threshold are fully adjustable, allowing adaptation to different assets and timeframes.
Usefulness:
This indicator is especially valuable for:
Trend-following traders who want to avoid entering trades during sideways markets.
Range traders seeking to identify optimal periods for mean-reversion strategies.
Algorithmic/systematic traders who wish to use choppiness as a filter in their strategies.
How It Works: Detailed Methodology
1. Choppiness Index Calculation
Range Summation:
The script calculates the sum of the absolute price ranges (high minus low) for each bar over a user-defined period (chopPeriod).
Total Range:
It also computes the difference between the highest high and the lowest low over the same period.
Choppiness Index Formula:
The Choppiness Index is then calculated as:
Choppiness Index = 100 × log10(rangeSum / rangeTotal) / log10(chopPeriod)
This normalizes the value, making it comparable across different assets and timeframes.
Division by Zero Protection:
If the total range is zero (i.e., no price movement), the index is set to zero to avoid errors.
2. Choppy Market Detection
Threshold Comparison:
The indicator compares the current Choppiness Index value to a user-defined threshold (chopThreshold).
If the index is above the threshold, the market is considered "choppy" (sideways).
If below, the market is likely trending.
3. Visual and Signal Logic
Background Highlight:
When a choppy condition is detected, the chart background is softly highlighted in yellow, making it easy to spot periods of indecision.
Triangle Marker:
A small blue triangle is plotted below each bar where the market is choppy, providing a clear, bar-by-bar signal.
Current Value Label:
On the most recent bar, a blue label displays the current Choppiness Index value, keeping traders informed in real time.
Strategy Results and Risk Management
Note:
This script is an indicator and does not generate buy/sell signals or execute trades. Therefore, it does not include backtesting, position sizing, or risk management features. However, it is designed to be used as a filter within broader trading strategies, helping traders avoid entering positions during choppy conditions.
Guidance for Use:
Trend Strategies: Consider pausing or reducing position size when the indicator signals a choppy market.
Range Strategies: Consider activating mean-reversion or range-bound strategies during choppy periods.
User Settings and Customization
The indicator provides the following user-adjustable inputs:
Choppiness Period (chopPeriod):
Default: 14
Description: The number of bars used to calculate the Choppiness Index.
Effect: Shorter periods make the indicator more sensitive to recent price action; longer periods smooth out short-term noise.
Choppiness Threshold (chopThreshold):
Default: 61.8
Description: The Choppiness Index value above which the market is considered choppy.
Effect: Lowering the threshold will classify more periods as choppy; raising it will make the filter stricter.
These settings allow traders to tailor the indicator to different assets, timeframes, and personal trading styles.
Visualizations and Chart Setup
The indicator plots the following elements directly on the price chart:
Background Color:
Yellow (semi-transparent): Highlights periods where the Choppiness Index exceeds the threshold, signaling a choppy market.
Triangle Markers:
Blue triangles below bars: Mark each bar where a choppy condition is detected.
Current Value Label:
Blue label on the latest bar: Displays the current Choppiness Index value for quick reference.
Clarity:
Only elements relevant to the indicator’s function are plotted, ensuring a clean and focused chart presentation.
ScalpZone NQ 1M - Volume Signals with Highlight Box📊 ScalpZone NQ 1M - Volume Signals with Highlight Box
ScalpZone is a professional-grade indicator designed specifically for 1-minute scalping on Nasdaq Futures (NQ), focusing on high-volume price action zones. It automatically detects aggressive buying/selling activity based on volume spikes and visualizes potential entry zones with dynamic horizontal lines and price boxes.
🔍 Key Features:
Volume Spike Detection: Identifies high-volume candles using an adjustable EMA-based volume threshold.
Directional Volume Signals: Highlights candles with directional momentum (bullish or bearish) based on real-time volume dominance.
Scalp Zone Visualization:
Draws horizontal support/resistance lines at volume signal prices.
Renders price boxes around those levels to highlight actionable zones.
Zones automatically extend when respected by price, and disappear when invalidated.
Visual Candle Enhancement: Dynamically colors candles to reflect normalized volume intensity and direction.
Customizable Parameters:
Volume EMA & threshold multiplier
Line and box dimensions
Toggle zone visibility
🛠️ Use Case:
Perfect for scalpers and short-term traders looking to exploit volume-based reversals or breakout traps on the NQ 1-minute chart. Traders can use the visual cues to time entries, manage stops, or validate confluence with other tools (e.g., order flow, delta spikes, or footprint charts).
4 colour MACD with Delta % + Div LabelMACD 4C + Delta % + Divergence Label
This advanced MACD-based indicator is designed for professional traders seeking enhanced momentum analysis with visual clarity. It offers a multi-faceted view of MACD behavior with real-time insights into trend strength, acceleration, and divergence signals.
Key Features:
4-Color MACD Histogram:
Visually distinguishes between rising and falling MACD bars in both bullish and bearish zones for quicker momentum assessment.
Delta % Labels:
Each bar displays the percentage change in MACD compared to the previous bar, providing instant feedback on MACD acceleration and shift in momentum.
Automatic Divergence Detection:
Identifies regular bullish and bearish divergences using pivot-based logic. Displays clear, compact labels near MACD bars to highlight potential reversal zones.
Clean, Minimalist Design:
Divergence labels are sized for readability and positioned to avoid overlapping with MACD data, ensuring clean chart presentation.
No repainting or lag:
All divergence calculations are based on confirmed pivots, ensuring reliable signal generation without false alerts.
This tool is ideal for scalpers, swing traders, and momentum traders who rely on MACD dynamics for precise timing and directional bias. Use it to improve your entry and exit accuracy by combining traditional MACD signals with real-time volume and divergence insight.
🔹 Usage Notes
Recommended Timeframes:
Works well on all timeframes. For scalping, use 1m–5m; for swing trading, use 15m–1H+.
Best for:
Traders looking for a fast, visual way to assess trend strength and spot divergence-based reversal opportunities.
Pair With:
Can be used alongside price action, volume profile, RSI, or order flow-based indicators for confirmation.
How to Read:
Green/Red MACD bars indicate bullish/bearish momentum.
Delta % shows MACD change rate — increasing positive delta = strengthening trend.
Arrows/text labels signal potential divergence — pay attention when divergence aligns with support/resistance or price structure.
Notes:
No repainting — divergence is only drawn after pivots are confirmed.
All labels are automatically managed for clean display.
Can be customized further for hidden divergences or alert integration.
TCT - Envelope MatrixTCT - Envelope Matrix
A powerful multi-envelope indicator that creates a comprehensive price channel system with 4 customizable envelopes and multiple intermediate levels for precise price action analysis.
Key Features:
• 4 customizable envelopes with adjustable percentages (0.2%, 0.4%, 0.6%, 0.8% by default)
• Optional EMA or SMA basis calculation
• Color-coded bands for easy visual identification
• Automatic horizontal lines showing current band values
• Midpoint lines between adjacent bands
• Additional 25%, 50%, and 75% levels between each band pair
The indicator provides:
- Clear visual representation of price channels
- Multiple support and resistance levels
- Dynamic price boundaries that adapt to market conditions
- Enhanced precision with intermediate levels between bands
Perfect for:
• Identifying potential support and resistance zones
• Spotting overbought/oversold conditions
• Finding potential reversal points
• Analyzing price volatility and channel width
• Making informed trading decisions based on price position relative to multiple bands
Customization Options:
• Adjustable length for the basis calculation
• Choice between EMA and SMA
• Customizable colors for each envelope
• Flexible percentage settings for each band
• Optional basis line color adjustment
This indicator is particularly useful for traders who want to analyze price action within multiple dynamic channels and identify potential trading opportunities based on price interactions with various support and resistance levels.
Diagonal Support and Resistance Trend LinesA simple indicator to plot trend lines.
1. Adjust the "Pivot Lookback" (default: 20) to control pivot sensitivity. Larger values detect more significant pivots.
2. Adjust the "Max Trend Lines" (default: 4) to control how many support/resistance lines are drawn.
The indicator will plot:
1. Red dashed lines for resistance (based on pivot highs).
2. Green dashed lines for support (based on pivot lows).
3. Small red triangles above bars for pivot highs and green triangles below bars for pivot lows.
Smooth BTCSPL [GiudiceQuantico] – Dual Smoothed MAsSmooth BTCSPL – Dual Smoothed MAs
What it measures
• % of Bitcoin addresses in profit vs loss (on-chain tickers).
• Spread = profit % − loss % → quick aggregate-sentiment gauge.
• Optional alpha-decay normalisation ⇒ keeps the curve on a 0-1 scale across cycles.
User inputs
• Use Alpha-Decay Adjusted Input (true/false).
• Fast MA – type (SMA / EMA / WMA / VWMA) & length (default 100).
• Slow MA – type & length (default 200).
• Colours – Bullish (#00ffbb) / Bearish (magenta).
Computation flow
1. Fetch daily on-chain series.
2. Build raw spread.
3. If alpha-decay enabled:
alpha = (rawSpread − 140-week rolling min) / (1 − rolling min).
4. Smooth chosen base with Fast & Slow MAs.
5. Bullish when Fast > Slow, bearish otherwise.
6. Bars tinted with the same bull/bear colour.
How to read
• Fast crosses above Slow → rising “addresses-in-profit” momentum → bullish bias.
• Fast crosses below Slow → stress / capitulation risk.
• Price-indicator divergences can flag exhaustion or hidden accumulation.
Tips
• Keep in a separate pane (overlay = false); bar-colouring still shows on price chart.
• Shorter lengths for swing trades, longer for macro outlook.
• Combine with funding rates, NUPL or simple price-MA crossovers for confirmation.
ZigZag ProZigZag Pro is a precise market structure indicator that automatically detects two independent ZigZag patterns and highlights breakouts whenever significant highs or lows are breached.
The indicator calculates two separate ZigZag structures in real time. ZigZag1 captures the broader market swings and is ideal for trend or swing trading. ZigZag2 is optional and reacts more quickly – perfect for intraday or scalping setups. Both layers are fully customizable in terms of depth, color, and line width.
What makes this tool especially useful: whenever a previous swing high (for long trades) or swing low (for short trades) is broken, the indicator draws a horizontal breakout line on the chart. This makes it easy to spot structural breakouts and take advantage of potential momentum moves.
ZigZag Pro is designed for traders who rely on clean, rule-based market structure — whether you're trading classic breakouts, smart money concepts, or simply want a clearer view of trend shifts. The visuals are minimal, responsive, and suitable for any timeframe.
TEMA with Slope Color [MrBuCha]This TEMA indicator is particularly useful for trend following strategies. The key innovation here is using a higher timeframe (default 1-hour) to get a broader perspective on the trend direction, while the color-coding makes it immediately obvious whether the momentum is bullish (blue) or bearish (orange).
The 200-period length makes this more suitable for swing trading rather than day trading, as it filters out short-term noise and focuses on significant trend movements.
//
What is TEMA and How Does It Work?
TEMA (Triple Exponential Moving Average) is a technical indicator that builds upon the standard EMA to reduce lag and provide faster response to price changes. The calculation process is:
EMA1 = EMA of closing price with specified length
EMA2 = EMA of EMA1 with the same length
EMA3 = EMA of EMA2 with the same length
TEMA = 3 × (EMA1 - EMA2) + EMA3
This formula helps reduce the lag inherent in smoothing calculations, making TEMA more responsive to price movements compared to other moving averages.
Default Values
Length: 200 periods
Timeframe: "60" (1 hour)
Slope Colors
Blue: When TEMA is trending upward (tema_current > tema_previous)
Orange: When TEMA is trending downward (tema_current ≤ tema_previous)
Pros and Cons Summary
Advantages:
Fast Response: Reduces lag better than SMA and regular EMA
Easy to Use: Color-coded slope makes trend direction immediately visible
Multi-timeframe Capability: Can display TEMA from higher timeframes
Trend Following: Excellent for identifying trend direction
Visual Clarity: Clear color signals help with quick decision making
Disadvantages:
False Signals: Prone to whipsaws in sideways/choppy markets
Noise in Volatility: Frequent color changes during high volatility periods
Not Suitable for Scalping: Length of 200 is quite long for short-term trading
Still Lagging: Despite improvements, it remains a lagging indicator
Requires Confirmation: Should be used with other indicators for better accuracy
Best Use Cases:
Medium to long-term trend following
Identifying major trend changes
Multi-timeframe analysis
Combine with momentum oscillators for confirmation
Trading Tips:
Wait for color confirmation before entering trades
Use higher timeframe TEMA for overall trend bias
Combine with support/resistance levels
Avoid trading during consolidation periods
RSI.TrendContext
The Relative Strength Index (RSI) is one of the most widely used classical indicators in technical analysis, typically employed to identify overbought or oversold market conditions. It reflects the degree of upside or downside dominance within a specified period. However, in its standard form, RSI is not particularly effective as a standalone entry trigger.
The RSI.Trend indicator enhances the RSI to provide a more reliable method for distinguishing between bullish and bearish market regimes and offers specific entry triggers. It adds supplementary value to the pure RSI read.________________________________________
Concept
In trending markets, an Exponential Moving Average (EMA) of the price is often smoother and more stable than raw price data. As a result, the RSI calculated on this smoothed price (i.e., the EMA) tends to react earlier and more consistently than the standard RSI. Specifically:
• In uptrends, the RSI of the EMA tends to exceed the RSI of the original price.
• In downtrends, it tends to lag behind.
The difference between these two RSI readings provides a stable and less noisy measure of market bias—positive in uptrends, negative in downtrends. The crossing points can serve as entry triggers. This is, what the RSI.Trend is trying to capture.
________________________________________
The RSI.Trend indicator operates as follows:
• It first computes the 5-period EMA of the price series of the underlying ("EMA5").
• It calculates the 14-period RSI of the original price series ("RSI") as well as the 14-period RSI of EMA5 ("RSIEMA").
• It then determines the 14-period EMA of RSI ("RSI.MA") and RSIEMA ("RSIEMA.MA").
These values are used to define a Baseline and a Trigger Line:
• Baseline: The average of RSI and RSI.MA.
• Trigger Line: The average of RSIEMA and RSIEMA.MA.
Essentially, the baseline represents a smoother version of the RSI of the original price series, while the trigger line is a smoother version of the RSI on the EMA5 of the original price series.
Additionally, the RSI.Trend Background Value is calculated as the difference between the Trigger Line and the Baseline, slightly accelerated by incorporating the current bias of this difference. This acceleration causes the Background Value to react somewhat faster than the pure difference between the two lines.
How to use the RSI.Trend:
• As mentioned in the introductory context, during uptrends, the trigger line remains above the baseline; in downtrends, it stays below the baseline.
• A crossover of the baseline by the trigger line indicates a regime shift from bearish to bullish and can signal avoiding adding short positions, closing short positions, or adding long positions.
• A crossunder of the baseline by the trigger line indicates a regime shift from bullish to bearish and can signal avoiding adding long positions, closing long positions, or adding short positions.
• The level of the Trigger Line can serve as a confidence indicator; for instance, if the trigger line crosses under the baseline coming from very high values, it implies high confidence.
• The Background Value indicates the accelerated difference between the two lines:
o > 0 (Green background): Indicates a Bullish regime.
o < 0 (Red background): Indicates a Bearish regime.
The Background Value reacts slightly faster than line crossings due to its acceleration relative to the difference of the two lines.
Including these lines in the script besides the Background Value, provides insight into their levels and their origins, aiding in formulating confidence in an entry trigger, which the background value alone cannot provide. The change in slope of the trigger Line can also be used as an early and fast position-trigger.
Finally, the Background Value can be utilized in continuous trading scenarios (i.e., no entry points, always engaged) as a multiplier on a predefined max-exposure value, representing the current exposure as a fraction of that max-exposure.
The usage of RSI.Trend is also exemplified in the introductory chart.________________________________________
Final Notes
As with all indicators, the RSI.Trend is most effective when used in conjunction with other technical tools and market context. It does not predict future price movements; rather, it reflects current market dynamics and recent directional tendencies. Use it with discretion and as part of a broader trading strategy.
Enhanced Stock Ticker with 50MA vs 200MADescription
The Enhanced Stock Ticker with 50MA vs 200MA is a versatile Pine Script indicator designed to visualize the relative position of a stock's price within its short-term and long-term price ranges, providing actionable bullish and bearish signals. By calculating normalized indices based on user-defined lookback periods (defaulting to 50 and 200 bars), this indicator helps traders identify potential reversals or trend continuations. It offers the flexibility to plot signals either on the main price chart or in a separate lower pane, leveraging Pine Script v6's force_overlay functionality for seamless integration. The indicator also includes a customizable ticker table, visual fills, and alert conditions for automated trading setups.
Key Features
Dual Lookback Indices: Computes short-term (default: 50 bars) and long-term (default: 200 bars) indices, normalizing the closing price relative to the high/low range over the specified periods.
Flexible Signal Plotting: Users can toggle between plotting crossover signals (triangles) on the main price chart (location.abovebar/belowbar) or in the lower pane (location.top/bottom) using the Plot Signals on Main Chart option.
Crossover Signals: Generates bullish (Golden Cross) and bearish (Death Cross) signals when the short or long index crosses above 5 or below 95, respectively.
Visual Enhancements:
Plots short-term (blue) and long-term (white) indices in a separate pane with customizable lookback periods.
Includes horizontal reference lines at 0, 20, 50, 80, and 100, with green and red fills to highlight overbought/oversold zones.
Dynamic fill between indices (green when short > long, red when long > short) for quick trend visualization.
Displays a ticker and legend table in the top-right corner, showing the symbol and lookback periods.
Alert Conditions: Supports alerts for bullish and bearish crossovers on both short and long indices, enabling integration with TradingView's alert system.
Technical Innovation: Utilizes Pine Script v6's force_overlay parameter to plot signals on the main chart from a non-overlay indicator, combining the benefits of a separate pane and chart-based signals in a single script.
Technical Details
Calculation Logic:
Uses confirmed bars (barstate.isconfirmed) to calculate indices, ensuring reliability by avoiding real-time bar fluctuations.
Short-term index: (close - lowest(low, lookback_short)) / (highest(high, lookback_short) - lowest(low, lookback_short)) * 100
Long-term index: (close - lowest(low, lookback_long)) / (highest(high, lookback_long) - lowest(low, lookback_long)) * 100
Signals are triggered using ta.crossover() and ta.crossunder() for indices crossing 5 (bullish) and 95 (bearish).
Signal Plotting:
Main chart signals use force_overlay=true with location.abovebar/belowbar for precise alignment with price bars.
Lower pane signals use location.top/bottom for visibility within the indicator pane.
Plotting is controlled by boolean conditions (e.g., bullishLong and plot_on_chart) to ensure compliance with Pine Script's global scope requirements.
Performance Considerations: Optimized for efficiency by calculating indices only on confirmed bars and using lightweight plotting functions.
How to Use
Add to Chart:
Copy the script into TradingView's Pine Editor and add it to your chart.
Configure Settings:
Short Lookback Period: Adjust the short-term lookback (default: 50 bars) to match your trading style (e.g., 20 for shorter-term analysis).
Long Lookback Period: Adjust the long-term lookback (default: 200 bars) for broader market context.
Plot Signals on Main Chart: Check this box to display signals on the price chart; uncheck to show signals in the lower pane.
Interpret Signals:
Golden Cross (Bullish): Green (long) or blue (short) triangles indicate the index crossing above 5, suggesting a potential buying opportunity.
Death Cross (Bearish): Red (long) or white (short) triangles indicate the index crossing below 95, signaling a potential selling opportunity.
Set Alerts:
Use TradingView's alert system to create notifications for the four alert conditions: Long Index Valley, Long Index Peak, Short Index Valley, and Short Index Peak.
Customize Visuals:
The ticker table displays the symbol and lookback periods in the top-right corner.
Adjust colors and styles via TradingView's settings if desired.
Example Use Cases
Swing Trading: Use the short-term index (e.g., 50 bars) to identify short-term reversals within a broader trend defined by the long-term index.
Trend Confirmation: Monitor the fill between indices to confirm whether the short-term trend aligns with the long-term trend.
Automated Trading: Leverage alert conditions to integrate with bots or manual trading strategies.
Notes
Testing: Always backtest the indicator on your chosen market and timeframe to validate its effectiveness.
Optional Histogram: The script includes a commented-out histogram for the index difference (index_short - index_long). Uncomment the plot(index_diff, ...) line to enable it.
Compatibility: Built for Pine Script v6 and tested on TradingView as of May 27, 2025.
Acknowledgments
This indicator was inspired by the need for a flexible tool that combines lower-pane analysis with main chart signals, made possible by Pine Script's force_overlay feature. Share your feedback or suggestions in the comments below, and happy trading!
MomentumMap🔍 MomentumMap™ – Map the Market’s Strength Like a Pro
MomentumMap™ is a quadrant-based relative strength tool that helps you instantly understand where any stock stands vs. its benchmark in terms of performance and momentum.
Inspired by the RRG (Relative Rotation Graph) model, this indicator uses:
RS Ratio → To compare relative strength
RS Momentum → To track acceleration/deceleration
Each stock is placed into one of four dynamic zones:
🟢 Power Zone – Strong and leading (high RS, high momentum)
🔵 Lift Zone – Building strength (low RS, rising momentum)
🟡 Drift Zone – Cooling or pausing (high RS, falling momentum)
🔴 Dead Zone – Weak and lagging (low RS, falling momentum)
This helps you:
🚀 Spot leaders early and ride strong trends
🧠 Exit before strength fades
📊 Study sector/stock rotations
🔄 Time entries and exits with confidence
Works on any timeframe and asset class. Just set your benchmark and go!
💥 Trade with clarity. Let MomentumMap™ guide your next move.
Cap's Dual Auto Fib RetracementThis will draw both a bullish retracement and a bearish retracement. It's defaulted to just show the 0.618 level as I feel like this is the "make or break" level.
- A close below the bullish 0.618 retracement would be considered very bearish.
- A close above the bearish 0.618 would be considered very bullish.
(You can still configure whichever levels you want, however.)
This script was removed by TradingView last time it was published. I couldn't find another script that would provide both bearish/bullish retracements, so I'm assuming this is "original" enough. Maybe it was removed because the description wasn't long enough, so...
Detailed Description:
This indicator automatically plots Fibonacci retracement levels based on zigzag pivot points for both bullish (low-to-high) and bearish (high-to-low) price movements. It identifies key pivot points using a customizable deviation multiplier and depth setting, then draws Fibonacci levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1) with user-defined visibility and colors for each level.
Features:
Deviation: Adjusts sensitivity for detecting pivots (default: 2).
Depth: Sets minimum bars for pivot calculation (default: 10).
Extend Lines: Option to extend lines left, right, or both.
Show Prices/Levels: Toggle price and level labels, with options for value or percentage display.
Labels Position: Choose left or right label placement.
Background Transparency: Customize fill transparency between levels.
Alerts: Triggers when price crosses any Fibonacci level.
Usage: Apply to any chart to visualize potential support/resistance zones. Adjust settings to suit your trading style. Requires sufficient data; use lower timeframes or reduce depth if pivots are not detected.
Note: This is a technical analysis tool and does not provide trading signals or financial advice. Always conduct your own research.
Ergodic Market Divergence (EMD)Ergodic Market Divergence (EMD)
Bridging Statistical Physics and Market Dynamics Through Ensemble Analysis
The Revolutionary Concept: When Physics Meets Trading
After months of research into ergodic theory—a fundamental principle in statistical mechanics—I've developed a trading system that identifies when markets transition between predictable and unpredictable states. This indicator doesn't just follow price; it analyzes whether current market behavior will persist or revert, giving traders a scientific edge in timing entries and exits.
The Core Innovation: Ergodic Theory Applied to Markets
What Makes Markets Ergodic or Non-Ergodic?
In statistical physics, ergodicity determines whether a system's future resembles its past. Applied to trading:
Ergodic Markets (Mean-Reverting)
- Time averages equal ensemble averages
- Historical patterns repeat reliably
- Price oscillates around equilibrium
- Traditional indicators work well
Non-Ergodic Markets (Trending)
- Path dependency dominates
- History doesn't predict future
- Price creates new equilibrium levels
- Momentum strategies excel
The Mathematical Framework
The Ergodic Score combines three critical divergences:
Ergodic Score = (Price Divergence × Market Stress + Return Divergence × 1000 + Volatility Divergence × 50) / 3
Where:
Price Divergence: How far current price deviates from market consensus
Return Divergence: Momentum differential between instrument and market
Volatility Divergence: Volatility regime misalignment
Market Stress: Adaptive multiplier based on current conditions
The Ensemble Analysis Revolution
Beyond Single-Instrument Analysis
Traditional indicators analyze one chart in isolation. EMD monitors multiple correlated markets simultaneously (SPY, QQQ, IWM, DIA) to detect systemic regime changes. This ensemble approach:
Reveals Hidden Divergences: Individual stocks may diverge from market consensus before major moves
Filters False Signals: Requires broader market confirmation
Identifies Regime Shifts: Detects when entire market structure changes
Provides Context: Shows if moves are isolated or systemic
Dynamic Threshold Adaptation
Unlike fixed-threshold systems, EMD's boundaries evolve with market conditions:
Base Threshold = SMA(Ergodic Score, Lookback × 3)
Adaptive Component = StDev(Ergodic Score, Lookback × 2) × Sensitivity
Final Threshold = Smoothed(Base + Adaptive)
This creates context-aware signals that remain effective across different market environments.
The Confidence Engine: Know Your Signal Quality
Multi-Factor Confidence Scoring
Every signal receives a confidence score based on:
Signal Clarity (0-35%): How decisively the ergodic threshold is crossed
Momentum Strength (0-25%): Rate of ergodic change
Volatility Alignment (0-20%): Whether volatility supports the signal
Market Quality (0-20%): Price convergence and path dependency factors
Real-Time Confidence Updates
The Live Confidence metric continuously updates, showing:
- Current opportunity quality
- Market state clarity
- Historical performance influence
- Signal recency boost
- Visual Intelligence System
Adaptive Ergodic Field Bands
Dynamic bands that expand and contract based on market state:
Primary Color: Ergodic state (mean-reverting)
Danger Color: Non-ergodic state (trending)
Band Width: Expected price movement range
Squeeze Indicators: Volatility compression warnings
Quantum Wave Ribbons
Triple EMA system (8, 21, 55) revealing market flow:
Compressed Ribbons: Consolidation imminent
Expanding Ribbons: Directional move developing
Color Coding: Matches current ergodic state
Phase Transition Signals
Clear entry/exit markers at regime changes:
Bull Signals: Ergodic restoration (mean reversion opportunity)
Bear Signals: Ergodic break (trend following opportunity)
Confidence Labels: Percentage showing signal quality
Visual Intensity: Stronger signals = deeper colors
Professional Dashboard Suite
Main Analytics Panel (Top Right)
Market State Monitor
- Current regime (Ergodic/Non-Ergodic)
- Ergodic score with threshold
- Path dependency strength
- Quantum coherence percentage
Divergence Metrics
- Price divergence with severity
- Volatility regime classification
- Strategy mode recommendation
- Signal strength indicator
Live Intelligence
- Real-time confidence score
- Color-coded risk levels
- Dynamic strategy suggestions
Performance Tracking (Left Panel)
Signal Analytics
- Total historical signals
- Win rate with W/L breakdown
- Current streak tracking
- Closed trade counter
Regime Analysis
- Current market behavior
- Bars since last signal
- Recommended actions
- Average confidence trends
Strategy Command Center (Bottom Right)
Adaptive Recommendations
- Active strategy mode
- Primary approach (mean reversion/momentum)
- Suggested indicators ("weapons")
- Entry/exit methodology
- Risk management guidance
- Comprehensive Input Guide
Core Algorithm Parameters
Analysis Period (10-100 bars)
Scalping (10-15): Ultra-responsive, more signals, higher noise
Day Trading (20-30): Balanced sensitivity and stability
Swing Trading (40-100): Smooth signals, major moves only Default: 20 - optimal for most timeframes
Divergence Threshold (0.5-5.0)
Hair Trigger (0.5-1.0): Catches every wiggle, many false signals
Balanced (1.5-2.5): Good signal-to-noise ratio
Conservative (3.0-5.0): Only extreme divergences Default: 1.5 - best risk/reward balance
Path Memory (20-200 bars)
Short Memory (20-50): Recent behavior focus, quick adaptation
Medium Memory (50-100): Balanced historical context
Long Memory (100-200): Emphasizes established patterns Default: 50 - captures sufficient history without lag
Signal Spacing (5-50 bars)
Aggressive (5-10): Allows rapid-fire signals
Normal (15-25): Prevents clustering, maintains flow
Conservative (30-50): Major setups only Default: 15 - optimal trade frequency
Ensemble Configuration
Select markets for consensus analysis:
SPY: Broad market sentiment
QQQ: Technology leadership
IWM: Small-cap risk appetite
DIA: Blue-chip stability
More instruments = stronger consensus but potentially diluted signals
Visual Customization
Color Themes (6 professional options):
Quantum: Cyan/Pink - Modern trading aesthetic
Matrix: Green/Red - Classic terminal look
Heat: Blue/Red - Temperature metaphor
Neon: Cyan/Magenta - High contrast
Ocean: Turquoise/Coral - Calming palette
Sunset: Red-orange/Teal - Warm gradients
Display Controls:
- Toggle each visual component
- Adjust transparency levels
- Scale dashboard text
- Show/hide confidence scores
- Trading Strategies by Market State
- Ergodic State Strategy (Primary Color Bands)
Market Characteristics
- Price oscillates predictably
- Support/resistance hold
- Volume patterns repeat
- Mean reversion dominates
Optimal Approach
Entry: Fade moves at band extremes
Target: Middle band (equilibrium)
Stop: Just beyond outer bands
Size: Full confidence-based position
Recommended Tools
- RSI for oversold/overbought
- Bollinger Bands for extremes
- Volume profile for levels
- Non-Ergodic State Strategy (Danger Color Bands)
Market Characteristics
- Price trends persistently
- Levels break decisively
- Volume confirms direction
- Momentum accelerates
Optimal Approach
Entry: Breakout from bands
Target: Trail with expanding bands
Stop: Inside opposite band
Size: Scale in with trend
Recommended Tools
- Moving average alignment
- ADX for trend strength
- MACD for momentum
- Advanced Features Explained
Quantum Coherence Metric
Measures phase alignment between individual and ensemble behavior:
80-100%: Perfect sync - strong mean reversion setup
50-80%: Moderate alignment - mixed signals
0-50%: Decoherence - trending behavior likely
Path Dependency Analysis
Quantifies how much history influences current price:
Low (<30%): Technical patterns reliable
Medium (30-50%): Mixed influences
High (>50%): Fundamental shift occurring
Volatility Regime Classification
Contextualizes current volatility:
Normal: Standard strategies apply
Elevated: Widen stops, reduce size
Extreme: Defensive mode required
Signal Strength Indicator
Real-time opportunity quality:
- Distance from threshold
- Momentum acceleration
- Cross-validation factors
Risk Management Framework
Position Sizing by Confidence
90%+ confidence = 100% position size
70-90% confidence = 75% position size
50-70% confidence = 50% position size
<50% confidence = 25% or skip
Dynamic Stop Placement
Ergodic State: ATR × 1.0 from entry
Non-Ergodic State: ATR × 2.0 from entry
Volatility Adjustment: Multiply by current regime
Multi-Timeframe Alignment
- Check higher timeframe regime
- Confirm ensemble consensus
- Verify volume participation
- Align with major levels
What Makes EMD Unique
Original Contributions
First Ergodic Theory Trading Application: Transforms abstract physics into practical signals
Ensemble Market Analysis: Revolutionary multi-market divergence system
Adaptive Confidence Engine: Institutional-grade signal quality metrics
Quantum Coherence: Novel market alignment measurement
Smart Signal Management: Prevents clustering while maintaining responsiveness
Technical Innovations
Dynamic Threshold Adaptation: Self-adjusting sensitivity
Path Memory Integration: Historical dependency weighting
Stress-Adjusted Scoring: Market condition normalization
Real-Time Performance Tracking: Built-in strategy analytics
Optimization Guidelines
By Timeframe
Scalping (1-5 min)
Period: 10-15
Threshold: 0.5-1.0
Memory: 20-30
Spacing: 5-10
Day Trading (5-60 min)
Period: 20-30
Threshold: 1.5-2.5
Memory: 40-60
Spacing: 15-20
Swing Trading (1H-1D)
Period: 40-60
Threshold: 2.0-3.0
Memory: 80-120
Spacing: 25-35
Position Trading (1D-1W)
Period: 60-100
Threshold: 3.0-5.0
Memory: 100-200
Spacing: 40-50
By Market Condition
Trending Markets
- Increase threshold
- Extend memory
- Focus on breaks
Ranging Markets
- Decrease threshold
- Shorten memory
- Focus on restores
Volatile Markets
- Increase spacing
- Raise confidence requirement
- Reduce position size
- Integration with Other Analysis
- Complementary Indicators
For Ergodic States
- RSI divergences
- Bollinger Band squeezes
- Volume profile nodes
- Support/resistance levels
For Non-Ergodic States
- Moving average ribbons
- Trend strength indicators
- Momentum oscillators
- Breakout patterns
- Fundamental Alignment
- Check economic calendar
- Monitor sector rotation
- Consider market themes
- Evaluate risk sentiment
Troubleshooting Guide
Too Many Signals:
- Increase threshold
- Extend signal spacing
- Raise confidence minimum
Missing Opportunities
- Decrease threshold
- Reduce signal spacing
- Check ensemble settings
Poor Win Rate
- Verify timeframe alignment
- Confirm volume participation
- Review risk management
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results.
The ergodic framework provides unique market insights but cannot predict future price movements with certainty. Always use proper risk management, conduct your own analysis, and never risk more than you can afford to lose.
This tool should complement, not replace, comprehensive trading strategies and sound judgment. Markets remain inherently unpredictable despite advanced analysis techniques.
Transform market chaos into trading clarity with Ergodic Market Divergence.
Created with passion for the TradingView community
Trade with insight. Trade with anticipation.
— Dskyz , for DAFE Trading Systems
EMA5/21 + VWAP + MACD HistogramScript Summary: EMA + VWAP + MACD + RSI Strategy
Objective: Combine multiple technical indicators to identify market entry and exit opportunities, aiming to increase signal accuracy.
Indicators Used:
EMAs (Exponential Moving Averages): Periods of 5 (short-term) and 21 (long-term) to identify trend crossovers.
VWAP (Volume Weighted Average Price): Serves as a reference to determine if the price is in a fair value zone.
MACD (Moving Average Convergence Divergence): Standard settings of 12, 26, and 9 to detect momentum changes.
RSI (Relative Strength Index): Period of 14 to identify overbought or oversold conditions.
Entry Rules:
Buy (Long): 5-period EMA crosses above the 21-period EMA, price is above VWAP, MACD crosses above the signal line, and RSI is above 40.
Sell (Short): 5-period EMA crosses below the 21-period EMA, price is below VWAP, MACD crosses below the signal line, and RSI is below 60.
Exit Rules:
For long positions: When the 5-period EMA crosses below the 21-period EMA or MACD crosses below the signal line.
For short positions: When the 5-period EMA crosses above the 21-period EMA or MACD crosses above the signal line.
Visual Alerts:
Buy and sell signals are highlighted on the chart with green (buy) and red (sell) arrows below or above the corresponding candles.
Indicator Plotting:
The 5 and 21-period EMAs, as well as the VWAP, are plotted on the chart to facilitate the visualization of market conditions.
This script is a versatile tool for traders seeking to combine multiple technical indicators into a single strategy. It can be used across various timeframes and assets, allowing adjustments according to the trader's profile and market characteristics.
Juliano Einhardt Ulguim, Brazil, 05/27/2025.
Palgo Trading - Palgo🎯THE PALGO INDICATOR
The "Palgo Trading - Palgo" indicator, developed by PALGOTRADING is a sophisticated technical analysis tool designed to identify potential buy and sell signals by combining trend analysis with momentum and optional AI-driven sentiment assessment. This indicator provides a clear visual representation of potential trading opportunities directly on the price chart.
At its core, the Palgo indicator synthesizes information from well-established technical analysis concepts with statistical functions, and has optional AI Integration for social analysis of the asset using external data :
Supertrend: This indicator identifies the prevailing trend direction. A positive Supertrend value suggests an upward trend, while a negative value indicates a downward trend. The Palgo indicator utilizes a Supertrend with a customizable multiplier and a user-configurable Average True Range (ATR) length (defaulting to 21).
🛜Signal Generation Logic
The indicator generates buy and sell signals based on a calculated "final direction" value. This value is derived by combining the Supertrend direction and a modified RSI. The modification involves scaling the RSI output to a range of -0.5 to 0.5 and then further adjusting it.
The buy and sell conditions are as follows:
Buy Signal: A buy signal is triggered when the "final direction" crosses above a positive activation threshold while the current signal is not already bullish. Upon signal generation, a "Buy" label (colored green) appears below the bar, and initial Take Profit (TP) and Stop Loss (SL) levels are calculated and stored.
Sell Signal: Conversely, a sell signal is triggered when the "final direction" crosses below a negative activation threshold while the current signal is not already bearish. A "Sell" label (colored red) is plotted above the bar, and corresponding TP and SL levels are determined.
✅ Optimized Take-Profit / Stop-Loss
The Take-Profit (TP) & Stop-Loss (SL) signals are optimized with Kernel Density Estimation (KDE), the script uses KDE activated by gaussian function on previous pivot points and trains the model, then tries to estimate new pivot points early, to determine new TP / SL levels for the current signal. Kernel Density Estimation takes values of the previous confirmed pivots' RSI values, body size & more factors to determine their role. This indicator can generate up to 5 TP signals per signal.
📈 Signal Trail
Palgo also includes a "Signal Trail" that visually shows the market's momentum. This trail is like a dynamic line that follows the price.
When the market is in an uptrend and looking strong, you'll see a green trail.
When it's in a downtrend and looking weak, you'll see a red trail.
This trail helps you see if the market is currently aligned with Palgo's bullish (buy) or bearish (sell) signal. It also acts as a visual guide for potential support or resistance levels.
📊Backtesting Dashboard
The Palgo indicator includes an optional Backtesting Dashboard to help you understand its historical performance. This dashboard appears directly on your chart and provides a quick summary of how the indicator's signals have performed in the past.
Here's what you'll see on the dashboard:
Sensitivity: This shows the specific "Sensitivity" setting you've chosen for the indicator. This setting influences how often signals are generated.
Wins: This number tells you how many trades initiated by the Palgo indicator historically ended in profit (reached a Take-Profit target or closed profitably when the signal reversed).
Loss: This number indicates how many trades historically ended in a loss (hit the Stop-Loss).
Winrate: This is a very important metric, displayed as a percentage. It shows you the proportion of winning trades compared to the total number of trades (Wins / (Wins + Loss)). A higher winrate generally suggests a more effective strategy.
This dashboard is a valuable tool for reviewing the indicator's effectiveness with different settings and helping you make informed decisions about its use in your trading.
🤖AI Integration (Optional):
A unique feature of the Palgo indicator is the optional integration of Artificial Intelligence (AI) sentiment analysis. When the "Use AI" input is enabled, the indicator incorporates two additional user-defined inputs:
Impression Change %: This input represents the percentage change in overall market sentiment as assessed by an external AI.
Positivity Change: This input reflects the change in positive sentiment, also provided by an AI.
These AI inputs are combined to create an "AI Score," which then influences the "final direction" calculation. A positive AI Score amplifies the bullish signals and dampens bearish signals, while a negative AI Score has the opposite effect.
❓Why PALGO ?
All-in-One Analysis: Palgo combines trend, momentum, and advanced statistical analysis into one easy-to-use tool, giving you a complete picture without needing multiple indicators.
Dynamic Profit & Loss Management: Unlike many tools with fixed targets, Palgo's smart profit and stop-loss system adapts to the market using KDE. This helps you potentially capture more gains and limit losses effectively.
Optional AI Insights: For an extra edge, Palgo can tap into Artificial Intelligence (AI) to gauge overall market mood. If the AI sees a lot of positive buzz, it can strengthen buy signals; if it's negative, it can reinforce sell signals. This helps you trade with a better understanding of the market's pulse.
Clear and Customizable: Palgo is designed to be very visual. It changes the color of the price bars, adds clear "Buy" or "Sell" labels, and marks your profit and stop-loss points. You can also change the colors to suit your preference.
Palgo aims to be a comprehensive and adaptable trading tool, giving you clearer insights.
⚙️Visualizations and Customization
The Palgo indicator offers several visual cues to aid traders:
Bar Coloring: The price bars are colored green when the indicator identifies a bullish signal and red during a bearish signal.
Signal Labels: Clear "Buy" and "Sell" labels are plotted at the signal generation points.
Take Profit and Stop Loss Markers: Distinct shapes and labels indicate when the price reaches the calculated TP and SL levels.
Style Options: Users can customize the colors for bullish and bearish bars, text, and TP/SL markers within the indicator's settings.