Trend Zones & ATR Targets[CongTrader]TrendZones ATR is a dynamic trend and support/resistance indicator that combines Hull Moving Average (HMA) smoothing, mid-price analysis, and ATR-based targets to identify precise trading zones and risk levels.
Key Features:
Adaptive Trend Zones — Calculates upper, midline (CoG), and lower borders from smoothed mid-price, adapting to market volatility.
Trend Classification — Detects uptrend, downtrend, or sideways conditions using slope-based logic.
Safe Level & Logical Stop — Automatically sets risk levels according to price zone classification.
Flexible TP Methods — Choose between %-based or ATR-based take-profit targets.
Optional ATR Support Zone — Adds an ATR-based support level for stronger confluence.
Risk & Zone Width Table — Displays real-time risk and channel width data on the chart.
How to Use:
Apply the indicator to any symbol and timeframe.
Identify market zones with color-coded fills.
Align trades with the detected trend direction.
Use Safe Level or Logical Stop for stop-loss placement.
Set TP targets using either % or ATR multiplier.
Combine with your own trade confirmation method for optimal results.
Acknowledgment:
Thanks to the TradingView community for inspiration and feedback. This script is original work by CongTrader.
Disclaimer:
This script is for educational purposes only and does not constitute financial advice. Trading carries risk and may not be suitable for all investors. Do your own research before making any trading decisions. The author is not responsible for any losses resulting from the use of this script.
#trendzones #atr #supportresistance #tradingview #forex #crypto #stocks #daytrading #swingtrading #riskmanagement #chartanalysis .
Trend Analysis
TSD Quantum [Moeinudin Montazerfaraj] 🔸 "TSD" stands for **Trend 1-2-3 and Supply & Demand**, which is the foundation of the trading style this indicator is built upon.
🔹 TSD Quantum is a specialized indicator designed exclusively for day traders who trade EURUSD, XAUUSD (Gold), and DAX40 on the 1H, 15M, and 5M timeframes using a Supply & Demand-based strategy.
This indicator is **not suitable for other symbols** and has been tailored specifically for these three assets to ensure high precision and effectiveness.
---
### 🔍 Key Features:
✅ **Trading Checklist Panel**
A built-in checklist helps you track every rule in your trading plan. If even one condition is left unchecked, the system highlights it in red and marks the trade as "Not Allowed." This feature enhances trading discipline.
✅ **Spread & ATR Control Panel**
Supports both auto-calculated and fixed values for spread and ATR. This is especially helpful when placing stop-losses quickly and accurately.
✅ **Inside & Outside Candle Detection**
A dedicated panel highlights whether the last candle is inside or outside. Hovering your mouse over the chart elements automatically colorizes the candles:
🔵 Blue = Outside candle
🔴 Red = Inside candle
Also displays the high/low of the latest outside bar.
✅ **Weekly Trade Stats Panel**
Custom-built for the mentioned three assets. You can enter your trades using either fixed risk or floating risk models.
✅ **Performance Metrics**
Helps you build and adjust a floating risk model—so you don’t have to enter every trade with the same lot size. Improves risk management across multiple trades.
✅ **Base Candles Display**
Grey and white base candles are marked based on supply and demand zones.
✅ **EOT Candles**
Candles with a green dot underneath indicate valid EOT opportunities for potential move-outs.
✅ **RC (Rejection Candle) Detection**
RC candles are automatically detected to alert you of potential traps or weaknesses during Supply/Demand formations.
---
### ⚠️ Disclaimer
This indicator does **not** issue buy/sell signals and **cannot guarantee profit or prevent loss**. It is a **tool for discretionary trading**, not an automated expert advisor.
All decisions must be made by the trader based on their own strategy and risk tolerance.
This is the **latest tested version** of TSD Quantum. All features have been validated and function as intended. Future updates will be provided if needed.
---
🙏 Thank you for reviewing this script. We hope it becomes a valuable addition to your day trading toolkit!
Stochastic MACDStochastic MACD Indicator: Quick Guide
This Pine Script indicator, "Stochastic MACD" (SMACD), blends MACD and Stochastic Oscillator principles to help you spot momentum shifts and potential reversals.
What it Shows:
SMACD Line: Tracks momentum.
Signal Line: Averages the SMACD line, creating crossovers.
Histogram: Visualizes momentum strength, changing color with direction.
Overbought/Oversold Levels: (Default 10 and -10) Help identify stretched market conditions. Adjustable in settings.
Visual Signals (Triangles):
Red Down Arrow (Overbought Signal): Appears when both SMACD and Signal lines are above the Overbought level (default 10) AND SMACD crosses the Signal line upwards. This suggests strong overbought conditions and a potential reversal down.
Green Up Arrow (Oversold Signal): Appears when both SMACD and Signal lines are below the Oversold level (default -10) AND SMACD crosses the Signal line upwards. This suggests potential buying opportunities from oversold conditions and a possible reversal up.
How to Use It:
Confirm Trends: Use the histogram and line directions.
Spot Reversals: Look for the red and green triangles for quick alerts.
Combine: Always use with other analysis like price action or support/resistance.
Important: This is an analytical tool, not financial advice. Trading involves risk.
Cumulative Gain-Loss Ratio This Pine Script indicator is called "Cumulative Gain-Loss Ratio" - a technical analysis tool. Here's what it does for you:
How the Indicator Works:
1. Calculates percentage change for each bar:
It finds how much the closing price changed compared to the previous candle in percentage terms
2. Separates gains and losses:
Positive changes = Gains
Negative changes = Losses (converts to positive values)
3. Takes cumulative totals:
Sums up all gains from the beginning
Sums up all losses from the beginning
4. Calculates the ratio:
Cumulative Gains ÷ Cumulative Losses
What It Tells You:
Ratio > 1: Your total gains exceed losses (good performance)
Ratio < 1: Your total losses exceed gains (poor performance)
Ratio = 1: Gains and losses are equal (break-even)
Practical Usage:
Evaluating long-term performance of a stock or cryptocurrency
Measuring trend strength
Sustained movement above 1.0 line = strong uptrend
Sustained movement below 1.0 line = weak performance
This indicator helps you understand the overall health and momentum strength of an asset by showing the cumulative balance between gains and losses over time.
HARSI Cross Only by G.I.N.e TradingHARSI + SMA Indicator – Description
Indicator Name: HARSI + SMA
Type: Trend/momentum crossover
Displays: Column bars only when a crossover occurs
🧠 What is HARSI?
HARSI stands for Heikin-Ashi RSI.
It is a smoothed version of the traditional Relative Strength Index (RSI), enhanced by applying Heikin-Ashi-style smoothing to both:
The price (using smoothed open/close values), and
The RSI itself (via additional EMA smoothing).
This helps reduce noise, smooth out choppy movements, and highlight more reliable trend reversals.
⚙️ How the indicator works
This version of the indicator:
Calculates a smoothed HARSI value
Calculates a Simple Moving Average (SMA) of the HARSI (period configurable, typically 3 or 5)
Plots a column only when a crossover occurs:
Green column (+1): HARSI crosses above its SMA → potential long signal
Red column (-1): HARSI crosses below its SMA → potential short signal
Nothing is displayed between signals — making this a clean and non-distracting visual trigger tool.
ATR-Scaled Deviation OscillatorATR-DevOsc is a custom momentum-and-volatility adaptive oscillator that scales N-bar price momentum by its rolling deviation and then reacts dynamically to sudden ATR spikes. By shrinking the deviation window when true volatility surges, it amplifies extreme moves—making medium-term trend shifts and deep drawdowns far more likely to breach your predefined thresholds.
Key features include:
• configurable momentum length and separate deviation length for precise control over look-back periods
• ATR Reaction Multiplier to tune how strongly sudden volatility spikes contract the deviation, boosting oscillator amplitude during extreme moves
• independent upper and lower threshold inputs for clear long/short signal definitions
• integrated candle-coloring overlay to immediately visualize trend state on your price chart
• built-in alert conditions for both oscillator-threshold crossovers and ATR-reactive triggers
This indicator is particularly useful for swing traders seeking medium-term entry and exit points in highly volatile markets like BTC. It combines normalized momentum readings with true volatility feedback, so large drawdowns or breakouts generate unmistakable signal events while routine noise stays filtered.
Note: ATR-DevOsc is provided “as is” without formal robustness or optimization testing. Past performance is not indicative of future results; use in live trading only after sufficient back-testing and validation.
Year Dividers with LabelsDraws year start markers due visually show start of a year. Useful when looking at year seasonality and related factors
HMA Slope Colorata by G.I.N.e TradingDescription – HMA with Directional Color (Green/Red)
This indicator plots a Hull Moving Average (HMA) on the main chart and dynamically changes its color based on the slope of the line:
🟢 Green: When the HMA is rising (current value is greater than the previous one), indicating bullish momentum
🔴 Red: When the HMA is falling (current value is less than the previous one), indicating bearish momentum
💡 How it works:
The slope is calculated as the difference between the current and previous HMA value:
slope = HMA - HMA
The color change provides instant visual confirmation of the trend direction
It helps traders filter entries by aligning with the prevailing trend
📈 Use case:
Entry filter: Go long only when HMA is green, or short only when HMA is red
Trend confirmation: Combine with momentum or volume indicators for enhanced signal reliability
Works well in trending markets, especially when used with strategies that follow price direction
Multi‑TF Previous High/Low (Extends Both Ways + Labels)Use this indicator if you want to automate Support and Resistance levels.
Previous Day High and Low - Green Lines
Previous 4 Hour High and Low - Yellow Lines
Previous 1 Hour High and Low - Orange Lines
Previous 15 Minute High and Low - Light Blue Lines
Follow me on X-
@ADHDTRDR
Taiyoz Gaps1. Purpose
Tyoz Gaps highlights “gaps” between yesterday’s close and today’s open directly on your chart. A gap occurs when the opening price is significantly above or below the prior bar’s close. By drawing persistent boxes around each gap, you can instantly see where price left a void and monitor when (or if) that void gets completely filled.
2. Gap Detection Logic
Threshold: A gap is only detected if the open-to-previous-close difference exceeds a user-defined “Minimal Deviation” (percentage of the 14-bar average high-low range).
Direction:
Gap Up: today’s open > yesterday’s close
Gap Down: today’s open < yesterday’s close
3. Box Drawing
For each detected gap, the script draws a rectangular box spanning from yesterday’s close level to today’s open level.
Border & Fill Colors are configurable separately for up-gaps and down-gaps.
Boxes extend to the right as new bars form.
4. Display & Filtering Options
Show Gap Up / Show Gap Down toggles let you hide bullish or bearish gaps independently.
Max Number of Gaps: Limits how many boxes remain on-screen; oldest boxes are removed when the limit is exceeded.
Limit Max Gap Trail Length: Optionally force-close any gap box after a given number of bars, even if unfilled.
5. Closing Logic
Full-Fill Only: A gap box stays visible until price fully “fills” it—i.e., for an up-gap, price must exceed the top edge (yesterday’s close); for a down-gap, price must cross below the bottom edge.
Once filled, the box is removed and a “Gap Closed” alert flag is set.
6. Labels & Alerts
Each active gap can optionally show a label at the gap’s lower edge containing:
Absolute size (in price points) and percentage of the gap
Bar count since the gap formed
Label Text Color and Label Text Size are both user-configurable.
Two built-in alertcondition()s fire when a new gap appears or when a gap closes.
Desempenho 4ªs (MA)This Pine Script v5 indicator calculates the performance from Wednesday to Wednesday at 10:30 AM for the charted instrument. Every Wednesday at that time, it records the closing price and computes the percentage change, assigning a signal: +1 for increases above 1 %, -1 for declines below -1 %, and 0 for intermediate movements. It plots a five-period simple moving average on the main chart, color-coded green, red, or gray based on the weekly signal. Vertical dotted lines mark each weekly separation, and two blue horizontal lines denote the ±1 % thresholds for the current week. A label displays the performance percentage and signal.
Efficient Candle Range (ECR)Efficient Candle Range (ECR)
A custom-built concept designed to detect zones of efficient price movement, often signaling the start, pause, or end of an implied move.
What is the Efficient Candle Range?
The Efficient Candle Range (ECR) is a unique tool that identifies price zones based on efficient candles—candles with relatively small bodies and balanced wicks. These candles reflect balanced or orderly price action, and when grouped into a range, they can reveal areas of temporary equilibrium in the market.
Rather than focusing on single candles, ECR builds a range that dynamically adjusts as new efficient candles form. This gives traders an objective way to track potential areas of absorption, distribution, or transition.
Why use ECR?
Efficient candles often occur:
At the beginning of a new move, after a liquidity sweep or shift in sentiment
At the end of a strong move, as momentum fades
Within consolidation zones, where price trades in a balanced, indecisive state
While ECRs can appear in any market condition, their interpretation depends on context:
In a range, an ECR might just reflect sideways balance.
But after a sweep or breakout, it could signal a potential shift in direction or continuation.
A close outside the ECR often marks the end of that balance and the start of a new impulse.
How it works
The script detects efficient candles based on body-to-range ratio and wick symmetry.
Consecutive ECs are grouped into a live ECR box.
The box dynamically extends as long as price stays inside the high-low range.
Once a candle closes outside, the ECR is considered invalid (fades visually, but remains visible for reference).
Each active range is labeled "ECR" within the box for easy tracking.
Customizable in settings
Max body percentage of range
Max wick imbalance
Box and label color/transparency
Suggested usage
Let the ECR define your observation zone.
Instead of reacting immediately to an efficient candle, wait for a confirmed breakout from the ECR to validate the next move.
Whether you trade breakouts, reversals, or continuation setups, ECR provides an objective way to visualize price balance and understand when the market is likely to expand.
Designed for individual traders looking to build structure around efficient price movement — no specific methodology required.
Antirumore by G.I.N.e TradingCode Functions
Checks 5 conditions:
1. ADX > threshold
2. RSI outside the 45–55 neutral zone
3. Wide price range
4. Candle with a strong body
5. Consistent volume
Displays a colored bar in a lower panel:
🟩 Green = possible long entry
Ichimoku CloudStandard Ichimoku Cloud Implementation
The official Ichimoku Cloud indicator on TradingView applies an offset value of 1 to several lines, which deviates from Hosoda's original Ichimoku theory. This script rectifies that discrepancy, providing a more accurate representation of the Ichimoku Cloud.
MTF Dashboard 9 Timeframes + Signals# MTF Dashboard Pro - Multi-Timeframe Confluence Analysis System
## WHAT THIS SCRIPT DOES
This script creates a comprehensive dashboard that simultaneously analyzes market conditions across 9 different timeframes (1m, 5m, 15m, 30m, 1H, 4H, Daily, Weekly, Monthly) using a proprietary confluence scoring methodology. Unlike simple multi-timeframe displays that show individual indicators separately, this script combines trend analysis, momentum, volatility signals, and volume analysis into unified confluence scores for each timeframe.
## WHY THIS COMBINATION IS ORIGINAL AND USEFUL
**The Problem Solved:** Most traders manually check multiple timeframes and struggle to quickly assess overall market bias when different timeframes show conflicting signals. Existing MTF scripts typically display individual indicators without synthesizing them into actionable intelligence.
**The Solution:** This script implements a mathematical confluence algorithm that:
- Weights each indicator's signal strength (trend direction, RSI momentum, MACD volatility, volume analysis)
- Calculates normalized scores across all active timeframes
- Determines overall market bias with statistical confidence levels
- Provides instant visual feedback through color-coded symbols and star ratings
**Unique Features:**
1. **Confluence Scoring Algorithm**: Mathematically combines multiple indicator signals into a single confidence rating per timeframe
2. **Market Bias Engine**: Automatically calculates overall directional bias with percentage strength across all selected timeframes
3. **Dynamic Display System**: Real-time updates with customizable layouts, color schemes, and selective timeframe activation
4. **Statistical Analysis**: Provides bullish/bearish vote counts and overall confluence percentages
## HOW THE SCRIPT WORKS TECHNICALLY
### Core Calculation Methodology:
**1. Trend Analysis (EMA-based):**
- Fast EMA (default: 9) vs Slow EMA (default: 21) crossover analysis
- Returns values: +1 (bullish), -1 (bearish), 0 (neutral)
**2. Momentum Analysis (RSI-based):**
- RSI levels: >70 (strong bullish +2), >50 (bullish +1), <30 (strong bearish -2), <50 (bearish -1)
- Provides overbought/oversold context for trend confirmation
**3. Volatility Analysis (MACD-based):**
- MACD line vs Signal line positioning
- Histogram strength comparison with previous bar
- Combined score considering both direction and momentum strength
**4. Volume Analysis:**
- Current volume vs 20-period moving average
- Thresholds: >150% MA (strong +2), >100% MA (bullish +1), <50% MA (weak -2)
**5. Confluence Calculation:**
```
Confluence Score = (Trend + RSI + MACD + Volume) / 4.0
```
**6. Market Bias Determination:**
- Counts bullish vs bearish signals across all active timeframes
- Calculates bias strength percentage: |Bullish Count - Bearish Count| / Total Active TFs * 100
- Determines overall market direction: BULLISH, BEARISH, or NEUTRAL
### Multi-Timeframe Implementation:
Uses `request.security()` calls to fetch data from each timeframe, ensuring all calculations are performed on the respective timeframe's data rather than current chart timeframe, providing accurate multi-timeframe analysis.
## HOW TO USE THIS SCRIPT
### Initial Setup:
1. **Timeframe Selection**: Enable/disable specific timeframes in "Timeframe Selection" group based on your trading style
2. **Indicator Configuration**: Adjust EMA periods (Fast: 9, Slow: 21), RSI length (14), and MACD settings (12/26/9) to match your analysis preferences
3. **Display Options**: Choose table position, text size, and color scheme for optimal visibility
### Reading the Dashboard:
**Symbol Interpretation:**
- ⬆⬆ = Strong bullish signal (score ≥ 2)
- ⬆ = Bullish signal (score > 0)
- ➡ = Neutral signal (score = 0)
- ⬇ = Bearish signal (score < 0)
- ⬇⬇ = Strong bearish signal (score ≤ -2)
**Confluence Stars:**
- ★★★★★ = Very high confidence (score > 0.75)
- ★★★★☆ = High confidence (score > 0.5)
- ★★★☆☆ = Medium confidence (score > 0.25)
- ★★☆☆☆ = Low confidence (score > 0)
- ★☆☆☆☆ = Very low confidence (score > -0.25)
**Market Bias Section:**
- Shows overall market direction across all active timeframes
- Strength percentage indicates conviction level
- Overall confluence score represents average agreement across timeframes
### Trading Applications:
**Entry Signals:**
- Look for high confluence (4-5 stars) across multiple timeframes in same direction
- Higher timeframe alignment provides stronger signal validation
- Use confluence percentage >75% for high-probability setups
**Risk Management:**
- Lower timeframe conflicts may indicate choppy conditions
- Neutral bias suggests ranging market - adjust position sizing
- Strong bias with high confluence supports larger position sizes
**Timeframe Harmony:**
- Short-term trades: Focus on 1m-1H alignment
- Swing trades: Emphasize 1H-Daily alignment
- Position trades: Prioritize Daily-Monthly confluence
## SCRIPT SETTINGS EXPLANATION
### Dashboard Settings:
- **Table Position**: Choose optimal location (Top Right recommended for most layouts)
- **Text Size**: Adjust based on screen resolution and preferences
- **Color Scheme**: Professional (default), Classic, Vibrant, or Dark themes
- **Background Color/Transparency**: Customize table appearance
### Timeframe Selection:
All timeframes optional - activate based on trading timeframe preference:
- **Lower Timeframes (1m-30m)**: Scalping and day trading
- **Medium Timeframes (1H-4H)**: Swing trading
- **Higher Timeframes (D-M)**: Position trading and long-term bias
### Indicator Parameters:
- **Fast EMA (Default: 9)**: Shorter period for trend sensitivity
- **Slow EMA (Default: 21)**: Longer period for trend confirmation
- **RSI Length (Default: 14)**: Standard momentum calculation period
- **MACD Settings (12/26/9)**: Standard MACD configuration for volatility analysis
### Alert Configuration:
- **Strong Signals**: Alerts when confluence >75% with clear directional bias
- **High Confluence**: Alerts when multiple timeframes strongly agree
- All alerts use `alert.freq_once_per_bar` to prevent spam
## VISUAL FEATURES
### Chart Elements:
- **Background Coloring**: Subtle background tint reflects overall market bias
- **Signal Labels**: Strong buy/sell labels appear on chart during high-confluence signals
- **Clean Presentation**: Dashboard overlays chart without interfering with price action
### Color Coding:
- **Green/Bullish**: Various green shades for positive signals
- **Red/Bearish**: Various red shades for negative signals
- **Gray/Neutral**: Neutral color for conflicting or weak signals
- **Transparency**: Configurable transparency maintains chart readability
## IMPORTANT USAGE NOTES
**Realistic Expectations:**
- This tool provides analysis framework, not trading signals
- Always combine with proper risk management
- Past performance does not guarantee future results
- Market conditions can change rapidly - use appropriate position sizing
**Best Practices:**
- Verify signals with additional analysis methods
- Consider fundamental factors affecting the instrument
- Use appropriate timeframes for your trading style
- Regular parameter optimization may be beneficial for different market conditions
**Limitations:**
- Effectiveness may vary across different instruments and market conditions
- Confluence scoring is mathematical model - not predictive guarantee
- Requires understanding of underlying indicators for optimal use
This script serves as a comprehensive analysis tool for traders who need quick, organized access to multi-timeframe market information with statistical confidence levels.
BTC CME Futures Gaps (BTCGapHunt_CME)BTC CME Futures Gaps Indicator
Overview
This indicator visualises price gaps between the daily close and open of Bitcoin CME futures (CME:BTC1!). These gaps are often revisited ("filled") by market price action and may serve as technical targets.
Thanks
... to Maven and the Blockchain Masons (x.com/Masons_DAO) to push me on this topic.
What Is a CME Gap?
CME Bitcoin Futures do not trade 24/7. Gaps form when the market reopens at a different price than where it last closed.
Gaps are often used as support/resistance or liquidity targets.
This indicator tracks, visualises, and alerts on these gaps.
Key Features
Automatic gap detection using daily open/close on CME:BTC1!
Dynamic gap size threshold based on ATR (Average True Range)
Highlight unfilled gaps and track partial fills visually
Alerts for gap formation and fill events
Parameter overlay showing real-time settings
Supported and Overrideable Parameters
ATR Length: Defines the lookback period for ATR calculation (default: 14)
Gap Size Multiplier: Multiplies the ATR to set the dynamic gap threshold (default: 1.0)
Proximity Threshold: Price distance from gap edge to consider it filled (default: 100 USD)
Max Gaps Tracked: Maximum number of concurrent gaps shown (default: 50)
Alerts Enabled: Toggle alerts for gap formation and gap fill events
How the Gap Size Is Calculated
Minimum Gap Size = ATR(14) * Gap Size Multiplier
ATR Length and Gap Size Multiplier are configurable.
Gap threshold adjusts dynamically with market volatility.
Visual Guide
Red Box: Fully unfilled gap
Lemon Yellow Box: Partially filled gap
Right Margin Boxes: Snapshot of unfilled gaps for quick access
Top-Right Panel: Current ATR, Gap Size, Thresholds, etc.
Alerts
Gap Formed: A new gap is detected.
Gap Filled: The gap is either partially or fully filled.
Recommended Timeframes
1H, 4H, 1D (best resolution)
Designed for BTC spot/perpetual charts (e.g., BTCUSD, BTCUSDT)
How To Use
Add the script to your BTC chart.
Monitor red/yellow boxes for unfilled gaps.
Check config panel for current threshold and settings.
Enable alerts via TradingView for real-time updates.
Notes
Up to 50 gaps are tracked (adjustable).
Data source: CME futures via request.security.
All visuals and alerts are time-synced with your chart.
Disclaimer
This script is for educational purposes only. Trade at your own risk.
Daily EMA Cloud on Smaller TimeframesSee the daily cloud on any time frame... Colors and Exponential Moving Average (EMA) are adjustable settings.
ZenAlgo - ADXThis open-source indicator builds upon the official Average Directional Index (ADX) implementation by TradingView. It preserves the core logic of the original ADX while introducing additional visualization features, configurability, and analytical overlays to assist with directional strength analysis.
Core Calculation
The script computes the ADX, +DI, and -DI based on smoothed directional movement and true range over a user-defined length. The smoothing is performed using Wilder’s method, as in the original implementation.
True Range is calculated from the current high, low, and previous close.
Directional Movement components (+DM, -DM) are derived by comparing the change in highs and lows between consecutive bars.
These values are then smoothed, and the +DI and -DI are expressed as percentages of the smoothed True Range.
The difference between +DI and -DI is normalized to derive DX, which is further smoothed to yield the ADX value.
The indicator includes a selectable signal line (SMA or EMA) applied to the ADX for crossover-based visualization.
Visualization Enhancements
Several plots and conditions have been added to improve interpretability:
Color-coded histograms and lines visualize DI relative to a configurable threshold (default: 25). Colors follow the ZenAlgo color scheme.
Dynamic opacity and gradient coloring are used for both ADX and DI components, allowing users to distinguish weak/moderate/strong directional trends visually.
Mirrored ADX is internally calculated for certain overlays but not directly plotted.
The script also provides small circles and diamonds to highlight:
Crossovers between ADX and its signal line.
DI crossing above or below the 25 threshold.
Rising ADX confirmed by rising DI values, with point size reflecting ADX strength.
Divergence Detection
The indicator includes optional detection of fractal-based divergences on the DI curve:
Regular and hidden bullish and bearish divergences are identified based on relative fractal highs/lows in both price and DI.
Detected divergences are optionally labeled with 'R' (Regular) or 'H' (Hidden), and color-coded accordingly.
Fractal points are defined using 5-bar patterns to ensure consistency and reduce false positives.
ADX/DI Table
When enabled, a floating table displays live values and summaries:
ADX value , trend direction (rising/falling), and qualitative strength.
DI composite , trend direction, and relative strength.
Contextual power dynamics , describing whether bulls or bears are gaining or losing strength.
The background colors of the table reflect current trend strength and direction.
Interpretation Guidelines
ADX indicates the strength of a trend, regardless of its direction. Values below 20 are often considered weak, while those above 40 suggest strong trending conditions.
+DI and -DI represent bullish and bearish directional movements, respectively. Crossovers between them are used to infer trend direction.
When ADX is rising and either +DI or -DI is dominant and increasing, the trend is likely strengthening.
Divergences between DI and price may suggest potential reversals but should be interpreted cautiously and not in isolation.
The threshold line (default 25) provides a basic filter for ignoring low-strength conditions. This can be adjusted depending on the market or timeframe.
Added Value over Existing Indicators
Fully color-graded ADX and DI display for better visual clarity.
Optional signal MA over ADX with crossover markers.
Rich contextual labeling for both divergence and threshold events.
Power dynamics commentary and live table help users contextualize current momentum.
Customizable options for smoothing type, divergence display, table position, and visual offsets.
These additions aim to improve situational awareness without altering the fundamental meaning of ADX/DI values.
Limitations and Disclaimers
As with any ADX-based tool, this indicator does not indicate market direction alone —it measures strength, not trend bias.
Divergence detection relies on fractal patterns and may lag or produce false positives in sideways markets.
Signal MA crossovers and DI threshold breaks are not entry signals , but contextual markers that may assist with timing or filtering other systems.
The table text and labels are for visual assistance and do not replace proper technical analysis or market context.
Hurst Exponent Adaptive Filter (HEAF) [PhenLabs]📊 PhenLabs - Hurst Exponent Adaptive Filter (HEAF)
Version: PineScript™ v6
📌 Description
The Hurst Exponent Adaptive Filter (HEAF) is an advanced Pine Script indicator designed to dynamically adjust moving average calculations based on real time market regimes detected through the Hurst Exponent. The intention behind the creation of this indicator was not a buy/sell indicator but rather a tool to help sharpen traders ability to distinguish regimes in the market mathematically rather than guessing. By analyzing price persistence, it identifies whether the market is trending, mean-reverting, or exhibiting random walk behavior, automatically adapting the MA length to provide more responsive alerts in volatile conditions and smoother outputs in stable ones. This helps traders avoid false signals in choppy markets and capitalize on strong trends, making it ideal for adaptive trading strategies across various timeframes and assets.
Unlike traditional moving averages, HEAF incorporates fractal dimension analysis via the Hurst Exponent to create a self-tuning filter that evolves with market conditions. Traders benefit from visual cues like color coded regimes, adaptive bands for volatility channels, and an information panel that suggests appropriate strategies, enhancing decision making without constant manual adjustments by the user.
🚀 Points of Innovation
Dynamic MA length adjustment using Hurst Exponent for regime-aware filtering, reducing lag in trends and noise in ranges.
Integrated market regime classification (trending, mean-reverting, random) with visual and alert-based notifications.
Customizable color themes and adaptive bands that incorporate ATR for volatility-adjusted channels.
Built-in information panel providing real-time strategy recommendations based on detected regimes.
Power sensitivity parameter to fine-tune adaptation aggressiveness, allowing personalization for different trading styles.
Support for multiple MA types (EMA, SMA, WMA) within an adaptive framework.
🔧 Core Components
Hurst Exponent Calculation: Computes the fractal dimension of price series over a user-defined lookback to detect market persistence or anti-persistence.
Adaptive Length Mechanism: Maps Hurst values to MA lengths between minimum and maximum bounds, using a power function for sensitivity control.
Moving Average Engine: Applies the chosen MA type (EMA, SMA, or WMA) to the adaptive length for the core filter line.
Adaptive Bands: Creates upper and lower channels using ATR multiplied by a band factor, scaled to the current adaptive length.
Regime Detection: Classifies market state with thresholds (e.g., >0.55 for trending) and triggers alerts on regime changes.
Visualization System: Includes gradient fills, regime-colored MA lines, and an info panel for at-a-glance insights.
🔥 Key Features
Regime-Adaptive Filtering: Automatically shortens MA in mean-reverting markets for quick responses and lengthens it in trends for smoother signals, helping traders stay aligned with market dynamics.
Custom Alerts: Notifies on regime shifts and band breakouts, enabling timely strategy adjustments like switching to trend-following in bullish regimes.
Visual Enhancements: Color-coded MA lines, gradient band fills, and an optional info panel that displays market state and trading tips, improving chart readability.
Flexible Settings: Adjustable lookback, min/max lengths, sensitivity power, MA type, and themes to suit various assets and timeframes.
Band Breakout Signals: Highlights potential overbought/oversold conditions via ATR-based channels, useful for entry/exit timing.
🎨 Visualization
Main Adaptive MA Line: Plotted with regime-based colors (e.g., green for trending) to visually indicate market state and filter position relative to price.
Adaptive Bands: Upper and lower lines with gradient fills between them, showing volatility channels that widen in random regimes and tighten in trends.
Price vs. MA Fills: Color-coded areas between price and MA (e.g., bullish green above MA in trending modes) for quick trend strength assessment.
Information Panel: Top-right table displaying current regime (e.g., "Trending Market") and strategy suggestions like "Follow trends" or "Trade ranges."
📖 Usage Guidelines
Core Settings
Hurst Lookback Period
Default: 100
Range: 20-500
Description: Sets the period for Hurst Exponent calculation; longer values provide more stable regime detection but may lag, while shorter ones are more responsive to recent changes.
Minimum MA Length
Default: 10
Range: 5-50
Description: Defines the shortest possible adaptive MA length, ideal for fast responses in mean-reverting conditions.
Maximum MA Length
Default: 200
Range: 50-500
Description: Sets the longest adaptive MA length for smoothing in strong trends; adjust based on asset volatility.
Sensitivity Power
Default: 2.0
Range: 1.0-5.0
Description: Controls how aggressively the length adapts to Hurst changes; higher values make it more sensitive to regime shifts.
MA Type
Default: EMA
Options: EMA, SMA, WMA
Description: Chooses the moving average calculation method; EMA is more responsive, while SMA/WMA offer different weighting.
🖼️ Visual Settings
Show Adaptive Bands
Default: True
Description: Toggles visibility of upper/lower bands for volatility channels.
Band Multiplier
Default: 1.5
Range: 0.5-3.0
Description: Scales band width using ATR; higher values create wider channels for conservative signals.
Show Information Panel
Default: True
Description: Displays regime info and strategy tips in a top-right panel.
MA Line Width
Default: 2
Range: 1-5
Description: Adjusts thickness of the main MA line for better visibility.
Color Theme
Default: Blue
Options: Blue, Classic, Dark Purple, Vibrant
Description: Selects color scheme for MA, bands, and fills to match user preferences.
🚨 Alert Settings
Enable Alerts
Default: True
Description: Activates notifications for regime changes and band breakouts.
✅ Best Use Cases
Trend-Following Strategies: In detected trending regimes, use the adaptive MA as a trailing stop or entry filter for momentum trades.
Range Trading: During mean-reverting periods, monitor band breakouts for buying dips or selling rallies within channels.
Risk Management in Random Markets: Reduce exposure when random walk is detected, using tight stops suggested in the info panel.
Multi-Timeframe Analysis: Apply on higher timeframes for regime confirmation, then drill down to lower ones for entries.
Volatility-Based Entries: Use upper/lower band crossovers as signals in adaptive channels for overbought/oversold trades.
⚠️ Limitations
Lagging in Transitions: Regime detection may delay during rapid market shifts, requiring confirmation from other tools.
Not a Standalone System: Best used in conjunction with other indicators; random regimes can lead to whipsaws if traded aggressively.
Parameter Sensitivity: Optimal settings vary by asset and timeframe, necessitating backtesting.
💡 What Makes This Unique
Hurst-Driven Adaptation: Unlike static MAs, it uses fractal analysis to self-tune, providing regime-specific filtering that's rare in standard indicators.
Integrated Strategy Guidance: The info panel offers actionable tips tied to regimes, bridging analysis and execution.
Multi-Regime Visualization: Combines adaptive bands, colored fills, and alerts in one tool for comprehensive market state awareness.
🔬 How It Works
Hurst Exponent Computation:
Calculates log returns over the lookback period to derive the rescaled range (R/S) ratio.
Normalizes to a 0-1 value, where >0.55 indicates trending, <0.45 mean-reverting, and in-between random.
Length Adaptation:
Maps normalized Hurst to an MA length via a power function, clamping between min and max.
Applies the selected MA type to close prices using this dynamic length.
Visualization and Signals:
Plots the MA with regime colors, adds ATR-based bands, and fills areas for trend strength.
Triggers alerts on regime changes or band crosses, with the info panel suggesting strategies like momentum riding in trends.
💡 Note:
For optimal results, backtest settings on your preferred assets and combine with volume or momentum indicators. Remember, no indicator guarantees profits—use with proper risk management. Access premium features and support at PhenLabs.
Ayman Entry Signal – Ultimate PRO (Scalping Gold Settings)1. Overview
This indicator is a professional gold scalping tool built for TradingView using Pine Script v6.
It combines multiple price action and technical filters to generate high-probability Buy/Sell signals with built-in trade management features (TP1, TP2, SL, Break Even, Partial Close, Stats tracking).
It is optimized for XAUUSD but can be applied to other assets with proper setting adjustments.
2. Key Features
Multi-Condition Trade Signals – EMA trend, Break of Structure, Order Blocks, FVG, Liquidity Sweeps, Pin Bars, Higher Timeframe confirmation, Trend Cloud, SMA Cross, and ADX.
Full Trade Management – Auto-calculates lot size, SL, TP1, TP2, Break Even, Partial Close.
Dynamic Chart Drawing – Entry lines, SL/TP lines, trade boxes, and real-time PnL.
Statistics Panel – Tracks wins, losses, breakeven trades, and total PnL over selected dates.
Customizable Filters – All filters can be turned ON/OFF to match your strategy.
3. Main Inputs & Settings
Account Settings
Capital ($) – Total trading capital.
Risk Percentage (%) – Risk per trade.
TP to SL Ratio – Risk-to-reward ratio.
Value Per Point ($) – Value per pip/point for lot size calculation.
SL Buffer – Extra points added to SL to avoid stop hunts.
Take Profit Settings
TP1 % of Full Target – Fraction of TP1 compared to TP2.
Move SL to Entry after TP1? – Activates Break Even after TP1.
Break Even Buffer – Extra points when moving SL to BE.
Take Partial Close at TP1 – Option to close half at TP1.
Signal Filters
ATR Period – For SL/TP calculation buffer.
EMA Trend – Uses EMA 9/21 crossover for trend.
Break of Structure (BoS) – Requires structure break confirmation.
Order Block (OB) – Validates trades within OB zones.
Fair Value Gap (FVG) – Confirms trades inside FVGs.
Liquidity Sweep – Checks if liquidity zones are swept.
Pin Bar Confirmation – Uses candlestick patterns for extra confirmation.
Pin Bar Body Ratio – Controls strictness of Pin Bar filter.
Higher Timeframe Filters (HTF)
HTF EMA Confirmation – Confirms lower timeframe trades with higher timeframe trend.
HTF BoS – Confirms with higher timeframe structure break.
HTF Timeframe – Selects higher timeframe.
Advanced Filters
SuperTrend Filter – Confirms trades based on SuperTrend.
ADX Filter – Filters out low volatility periods.
SMA Cross Filter – Uses SMA 8/9 cross as filter.
Trend Cloud Filter – Uses EMA 50/200 as a cloud trend filter.
4. How It Works
Buy Signal Conditions
EMA 9 > EMA 21 (trend bullish)
Optional filters (BoS, OB, FVG, Liquidity Sweep, Pin Bar, HTF confirmations, ADX, SMA Cross, Trend Cloud) must pass if enabled.
When all active filters pass → Buy signal triggers.
Sell Signal Conditions
EMA 9 < EMA 21 (trend bearish)
Same filtering process but for bearish conditions.
When all active filters pass → Sell signal triggers.
5. Trade Execution & Management
When a signal triggers:
Lot size is auto-calculated based on risk % and SL distance.
SL is placed beyond recent swing high/low + ATR buffer.
TP1 and TP2 are calculated from the SL using the reward-to-risk ratio.
Break Even: If enabled, SL moves to entry price after TP1 is hit.
Partial Close: If enabled, half of the position closes at TP1.
Trade Exit: Full exit at TP2, SL hit, or partial close at TP1.
6. Chart Display
Entry Line – Shows entry price.
SL Line – Red dashed line at stop loss level.
TP1 Line – Lime dashed line for TP1.
TP2 Line – Green dashed line for TP2.
PnL Labels – Displays real-time profit/loss in $.
Trade Box – Visual area showing trade range.
Pin Bar Shapes – Optional, marks Pin Bars.
7. Statistics Panel
Stats Header – Shows “Stats”.
Total Trades
Wins
Losses
Breakeven Trades
Total PnL
Can be reset or filtered by date.
8. How to Use
Load the Indicator in TradingView.
Select Gold (XAUUSD) on your preferred scalping timeframe (1m, 5m, 15m).
Adjust settings:
Use default gold scalping settings for quick start.
Enable/disable filters according to your style.
Wait for a Buy/Sell alert.
Confirm visually that all desired conditions align.
Place trade with calculated lot size, SL, and TP levels shown on chart.
Let trade run – the indicator manages Break Even & Partial Close if enabled.
9. Recommended Timeframes
Scalping: 1m, 5m, 15m
Day Trading: 15m, 30m, 1H
Swing: 4H, Daily (adjust settings accordingly)
Hilega-Milega by NK Sir (DalRoti)he "Hilega-Milega" indicator is a visual tool to:
Show RSI strength around the 50 level.
Highlight momentum visually with color fills.
Plot fast and slow moving averages of RSI (EMA 3 and WMA 21), giving insight into:
Short-term momentum vs. long-term strength
Potential reversals or trend continuation zones
Dark Pool Block Trades - Institutional Volume📊 Dark Pool Block Trades - Institutional Volume
Visualize where institutional money positions before major price moves occur. This indicator reveals hidden dark pool block trades that often precede significant price movements - because when smart money deploys millions and billions in strategic accumulation or distribution, retail traders need to see where it's happening.
🎯 WHY DARK POOL DATA MATTERS:
Institutions don't move large capital randomly. Dark pool block trades represent strategic positioning by sophisticated money managers with superior research and conviction. These trades create hidden support/resistance levels that often predict future price action.
The key principle: Follow institutional flow, don't fight it. When institutions get involved, they create high-probability trading opportunities.
💰 HOW INSTITUTIONS INFLUENCE PRICE:
- Large block trades establish hidden accumulation/distribution zones
- Smart money builds positions BEFORE retail awareness increases
- Institutional activity creates "footprints" at key technical levels
- These trades often signal conviction plays ahead of major moves
- Institutions typically add to winning positions throughout trends
🔍 WHAT THIS INDICATOR SHOWS:
- Visual overlay of dark pool block trades directly on price charts
- Track institutional positioning across major stocks and ETFs
- Identify accumulation/distribution zones before they become obvious to retail
- Spot high-conviction institutional trades in real-time visualization
- Customizable block trade size filters and timeframe selection
- Historical institutional activity up to 5 years or custom ranges
💡 THE TRADING ADVANTAGE:
Instead of guessing price direction, see where institutions are already positioning. When large block trades appear in dark pools, you're witnessing strategic institutional commitment that frequently leads to significant price movements.
⚡ HOW IT WORKS:
This Pine Script displays institutional dark pool transactions as visual markers on your charts. The script comes with sample data for immediate use. For expanded ticker coverage and real-time updates, external data services are available.
🎯 IDEAL FOR:
- Swing traders following institutional footprints
- Traders seeking setups backed by smart money conviction
- Position traders looking for accumulation zones
- Anyone wanting to align with institutional flow rather than fight it
🔄 SAMPLE DATA INCLUDED:
Pre-loaded with institutional activity data across popular tickers, updated daily to demonstrate how dark pool activity correlates with future price movements.
The script initially covers these tickers going back 6 months showing the top 10 trades by volume over 400,000 shares: AAPL, AMD, AMZN, ARKK, ARKW, BAC, BITO, COIN, COST, DIA, ETHA, GLD, GOOGL, HD, HYG, IBB, IWM, JNJ, JPM, LQD, MA, META, MSFT, NVDA, PG, QQQ, RIOT, SLV, SMCI, SMH, SOXX, SPY, TLT, TSLA, UNH, USO, V, VEA, VNQ, VOO, VTI, VWO, WMT, XLE, XLF, XLK, XLU, XLV, XLY
RS to BTC – EYASU V1RS to BTC – Full Suite
📝 Description:
This script tracks the relative strength of any coin against Bitcoin (RSBTC) in real-time. It is designed for altcoin traders who want to identify which coins are outperforming or underperforming BTC across multiple timeframes.
Features:
📈 RSBTC Line: Real-time plot of the altcoin’s price divided by BTC price
🟦 RSBTC Moving Average: Smooths the RS line to help identify trends
🔵 RSBTC RSI (Hidden by default): Highlights momentum of RS to detect overbought/oversold zones
🚨 Alerts: Set alerts for RSBTC crossing its moving average and RSI levels
Ideal for:
Spotting early altcoin breakouts
Timing entries/exits based on BTC-relative performance
Filtering for strong/weak coins before macro news
📱 Fully mobile compatible. Load it on any USDT chart — it auto-detects BTC and gives RS instantly.
Created by: @Eyasustock
License: Mozilla Public License 2.0
Moby Tick Prints - version 1.0.0Prints are aggregated by date and price. If there are multiple trades on the same day at the same price, they are added and represented in the Shares column