HEMA Trend Levels [AlgoAlpha]OVERVIEW
This script plots two Hull-EMA (HEMA) curves to define a color-coded dynamic trend zone and generate context-aware breakout levels, allowing traders to easily visualize prevailing momentum and identify high-probability breakout retests. The script blends smoothed price tracking with conditional box plotting, delivering both trend-following and mean-reversion signals within one system. It is designed to be simple to read visually while offering nuanced trend shifts and test confirmations.
█ CONCEPTS
The Hull-EMA (HEMA) is a hybrid moving average combining the responsiveness of short EMAs with the smoothness of longer ones. It applies layered smoothing: first by subtracting a full EMA from a half-length EMA (doubling the short EMA's weight), and then by smoothing the result again with the square root of the original length. This process reduces lag while maintaining clarity in direction changes. In this script, two HEMAs—fast and slow—are used to define the trend structure and trigger events when they cross. These crossovers generate "trend shift boxes"—temporary support or resistance zones drawn immediately after trend transitions—to detect price retests in the new direction. When price cleanly retests these levels, the script marks them as confirmations with triangle symbols, helping traders isolate better continuation setups. Color-coded bars further enhance visual interpretation: bullish bars when price is above both HEMAs, bearish when below, and neutral (gray) when indecisive.
█ FEATURES
Bullish and bearish bar coloring based on price and HEMA alignment.
Box plotting at each crossover (bullish or bearish) to create short-term decision zones.
Real-time test detection: price must cleanly test and bounce from box levels to be considered valid.
Multiple alert conditions: crossover alerts, test alerts, and trend continuation alerts.
█ USAGE
Use this indicator on any time frame and asset. Adjust HEMA lengths to match your trading style—shorter lengths for scalping or intraday, longer for swing trading. The shaded area between HEMAs helps visually define the current trend. Watch for crossovers: a bullish crossover plots a green support box just below price, and a bearish one plots a red resistance box just above. These zones act as short-term decision points. When price returns to test a box and confirms with strong rejection (e.g., closes above for bullish or below for bearish), a triangle symbol is plotted. These tests can signal strong trend continuation. For traders looking for clean entries, combining the crossover with a successful retest improves reliability. Alerts can be enabled for all key signals: trend shift, test confirmations, and continuation conditions, making it suitable for automated setups or discretionary traders tracking multiple charts.
Trend Analysis
Multi-Anchored Linear Regression Channels [TANHEF]█ Overview:
The 'Multi-Anchored Linear Regression Channels ' plots multiple dynamic regression channels (or bands) with unique selectable calculation types for both regression and deviation. It leverages a variety of techniques, customizable anchor sources to determine regression lengths, and user-defined criteria to highlight potential opportunities.
Before getting started, it's worth exploring all sections, but make sure to review the Setup & Configuration section in particular. It covers key parameters like anchor type, regression length, bias, and signal criteria—essential for aligning the tool with your trading strategy.
█ Key Features:
⯁ Multi-Regression Capability:
Plot up to three distinct regression channels and/or bands simultaneously, each with customizable anchor types to define their length.
⯁ Regression & Deviation Methods:
Regressions Types:
Standard: Uses ordinary least squares to compute a simple linear trend by averaging the data and deriving a slope and endpoints over the lookback period.
Ridge: Introduces L2 regularization to stabilize the slope by penalizing large coefficients, which helps mitigate multicollinearity in the data.
Lasso: Uses L1 regularization through soft-thresholding to shrink less important coefficients, yielding a simpler model that highlights key trends.
Elastic Net: Combines L1 and L2 penalties to balance coefficient shrinkage and selection, producing a robust weighted slope that handles redundant predictors.
Huber: Implements the Huber loss with iteratively reweighted least squares (IRLS) and EMA-style weights to reduce the impact of outliers while estimating the slope.
Least Absolute Deviations (LAD): Reduces absolute errors using iteratively reweighted least squares (IRLS), yielding a slope less sensitive to outliers than squared-error methods.
Bayesian Linear: Merges prior beliefs with weighted data through Bayesian updating, balancing the prior slope with data evidence to derive a probabilistic trend.
Deviation Types:
Regressive Linear (Reverse): In reverse order (recent to oldest), compute weighted squared differences between the data and a line defined by a starting value and slope.
Progressive Linear (Forward): In forward order (oldest to recent), compute weighted squared differences between the data and a line defined by a starting value and slope.
Balanced Linear: In forward order (oldest to newest), compute regression, then pair to source data in reverse order (newest to oldest) to compute weighted squared differences.
Mean Absolute: Compute weighted absolute differences between each data point and its regression line value, then aggregate them to yield an average deviation.
Median Absolute: Determine the weighted median of the absolute differences between each data point and its regression line value to capture the central tendency of deviations.
Percent: Compute deviation as a percentage of a base value by multiplying that base by the specified percentage, yielding symmetric positive and negative deviations.
Fitted: Compare a regression line with high and low series values by computing weighted differences to determine the maximum upward and downward deviations.
Average True Range: Iteratively compute the weighted average of absolute differences between the data and its regression line to yield an ATR-style deviation measure.
Bias:
Bias: Applies EMA or inverse-EMA style weighting to both Regression and/or Deviation, emphasizing either recent or older data.
⯁ Customizable Regression Length via Anchors:
Anchor Types:
Fixed: Length.
Bar-Based: Bar Highest/Lowest, Volume Highest/Lowest, Spread Highest/Lowest.
Correlation: R Zero, R Highest, R Lowest, R Absolute.
Slope: Slope Zero, Slope Highest, Slope Lowest, Slope Absolute.
Indicator-Based: Indicators Highest/Lowest (ADX, ATR, BBW, CCI, MACD, RSI, Stoch).
Time-Based: Time (Day, Week, Month, Quarter, Year, Decade, Custom).
Session-Based: Session (Tokyo, London, New York, Sydney, Custom).
Event-Based: Earnings, Dividends, Splits.
External: Input Source Highest/Lowest.
Length Selection:
Maximum: The highest allowed regression length (also fixed value of “Length” anchor).
Minimum: The shortest allowed length, ensuring enough bars for a valid regression.
Step: The sampling interval (e.g., 1 checks every bar, 2 checks every other bar, etc.). Increasing the step reduces the loading time, most applicable to “Slope” and “R” anchors.
Adaptive lookback:
Adaptive Lookback: Enable to display regression regardless of too few historical bars.
⯁ Selecting Bias:
Bias applies separately to regression and deviation.
Positive values emphasize recent data (EMA-style), negative invert, and near-zero maintains balance. (e.g., a length 100, bias +1 gives the newest price ~7× more weight than the oldest).
It's best to apply bias to both (regression and deviation) or just the deviation. Biasing only regression may distort deviation visually, while biasing both keeps their relationship intuitive. Using bias only for deviation scales it without altering regression, offering unique analysis.
⯁ Scale Awareness:
Supports linear and logarithmic price scaling, the regression and deviations adjust accordingly.
⯁ Signal Generation & Alerts:
Customizable entry/exit signals and alerts, detailed in the dedicated section below.
⯁ Visual Enhancements & Real-World Examples:
Optional on-chart table display summarizing regression input criteria (display type, anchor type, source, regression type, regression bias, deviation type, deviation bias, deviation multiplier) and key calculated metrics (regression length, slope, Pearson’s R, percentage position within deviations, etc.) for quick reference.
█ Understanding R (Pearson Correlation Coefficient):
Pearson’s R gauges data alignment to a straight-line trend within the regression length:
Range: R varies between –1 and +1.
R = +1 → Perfect positive correlation (strong uptrend).
R = 0 → No linear relationship detected.
R = –1 → Perfect negative correlation (strong downtrend).
This script uses Pearson’s R as an anchor, adjusting regression length to target specific R traits. Strong R (±1) follows the regression channel, while weak R (0) shows inconsistency.
█ Understanding the Slope:
The slope is the direction and rate at which the regression line rises or falls per bar:
Positive Slope (>0): Uptrend – Steeper means faster increase.
Negative Slope (<0): Downtrend – Steeper means sharper drop.
Zero or Near-Zero Slope: Sideways – Indicating range-bound conditions.
This script uses highest and lowest slope as an anchor, where extremes highlight strong moves and trend lines, while values near zero indicate sideways action and possible support/resistance.
█ Setup & Configuration:
Whether you’re new to this script or want to quickly adjust all critical parameters, the panel below shows the main settings available. You can customize everything from the anchor type and maximum length to the bias, signal conditions, and more.
Scale (select Log Scale for logarithmic, otherwise linear scale).
Display (regression channel and/or bands).
Anchor (how regression length is determined).
Length (control bars analyzed):
• Max – Upper limit.
• Min – Prevents regression from becoming too short.
• Step – Controls scanning precision; increasing Step reduces load time.
Regression:
• Type – Calculation method.
• Bias – EMA-style emphasis (>0=new bars weighted more; <0=old bars weighted more).
Deviation:
• Type – Calculation method.
• Bias – EMA-style emphasis (>0=new bars weighted more; <0=old bars weighted more).
• Multiplier - Adjusts Upper and Lower Deviation.
Signal Criteria:
• % (Price vs Deviation) – (0% = lower deviation, 50% = regression, 100% = upper deviation).
• R – (0 = no correlation, ±1 = perfect correlation; >0 = +slope, <0 = -slope).
Table (analyze table of input settings, calculated results, and signal criteria).
Adaptive Lookback (display regression while too few historical bars).
Multiple Regressions (steps 2 to 7 apply to #1, #2, and #3 regressions).
█ Signal Generation & Alerts:
The script offers customizable entry and exit signals with flexible criteria and visual cues (background color, dots, or triangles). Alerts can also be triggered for these opportunities.
Percent Direction Criteria:
(0% = lower deviation, 50% = regression line, 100% = upper deviation)
Above %: Triggers if price is above a specified percent of the deviation channel.
Below %: Triggers if price is below a specified percent of the deviation channel.
(Blank): Ignores the percent‐based condition.
Pearson's R (Correlation) Direction Criteria:
(0 = no correlation, ±1 = perfect correlation; >0 = positive slope, <0 = negative slope)
Above R / Below R: Compares the correlation to a threshold.
Above│R│ / Below│R│: Uses absolute correlation to focus on strength, ignoring direction.
Zero to R: Checks if R is in the 0-to-threshold range.
(Blank): Ignores correlation-based conditions.
█ User Tips & Best Practices:
Choose an anchor type that suits your strategy, “Bar Highest/Lowest” automatically spots commonly used regression zones, while “│R│ Highest” targets strong linear trends.
Consider enabling or disabling the Adaptive Lookback feature to ensure you always have a plotted regression if your chart doesn’t meet the maximum-length requirement.
Use a small Step size (1) unless relying on R-correlation or slope-based anchors as the are time-consuming to calculate. Larger steps speed up calculations but reduce precision.
Fine-tune settings such as lookback periods, regression bias, and deviation multipliers, or trend strength. Small adjustments can significantly affect how channels and signals behave.
To reduce loading time , show only channels (not bands) and disable signals, this limits calculations to the last bar and supports more extreme criteria.
Use the table display to monitor anchor type, calculated length, slope, R value, and percent location at a glance—especially if you have multiple regressions visible simultaneously.
█ Conclusion:
With its blend of advanced regression techniques, flexible deviation options, and a wide range of anchor types, this indicator offers a highly adaptable linear regression channeling system. Whether you're anchoring to time, price extremes, correlation, slope, or external events, the tool can be shaped to fit a variety of strategies. Combined with customizable signals and alerts, it may help highlight areas of confluence and support a more structured approach to identifying potential opportunities.
Trendline Breaks with Multi Fibonacci Supertrend StrategyTMFS Strategy: Advanced Trendline Breakouts with Multi-Fibonacci Supertrend
Elevate your algorithmic trading with institutional-grade signal confluence
Strategy Genesis & Evolution
This advanced trading system represents the culmination of a personal research journey, evolving from my custom " Multi Fibonacci Supertrend with Signals " indicator into a comprehensive trading strategy. Built upon the exceptional trendline detection methodology pioneered by LuxAlgo in their " Trendlines with Breaks " indicator, I've engineered a systematic framework that integrates multiple technical factors into a cohesive trading system.
Core Fibonacci Principles
At the heart of this strategy lies the Fibonacci sequence application to volatility measurement:
// Fibonacci-based factors for multiple Supertrend calculations
factor1 = input.float(0.618, 'Factor 1 (Weak/Fibonacci)', minval = 0.01, step = 0.01)
factor2 = input.float(1.618, 'Factor 2 (Medium/Golden Ratio)', minval = 0.01, step = 0.01)
factor3 = input.float(2.618, 'Factor 3 (Strong/Extended Fib)', minval = 0.01, step = 0.01)
These precise Fibonacci ratios create a dynamic volatility envelope that adapts to changing market conditions while maintaining mathematical harmony with natural price movements.
Dynamic Trendline Detection
The strategy incorporates LuxAlgo's pioneering approach to trendline detection:
// Pivotal swing detection (inspired by LuxAlgo)
pivot_high = ta.pivothigh(swing_length, swing_length)
pivot_low = ta.pivotlow(swing_length, swing_length)
// Dynamic slope calculation using ATR
slope = atr_value / swing_length * atr_multiplier
// Update trendlines based on pivot detection
if bool(pivot_high)
upper_slope := slope
upper_trendline := pivot_high
else
upper_trendline := nz(upper_trendline) - nz(upper_slope)
This adaptive trendline approach automatically identifies key structural market boundaries, adjusting in real-time to evolving chart patterns.
Breakout State Management
The strategy implements sophisticated state tracking for breakout detection:
// Track breakouts with state variables
var int upper_breakout_state = 0
var int lower_breakout_state = 0
// Update breakout state when price crosses trendlines
upper_breakout_state := bool(pivot_high) ? 0 : close > upper_trendline ? 1 : upper_breakout_state
lower_breakout_state := bool(pivot_low) ? 0 : close < lower_trendline ? 1 : lower_breakout_state
// Detect new breakouts (state transitions)
bool new_upper_breakout = upper_breakout_state > upper_breakout_state
bool new_lower_breakout = lower_breakout_state > lower_breakout_state
This state-based approach enables precise identification of the exact moment when price breaks through a significant trendline.
Multi-Factor Signal Confluence
Entry signals require confirmation from multiple technical factors:
// Define entry conditions with multi-factor confluence
long_entry_condition = enable_long_positions and
upper_breakout_state > upper_breakout_state and // New trendline breakout
di_plus > di_minus and // Bullish DMI confirmation
close > smoothed_trend // Price above Supertrend envelope
// Execute trades only with full confirmation
if long_entry_condition
strategy.entry('L', strategy.long, comment = "LONG")
This strict requirement for confluence significantly reduces false signals and improves the quality of trade entries.
Advanced Risk Management
The strategy includes sophisticated risk controls with multiple methodologies:
// Calculate stop loss based on selected method
get_long_stop_loss_price(base_price) =>
switch stop_loss_method
'PERC' => base_price * (1 - long_stop_loss_percent)
'ATR' => base_price - long_stop_loss_atr_multiplier * entry_atr
'RR' => base_price - (get_long_take_profit_price() - base_price) / long_risk_reward_ratio
=> na
// Implement trailing functionality
strategy.exit(
id = 'Long Take Profit / Stop Loss',
from_entry = 'L',
qty_percent = take_profit_quantity_percent,
limit = trailing_take_profit_enabled ? na : long_take_profit_price,
stop = long_stop_loss_price,
trail_price = trailing_take_profit_enabled ? long_take_profit_price : na,
trail_offset = trailing_take_profit_enabled ? long_trailing_tp_step_ticks : na,
comment = "TP/SL Triggered"
)
This flexible approach adapts to varying market conditions while providing comprehensive downside protection.
Performance Characteristics
Rigorous backtesting demonstrates exceptional capital appreciation potential with impressive risk-adjusted metrics:
Remarkable total return profile (1,517%+)
Strong Sortino ratio (3.691) indicating superior downside risk control
Profit factor of 1.924 across all trades (2.153 for long positions)
Win rate exceeding 35% with balanced distribution across varied market conditions
Institutional Considerations
The strategy architecture addresses execution complexities faced by institutional participants with temporal filtering and date-range capabilities:
// Time Filter settings with flexible timezone support
import jason5480/time_filters/5 as time_filter
src_timezone = input.string(defval = 'Exchange', title = 'Source Timezone')
dst_timezone = input.string(defval = 'Exchange', title = 'Destination Timezone')
// Date range filtering for precise execution windows
use_from_date = input.bool(defval = true, title = 'Enable Start Date')
from_date = input.time(defval = timestamp('01 Jan 2022 00:00'), title = 'Start Date')
// Validate trading permission based on temporal constraints
date_filter_approved = time_filter.is_in_date_range(
use_from_date, from_date, use_to_date, to_date, src_timezone, dst_timezone
)
These capabilities enable precise execution timing and market session optimization critical for larger market participants.
Acknowledgments
Special thanks to LuxAlgo for the pioneering work on trendline detection and breakout identification that inspired elements of this strategy. Their innovative approach to technical analysis provided a valuable foundation upon which I could build my Fibonacci-based methodology.
This strategy is shared under the same Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license as LuxAlgo's original work.
Past performance is not indicative of future results. Conduct thorough analysis before implementing any algorithmic strategy.
Low Liquidity Zones [PhenLabs]📊 Low Liquidity Zones
Version: PineScript™ v6
📌 Description
Low Liquidity Zones identifies and highlights periods of unusually low trading volume on your chart, marking areas where price movement occurred with minimal participation. These zones often represent potential support and resistance levels that may be more susceptible to price breakouts or reversals when revisited with higher volume.
Unlike traditional volume analysis tools that focus on high volume spikes, this indicator specializes in detecting low liquidity areas where price moved with minimal resistance. Each zone displays its volume delta, providing insight into buying vs. selling pressure during these thin liquidity periods. This combination of low volume detection and delta analysis helps traders identify potential price inefficiencies and weak structures in the market.
🚀 Points of Innovation
• Identifies low liquidity zones that most volume indicators overlook but which often become significant technical levels
• Displays volume delta within each zone, showing net buying/selling pressure during low liquidity periods
• Dynamically adjusts to different timeframes, allowing analysis across multiple time horizons
• Filters zones by maximum size percentage to focus only on precise price levels
• Maintains historical zones until they expire based on your lookback settings, creating a cumulative map of potential support/resistance areas
🔧 Core Components
• Low Volume Detection: Identifies candles where volume falls below a specified threshold relative to recent average volume, highlighting potential liquidity gaps.
• Volume Delta Analysis: Calculates and displays the net buying/selling pressure within each low liquidity zone, providing insight into the directional bias during low participation periods.
• Dynamic Timeframe Adjustment: Automatically scales analysis periods to match your selected timeframe preference, ensuring consistent identification of low liquidity zones regardless of chart settings.
• Zone Management System: Creates, tracks, and expires low liquidity zones based on your configured settings, maintaining visual clarity on the chart.
🔥 Key Features
• Low Volume Identification: Automatically detects and highlights candles where volume falls below your specified threshold compared to the moving average.
• Volume Delta Visualization: Shows the net volume delta within each zone, providing insight into whether buyers or sellers were dominant despite the low overall volume.
• Flexible Timeframe Analysis: Analyze low liquidity zones across multiple predefined timeframes or use a custom lookback period specific to your trading style.
• Zone Size Filtering: Filters out excessively large zones to focus only on precise price levels, improving signal quality.
• Automatic Zone Expiration: Older zones are automatically removed after your specified lookback period to maintain a clean, relevant chart display.
🎨 Visualization
• Volume Delta Labels: Each zone displays its volume delta with “+” or “-” prefix and K/M suffix for easy interpretation, showing the strength and direction of pressure during the low volume period.
• Persistent Historical Mapping: Zones remain visible for your specified lookback period, creating a cumulative map of potential support and resistance levels forming under low liquidity conditions.
📖 Usage Guidelines
Analysis Timeframe
Default: 1D
Range/Options: 15M, 1HR, 3HR, 4HR, 8HR, 16HR, 1D, 3D, 5D, 1W, Custom
Description: Determines the historical period to analyze for low liquidity zones. Shorter timeframes provide more recent data while longer timeframes offer a more comprehensive view of significant zones. Use Custom option with the setting below for precise control.
Custom Period (Bars)
Default: 1000
Range: 1+
Description: Number of bars to analyze when using Custom timeframe option. Higher values show more historical zones but may impact performance.
Volume Analysis
Volume Threshold Divisor
Default: 0.5
Range: 0.1-1.0
Description: Maximum volume relative to average to identify low volume zones. Example: 0.5 means volume must be below 50% of the average to qualify as low volume. Lower values create more selective zones while higher values identify more zones.
Volume MA Length
Default: 15
Range: 1+
Description: Period length for volume moving average calculation. Shorter periods make the indicator more responsive to recent volume changes, while longer periods provide a more stable baseline.
Zone Settings
Zone Fill Color
Default: #2196F3 (80% transparency)
Description: Color and transparency of the low liquidity zones. Choose colors that stand out against your chart background without obscuring price action.
Maximum Zone Size %
Default: 0.5
Range: 0.1+
Description: Maximum allowed height of a zone as percentage of price. Larger zones are filtered out. Lower values create more precise zones focusing on tight price ranges.
Display Options
Show Volume Delta
Default: true
Description: Toggles the display of volume delta within each zone. Enabling this provides additional insight into buying vs. selling pressure during low volume periods.
Delta Text Position
Default: Right
Options: Left, Center, Right
Description: Controls the horizontal alignment of the delta text within zones. Adjust based on your chart layout for optimal readability.
✅ Best Use Cases
• Identifying potential support and resistance levels that formed during periods of thin liquidity
• Spotting price inefficiencies where larger players may have moved price with minimal volume
• Finding low-volume consolidation areas that may serve as breakout or reversal zones when revisited
• Locating potential stop-hunting zones where price moved on minimal participation
• Complementing traditional support/resistance analysis with volume context
⚠️ Limitations
• Requires volume data to function; will not work on symbols where the data provider doesn’t supply volume information
• Low volume zones don’t guarantee future support/resistance - they simply highlight potential areas of interest
• Works best on liquid instruments where volume data has meaningful fluctuations
• Historical analysis is limited by the maximum allowed box count (500) in TradingView
• Volume delta in some markets may not perfectly reflect buying vs. selling pressure due to data limitations
💡 What Makes This Unique
• Focus on Low Volume: Unlike some indicators that highlight high volume events particularly like our very own TLZ indicator, this tool specifically identifies potentially significant price zones that formed with minimal participation.
• Delta + Low Volume Integration: Combines volume delta analysis with low volume detection to reveal directional bias during thin liquidity periods.
• Flexible Lookback System: The dynamic timeframe system allows analysis across any timeframe while maintaining consistent zone identification criteria.
• Support/Resistance Zone Generation: Automatically builds a visual map of potential technical levels based on volume behavior rather than just price patterns.
🔬 How It Works
1. Volume Baseline Calculation:
The indicator calculates a moving average of volume over your specified period to establish a baseline for normal market participation. This adaptive baseline accounts for natural volume fluctuations across different market conditions.
2. Low Volume Detection:
Each candle’s volume is compared to the moving average and flagged when it falls below your threshold divisor. The indicator also filters zones by maximum size to ensure only precise price levels are highlighted.
3. Volume Delta Integration:
For each identified low volume candle, the indicator retrieves the volume delta from a lower timeframe. This delta value is formatted with appropriate scaling (K/M) and displayed within the zone.
4. Zone Management:
New zones are created and tracked in a dynamic array, with each zone extending rightward until it expires. The system automatically removes expired zones based on your lookback period to maintain a clean chart.
💡 Note:
Low liquidity zones often represent areas where price moved with minimal participation, which can indicate potential market inefficiencies. These zones frequently become important support/resistance levels when revisited, especially if approached with higher volume. Consider using this indicator alongside traditional technical analysis tools for comprehensive market context. For best results, experiment with different volume threshold settings based on the specific instrument’s typical volume patterns.
TimeMapTimeMap is a visual price-reference indicator designed to help traders rapidly visualize how current price levels relate to significant historical closing prices. It overlays your chart with reference lines representing past weekly, monthly, quarterly (3-month), semi-annual (6-month), and annual closing prices. By clearly plotting these historical price references, TimeMap helps traders quickly gauge price position relative to historical market structure, aiding in the identification of trends, support/resistance levels, and potential reversals.
How it Works:
The indicator calculates the precise number of historical bars corresponding to weekly, monthly, quarterly, semi-annual, and annual intervals, dynamically adjusting according to your chart’s timeframe (intraday, daily, weekly, monthly) and chosen market type (Stocks US, Crypto, Forex, or Futures). Historical closing prices from these periods are plotted directly on your chart as horizontal reference lines.
For intraday traders, the script accurately calculates historical offsets considering regular and extended trading sessions (e.g., pre-market and after-hours sessions for US stocks), ensuring correct positioning of historical lines.
User-Configurable Inputs Explained in Detail:
Market Type:
Allows you to specify your trading instrument type, automatically adjusting calculations for:
- Stocks US (default): 390 minutes per regular session (780 minutes if extended hours enabled), 5 trading days/week.
- Crypto: 1440 minutes/day, 7 trading days/week.
- Forex: 1440 minutes/day, 5 trading days/week.
- Futures: 1320 minutes/day, 5 trading days/week.
Show Weekly Close:
When enabled, plots a line at the exact closing price from one week ago. Provides short-term context and helps identify recent price momentum.
Show Monthly Close:
When enabled, plots a line at the exact closing price from one month ago. Helpful for evaluating medium-term price positioning and monthly trend strength.
Show 3-Month Close:
When enabled, plots a line at the exact closing price from three months ago. Useful for assessing quarterly market shifts, intermediate trend changes, and broader market sentiment.
Show 6-Month Close:
When enabled, plots a line at the exact closing price from six months ago. Useful for identifying semi-annual trends, significant price pivots, and longer-term support/resistance levels.
Show 1-Year Close:
When enabled, plots a line at the exact closing price from one year ago. Excellent for assessing long-term market direction and key annual price levels.
Enable Smoothing:
Activates a Simple Moving Average (SMA) smoothing of historical reference lines, reducing volatility and providing clearer visual references. Recommended for traders preferring less volatile reference levels.
Smoothing Length:
Determines the number of bars used in calculating the SMA smoothing of historical lines. Higher values result in smoother but slightly delayed reference lines; lower values offer more immediate yet more volatile levels.
Use Extended Hours (Intraday Only):
When enabled (only applicable for Stocks US), it accounts for pre-market and after-hours trading sessions, providing accurate intraday historical line calculations based on extended sessions (typically 780 minutes/day total).
Important Notes and Compliance:
- This indicator does not provide trading signals, recommendations, or predictions. It serves purely as a visual analytical tool to supplement traders’ existing methods.
- Historical lines plotted are strictly based on past available price data; the indicator never accesses future data or data outside the scope of Pine Script’s standard capabilities.
- The script incorporates built-in logic to avoid runtime errors if insufficient historical data exists for a selected timeframe, ensuring robustness even with limited historical bars.
- TimeMap is original work developed exclusively by Julien Eche (@Julien_Eche). It does not reuse or replicate third-party or existing open-source scripts.
Recommended Best Practices:
- Use TimeMap as a complementary analytical reference, not as a standalone strategy or trade decision-making tool.
- Adapt displayed historical periods and smoothing settings based on your trading style and market approach.
- Default plot colors are optimized for readability on dark-background charts; adjust as necessary according to your preference and chart color scheme.
This script is published open-source to benefit the entire TradingView community and fully complies with all TradingView script publishing rules and guidelines.
Dynamic Momentum Bands | AlphaAlgosDynamic Momentum Bands | AlphaAlgos
Overview
The Dynamic Momentum Bands indicator is an advanced technical analysis tool that combines multiple analytical techniques to provide a comprehensive view of market momentum and trend dynamics. By integrating RSI (Relative Strength Index), volatility analysis, and adaptive moving averages, this indicator offers traders a nuanced perspective on market conditions.
Key Features
Adaptive band calculation based on price momentum
Integrated RSI-driven volatility scaling
Multiple moving average type options (EMA, SMA, VWMA)
Smooth, gradient-based band visualization
Optional price bar coloring for trend identification
Technical Methodology
The indicator employs a sophisticated approach to market analysis:
1. Momentum Calculation
Calculates RSI using a customizable length
Uses RSI to dynamically adjust band volatility
Scales band width based on distance from the 50 RSI level
2. Band Construction
Applies a selected moving average type to the price source
Calculates deviation using ATR (Average True Range)
Smooths band edges for improved visual clarity
Configuration Options
Core Settings:
Price Source: Choose the price data used for calculations
RSI Length: Customize the RSI calculation period (1-50)
Band Length: Adjust the moving average period (5-100)
Volatility Multiplier: Fine-tune band width
Band Type: Select between EMA, SMA, and VWMA
Visual Settings:
Bar Coloring: Toggle color-coded price bars
Gradient-based band visualization
Smooth color transitions for trend representation
Trend Identification
The indicator provides trend insights through:
Color-coded bands (blue for bullish, pink for bearish)
Smooth gradient visualization
Optional price bar coloring
Trading Applications
Trend Following:
- Use band position relative to price as trend indicator
- Identify momentum shifts through color changes
- Utilize gradient zones for trend strength assessment
Volatility Analysis:
Observe band width changes
Detect potential breakout or consolidation periods
Use RSI-driven volatility scaling for market context
Best Practices
Adjust RSI length to match trading timeframe
Experiment with different moving average types
Use in conjunction with other technical indicators
Consider volatility multiplier for different market conditions
This indicator is provided for informational purposes only. Always use proper risk management when trading. Past performance is not indicative of future results. Not financial Advise
Moving Average with Trend by SashwataThis is a all in one moving average indicator. You will find all kind of moving average in a single indicator. It will also show the market trend with change of colour.
Combined Market Structure Indicator### 🧠 Combined Market Structure Indicator – Supertrend + QQE + EMA + OB/MSB
The **Combined Market Structure Indicator** is a powerful, all-in-one trading tool designed to help you identify **market structure breaks (MSBs)**, **order blocks (OBs)**, **EMA crossovers**, and popular **trend-following indicators** like **Supertrend** and **QQE** – all in a single script.
#### 🚀 Key Features:
🔹 **Supertrend Buy/Sell Signals**
Identifies trend changes with customizable ATR and factor values. Alerts are built-in for both long and short opportunities.
🔹 **QQE Momentum Signals**
A refined QQE (Quantitative Qualitative Estimation) implementation to catch early momentum shifts. Plots buy/sell signals on the chart.
🔹 **EMA Crossovers**
Customizable fast and slow exponential moving averages highlight classic trend continuation or reversal points with optional alerts.
🔹 **Market Structure Break (MSB)**
Detects bullish and bearish market structure breaks using dynamic zigzag swing points and Fibonacci-based confirmation logic. MSBs are clearly labeled on the chart.
🔹 **Order Block (OB) Detection**
Automatically draws bullish and bearish OB zones based on candle structure and market shifts. Alerts notify when price revisits these areas.
🔹 **Breaker Block & Mitigation Block Zones (BB/MB)**
Visual zones for potential rejections or continuations, helping traders anticipate key reaction levels in the price structure.
🔹 **Dynamic ZigZag Visualization**
Optional zigzag line plotting to visualize swing highs/lows, providing better structure clarity and confirming OB/MSB zones.
🔹 **Custom Alert System**
Smart alerts for Supertrend, EMA crossovers, QQE signals, and price entering key OB/BB zones – fully customizable.
#### 🎛️ User Inputs:
- Supertrend Factor, ATR Length
- QQE RSI Length
- Fast/Slow EMA periods
- Alert toggles for each system
- Zigzag sensitivity and visualization toggle
- Full control over OB/BB colors, labels, and cleanup behavior
#### 📊 Ideal For:
- Swing Traders
- Smart Money / ICT Style Traders
- Trend Followers
- Breakout/Breakdown Traders
- Anyone seeking structure-based confluence zones
SemaforThis is the 4 Level Semafor indicator with Daily Open Line and Average Session Range. Also on the chart is the EMA Ribbon indicator.
Credit to:
Devlucem for the Semafor indicator
Quantvue for the Average Session Range
Shusterivi for the Daily Open Line
MYNAMEISBRANDON for the EMA Ribbon
The Semafors are based on the ZigZag indicator and show higher highs/lower lows of a specified period, determined by the user and applied in settings.
The default periods I use are:
10 period (hidden on this chart)
50 period-blue dots
250 period-white dots
615 period-black dots
Just as the ZigZag indicator will recalculate so to will the semafors, as additional candles are built. The semafor indicator is never to be used as a stand alone signal. It must be combined with other indicators to be used effectively. What we look for are the semafor patterns of a large white dot followed by a 1st blue dot opposite of the white. Then a 2nd blue dot in agreement with the white dot. In theory, the 2nd blue dot is seen as confirmation of the establishment of the white semafor..
When combined with Daily Open Line, ADR (Average Sessions Range), EMA cross and VWAP anchored to your 250 semafors, your odds are greatly increased. Add to that the knowledge of basic market structure and the wisdom that comes from patience and you have a very powerful weapon.
The Daily Open...I trade the M1 chart and also draw a H4 Open Line on my chart for the smaller time frames. Price will tend to trade away from the Daily Open Line. In many cases until it reaches certain levels...Fib, Gann, ADR, etc., then runs through a pullback cycle. I like the ADR levels. The ADR can give clues when entering a consolidation phase, ie trading between the buy side and sell side 15% levels. Trading away from the Daily Open(or H4 open) along with breaking the 15% level, while in agreement with a semafor pattern is a good sign.
Add to that confluence the agreement of your MA cross and the 250 semafor Anchored VWAP and you have a solid signal to help determine your actions. This trend following layout will work on any time frame. I just really like the M1 for its precision, not for crazy back and forth all day. With the exception of some strong pull back signals, I don't enter any more trades on the M1 than on M5, 15 or 30.
This is based on and follows the teachings of Xard and his trading strategy. Just as I don't want to take anyone's credit for these indicators, I won't take credit for what I have been taught either.
The trader can obviously use their favorite MA cross indicator. But this one is visually beautiful AND displays the current time frame and 1 time frame higher on the chart...awesome!
Of note, I do run into trouble at times with the 615 period semafor. I have been told it is because TradingView has trouble with extended period indicators. As a matter of fact, I would like a much higher period for my biggest semafor. I would like it set at 1250, but that seems to be a no starter. If anyone has a solution, that would be welcomed news.
ICT Breakers (BOS / MSS - Market Structure) [ICTProTools]The Breakers (Market Structure) indicator is designed to help traders identify true breaker structures , a key concept in Inner Circle Trader (ICT) methodology. In market structure, Breakers represent powerful shifts where a key high or low is broken, leading to a reversal in market direction. Most tools misinterpret structure shifts, using internal structure , leading to fake breakouts. This tool solves that problem by filtering out false signals , providing clear & structured insights , all with multi-timeframe compatibility.
💎 Key Features
⚡️ Breakers in action
The indicator shows the structure following ICT instructions. A breaker is defined by two lines:
The first line confirms the previous trend (it could be interpreted as a BOS).
The second line highlights the moment price breaks structure (with candle body or wick based on your chosen settings), signaling a shift in trend direction (like an MSS).
Furthermore, it’s important to note that a breaker not only shows the structure, but also defines a potential Point of Interest (POI), an area where price may retrace before continuing its trend.
Here, we can observe two clear structure shifts.
On the far left, the market was in a bearish trend, illustrated by the first visible (dotted and red) line. Shortly after, the second (solid and green) line appears, showing a break that initiates a new bullish trend.
This upward movement continues, with the last confirmation marked by a top structure line. And finally, the structure is broken once again indicating a transition back into a bearish trend.
💪 Real Structure with True Highs / Lows
Unlike many indicators that detect internal breakouts , this tool follows ICT’s true market structure rules .
In a bearish trend , a bullish breaker is only confirmed when the high that created the low is broken , and conversely for a bullish scenario.
Fake breakouts are ignored, preventing misleading signals.
In the image above, the white breakout is correctly ignored by the indicator, as it doesn't align with ICT’s structural rules. That white high is simply part of the internal structure, not the true swing point. Instead, the green line highlights the key level that truly matters, the one whose rupture would have confirmed a real change in market structure.
🔔 Smart Alerts for Structure Updates
Stay one step ahead with customizable alerts designed to notify you instantly when market structure changes occur.
Get notified for BOS (Continuation) and / or MSS (Breaker) events.
Set alerts for bullish , bearish , or both directions.
Choose between once or repeated alerts , based on your strategy.
This feature allows traders to remain focused and reactive , even when monitoring multiple markets.
In the alert settings, select which structure shifts you want to be notified of. Whether you're a scalper or a swing trader, the alerts keep you connected to key moments without needing to constantly monitor the chart.
⏳ Multi-Timeframe Structure
All features of the indicator are fully compatible with higher timeframes .
Get a broader view of market structure without switching timeframes.
Monitor higher timeframe structures and receive alerts, all without leaving your analysis chart .
In this example, the market structure of the 30m timeframe is displayed while on a 5m chart, providing a clearer perspective.
✨ Customization & User Control
Make it yours! The indicator allows full customization:
Swing bars (to confirm high / low)
Select your mode for Breakers (MSS) , using the candle body only or body / wick
Line style (type, width, color)
Choice of displayed timeframe
Activate any alert , with the frequency you want
🎯 Conclusion
✅ Avoid false signals by focusing on true ICT Breakers
✅ Smart alerts to never miss a structural shift
✅ Multi-timeframe support for enhanced analysis
✅ Clean & professional design for an optimal trading experience
Beep BoopThis is the original Beep Boop indicator, as seen on the TradingRush channel, updated in Pinescript v6 by Obside.
Beep Boop – Trend-Aligned MACD Histogram
The Beep Boop indicator is designed to help traders quickly identify trend-aligned momentum signals. It combines a simplified version of the classic MACD histogram with a customizable EMA-based trend filter to clearly highlight bullish and bearish market phases.
How it works:
MACD Histogram Simplification:
The standard MACD histogram is simplified into two clear states:
- Positive momentum is represented by green histogram bars.
- Negative momentum is represented by red histogram bars.
Trend Confirmation:
An additional EMA Trend filter helps identify the prevailing market direction:
If price momentum and EMA trend do not align clearly, bars appear white, signaling uncertainty or consolidation.
Customizable Settings:
Fast & Slow Length: Adjust the sensitivity of the MACD calculation.
EMA Trend Length: Set your preferred length for detecting the overall market trend.
MA Types: Choose between simple moving averages (SMA) or exponential moving averages (EMA) for the oscillator and signal line.
Ideal Uses:
Quickly identifying strong bullish or bearish phases.
Filtering momentum signals aligned with the broader market trend.
Visualizing market momentum clearly and intuitively.
Date-Based Price Projection (Offset)Predict future price movements by analyzing past trends—customizable, visually intuitive, and perfect for traders! 📊🚀
1️⃣ Predict Future Prices: Uses past price movements to project potential future trends.
2️⃣ Custom Date Selection: Analyze price behavior from any historical date of your choice.
3️⃣ Time Offset Feature: Shift data forward or backward to compare past trends with today.
4️⃣ Visual Projections: Displays future price estimates in a stylish table for easy reference.
5️⃣ Color-Coded Movements: Green for uptrends, red for downtrends—customizable to your preference.
6️⃣ Avoids Weekend Bias: Automatically skips non-trading days for accurate projections.
7️⃣ Great for Trend Analysis: Identify repeating price patterns to enhance trading strategies.
8️⃣ Quick Insights: Instantly see percentage changes and projected prices at a glance.
9️⃣ Works on Any Market: Use it for stocks, forex, crypto, or any chart with historical data.
🔟 Boosts Decision-Making: Helps traders anticipate potential price movements with confidence! 🚀
Williams %R + Alligator + MACD Strategy with Heiken AshiWilliams %R + Alligator + MACD Strategy with Heiken Ashi
This TradingView indicator combines multiple technical analysis tools to identify high-probability trade opportunities. It integrates Williams %R, Bill Williams' Alligator, MACD, and Heiken Ashi candles to filter strong trends and reversals.
Key Features:
✅ Buy & Sell Signals – Confirmed entries based on multiple indicators for stronger accuracy.
✅ Possible Long/Short Alerts – Early warning signals when price conditions align for a potential trade.
✅ VWAP Integration – Ensures trades align with overall market momentum.
✅ Color-coded Backgrounds & Labels – Clear visualization of market trends.
Trade Setup Criteria:
🔹 Confirmed Long Entry (BUY):
Williams %R above -50
Price above Alligator Teeth
Alligator structure confirms uptrend
MACD bullish crossover
Heiken Ashi confirms trend strength
🔻 Confirmed Short Entry (SELL):
Williams %R below -50
Price below Alligator Teeth
Alligator structure confirms downtrend
MACD bearish crossover
Heiken Ashi confirms trend weakness
🟢 Possible Long Setup:
Price crossing above the red (Alligator Teeth)
Williams %R above -75
Price below VWAP
🔴 Possible Short Setup:
Price crossing below the red (Alligator Teeth)
Williams %R below -25
Price above VWAP
Fibonacci Trend with Adaptive ChannelsFibonacci Trend with Adaptive Channels
The "Fibonacci Trend with Adaptive Channels" indicator is a powerful technical analysis tool that blends dynamic Fibonacci retracement levels with adaptive trend channels and exponential moving averages (EMAs). Designed for traders seeking a comprehensive view of market trends and key price levels, this script combines the precision of ChartPrime's Fibonacci Trend with Julien Eche's Adaptive Trend Finder, enhanced with customizable EMAs. Whether you're a swing trader, day trader, or long-term investor, this indicator offers a versatile approach to identifying support, resistance, and trend direction.
Fibonacci Levels
At its core, the indicator dynamically plots Fibonacci retracement levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1) based on the Supertrend indicator's direction. When a trend shift occurs, the script identifies the highest high and lowest low within the trend, extending these levels forward by a user-defined number of bars. Traders can customize the Fibonacci line color and fill color between levels, making it easy to spot potential reversal zones or continuation patterns in any market condition.
Exponential Moving Averages (EMAs)
To complement the Fibonacci analysis, the indicator overlays three EMAs with periods of 10, 55, and 200. These moving averages provide additional context for trend strength and momentum. The short-term EMA (10) tracks rapid price movements, the medium-term EMA (55) offers a balanced view, and the long-term EMA (200) highlights the broader market direction. Each EMA's color is fully customizable, allowing users to tailor the visual experience to their preferences.
Adaptive Trend Channels
The Adaptive Trend Finder component introduces logarithmic regression-based channels that automatically adjust to the strongest historical trend. Users can toggle between short-term (20-200 bars) and long-term (300-1200 bars) channel modes, with customizable deviation multipliers, line styles, and colors for both the midline and outer channels. This adaptive approach ensures that the channels reflect the most statistically significant trend, providing a robust framework for price action analysis.
Statistical Insights
A standout feature is the integrated table, which displays key metrics about the detected trend. Traders can choose to show the auto-selected period (the length with the highest correlation), trend strength (via a descriptive label or Pearson's R value), and the annualized return (CAGR) for daily or weekly timeframes. The table's position and text size are adjustable, offering flexibility to keep your chart clean while accessing critical data at a glance.
Customization and Flexibility
This indicator is built with customization in mind. Beyond color options for Fibonacci levels, EMAs, and channels, users can adjust the Supertrend period, Fibonacci extension length, channel deviation, and table settings. Whether you prefer a minimalist setup with just the essentials or a detailed display with all features enabled, the script adapts to your trading style. Load it twice to view short-term and long-term channels simultaneously for a multi-timeframe perspective.
Usage and Licensing
Ideal for stocks, forex, cryptocurrencies, and more, this indicator is published under a dual-license framework: MPL-2.0 for the Fibonacci Trend component (© ChartPrime) and GPL-3.0 for the Adaptive Trend Finder component (© Julien Eche). For optimal performance, ensure sufficient historical data is loaded, especially in long-term channel mode. Scroll back on your chart if channels aren't visible, and experiment with settings to fine-tune the tool to your market and timeframe of choice.
Parabolic SignalJust hunting for a parabolic structure. TV doesn't support log-log but logging price is good enough to hunt for parabolic accelerations.
Adjust the sensitivity based on time frame and asset.
Simple toy. Enjoy.
-P
Layered Supertrend - [NLR]Layered Supertrend is an advanced version of the classic Supertrend indicator. Instead of a single line, it breaks the trend into six clear zones—three showing strength in the current trend, and three signaling a possible reversal. It also includes multiple Supertrend levels (multipliers 1 to 5) to help you see both short-term shifts and long-term trend direction at a glance.
Combine it with MACD Overlay for making better decision.
Killzones (Box Style, Custom Colors) - NY TimeThis indicator visually highlights the 3 main trading sessions ("killzones") — Asia, London, and New York — on any intraday chart using box overlays that automatically adjust to price action and time, locked to America/New_York timezone.
📅 Killzones Defined:
Killzone NY Time Purpose
Asia Session 7:00 PM – 10:00 PM (Previous Day) Preps for overnight moves, often shows low volatility or accumulation
London Session 2:00 AM – 5:00 AM Often sets the daily high/low, high volatility
NY Session 7:00 AM – 10:00 AM Big volume from US open, news events, major moves
Each killzone is shown with a colored box that:
Begins at the exact killzone open time
Ends at the killzone close
Expands vertically to encompass all highs and lows that occur within the session
HIGH/LOW Swing points by Keshav//@version=6
indicator("HIGH/LOW Swing points by Keshav", overlay=true, max_labels_count=500)
//------------------------------------------------------
// 1) Supertrend Inputs
//------------------------------------------------------
stFactor = input.float(title="Supertrend Factor", defval=3.0)
stAtrLen = input.int(title="Supertrend ATR Period", defval=10)
lineLength = input.int(title="Line Length (bars)", defval=5)
//------------------------------------------------------
// 2) Label Settings Inputs
//------------------------------------------------------
labelGroup = "Label Settings"
swingHighLabelOffset = input.int(title="Swing High Label Offset", defval=10, minval=0, group=labelGroup)
swingLowLabelOffset = input.int(title="Swing Low Label Offset", defval=10, minval=0, group=labelGroup)
pivotHighTextColor = input(color.black, title="Swing High Text Color", group=labelGroup)
pivotHighLabelColor = input(color.white, title="Swing High Label Background", group=labelGroup)
pivotLowTextColor = input(color.black, title="Swing Low Text Color", group=labelGroup)
pivotLowLabelColor = input(color.white, title="Swing Low Label Background", group=labelGroup)
//------------------------------------------------------
// 3) Minimal Supertrend Calculation (v6)
// Compute ATR-based upBand & downBand and determine the Supertrend line and direction.
// stDir = 1 means bullish, stDir = -1 means bearish.
//------------------------------------------------------
atrValue = ta.atr(stAtrLen)
basis = (high + low) / 2 // equivalent to hl2
upBand = basis - stFactor * atrValue
downBand = basis + stFactor * atrValue
var float stLine = na
var int stDir = na
if barstate.isfirst
stLine := close
stDir := 1
else
float prevLine = nz(stLine )
int prevDir = nz(stDir )
if close > prevLine
stDir := 1
else
stDir := -1
if stDir == 1
stLine := (upBand < prevLine and prevDir == 1) ? prevLine : upBand
else
stLine := (downBand > prevLine and prevDir == -1) ? prevLine : downBand
//------------------------------------------------------
// 4) Track Phase Extremes
// For bullish phases, track the highest high; for bearish phases, track the lowest low.
// Only draw a horizontal line (with a label) when a phase flip occurs.
//------------------------------------------------------
var float bullishMaxPrice = na
var int bullishMaxBarIndex = na
var float bearishMinPrice = na
var int bearishMinBarIndex = na
// Store the previous phase's direction to detect a flip.
var int prevPhaseDir = na
if barstate.isfirst
prevPhaseDir := stDir
flip = stDir != prevPhaseDir
if stDir == 1
// Currently Bullish.
if flip and prevPhaseDir == -1
// Just flipped from Bearish to Bullish: finalize the bearish phase (swing low).
if not na(bearishMinPrice)
line.new(bearishMinBarIndex, bearishMinPrice, bearishMinBarIndex + lineLength, bearishMinPrice,
xloc=xloc.bar_index, extend=extend.none, color=color.red, style=line.style_solid, width=2)
label.new(bearishMinBarIndex + swingLowLabelOffset, bearishMinPrice,
str.tostring(bearishMinPrice, format.mintick), style=label.style_label_up,
color=pivotLowLabelColor, textcolor=pivotLowTextColor)
// Reset for the new Bullish phase.
bullishMaxPrice := high
bullishMaxBarIndex := bar_index
// Update bullish phase extreme.
if na(bullishMaxPrice)
bullishMaxPrice := high
bullishMaxBarIndex := bar_index
else if high > bullishMaxPrice
bullishMaxPrice := high
bullishMaxBarIndex := bar_index
else
// Currently Bearish.
if flip and prevPhaseDir == 1
// Just flipped from Bullish to Bearish: finalize the bullish phase (swing high).
if not na(bullishMaxPrice)
line.new(bullishMaxBarIndex, bullishMaxPrice, bullishMaxBarIndex + lineLength, bullishMaxPrice,
xloc=xloc.bar_index, extend=extend.none, color=color.green, style=line.style_solid, width=2)
label.new(bullishMaxBarIndex + swingHighLabelOffset, bullishMaxPrice,
str.tostring(bullishMaxPrice, format.mintick), style=label.style_label_down,
color=pivotHighLabelColor, textcolor=pivotHighTextColor)
// Reset for the new Bearish phase.
bearishMinPrice := low
bearishMinBarIndex := bar_index
// Update bearish phase extreme.
if na(bearishMinPrice)
bearishMinPrice := low
bearishMinBarIndex := bar_index
else if low < bearishMinPrice
bearishMinPrice := low
bearishMinBarIndex := bar_index
// Update the stored phase direction for the next bar.
prevPhaseDir := stDir
//------------------------------------------------------
// 5) Plot the Supertrend Line for Reference
//------------------------------------------------------
plot(stLine, color = stDir == 1 ? color.lime : color.maroon, linewidth=2, title="Supertrend Line")
Relative StrengthRelative Strength (RS) indicator lets you plot the relative strength of given instrument against another one. It will help you compare relative strength of given assets for the specified timeframe and duration.
Why another RS indicator?
Many of the existing RS indicators, even those highly rated, work incorrectly. Some of them use close values for calculating RS without any normalization which is grossly incorrect. Then there are few others which work but they have too many parameters to configure which makes it difficult to understand and use.
I have tried to keep it as simple as I could and have added tooltips for each config parameter to ensure you are aware of why that parameter is needed.
Enjoy!
Market Symphony (Dragon Trader)The "Market Symphony (Dragon Trader)" indicator is a powerful technical analysis tool designed for traders seeking to identify potential buy and sell signals in the financial markets. This indicator combines multiple technical indicators into a single, easy-to-interpret visual display, allowing traders to make informed decisions quickly.
Key Features:
Multi-Indicator Approach: The indicator incorporates a symphony of popular technical indicators, including:
Loxxer
Moving Average Convergence Divergence (MACD)
Relative Strength Index (RSI)
Stochastic Oscillator
Commodity Channel Index (CCI)1
Velocity
Visual Clarity: The indicator utilizes color-coded squares and other shapes to represent buy and sell signals, making it easy to identify potential trading opportunities at a glance.
Customizable Settings: Traders can adjust various parameters to fine-tune the indicator to their specific trading style and market conditions.
Alert Functionality: The indicator provides real-time alerts for potential buy and sell signals, ensuring that traders never miss a trading opportunity.
Bar Coloring: the indicator can color the price bar, to give a better overview of the trend.
Repainting Option: The indicator gives the option to allow repainting in some of its calculations.
How it Works:
The "Market Symphony (Dragon Trader)" indicator analyzes price data using the aforementioned technical indicators. When a confluence of these indicators suggests a potential buy or sell signal, the indicator displays a corresponding visual cue on the chart. Traders can then use this information to make informed trading decisions.
Benefits:
Simplified Analysis: The indicator consolidates multiple technical indicators into a single display, saving traders time and effort.
Improved Accuracy: By considering a range of technical indicators, the indicator can help traders identify more reliable trading signals.
Enhanced Decision-Making: The indicator's clear visual cues and real-time alerts empower traders to make confident trading decisions.
In Conclusion:
The "Market Symphony (Dragon Trader)" indicator is a valuable tool for traders of all experience levels. Its comprehensive approach, visual clarity, and customizable settings make it an essential addition to any trader's arsenal.
I hope this description is helpful.
Advanced Supply and Demand ZonesThe "Advanced Supply and Demand Zones" indicator is a powerful tool designed to help traders identify key market zones where price reversals are likely to occur. This indicator dynamically detects and visualizes supply and demand zones, providing traders with high-probability trade setups based on price action, volume, and momentum filters.
With enhanced filtering options, including candle size confirmation, RSI-based validation, and trend direction analysis, this tool improves trading accuracy while minimizing false signals.
Key Features
✅ Automatic Supply & Demand Zone Detection – The indicator dynamically detects and updates supply and demand zones.
✅ Customizable Zone Detection Length – Traders can adjust zone sensitivity to match different trading styles.
✅ Multi-Layer Filtering System
✅ Candle Size Confirmation – Ensures price movement is significant before triggering signals.
✅ RSI-Based Filtering – Helps validate overbought and oversold conditions for stronger trade setups.
✅ Consecutive Bars Confirmation – Prevents premature signals by requiring multiple confirmations.
✅ Buy & Sell Signal Generation – Identifies optimal trade entries at strong supply and demand zones.
✅ Market Trend Indicator – Built-in SMA trend filter helps identify bullish and bearish market conditions.
✅ Dashboard with Key Information – Displays market trend, supply zone, and demand zone details directly on the chart.
✅ Optimized for All Markets – Works on stocks, forex, crypto, indices, and all timeframes.
How It Works
📌 Supply Zone Identification:
✅ Detects strong resistance areas where sellers are dominant.
✅ Uses highest price levels over a selected period to define zones.
✅ Triggers sell signals when price approaches the supply zone.
📌 Demand Zone Identification:
✅ Identifies strong support levels where buyers take control.
✅ Uses lowest price levels over a selected period to define demand zones.
✅ Triggers buy signals when price nears the demand zone.
📌 Trend Analysis & Filtering:
✅ Uses 9-period & 21-period SMAs to determine the market trend.
✅ Bullish trend when short SMA is above long SMA.
✅ Bearish trend when short SMA is below long SMA.
📌 Buy & Sell Signal Conditions:
✅ Buy Signal:
Price enters demand zone.
RSI confirms oversold conditions (if enabled).
Candle size and consecutive bar confirmations are met.
✅ Sell Signal:
Price enters supply zone.
RSI confirms overbought conditions (if enabled).
Candle size and confirmation filters validate the trade.
Customization & Settings
🔹 Zone Detection Length – Adjusts the number of candles used for identifying supply & demand zones.
🔹 RSI Filtering – Enables RSI-based trade validation with adjustable overbought/oversold levels.
🔹 Trend Filter – Uses moving averages to filter trades in the direction of the market trend.
🔹 Candle Size Confirmation – Ensures price moves are significant before validating trades.
🔹 Dashboard Positioning – Allows users to move the dashboard for better visibility.
Why Use This Indicator?
🚀 Enhances Trading Accuracy – Reduces false signals with multi-layer filtering.
📊 Works Across All Timeframes – Suitable for day trading, swing trading, and scalping.
⚡ Perfect for Trend & Reversal Traders – Identifies strong support and resistance areas for high-probability setups.
💡 No Overlapping Zones – Ensures clean charting with clearly defined supply and demand areas.
Best Use Cases
📉 Swing Trading – Identify key reversal points to time entries and exits.
📈 Breakout Trading – Detect strong supply/demand zones for breakout confirmation.
🎯 Trend Following – Use with trend filters to maximize trade efficiency.
🔥 Take Your Trading to the Next Level with the "Advanced Supply and Demand Zones" Indicator! 🔥
OneTrend Lite EMAOneTrend Lite EMA uses exponential moving averages (EMA) to define market trend direction and employs a dynamic ATR-based threshold adjusted by a custom ADX calculation to generate bullish (blue) and bearish (pink) zones.
It enters long positions when the fast EMA exceeds the threshold (blue zone) and exits when it falls below the threshold (pink zone), providing clear, rule-based signals for trend-following trades.
Pros include adaptive thresholding that reflects market volatility and trend strength, while cons are potential lag in sideways or choppy markets as EMAs are inherently lagging by nature.