AlgoRanger Momentum + Trend - Following📘 AlgoRanger Momentum + Trend - Following
Dynamic Trend and Momentum Tracking Indicator
🔍 Overview:
This indicator combines trend direction and momentum strength using a dynamic multi-moving average ribbon (MA Ribbon). It helps traders clearly visualize both the direction and the power of price movement.
The ribbon lines automatically change color based on momentum:
🟢 Green = Bullish momentum
🔴 Red = Bearish momentum
📈 How to Use:
1. Identifying Trend Direction
When all lines are aligned upward and turn green → strong bullish trend
When all lines slope downward and turn red → strong bearish trend
2. Measuring Momentum Strength
Tight and close ribbon → weak momentum
Wide-spread ribbon → strong momentum
Frequent color flips → choppy or sideways market
3. Trading Strategy
Trend Following:
Enter Buy when the ribbon turns green and aligns upward
Enter Sell when the ribbon turns red and aligns downward
Filtering False Signals:
Avoid trading when the ribbon flips colors often or trends are flat
4. Exit Points / Take Profit
Ribbon turns green to red → Exit Buy
Ribbon turns red to green → Exit Sell
Combine with support/resistance or Supply & Demand Zones for confirmation
🧠 Pro Tips:
Combine with other AlgoRanger indicators for best results:
Use Smart Signal for auto entries
Use Supply & Demand Zones to validate price targets
Customize the ribbon speed:
Fast settings for scalping (1m, 5m charts)
Slower settings for swing trading (1h, 4h charts)
🔧 Features:
✅ Auto-color based on momentum shifts
✅ Multiple MA lines for better accuracy
✅ Works on all timeframes
✅ Combines trend and momentum in a single tool
💡 Best For:
Trend-following traders
Scalpers needing fast momentum tracking
Traders seeking signal filtering
All skill levels wanting to visualize trend strength
Trendfollowing
Disparity Index with Volatility ZonesDisparity Index with Volatility Zones
is a momentum oscillator that measures the percentage difference between the current price and its simple moving average (SMA). This allows traders to identify overbought/oversold conditions, assess momentum strength, and detect potential trend reversals or continuations.
🔍 Core Concept:
The Disparity Index (DI) is calculated as:
DI = 100 × (Price − SMA) / SMA
A positive DI indicates the price is trading above its moving average (potential bullish sentiment), while a negative DI suggests the price is below the average (potential bearish sentiment).
This version of the Disparity Index introduces a dual-zone volatility framework, offering deeper insight into the market's current state.
🧠 What Makes This Version Unique?
1. High Volatility Zones
When DI crosses above +1.0% or below –1.0%, it often indicates the start or continuation of a strong trend.
Sustained readings beyond these thresholds typically align with trending phases, offering opportunities for momentum-based entries.
A reversal back within ±1.0% after exceeding these levels can suggest a shift in momentum — similar to how RSI exits the overbought/oversold zones before reversals.
These thresholds act as dynamic markers for breakout confirmation and potential trend exhaustion.
2. Low Volatility Zones
DI values between –0.5% and +0.5% define the low-volatility zone, shaded for visual clarity.
This area typically indicates market indecision, sideways price action, or consolidation.
Trading within this range may favor range-bound or mean-reversion strategies, as trend momentum is likely limited.
The logic is similar to interpreting a flat ADX, tight Bollinger Bands, or contracting Keltner Channels — all suggesting consolidation.
⚙️ Features:
Customizable moving average length and input source
Adjustable thresholds for overbought/oversold and low-volatility zones
Optional visual fill between low-volatility bounds
Clean and minimal chart footprint (non-essential plots hidden by default)
📈 How to Use:
1. Trend Confirmation:
A break above +1.0% can be used as a bullish continuation signal.
A break below –1.0% may confirm bearish strength.
Long periods above/below these thresholds support trend-following entries.
2. Reversal Detection:
If DI returns below +1.0% after exceeding it, bullish momentum may be fading.
If DI rises above –1.0% after falling below, bearish pressure may be weakening.
These shifts resemble overbought/oversold transitions in oscillators like RSI or Stochastic, and can be paired with divergence, volume, or price structure analysis for higher reliability.
3. Sideways Market Detection:
DI values within ±0.5% indicate low volatility or a non-trending environment.
Traders may avoid breakout entries during these periods or apply range-trading tactics instead.
Observing transitions out of the low-volatility zone can help anticipate breakouts.
4. Combine with Other Indicators:
DI signals can be enhanced using tools like MACD, Volume Oscillators, or Moving Averages.
For example, a DI breakout beyond ±1.0% supported by a MACD crossover or volume spike can help validate trend initiation.
This indicator is especially powerful when paired with Bollinger Bands:
A simultaneous price breakout from the Bollinger Band and DI moving beyond ±1.0% can help identify early trend inflection points.
This combination supports entering positions early in a developing trend, improving the efficiency of trend-following strategies and enhancing decision-making precision.
It also helps filter false breakouts when DI fails to confirm the move outside the band.
This indicator is designed for educational and analytical purposes and works across all timeframes and asset classes.
It is particularly useful for traders seeking a clear framework to identify momentum strength, filter sideways markets, and improve entry timing within a larger trading system.
Hurst Exponent Oscillator [PhenLabs]📊 Hurst Exponent Oscillator -
Version: PineScript™ v5
📌 Description
The Hurst Exponent Oscillator (HEO) by PhenLabs is a powerful tool developed for traders who want to distinguish between trending, mean-reverting, and random market behaviors with clarity and precision. By estimating the Hurst Exponent—a statistical measure of long-term memory in financial time series—this indicator helps users make sense of underlying market dynamics that are often not visible through traditional moving averages or oscillators.
Traders can quickly know if the market is likely to continue its current direction (trending), revert to the mean, or behave randomly, allowing for more strategic timing of entries and exits. With customizable smoothing and clear visual cues, the HEO enhances decision-making in a wide range of trading environments.
🚀 Points of Innovation
Integrates advanced Hurst Exponent calculation via Rescaled Range (R/S) analysis, providing unique market character insights.
Offers real-time visual cues for trending, mean-reverting, or random price action zones.
User-controllable EMA smoothing reduces noise for clearer interpretation.
Dynamic coloring and fill for immediate visual categorization of market regime.
Configurable visual thresholds for critical Hurst levels (e.g., 0.4, 0.5, 0.6).
Fully customizable appearance settings to fit different charting preferences.
🔧 Core Components
Log Returns Calculation: Computes log returns of the selected price source to feed into the Hurst calculation, ensuring robust and scale-independent analysis.
Rescaled Range (R/S) Analysis: Assesses the dispersion and cumulative deviation over a rolling window, forming the core statistical basis for the Hurst exponent estimate.
Smoothing Engine: Applies Exponential Moving Average (EMA) smoothing to the raw Hurst value for enhanced clarity.
Dynamic Rolling Windows: Utilizes arrays to maintain efficient, real-time calculations over user-defined lengths.
Adaptive Color Logic: Assigns different highlight and fill colors based on the current Hurst value zone.
🔥 Key Features
Visually differentiates between trending, mean-reverting, and random market modes.
User-adjustable lookback and smoothing periods for tailored sensitivity.
Distinct fill and line styles for each regime to avoid ambiguity.
On-chart reference lines for strong trending and mean-reverting thresholds.
Works with any price series (close, open, HL2, etc.) for versatile application.
🎨 Visualization
Hurst Exponent Curve: Primary plotted line (smoothed if EMA is used) reflects the ongoing estimate of the Hurst exponent.
Colored Zone Filling: The area between the Hurst line and the 0.5 reference line is filled, with color and opacity dynamically indicating the current market regime.
Reference Lines: Dash/dot lines mark standard Hurst thresholds (0.4, 0.5, 0.6) to contextualize the current regime.
All visual elements can be customized for thickness, color intensity, and opacity for user preference.
📖 Usage Guidelines
Data Settings
Hurst Calculation Length
Default: 100
Range: 10-300
Description: Number of bars used in Hurst calculation; higher values mean longer-term analysis, lower values for quicker reaction.
Data Source
Default: close
Description: Select which data series to analyze (e.g., Close, Open, HL2).
Smoothing Length (EMA)
Default: 5
Range: 1-50
Description: Length for smoothing the Hurst value; higher settings yield smoother but less responsive results.
Style Settings
Trending Color (Hurst > 0.5)
Default: Blue tone
Description: Color used when trending regime is detected.
Mean-Reverting Color (Hurst < 0.5)
Default: Orange tone
Description: Color used when mean-reverting regime is detected.
Neutral/Random Color
Default: Soft blue
Description: Color when market behavior is indeterminate or shifting.
Fill Opacity
Default: 70-80
Range: 0-100
Description: Transparency of area fills—higher opacity for stronger visual effect.
Line Width
Default: 2
Range: 1-5
Description: Thickness of the main indicator curve.
✅ Best Use Cases
Identifying if a market is regime-shifting from trending to mean-reverting (or vice versa).
Filtering signals in automated or systematic trading strategies.
Spotting periods of randomness where trading signals should be deprioritized.
Enhancing mean-reversion or trend-following models with regime-awareness.
⚠️ Limitations
Not predictive: Reflects current and recent market state, not future direction.
Sensitive to input parameters—overfitting may occur if settings are changed too frequently.
Smoothing can introduce lag in regime recognition.
May not work optimally in markets with structural breaks or extreme volatility.
💡 What Makes This Unique
Employs advanced statistical market analysis (Hurst exponent) rarely found in standard toolkits.
Offers immediate regime visualization through smart dynamic coloring and zone fills.
🔬 How It Works
Rolling Log Return Calculation:
Each new price creates a log return, forming the basis for robust, non-linear analysis. This ensures all price differences are treated proportionally.
Rescaled Range Analysis:
A rolling window maintains cumulative deviations and computes the statistical “range” (max-min of deviations). This is compared against the standard deviation to estimate “memory”.
Exponent Calculation & Smoothing:
The raw Hurst value is translated from the log of the rescaled range ratio, and then optionally smoothed via EMA to dampen noise and false signals.
Regime Detection Logic:
The smoothed value is checked against 0.5. Values above = trending; below = mean-reverting; near 0.5 = random. These control plot/fill color and zone display.
💡 Note:
Use longer calculation lengths for major market character study, and shorter ones for tactical, short-term adaptation. Smoothing balances noise vs. lag—find a best fit for your trading style. Always combine regime awareness with broader technical/fundamental context for best results.
The Ultimate Buy and Sell Indicator: Unholy Grail Edition"You see, Watson, the market is not random—it simply whispers in a code too complex for the average trader. Lucky for you, I am not average."
They searched for the Holy Grail of trading for decades—promises, false prophets, and overpriced PDFs.
But they were all looking in the wrong place.
This isn’t a relic buried in the desert.
This is the Unholy Grail — a machine-forged fusion of logic, engineering, and tactical overkill .
Built by Sherlock Macgyver , this is not a mystical object. It’s a surveillance system for trend detection, signal validation, and precision entries .
⚠️ Important: This script draws its own candles.
To see it properly, disable regular candles by turning off "Body", "Wick" and "Border" colors.
🔧 What You’re Looking At
This overlay plots confirmed Buy/Sell signals , momentum-based “watch” zones , adaptive candle coloring , SuperTrend bias detection , dual Bollinger Bands , and a moving average ribbon .
It’s not “minimalist” —it’s comprehensive .
📍 Configuring the Tool: Follow the Breadcrumbs
Every setting includes a tooltip — read them . They're not filler. They explain exactly how each feature functions so you can dial this thing in like you're tuning a surveillance rig in a Cold War bunker .
If you skip them, you're walking blind in a minefield .
🕰️ Timeframes: The Signal Sweet Spot
Each asset has a tempo . You need to find the one where signals align with clarity —not chaos .
Start with 4H or 1H —work up or down from there.
Too many fakeouts? → Higher timeframe
Too slow? → Drop to 15m or 5m —but expect more noise and adjust settings accordingly.
The signals scale with time, but you must find the rhythm that best fits your asset—and your trading lifestyle .
♻️ RSI Cycle = Signal Sensitivity
This is the heart of the system . It controls how reactive the RSI engine is.
Adjust based on noise level and how often you can actually monitor your charts.
Short cycle (14–24): More signals, more speed, more noise
Longer cycle (36–64): Smoother entries, better for swing traders
Tip: If your signals feel too jittery, increase the cycle. If they lag too much, reduce it.
📉 SuperTrend: Your Trend Bias Compass
This isn’t your average SuperTrend. It adapts with RSI overlay logic and detects market “silence” via EMA compression— turning white right before the chaos . That said, you still control its aggression.
ATR Length = how many bars to average
ATR Factor = how tight or loose it hugs price
Lower = more sensitive (more trades, more noise)
Higher = confirmation only (fewer, but stronger signals)
Tweak until it feels like a sniper rifle.
No, you won’t get it perfect on the first try.
Yes, it’s worth it.
🛠️ Modular Signals: Why Things Fire (or Don’t)
Buy/Sell entries require conditions to align. The logic is modular, and that’s on purpose.
RSI signals only fire if RSI crosses its smoothed MA outside the dead zone and a “Watch” condition is active.
SuperTrend signals can be enabled to act on crossovers, optionally ignoring the Watch filter .
Watch conditions (colored squares) act as early recon and hint at possible upcoming trades.
Background color changes are “pre-signal warnings” and will repaint . Use them as leading signals, not gospel.
Want more trades? Loosen your filters .
Want sniper entries? Lock them down .
🌈 Candles and MAs: Visual Market Structure
Candles adapt in real-time to MA structure:
Green = bullish (above both fast/slow MAs)
Yellow = indecision (between)
Red = bearish (below both)
Buy/Sell signals override candles with bright orange and fuchsia —because subtlety doesn’t win wars .
You can also enable up to 8 customizable moving averages —great for confluence , trend confirmation , or just looking like a wizard .
🧠 Pro Usage Tips (TL;DR for Smart People):
Use tooltips in the settings menu —every toggle and slider is explained
Test timeframes until signal frequency and reliability match your goals
Adjust RSI cycle to reduce noise or speed up signals based on how frequently you trade
Tweak SuperTrend factor and ATR to fit volatility on your asset
Start with visual confirmation :
• Are watch signals lining up with trend zones?
• Are backgrounds firing before price moves?
• Are candle colors agreeing with signal direction?
📣 Alerts & Integration
Alerts are available for:
Buy/Sell entries (confirmed or advanced background)
Watch signals
Full band agreement (both Bollinger bands bullish or bearish)
Use these with webhook systems , bots , or your own trade journals .
Created by Sherlock Macgyver
Because sometimes the best trade…
is knowing exactly when not to take one.
AlgoRanger Supply & Demand Zones📘 AlgoRanger Supply & Demand Zones
Multi-Timeframe Institutional Zone Mapping
🔍 Overview:
The AlgoRanger Supply & Demand Zones indicator is a dynamic tool that automatically plots key institutional supply (resistance) and demand (support) zones across multiple timeframes. These zones are color-coded and labeled (e.g. 1h, 2h, 4h) to help traders identify powerful reversal or breakout areas with high precision.
Perfect for price action traders, this tool allows you to align trades with institutional activity — all without manually marking levels.
📈 How to Use It:
1. Spot Strong Entry/Exit Zones
Red Zones = Supply: Potential resistance where price previously dropped after aggressive selling.
Green Zones = Demand: Potential support where price previously rallied after strong buying.
2. Timeframe Confluence
Multiple zone labels (e.g. “1h”, “2h”, “4h”) on a single area indicate stronger institutional interest.
Zones from higher timeframes are generally stronger and more respected.
3. Trade Setups
Reversal Strategy: Wait for price to enter a fresh zone and show signs of rejection (e.g. wicks, volume spikes).
Breakout Strategy: A clean break above a supply zone or below a demand zone may signal continuation.
4. Trend Context
Use with trend tools (e.g. AlgoRanger Trend Matrix) to avoid trading against momentum.
Use lower timeframe zones for entry within higher timeframe trends.
5. Risk Management
Place stop-loss outside the zone (beyond the wick or structure).
Set targets at the next opposing zone or swing high/low.
🛠️ Features:
✅ Automatic plotting of untested supply and demand zones
✅ Labels with timeframe visibility (1h, 2h, 4h, etc.)
✅ Color-coded zones for easy visual analysis
✅ Multi-timeframe scanning and zone overlay
✅ Extends zones until broken for dynamic S/R tracking
🧠 Tips for Effective Use:
Use 1h/4h zones for swing trading, and 15m/1h zones for intraday setups.
Look for overlap zones between multiple timeframes for stronger signals.
Pair with Fibonacci, volume, and momentum indicators for extra confirmation.
🔧 Customization Options (if available):
Enable/disable zones by timeframe
Adjust zone thickness and color
Configure how long zones remain visible
Zone stacking and merge options
💡 Best For:
Price Action Traders
Supply/Demand & S/R Strategy Users
Breakout and Reversal Traders
Day Traders and Swing Traders
AlgoRanger Fibonacci Synthesis📘 AlgoRanger Fibonacci Synthesis
Author:
🔍 What It Does:
The AlgoRanger Fibonacci Synthesis is a powerful technical analysis tool that automatically draws dynamic Fibonacci retracement levels between algorithmically detected swing highs and lows. It combines price action structure, retracement theory, and trend confirmation in one seamless indicator.
This tool is ideal for traders looking to enter on pullbacks, confirm trend reversals, or identify key price reaction zones without having to manually draw Fibonacci levels.
🛠️ How It Works:
Auto Swing Detection: The indicator uses recent price pivots to define a high-low range and draws Fibonacci levels within it (0% to 100%).
Key Fib Levels: The classic 23.6%, 38.2%, 50%, 61.8%, and 78.6% retracement levels are plotted to show areas of potential support/resistance.
Color-Coded Zones: Each level is clearly color-coded to help you visually assess risk/reward and decision zones.
Trend Mapping: Works in conjunction with AlgoRanger Smart Signal and Trend Dashboard for market structure confirmation.
Dynamic Support Line: A red stepped baseline highlights trailing support or trend-following strength zones.
📈 How to Use It:
Entry Zones: Look to enter long trades during pullbacks to the 38.2%–61.8% retracement in an uptrend. Enter shorts in the same range during a downtrend.
Confirmation: Use trend context (e.g. green/red structure lines or other AlgoRanger tools) to confirm the dominant direction.
Stops and Targets:
Place stops near 78.6%–100% levels (end of retracement).
Use 0% or new swing highs/lows as initial profit targets.
Reversal Watching: If price hits 78.6%–100%, monitor for rejection candles or divergences for potential reversal entries.
✅ Best For:
Day trading (15m–1h charts)
Swing trading
Trend-following and countertrend strategies
⚙️ Settings You Can Customize (If Included):
Lookback length for pivot calculation
Visibility of individual Fib levels
Alert options when price crosses Fib zones (optional)
Style and color preferences
AlgoRanger Trend Matrix📘 AlgoRanger Trend Matrix
Author: AlgoRanger
🔍 What It Does:
AlgoRanger Trend Matrix is a multi-timeframe trend confirmation tool that combines higher and lower timeframe analysis into a clean, color-coded dashboard. It helps traders quickly identify trend alignment across different timeframes, improving decision-making for entries, exits, and overall market bias.
It is designed to act as a visual filter to keep you trading in the direction of the dominant trend.
🛠️ How It Works:
Multi-Timeframe Trend Scanning: Calculates trend direction on several user-defined timeframes (e.g., 1h, 4h, 1D, 1W).
Trend Criteria: Uses indicators like Moving Averages, Price Action, or custom logic to determine if the market is Bullish, Bearish, or Neutral.
Color-Coded Matrix:
🟢 Green = Uptrend
🔴 Red = Downtrend
⚪ Gray/Neutral = Sideways or indecisive
Visual Panel: Displays real-time trend direction for each timeframe in a compact matrix format.
📈 How to Use It:
Trend Confirmation: Only take trades in the direction where multiple timeframes show the same color (e.g., mostly green for buys).
Filter Noise: Avoid trades when the matrix is mixed (green + red + gray), signaling indecision.
Entry Timing:
Wait for lower timeframes (like 5m/15m) to align with higher ones (e.g. 1H, 4H).
This confirms momentum is syncing across levels.
Exits:
Consider taking partial profits or exiting when the matrix begins showing trend conflict (e.g., green turning red).
Scalping to Swing:
Scalpers use short-term trends (5m/15m).
Swing traders focus on 1H to Daily.
✅ Best For:
Day trading
Swing trading
Trend-following systems
Traders needing quick visual confirmation of trend alignment
⚙️ Customizable Settings (if available):
Timeframes to include (fully user-defined)
Trend criteria logic (MA, RSI slope, etc.)
Panel position and size
Alert integration when trends flip
🧠 Pro Tip:
Pair this with your entry strategy (e.g., Fibonacci Synthesis or price action) to filter out low-probability trades and stay on the right side of momentum.
Max Trend Points [BigBeluga]🔵 OVERVIEW
A clean and powerful tool for identifying major trend shifts and quantifying the strength of each move using dynamically calculated price extremes.
This indicator helps traders visualize the most significant trend changes by plotting trend direction lines and dynamically tracking the highest or lowest point within each trend leg. It’s ideal for identifying key price impulses and measuring their magnitude in real time.
🔵 CONCEPTS
Uses an adaptive trend-following logic based on volatility envelopes created from HMA of the price range (high - low).
Identifies trend direction and flips when price breaks above or below these dynamic envelopes.
Tracks swing highs and lows within the current trend leg to highlight trend extremes.
Calculates and displays the percentage gain or drop from trend start to trend peak/valley.
🔵 FEATURES
Trend Shift Detection:
Plots a colored trend line (uptrend or downtrend) that updates based on price action volatility.
Impulse Mapping:
Draws a dashed line between the point of trend change (close) and the current trend leg's extreme (highest high or lowest low).
Percentage Labeling:
Displays a floating label showing the exact percent change from the trend start to the current extreme.
Real-Time Adjustments:
As the trend progresses, the extreme point and the percent label update automatically to reflect new highs/lows.
🔵 HOW TO USE
Look for the trend color shift and circular marker to identify a new potential trend direction.
Use the dashed lines and percent label to evaluate the strength and potential maturity of each move.
Combine this tool with support/resistance levels or other indicators to identify confluence zones.
Adjust the "Factor" input to make the trend detection more or less sensitive depending on your timeframe.
🔵 CONCLUSION
Max Trend Points is an efficient visual indicator for understanding the structure and magnitude of trending moves. It provides essential feedback on how far a trend has traveled, where momentum may be peaking, and when a shift may be underway—all with real-time adaptability and clean presentation.
Precision Trend Shot | JeffreyTimmermansPrecision Trend Shot
The "Precision Trend Shot" Indicator is an advanced technical tool designed to provide a dynamic and adaptive view of market trends. By combining three core components—RSI Oscillator, LSMA ATR, and Adaptable Trend—this indicator delivers precise signals that help traders identify market direction, volatility, and potential trend reversals. The calculated total score, derived from these components, provides a clear, actionable view of market conditions.
Key Features
Multi-Component Analysis: Integrates three key indicators (RSI, LSMA ATR, and Adaptable Trend) for a comprehensive view of market trends.
Dynamic Trend Classification: Categorizes market states as "Bullish" or "Bearish", based on a combined score.
Standard Deviation Bands: Displays standard deviation bands around the score line for enhanced volatility visualization.
Gradient Background Coloring: Visually highlights market phases with gradient colors, aiding quick interpretation.
Customizable Visuals: Offers extensive settings for coloring, background gradients, and signal visibility.
Real-Time Alerts: Generates alerts for significant trend changes or transitions between market states.
Inputs & Settings
RSI Settings:
RSI Source: Default: Close price. Defines the data source for RSI calculation.
RSI Length: Default: 10. Sets the period for calculating RSI.
LSMA ATR Settings:
LSMA Source: Default: Close price. Defines the data source for LSMA calculation.
LSMA Length: Default: 21. Sets the period for calculating the Least Squares Moving Average.
ATR Length: Default: 12. Sets the period for calculating the Average True Range.
Adaptable Trend Settings:
Trend Length: Default: 5. Sets the period for calculating the trend.
Smoothing Length: Default: 5. Controls the smoothing of trend volatility.
Sensitivity: Default: 1.5. Adjusts the sensitivity of trend bands.
Standard Deviation Settings:
Enable Standard Deviation Bands: Default: True. Toggles the display of standard deviation bands.
Standard Deviation Length: Default: 20. Sets the period for standard deviation calculation.
Standard Deviation Multiplier: Default: 2.0. Adjusts the width of the bands.
Smoothing Length: Default: 5. Controls the smoothing of standard deviation bands.
Visual Settings:
Enable Candle Coloring: Default: True. Colors candles based on market state (Bullish or Bearish).
Enable Background Gradient: Default: True. Applies gradient coloring to the background based on trend direction.
Score Line Colors: Customize colors for bullish or bearish score lines.
Calculation Process
RSI Calculation:
Computes the Relative Strength Index (RSI) of the selected source data.
Signals bullish (RSI > 50) or bearish (RSI < 50) conditions.
LSMA ATR Calculation:
Computes LSMA for trend direction and ATR for volatility measurement.
Generates buy and sell signals based on crossover and crossunder of ATR bands.
Adaptable Trend Calculation:
Calculates dynamic trend levels using EMA and standard deviation bands.
Classifies trend states as Bullish or Bearish.
Combined Signal Calculation:
Averages the signals from RSI, LSMA ATR, and Adaptable Trend to generate a total score.
Classifies the market as "Bullish" or "Bearish" based on this score.
Standard Deviation Bands:
Plots standard deviation bands around the combined signal for enhanced volatility analysis.
Gradient Background Coloring:
Colors the chart background based on the identified market state (Bullish or Bearish).
How to Use the Precision Trend Shot Indicator
Identifying Market States:
Bullish Market: Total score > 0, gradient background green.
Bearish Market: Total score < 0, gradient background red.
Confirming Signals:
Use RSI and LSMA ATR signals for early indications.
Use Trend Recon for confirming longer-term trend direction.
Visualizing Volatility:
Standard deviation bands highlight potential reversal zones.
Dynamic Alerts
The Precision Trend Shot Indicator includes a robust alert system for real-time market transitions:
Bullish to Bearish: Market shifts from a bullish to bearish trend.
Bearish to Bullish: Market shifts from a bearish to bullish trend.
Conclusion
The Precision Trend Shot Indicator is an advanced, versatile tool for identifying market trends, visualizing volatility, and generating actionable signals. With customizable settings, dynamic alerts, and clear visual representation, it is an essential addition to any trader’s toolkit.
-Jeffrey
Trend Factor Simplified - Shared (Crypto)A Trend Following Indicator for crypto, stronger than your thought, entering lower region means you need to be careful of buying/long chance, entering upper region means you need to be careful of selling/short chance, good luck! NOT an oscillator/reversal indicator, don't be mislead by its plotting way.
一个加密货币的趋势跟踪指标,比你想的要强的那种,进入下方区域说明要关注买入/做多机会,进入上方区域说明要关注卖出/做空机会,实际操作试试看就知道了。不是振荡器/反转指标,别用错了。
Parabolic RSI Strategy + MA Filter + TP/SL 【PakunFX】🧠 Parabolic RSI Strategy + MA Filter + TP/SL【PakunFX】
This strategy combines a **custom Parabolic SAR applied to the RSI** (momentum-based trend reversal detection) with a **price-based moving average filter** to create a clear and responsive trend-following system.
Additionally, it **automatically draws Take Profit (TP) and Stop Loss (SL) levels** on the chart based on a fixed risk-reward ratio, providing visual risk clarity and supporting consistent trade planning.
---
## 🔍 What This Script Does
**RSI-Based Trend Detection:**
A custom Parabolic SAR is applied to RSI rather than price, enabling detection of **momentum reversals** instead of just price swings.
**MA Directional Filter:**
Entries are filtered by a moving average (EMA or SMA). The strategy only allows trades **in the direction of the trend**—longs above the MA, shorts below.
**Auto-Drawn TP/SL Levels:**
Each trade includes auto-calculated TP and SL lines using a configurable risk-reward ratio (e.g., 2.0), helping traders maintain consistency and discipline.
**Clear Entry Triggers:**
Positions are opened **when the RSI-based Parabolic SAR flips direction**, but only if the price is on the correct side of the MA filter.
→ This ensures trades are made **at the moment of momentum shift**, but only **in the direction of the dominant trend**.
---
## 🧮 Core Logic Breakdown
✅ Entry Conditions
**Long Entry:**
RSI-based SAR flips below the RSI (bullish signal) **and** price is **above** the moving average.
**Short Entry:**
RSI-based SAR flips above the RSI (bearish signal) **and** price is **below** the moving average.
✅ Exit Conditions (Position Reversal)
When an opposite signal occurs, the current position is **closed immediately**, and a new one is **opened in the opposite direction**.
✅ TP / SL Setup
- SL is placed at a **virtual buffer distance** (e.g., 100 pips from entry).
- TP is calculated using the **risk-reward ratio** (e.g., 2.0 → TP at 200 pips if SL = 100).
→ Delivers consistent, risk-defined trades.
---
## 💰 Risk Management Parameters
**Asset / Timeframe:** Any (Backtested on 10-minute chart)
**Account Size (Virtual):** $3,000
**Commission:** 0.02% per trade
**Slippage Buffer:** Equivalent to 100 pips
**Risk Per Trade:** Approximately 5% of account balance
**Number of Trades (Backtest Period):** 125 trades
---
## 📈 Recommended Usage
**Timeframes:** 5m to 30m (scalping to intraday)
**Market Conditions:** Best in trending markets; responsive even in mild ranges
**Assets:** Forex pairs, Gold, WTI Crude, Indexes with volatility
**Discretionary Support:** Visual TP/SL allows for **pre-planned trades** and avoids impulsive decisions
---
## ⚠️ Notes & Considerations
Positions are reversed on opposite signals (no simultaneous longs & shorts).
Backtests do not include broker-specific execution factors—adjust for slippage and spreads if needed.
Strategy is **originally developed**, inspired by “ChartPrime's RSI Parabolic SAR” idea, but fully standalone.
---
## 🖼 Chart Visuals & Features
**MA Line (orange):** Shows trend direction
**TP Line (green dashed):** Take Profit visualization
**SL Line (red dashed):** Stop Loss boundary
**RSI-SAR Flip Points:** Highlight entry timing visually
---
## ✅ Summary
Parabolic RSI Strategy + MA Filter + TP/SL【PakunFX】 is a
“Momentum Detection × Trend Filtering × Exit Visualization” strategy designed for consistent, visually guided decision-making.
With clearly structured logic and visual aids, it serves both discretionary and systematic traders looking for a **momentum-aligned, risk-controlled approach**.
Trend Following Bundle [ActiveQuants]The Trend Following Bundle indicator is a comprehensive toolkit designed to equip traders with a suite of essential technical analysis tools focused on identifying , confirming , and capitalizing on market trends . By bundling popular indicators like Moving Averages , MACD , Supertrend , ADX , ATR , OBV , and the Choppiness Index into a single script, it streamlines chart analysis and enhances strategy development.
This bundle operates on the principle that combining signals from multiple, complementary indicators provides a more robust view of market trends than relying on a single tool. It integrates:
Trend Direction: Moving Averages, Supertrend.
Momentum: MACD.
Trend Strength: ADX.
Volume Pressure: On Balance Volume (OBV).
Volatility: Average True Range (ATR).
Market Condition Filter: Choppiness Index (Trend vs. Range).
By allowing users to selectively enable, customize, and view these indicators (potentially across different timeframes), the bundle facilitates nuanced and layered trend analysis.
█ KEY FEATURES
All-in-One Convenience: Access multiple core trend-following indicators within a single TradingView script slot.
Modular Design: Easily toggle each individual indicator (MAs, MACD, Supertrend, etc.) On or Off via the settings menu to customize your chart view.
Extensive Customization: Fine-tune parameters (lengths, sources, MA types, colors, etc.) for every included indicator to match your trading style and the specific asset.
Multi-Timeframe (MTF) Capability: Configure each indicator component to analyze data from a different timeframe than the chart's, allowing for higher-level trend context.
Integrated Alerts: Pre-built alert conditions for key events like Moving Average crossovers , MACD signals , Supertrend flips , and Choppiness Index threshold crosses . Easily set up alerts through TradingView's alert system.
When configuring your alerts in TradingView, pay close attention to the trigger option:
- Setting it to " Only Once " will trigger the alert the first time the condition is met, which might happen during an unclosed bar (intra-bar). This alert instance will then cease.
- Setting it to " Once Per Bar Close " will trigger the alert only after a bar closes if the condition was met on that finalized bar. This ensures signals are based on confirmed data and allows the alert to potentially trigger again on subsequent closing bars if the condition persists or reoccurs. Use this option for signals based on confirmed, closed-bar data.
MA Smoothing & Bands (Optional): Apply secondary smoothing or Bollinger Bands directly to the Fast and Slow Moving Averages for advanced analysis.
█ USER INPUTS
Fast MA:
On/Off: Enables/Disables the Fast Moving Average plot and related smoothing/bands.
Type: Selects the primary calculation type (SMA, EMA, SMMA (RMA), WMA, VWMA). Default: EMA.
Source: Input data for the MA calculation (e.g., close, open, hl2). Default: close.
Length: Lookback period for the primary MA calculation. Default: 9.
Color: Sets the color of the primary Fast MA line. Default: Yellow.
Line Width: Sets the thickness of the primary Fast MA line. Default: 2.
Smoothing Type: Selects secondary smoothing type applied to the primary MA (e.g., None, SMA, EMA) or adds Bollinger Bands (SMA + Bollinger Bands). Default: None.
Smoothing Length: Lookback period for the secondary smoothing MA or the basis MA for Bollinger Bands. Relevant only if Smoothing Type is not " None ". Default: 10.
BB StdDev: Standard deviation multiplier for Bollinger Bands. Relevant only if Smoothing Type is " SMA + Bollinger Bands ". Default: 2.0.
Timeframe: Sets a specific timeframe for the MA calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close before plotting, preventing repainting. Default: true.
Slow MA:
On/Off: Enables/Disables the Slow Moving Average plot and related smoothing/bands.
Type: Selects the primary calculation type (SMA, EMA, SMMA (RMA), WMA, VWMA). Default: EMA.
Source: Input data for the MA calculation (e.g., close, open, hl2). Default: close.
Length: Lookback period for the primary MA calculation. Default: 9.
Color: Sets the color of the primary Slow MA line. Default: Yellow.
Line Width: Sets the thickness of the primary Slow MA line. Default: 2.
Smoothing Type: Selects secondary smoothing type applied to the primary MA (e.g., None, SMA, EMA) or adds Bollinger Bands (SMA + Bollinger Bands). Default: None.
Smoothing Length: Lookback period for the secondary smoothing MA or the basis MA for Bollinger Bands. Relevant only if Smoothing Type is not " None ". Default: 10.
BB StdDev: Standard deviation multiplier for Bollinger Bands. Relevant only if Smoothing Type is " SMA + Bollinger Bands ". Default: 2.0.
Timeframe: Sets a specific timeframe for the MA calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close before plotting, preventing repainting. Default: true.
MACD:
On/Off: Enables/Disables the MACD plots (MACD line, Signal line, Histogram).
Fast Length: Lookback period for the fast MA in MACD calculation. Default: 12.
Slow Length: Lookback period for the slow MA in MACD calculation. Default: 26.
Source: Input data for the MACD MAs. Default: close.
Signal Smoothing: Lookback period for the Signal Line MA. Default: 9.
Oscillator MA Type: Calculation type for Fast and Slow MAs (SMA, EMA). Default: EMA.
Signal Line MA Type: Calculation type for Signal Line MA (SMA, EMA). Default: EMA.
MACD Color: Color of the MACD line. Default: #2962FF.
MACD Signal Color: Color of the Signal line. Default: #FF6D00.
Timeframe: Sets a specific timeframe for the MACD calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
On Balance Volume (OBV):
On/Off: Enables/Disables the OBV plot and its related MAs/Bands.
Type (MA Smoothing): Selects MA type for smoothing OBV (None, SMA, EMA, etc.) or SMA + Bollinger Bands. Default: None.
Length (MA Smoothing): Lookback period for the OBV smoothing MA. Default: 14.
BB StdDev: Standard deviation multiplier for Bollinger Bands if selected. Default: 2.0.
Color: Color of the main OBV line. Default: #2962FF.
Timeframe: Sets a specific timeframe for the OBV calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
ADX:
On/Off: Enables/Disables the ADX plot.
ADX Smoothing: Lookback period for the ADX smoothing component. Default: 14.
DI Length: Lookback period for the Directional Movement (+DI/-DI) calculation. Default: 14.
Color: Color of the ADX line. Default: Red.
Timeframe: Sets a specific timeframe for the ADX calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
ATR:
On/Off: Enables/Disables the ATR plot.
Length: Lookback period for the ATR calculation. Default: 14.
Smoothing: Selects the calculation type for ATR (SMMA (RMA), SMA, EMA, WMA). Default: SMMA (RMA).
Color: Color of the ATR line. Default: #B71C1C.
Timeframe: Sets a specific timeframe for the ATR calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
Supertrend:
On/Off: Enables/Disables the Supertrend plot and background fill.
ATR Length: Lookback period for the ATR calculation within Supertrend. Default: 10.
Factor: Multiplier for the ATR value used to calculate the Supertrend bands. Default: 3.0.
Up Trend Color: Color for the Supertrend line and background during an uptrend. Default: Green.
Down Trend Color: Color for the Supertrend line and background during a downtrend. Default: Red.
Timeframe: Sets a specific timeframe for the Supertrend calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
Choppiness Index:
On/Off: Enables/Disables the Choppiness Index plot and bands.
Length: Lookback period for the Choppiness Index calculation. Default: 14.
Offset: Shifts the plot left or right. Default: 0.
Color: Color of the Choppiness Index line. Default: #2962FF.
Timeframe: Sets a specific timeframe for the CI calculation. Default: Chart.
Wait TF Close: If a timeframe is set, waits for that timeframe's bar to close. Default: true.
█ STRATEGY EXAMPLES
The following strategy examples are provided for illustrative and educational purposes only to demonstrate how indicators within this bundle could be combined. They do not constitute financial advice or trading recommendations. Always conduct your own thorough research and backtesting before implementing any trading strategy.
Here are a few ways the indicators in this bundle can be combined:
1. MA Crossover with Multi-Factor Confirmation
Goal: Enter trends early with confirmation from momentum and trend strength, while filtering out choppy conditions.
Setup: Enable Fast MA (e.g., 9 EMA), Slow MA (e.g., 50 EMA), MACD, ADX, and Choppiness Index.
Entry (Long):
- Price > Slow MA (Establishes broader uptrend context).
- Fast MA crosses above Slow MA OR Price crosses above Fast MA.
- MACD Histogram > 0 (Confirms bullish momentum).
- ADX > 20 or 25 (Indicates sufficient trend strength).
- Choppiness Index < 61.8 (Filters out excessively choppy markets).
Entry (Short): Reverse logic (except for ADX and Choppiness Index).
Management: Consider using the Supertrend or an ATR multiple for stop-loss placement.
Image showing a chart with 2:1 long and short trades, highlighting a candle disqualified for a long entry due to ADX below 20.
2. Supertrend Breakout Strategy
Goal: Use Supertrend for primary signals and stops, confirming with volume and trend strength.
Setup: Enable Supertrend, Slow MA, ADX, and OBV.
Entry (Long):
- Supertrend line turns green and price closes above it.
- Price > Slow MA (Optional filter for alignment with larger trend).
- ADX is rising or above 20 (Confirms trending conditions).
- OBV is generally rising or breaks a recent resistance level (Confirms volume supporting the move).
Entry (Short): Reverse logic (except for ADX and OBV).
Management: Initial stop-loss placed just below the green Supertrend line (for longs) or above the red line (for shorts). Trail stop as Supertrend moves.
Image showing a chart with a 2:1 long trade, one candle disqualified for a short entry, and another disqualified for a long entry.
3. Trend Continuation Pullbacks
Goal: Enter established trends during pullbacks to value areas defined by MAs or Supertrend.
Setup: Enable Slow MA, Fast MA (or Supertrend), MACD, and ADX.
Entry (Long):
- Price is consistently above the Slow MA (Strong uptrend established).
- ADX > 25 (Confirms strong trend).
- Price pulls back towards the Fast MA or the green Supertrend line.
- MACD Histogram was decreasing during the pullback but turns positive again OR MACD line crosses above Signal line near the MA/Supertrend level (Indicates momentum resuming).
Entry (Short): Reverse logic (except for ADX) during a confirmed downtrend.
Management: Stop-loss below the recent swing low or the Slow MA/Supertrend level.
Image showing a chart with 2:1 long and short trades, where price pulls back to the fast MA and the MACD histogram changes color, indicating shifts in momentum during the pullbacks.
█ CONCLUSION
The Trend Following Bundle offers a powerful and flexible solution for traders focused on trend-based strategies. By consolidating essential indicators into one script with deep customization, multi-timeframe analysis, and built-in alerts, it simplifies the analytical workflow and allows for the development of robust, multi-conditional trading systems. Whether used for confirming entries, identifying trend strength, managing risk, or filtering market conditions, this bundle provides a versatile foundation for technical analysis.
█ IMPORTANT NOTES
⚠ Parameter Tuning: Indicator settings (lengths, factors, thresholds) are not one-size-fits-all. Adjust them based on the asset being traded, its typical volatility, and the timeframe you are analyzing for optimal performance. Backtesting is crucial .
⚠ Multi-Timeframe Use: Using the Timeframe input allows for powerful analysis but be mindful of potential lag, especially if Wait TF Close is disabled. Signals based on higher timeframes will update only when that higher timeframe bar closes (if Wait TF Close is enabled).
⚠ Confirmation is Key: While the bundle provides many tools, avoid relying on a single indicator's signal. Use combinations to build confluence and increase the probability of successful trades.
⚠ Chart Clarity: With many indicators available, only enable those relevant to your current strategy to avoid overwhelming your chart. Use the On/Off toggles frequently.
⚠ Confirmed Bars Only: Like most TradingView indicators, signals and plots are finalized on the close of the bar. Be cautious acting on intra-bar signals which may change before the bar closes.
█ RISK DISCLAIMER
Trading involves substantial risk of loss and is not suitable for every investor. The Trend Following Bundle indicator provides technical analysis tools for educational and informational purposes only; it does not constitute financial advice or a recommendation to buy or sell any asset. Indicator signals identify potential patterns based on historical data but do not guarantee future price movements or profitability. Always conduct your own thorough analysis, use multiple sources of information, and implement robust risk management practices before making any trading decisions. Past performance is not indicative of future results.
📊 Happy trading! 🚀
Market Structure Confluence [AlgoAlpha]OVERVIEW
This script is called "Market Structure Confluence" and it combines classic market structure analysis with a dynamic volatility-based band system to detect shifts in trend and momentum more reliably. It tracks key swing points (higher highs, higher lows, lower highs, lower lows) to define the trend, then overlays a basis and ATR-smoothed volatility bands to catch rejection signals and highlight potential inflection points in the market.
CONCEPTS
Market structure is the foundation of price action trading, focusing on the relationship between successive highs and lows to understand trend conditions. Break of Structure (BOS) and Change of Character (CHoCH) events are important because they signal when a market might be shifting direction. This script enhances traditional structure by integrating volatility bands, which act like dynamic support/resistance zones based on ATR, allowing it to capture momentum surges and rejections beyond just structural shifts.
FEATURES
Swing Detection: It detects and labels Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) based on user-defined time horizons, helping traders quickly spot the trend direction.
BOS and CHoCH Lines: When a previous swing point is broken, the script automatically plots a Break of Structure (BOS) line. If the break represents a major trend reversal (a CHoCH), it is marked differently to separate simple breakouts from real trend changes.
Rejection Signals: Special arrows plot when price pierces a band and then pulls back, suggesting a potential trap move or rejection signal in the direction of the new structure.
Alerts: Built-in alerts for structure breaks, CHoCHs, swing points, rejections at bands, and trend flips make it easy to automate setups without manually watching the chart.
USAGE
Set your preferred swing detection size depending on your timeframe and trading style — smaller numbers for intraday, larger numbers for swing trading. Choose whether you want BOS/CHoCH confirmed by candle closes or by wick breaks. Use the volatility band settings to fine-tune how tightly or loosely the bands hug the price, adjusting sensitivity based on market conditions. When a BOS or CHoCH occurs, or when a rejection happens at the bands, the script will highlight it clearly and optionally trigger alerts. Watch for combinations where both structure breaks and volatility band rejections happen together — those are high-quality trade signals. This setup works best when used with basic trend filtering and higher timeframe confirmation.
Institutional Composite Moving Average (ICMA) [Volume Vigilante]Institutional Composite Moving Average (ICMA)
The Next Evolution of Moving Averages — Built for Real Traders.
ICMA blends the strength of four powerful averages (SMA, EMA, WMA, HMA) into a single ultra-responsive, ultra-smooth signal.
It reacts faster than traditional MAs while filtering out noise, giving you clean trend direction with minimal lag.
🔹 Key Features:
• Faster reaction than SMA, EMA, or WMA individually
• Smoother and more stable than raw HMA
• Naturally adapts across trend, momentum, and consolidation conditions
• Zero gimmicks. Zero repainting. Full institutional quality.
🔹 Designed For:
• Scalping
• Swing trading
• Signal engines
• Algorithmic systems
📎 How to Use:
• Overlay it on any chart
• Fine-tune the length per timeframe
• Combine with your entries/exits for maximum edge
Created by Volume Vigilante 🧬 — Delivering Real-World Trading Tools.
Aurora Flow Oscillator [QuantAlgo]The Aurora Flow Oscillator is an advanced momentum-based technical indicator designed to identify market direction, momentum shifts, and potential reversal zones using adaptive filtering techniques. It visualizes price momentum through a dynamic oscillator that quantifies trend strength and direction, helping traders and investors recognize momentum shifts and trading opportunities across various timeframes and asset class.
🟢 Technical Foundation
The Aurora Flow Oscillator employs a sophisticated mathematical approach with adaptive momentum filtering to analyze market conditions, including:
Price-Based Momentum Calculation: Calculates logarithmic price changes to measure the rate and magnitude of market movement
Adaptive Momentum Filtering: Applies an advanced filtering algorithm to smooth momentum calculations while preserving important signals
Acceleration Analysis: Incorporates momentum acceleration to identify shifts in market direction before they become obvious
Signal Normalization: Automatically scales the oscillator output to a range between -100 and 100 for consistent interpretation across different market conditions
The indicator processes price data through multiple filtering stages, applying mathematical principles including exponential smoothing with adaptive coefficients. This creates an oscillator that dynamically adjusts to market volatility while maintaining responsiveness to genuine trend changes.
🟢 Key Features & Signals
1. Momentum Flow and Extreme Zone Identification
The oscillator presents market momentum through an intuitive visual display that clearly indicates both direction and strength:
Above Zero: Indicates positive momentum and potential bullish conditions
Below Zero: Indicates negative momentum and potential bearish conditions
Slope Direction: The angle and direction of the oscillator provide immediate insight into momentum strength
Zero Line Crossings: Signal potential trend changes and new directional momentum
The indicator also identifies potential overbought and oversold market conditions through extreme zone markings:
Upper Zone (>50): Indicates strong bullish momentum that may be approaching exhaustion
Lower Zone (<-50): Indicates strong bearish momentum that may be approaching exhaustion
Extreme Boundaries (±95): Mark potentially unsustainable momentum levels where reversals become increasingly likely
These zones are displayed with gradient intensity that increases as the oscillator moves toward extremes, helping traders and investors:
→ Identify potential reversal zones
→ Determine appropriate entry and exit points
→ Gauge overall market sentiment strength
2. Customizable Trading Style Presets
The Aurora Flow Oscillator offers pre-configured settings for different trading approaches:
Default (80,150): Balanced configuration suitable for most trading and investing situations.
Scalping (5,80): Highly responsive settings for ultra-short-term trades. Generates frequent signals and catches quick price movements. Best for 1-15min charts when making many trades per day.
Day Trading (8,120): Optimized for intraday movements with faster response than default settings while maintaining reasonable signal quality. Ideal for 5-60min or 4h-12h timeframes.
Swing Trading (10,200): Designed for multi-day positions with stronger noise filtering. Focuses on capturing larger price swings while avoiding minor fluctuations. Works best on 1-4h and daily charts.
Position Trading (14,250): For longer-term position traders/investors seeking significant market trends. Reduces false signals by heavily filtering market noise. Ideal for daily or even weekly charts.
Trend Following (16,300): Maximum smoothing that prioritizes established directional movements over short-term fluctuations. Best used on daily and weekly charts, but can also be used for lower timeframe trading.
Countertrend (7,100): Tuned to detect potential reversals and exhaustion points in trends. More sensitive to momentum shifts than other presets. Effective on 15min-4h charts, as well as daily and weekly charts.
Each preset automatically adjusts internal parameters for optimal performance in the selected trading context, providing flexibility across different market approaches without requiring complex manual configuration.
🟢 Practical Usage Tips
1/ Trend Analysis and Interpretation
→ Direction Assessment: Evaluate the oscillator's position relative to zero to determine underlying momentum bias
→ Momentum Strength: Measure the oscillator's distance from zero within the -100 to +100 range to quantify momentum magnitude
→ Trend Consistency: Monitor the oscillator's path for sustained directional movement without frequent zero-line crossings
→ Reversal Detection: Watch for oscillator divergence from price and deceleration of movement when approaching extreme zones
2/ Signal Generation Strategies
Depending on your trading approach, multiple signal strategies can be employed:
Trend Following Signals:
Enter long positions when the oscillator crosses above zero
Enter short positions when the oscillator crosses below zero
Add to positions on pullbacks while maintaining the overall trend direction
Countertrend Signals:
Look for potential reversals when the oscillator reaches extreme zones (±95)
Enter contrary positions when momentum shows signs of exhaustion
Use oscillator divergence with price as additional confirmation
Momentum Shift Signals:
Enter positions when oscillator changes direction after establishing a trend
Exit positions when oscillator direction reverses against your position
Scale position size based on oscillator strength percentage
3/ Timeframe Optimization
The indicator can be effectively applied across different timeframes with these considerations:
Lower Timeframes (1-15min):
Use Scalping or Day Trading presets
Focus on quick momentum shifts and zero-line crossings
Be cautious of noise in extreme market conditions
Medium Timeframes (30min-4h):
Use Default or Swing Trading presets
Look for established trends and potential reversal zones
Combine with support/resistance analysis for entry/exit precision
Higher Timeframes (Daily+):
Use Position Trading or Trend Following presets
Focus on major trend identification and long-term positioning
Use extreme zones for position management rather than immediate reversals
🟢 Pro Tips
Price Momentum Period:
→ Lower values (5-7) increase sensitivity to minor price fluctuations but capture more market noise
→ Higher values (10-16) emphasize sustained momentum shifts at the cost of delayed response
→ Adjust based on your timeframe (lower for shorter timeframes, higher for longer timeframes)
Oscillator Filter Period:
→ Lower values (80-120) produce more frequent directional changes and earlier response to momentum shifts
→ Higher values (200-300) filter out shorter-term fluctuations to highlight dominant market cycles
→ Match to your typical holding period (shorter holding time = lower filter values)
Multi-Timeframe Analysis:
→ Compare oscillator readings across different timeframes for confluence
→ Look for alignment between higher and lower timeframe signals
→ Use higher timeframe for trend direction, lower for earlier entries
Volatility-Adaptive Trading:
→ Use oscillator strength to adjust position sizing (stronger = larger)
→ Consider reducing exposure when oscillator reaches extreme zones
→ Implement tighter stops during periods of oscillator acceleration
Combination Strategies:
→ Pair with volume indicators for confirmation of momentum shifts
→ Use with support/resistance levels for strategic entry and exit points
→ Combine with volatility indicators for comprehensive market context
Advanced Momentum Scanner [QuantAlgo]The Advanced Momentum Scanner is a sophisticated technical indicator designed to identify market momentum and trend direction using multiple exponential moving averages (EMAs), momentum metrics, and adaptive visualization techniques. It is particularly valuable for those looking to identify trading and investing opportunities based on trend changes and momentum shifts across any market and timeframe.
🟢 Technical Foundation
The Advanced Momentum Scanner utilizes a multi-layered approach with four different EMA periods to identify market momentum and trend direction:
Ultra-Fast EMA for quick trend changes detection (default: 5)
Fast EMA for short-term trend analysis (default: 10)
Mid EMA for intermediate confirmation (default: 30)
Slow EMA for long-term trend identification (default: 100)
For momentum detection, the indicator implements a Rate of Change (RoC) calculation to measure price momentum over a specified period. It further enhances analysis by incorporating RSI readings for overbought/oversold conditions, volatility measurements through ATR, and optional volume confirmation. When these elements align, the indicator generates trading signals based on the selected sensitivity mode (Conservative, Balanced, or Aggressive).
🟢 Key Features & Signals
1. Multi-Period Trend Identification
The indicator combines multiple EMAs of different lengths to provide comprehensive trend analysis within the same timeframe, displaying the information through color-coded visual elements on the chart.
When an uptrend is detected, chart elements are colored with the bullish theme color (default: green/teal).
Similarly, when a downtrend is detected, chart elements are colored with the bearish theme color (default: red).
During neutral or indecisive periods, chart elements are colored with a neutral gray color, providing clear visual distinction between trending and non-trending market conditions.
This visualization provides immediate insights into underlying trend direction without requiring separate indicators, helping traders and investors quickly identify the market's current state.
2. Trend Strength Information Panel
The trend panel operates in three different sensitivity modes (Conservative, Aggressive, and Balanced), each affecting how the indicator processes and displays market information.
The Conservative mode prioritizes trend sustainability over frequency, showing only strong trend movements with high probability.
The Aggressive mode detects early trend changes, providing more frequent signals but potentially more false positives.
The Balanced mode offers a middle ground with moderate signal frequency and reliability.
Regardless of the selected mode, the panel displays:
Current trend direction (UPTREND, DOWNTREND, or NEUTRAL)
Trend strength percentage (0-100%)
Early detection signals when applicable
The active sensitivity mode
This comprehensive approach helps traders and investors:
→ Assess the strength of current market trends
→ Identify early potential trend changes before full confirmation
→ Make more informed trading and investing decisions based on trend context
3. Customizable Visualization Settings
This indicator offers extensive visual customization options to suit different trading styles and preferences:
Display options:
→ Fully customizable uptrend, downtrend, and neutral colors
→ Color-coded price bars showing trend direction
→ Dynamic gradient bands visualizing potential trend channels
→ Optional background coloring based on trend intensity
→ Adjustable transparency levels for all visual elements
These visualization settings can be fine-tuned through the indicator's interface, allowing traders and investors to create a personalized chart environment that emphasizes the most relevant information for their strategy.
The indicator also features a comprehensive alert system with notifications for:
New trend formations (uptrend, downtrend, neutral)
Early trend change signals
Momentum threshold crossovers
Other significant market conditions
Alerts can be customized and delivered through TradingView's notification system, making it easy to stay informed of important market developments even when you are away from the charts.
🟢 Practical Usage Tips
→ Trend Analysis and Interpretation: The indicator visualizes trend direction and strength directly on the chart through color-coding and the information panel, allowing traders and investors to immediately identify the current market context. This information helps in assessing the potential for continuation or reversal.
→ Signal Generation Strategies: The indicator generates potential trading signals based on trend direction, momentum confirmation, and selected sensitivity mode. Users can choose between Conservative (fewer but more reliable signals), Balanced (moderate approach), or Aggressive (more frequent but potentially less reliable signals).
→ Multi-Period Trend Assessment: Through its layered EMA approach, the indicator enables users to understand trend conditions across different lookback periods within the same timeframe. This helps in identifying the dominant trend and potential turning points.
🟢 Pro Tips
Adjust EMA periods based on your timeframe:
→ Lower values for shorter timeframes and more frequent signals
→ Higher values for higher timeframes and more reliable signals
Fine-tune sensitivity mode based on your trading style:
→ "Conservative" for position trading/long-term investing and fewer false signals
→ "Balanced" for swing trading/medium-term investing with moderate signal frequency
→ "Aggressive" for scalping/day trading and catching early trend changes
Look for confluence between components:
→ Strong trend strength percentage and direction in the information panel
→ Overall market context aligning with the expected direction
Use for multiple trading approaches:
→ Trend following during strong momentum periods
→ Counter-trend trading at band extremes during overextension
→ Early trend change detection with sensitivity adjustments
→ Stop loss placement using dynamic bands
Combine with:
→ Volume indicators for additional confirmation
→ Support/resistance analysis for strategic entry/exit points
→ Multiple timeframe analysis for broader market context
Exponential Trend [AlgoAlpha]OVERVIEW
This script plots an adaptive exponential trend system that initiates from a dynamic anchor and accelerates based on time and direction. Unlike standard moving averages or trailing stops, the trend line here doesn't follow price directly—it expands exponentially from a pivot determined by a modified Supertrend logic. The result is a non-linear trend curve that starts at a specific price level and accelerates outward, allowing traders to visually assess trend strength, persistence, and early-stage reversal points through both base and volatility-adjusted extensions.
CONCEPTS
This indicator builds on the idea that trend-following tools often need dynamic, non-static expansion to reflect real market behavior. It uses a simplified Supertrend mechanism to define directional context and anchor levels, then applies an exponential growth function to simulate trend acceleration over time. The exponential growth is unidirectional and resets only when the direction flips, preserving trend memory. This method helps avoid whipsaws and adds time-weighted confirmation to trends. A volatility buffer—derived from ATR and modifiable by a width multiplier—adds a second layer to indicate zones of risk around the main trend path.
FEATURES
Exponential Trend Logic : Once a directional anchor is set, the base trend line accelerates using an exponential formula tied to elapsed bars, making the trend stronger the longer it persists.
Volatility-Adjusted Extension : A secondary band is plotted above or below the base trend line, widened by ATR to visualize volatility zones, act as soft stop regions or as a better entry point (Dynamic Support/Resistance).
Color-Coded Visualization : Clear green/red base and extension lines with shaded fills indicate trend direction and confidence levels.
Signal Markers & Alerts : Triangle markers indicate confirmed trend reversals. Built-in alerts notify users of bullish or bearish direction changes in real-time.
USAGE
Use this script to identify strong trends early, visually measure their momentum over time, and determine safe areas for entries or exits. Start by adjusting the *Exponential Rate* to control how quickly the trend expands—the higher the rate, the more aggressive the curve. The *Initial Distance* sets how far the anchor band is placed from price initially, helping filter out noise. Increase the *Width Multiplier* to widen the volatility zone for more conservative entries or exits. When the price crosses above or below the base line, a new trend is assumed and the exponential projection restarts from the new anchor. The base trend and its extension both shift over time, but only reset on a confirmed reversal. This makes the tool especially useful for momentum continuation setups or trailing stop logic in trending markets.
Dynamic Adaptive Moving Average [Alpha Extract]Dynamic Adaptive Moving Average (DAMA) 📊
The Dynamic Adaptive Moving Average (DAMA) indicator is an adaptive technical tool that automatically discovers the optimal moving average period based on forward-looking price behavior. Unlike traditional fixed-length moving averages, this indicator continuously evaluates multiple timeframes to identify which MA length most accurately predicts future price movement, creating a responsive trend line that adapts to changing market conditions.
🔶 CALCULATION
The indicator employs a dynamic optimization algorithm to select the most effective moving average:
• Period Testing: Evaluates MA lengths from 5 to 100 periods to find the optimal timeframe
• Predictive Error: Measures each MA's accuracy by comparing it to the actual price 5 bars in the future
• Trend Weighting: Incorporates Rate of Change (ROC) to give higher priority to trend-following capabilities
• Error Minimization: Selects the MA length with the lowest weighted predictive error
• Smoothing: Applies an exponential smoothing factor (0.2) to prevent erratic changes in the trend line
🔶 DETAILS
Visual Features:
• Adaptive Trend Line: A yellow line representing the smoothed optimal moving average that dynamically adjusts its period
• Color-Coded Fills: Green areas when price is above the optimal MA (bullish), red when price is below (bearish)
• Opacity Gradient: Fill transparency provides visual context for the relationship between price and the trend line
• Real-Time Optimization Display: A table in the top-right corner shows the current optimal MA length
Interpretation:
• Bullish Signal: Price above the yellow DAMA line with green fill indicates upward momentum
• Bearish Signal: Price below the yellow DAMA line with red fill suggests downward pressure
• Trend Changes: Watch for crossovers between price and the DAMA for potential trend shifts
• Optimal Length Changes: Shorter optimal lengths may indicate trending markets, while longer lengths often appear in ranging conditions
🔶 EXAMPLES
The indicator demonstrates:
• Trend Identification: The DAMA hugs price more closely during trends while maintaining enough distance to filter noise
• Dynamic Adaptation: The MA length automatically adjusts shorter during strong trends and longer during consolidations
• Forward-Looking: By optimizing based on future price projection (5 bars), the indicator anticipates price movements better than traditional MAs
• Smooth Transitions: The smoothing algorithm prevents whipsaws while still allowing the MA to adapt to changing conditions
🔶 SETTINGS
Customization Options:
• Min/Max Length: Define the range of MA periods to test (default: 5-100)
• Step Size: Set the increment for testing different MA lengths (default: 1)
• Lookahead: Adjust the number of bars to project ahead for optimization (default: 5)
• Smoothing Factor: Control how quickly the MA adapts to new optimal lengths (default: 0.2)
The Dynamic Adaptive Moving Average (DAMA) indicator offers traders a sophisticated yet intuitive trend-following tool that eliminates the need to manually select MA periods.
Its self-optimizing algorithm continuously identifies the most effective moving average length based on actual price prediction accuracy, making it valuable for various trading strategies across different market environments and timeframes.
Trend Targets [AlgoAlpha]OVERVIEW
This script combines a smoothed trend-following model with dynamic price rejection logic and ATR-based target projection to give traders a complete visual framework for trading trend continuations. It overlays on price and automatically detects potential trend shifts, confirms rejections near dynamic support/resistance, and displays calculated stop-loss and take-profit levels to support structured risk-reward management. Unlike traditional indicators that only show trend direction or signal entries, this tool brings together a unique mix of signal validation, volatility-aware positioning, and layered profit-taking to guide decision-making with more context.
CONCEPTS
The core trend logic is built on a custom Supertrend that uses an ATR-based band structure with long smoothing chains—first through a WMA, then an EMA—allowing the trend line to respond to major shifts while ignoring noise. A key addition is the use of rejection logic: the script looks for consolidation candles that "hug" the smoothed trend line and counts how many consecutive bars reject from it. This behavior often precedes significant moves. A user-defined threshold filters out weak tests and highlights only meaningful rejections.
FEATURES
Trend Detection : Automatically identifies trend direction using a smoothed Supertrend (WMA + EMA), with shape markers on trend shifts and color-coded bars for clarity.
Rejection Signals : Detects price rejections at the trend line after a user-defined number of consolidation bars; plots ▲/▼ icons to highlight strong continuation setups.
Target Projection : On trend confirmation, plots entry, stop-loss (ATR-based), and three dynamic take-profit levels based on customizable multiples.
Dynamic Updates : All levels (entry, SL, TP1–TP3) auto-adjust based on volatility and are labeled in real time on the chart.
Customization : Users can tweak trend parameters, rejection confirmation count, SL/TP ratios, smoothing lengths, and appearance settings.
Alerts : Built-in alerts for trend changes, rejection events, and when TP1, TP2, or TP3 are reached.
Chart Overlay : Plots directly on price chart with minimal clutter and clearly labeled levels for easy trading.
USAGE
Start by tuning the Supertrend factor and ATR period to fit your asset and timeframe—higher values will catch bigger swings, lower values catch faster moves. The confirmation count should match how tightly you want to filter rejection behavior—higher values make signals rarer but stronger. When the trend shifts, the indicator colors the bars and line accordingly, and if enabled, plots the full entry-TP-SL structure. Rejection markers appear only after enough qualifying bars confirm price pressure at the trend line. This is especially useful for continuation plays where price retests the trend but fails to break it. All calculations are based on volatility (ATR), so targets naturally adjust with market conditions. Add alerts to get notified of important signals even when away from the chart.
Donchian Breakout Strategy📈 Donchian Breakout Strategy (Inspired by Way of the Turtle)
This strategy is a modern adaptation of the legendary Turtle Trading system as taught in Way of the Turtle by Curtis Faith — re-engineered for the crypto market’s volatility, 24/7 nature, and frequent fakeouts.
⸻
🐢 Original Inspiration
The original Turtle system, created by Richard Dennis and William Eckhardt, used:
• Breakouts of Donchian Channels (20-day for entry, 10-day for exit)
• Volatility-based position sizing using ATR (N)
• Simple rules, big trend exposure, and pyramiding to grow winners
It was built for futures and commodities, trading daily bars, assuming stable trading hours and regulated markets.
⸻
🚀 What’s Different in This Strategy?
✅ Optimized for Crypto
• Adapts to constant volatility and price manipulation common in crypto
• Adds commission modeling for realistic results (0.045% default)
✅ Improved Entry Filtering
• Uses EMA filter to align with trend direction
• Adds RSI momentum check to avoid early or weak breakouts
• Optional volatility and volume filters to reduce false signals
✅ Smarter Exits
• ATR-based volatility stop loss, not just Donchian reversal
• Avoids pyramiding to reduce risk from sudden reversals
✅ Backtest-Friendly
• Default backtest window starts from 2025-01-01
• Fully configurable: long/short toggle, filter control, stop loss multiplier
⸻
🧪 Use Case
• Best on trending coins with strong directional moves
• Avoids chop via filters, preserving capital
• Can be tuned for aggressive or conservative setups with just a few tweaks
Swing Trade IndicatorThis is a Swing Trade Indicator that combines several technical indicators to analyze market conditions and generate trade signals. I've included two tables that provide real-time information to help you analyze the market and track trades: the Market Status Table and the Trade Tracking Table. These tables are overlaid on the TradingView chart and are customizable in terms of position and visibility.
Simple Moving Averages (SMAs):
Determines trend direction (e.g., bullish if fastMA > slowMA).
Calculates the average closing price over a set period:
fastMA: 21-period SMA (short-term trend).
slowMA: 50-period SMA (medium-term trend).
ultraSlowMA: 200-period SMA (long-term trend).
How:
ta.sma(close, fastLength) computes the SMA of the closing price over fastLength bars (similarly for slowLength and ultraSlowLength).
Volume Analysis:
Identifies potential liquidity spikes.
Measures trading volume to detect high activity.
Average volume over liquidityPeriod (20 bars).
Standard deviation of volume to set a dynamic threshold.
How:
avgVolume = ta.sma(volume, liquidityPeriod): Average volume.
volumeStdDev = ta.stdev(volume, liquidityPeriod): Volatility of volume.
highVolume = volume > avgVolume + volumeStdDev * volumeThresholdMultiplier: Flags high volume if it exceeds the average plus a multiplier (default 1.0) times the standard deviation.
Relative Strength Index (RSI):
Filters entries to avoid overextended markets.
Measures momentum and overbought/oversold conditions.
14-period RSI with thresholds at 60 (overbought) and 40 (oversold).
How:
rsiValue = ta.rsi(close, rsiLength) calculates RSI based on price changes over 14 bars.
Average Directional Index (ADX):
Gauges whether the trend is strong enough to trade.
Assesses trend strength.
14-period ADX.
How:
Calculates True Range (tr), Plus Directional Movement (plusDM), and Minus Directional Movement (minusDM).
Smooths these with ta.rma (Running Moving Average) over adxLength (14).
Computes plusDI and minusDI (directional indicators), then dx (difference), and finally adxValue = ta.rma(dx, adxLength) for trend strength.
Classifies as "Strong" (≥40), "Moderate" (≥20), or "Weak" (<20).
Moving Average Convergence Divergence (MACD) (Optional):
Optional filter for entry conditions if useMacdFilter is enabled.
Tracks momentum and trend changes.
Fast EMA (12), Slow EMA (26), Signal Line (9).
How:
= ta.macd(close, macdFastLength, macdSlowLength, macdSignalLength) computes the MACD components.
macdBullish = macdLine > signalLine: Bullish signal.
macdBearish = macdLine < signalLine: Bearish signal.
Liquidity Zones:
Confirms entries near key levels and suggests next trade setups.
Identifies support and resistance levels based on recent price extremes.
Dynamic levels over 20 bars (if useDynamicLevels is true).
How:
highLiquidityLevel1 = ta.highest(high, 20): Highest high in last 20 bars.
highLiquidityLevel2 = ta.highest(high , 20): Highest high from 20 to 40 bars ago.
highLiquidityLevel3 = ta.lowest(low, 20): Lowest low in last 20 bars.
highLiquidityLevel4 = ta.lowest(low , 20): Lowest low from 20 to 40 bars ago.
Upper and lower zones are derived (upperLevel, lowerLevel), with a midpoint between them.
How It Calculates Entries and Exits
Long Entry:
Basic Conditions (longEntry):
close > fastMA: Price is above the 21-period SMA.
fastMA > slowMA: Short-term trend is above medium-term trend (bullish).
rsiValue < rsiOverbought: RSI below 60 (not overbought).
(not useMacdFilter or macdBullish): If MACD filter is off, ignore it; if on, MACD must be bullish.
Confirmed Entry (confirmedLongEntry):
longEntry is true.
close >= highLiquidityLevel3 * 0.95 and close <= highLiquidityLevel3 * 1.05: Price is within 5% of the lower liquidity level (support).
Action: Sets currentPosition = 'long', records entry price and bar, plots a green triangle below the bar.
Short Entry:
Basic Conditions (shortEntry):
close < fastMA: Price is below the 21-period SMA.
fastMA < slowMA: Short-term trend is below medium-term trend (bearish).
rsiValue > rsiOversold: RSI above 40 (not oversold).
(not useMacdFilter or macdBearish): If MACD filter is off, ignore it; if on, MACD must be bearish.
Confirmed Entry (confirmedShortEntry):
shortEntry is true.
close <= highLiquidityLevel1 * 1.05 and close >= highLiquidityLevel1 * 0.95: Price is within 5% of the upper liquidity level (resistance).
Action: Sets currentPosition = 'short', records entry price and bar, plots a red triangle above the bar.
Exit Conditions
Note: The exit logic is defined but commented out in the script (//longExit and //shortExit), meaning it doesn’t automatically exit positions. It calculates stop-loss and take-profit levels for manual use:
Long Exit (if uncommented):
close < stopLossLevelLong: Price falls below stop-loss (entry price × (1 - 1.5%)).
close > takeProfitLevelLong: Price exceeds take-profit (entry price × (1 + 1.5% × 2.0)).
Short Exit (if uncommented):
close > stopLossLevelShort: Price rises above stop-loss (entry price × (1 + 1.5%)).
close < takeProfitLevelShort: Price falls below take-profit (entry price × (1 - 1.5% × 2.0)).
Suggested Levels: The script provides suggestedLongSL, suggestedLongTP, suggestedShortSL, and suggestedShortTP in the Market Status Table, based on liquidity levels rather than entry price, for manual exits.
Users Can Edit Settings:
Market Status Table Position: Dropdown (e.g., "top_right" to "bottom_left").
Trade Tracking Table Position: Dropdown (e.g., "bottom_right" to "middle_center").
Visibility Toggles (checkboxes):
Show Tables: Enable/disable tables (default: true).
Show Liquidity Zones: Not plotted but affects logic (default: true).
Show Entry Points: Show/hide entry triangles (default: true).
Use Dynamic Levels: Enable/disable liquidity zones (default: true).
Use MACD for Entry Filter: Add MACD to entry conditions (default: false).
Show MACD on Chart: Not implemented but reserved (default: false).
Indicator Periods:
Fast MA Length: Integer (default: 21, e.g., change to 10).
Slow MA Length: Integer (default: 50, e.g., change to 30).
Ultra Slow MA Length: Integer (default: 200, e.g., change to 100).
Liquidity Detection Period: Integer (default: 20, e.g., change to 10).
RSI Length: Integer (default: 14, e.g., change to 7).
ADX Length: Integer (default: 14, e.g., change to 20).
MACD Fast/Slow/Signal Length: Integers (default: 12/26/9, e.g., 9/21/5).
Thresholds:
Volume Threshold Multiplier: Float (default: 1.0, e.g., 1.5 for stricter high volume).
RSI Overbought: Integer (default: 60, e.g., 70).
RSI Oversold: Integer (default: 40, e.g., 30).
Stop Loss %: Float (default: 1.5, e.g., 2.0, range 0.1-10).
Take Profit Ratio: Float (default: 2.0, e.g., 3.0, range 1.0-5.0).
Liquidity Threshold (%): Float (default: 2.0, e.g., 1.5, range 0.5-5.0).
Qullamaggie [Modified] | FractalystWhat's the purpose of this strategy?
The strategy aims to identify high-probability breakout setups in trending markets, inspired by Kristjan "Qullamaggie" Kullamägi’s approach.
It focuses on capturing explosive price moves after periods of consolidation, using technical criteria like moving averages, breakouts, trailing stop-loss and momentum confirmation.
Ideal for swing traders seeking to ride strong trends while managing risk.
----
How does the strategy work?
The strategy follows a systematic process to capture high-momentum breakouts:
Pre-Breakout Criteria:
Prior Price Surge: Identifies stocks that have rallied 30-100%+ in recent month(s), signaling strong underlying momentum (per Qullamaggie’s volatility expansion principles).
Consolidation Phase: Looks for a tightening price range (e.g., flag, pennant, or tight base), indicating a potential "coiling" before continuation.
Trend Confirmation: Uses moving averages (e.g., 20/50/200 EMA) to ensure the stock is trading above key averages on the daily chart, confirming an uptrend.
Price Break: Enters when price clears the consolidation high with conviction.
Risk Management:
Initial Stop Loss: Placed below the consolidation low or a recent swing point to limit downside.
Break-Even Adjustment: Moves stop loss to breakeven once the trade reaches 1.5x risk-to-reward (RR), securing a "free trade" while letting winners run.
Trailing Stop (Unique Edge):
Market Structure Trailing: Instead of trailing via moving averages, the stop is dynamically adjusted using structural invalidation level. This adapts to price action, allowing the trade to stay open during volatile retracements while locking in gains as new structure forms.
Why This Matters: Most strategies use rigid trailing stops (e.g., below the 10EMA), which often exit prematurely in choppy markets. By trailing based on structure, this strategy avoids "noise" and captures larger trends, directly boosting overall returns.
----
What markets or timeframes is this suited for?
This is a long-only strategy designed for trending markets, and it performs best in:
Markets: Stocks (especially high-growth, liquid equities), cryptocurrencies (major pairs with strong volatility), commodities (e.g., oil, gold), and futures (index/commodity futures).
Timeframes: Primarily daily charts for swing trades (1-30 day holds), though weekly charts can help confirm broader trends.
Key Advantage: The TradingView script allows instant backtesting with adjustable parameters
You can:
- Test historical performance across multiple markets to identify which assets align best with the strategy.
- Optimize settings (e.g., trailing stop sensitivity, moving averages etc.) to match a market’s volatility profile.
Build a diversified portfolio by filtering for markets that show consistent profitability in backtests.
For example, you might discover cryptos require tighter trailing stops due to volatility, while stocks thrive with wider structural stops. The script automates this analysis, letting you to trade confidently.
----
What indicators or tools does the strategy use?
The strategy combines customizable technical tools with strict anti-lookahead safeguards:
Core Indicators:
Moving Averages: Adjustable periods (e.g., 20/50/200 EMA or SMA) and timeframes (daily/weekly) to confirm trend alignment. Users can test combinations (e.g., 10EMA vs. 20EMA) to optimize for specific markets.
Breakout Parameters:
Consolidation Length: Adjustable window to define the "tightness" of the pre-breakout pattern.
Entry Models: Flexible entry logics (Breakouts and fractals)
Anti-Lookahead Design:
All calculations (e.g., moving averages, consolidation ranges, volume averages) use only closed/confirmed data available at the time of the signal.
----
How do I manage risk with this strategy?
The strategy prioritizes customizable risk controls to align with your trading style and account size:
User-Defined Risk Inputs:
Risk Per Trade: Set a % of Equity (e.g., 1-2%) to determine position size. The strategy auto-calculates shares/contracts to match your selected risk per trade.
Flexibility: Choose between fixed risk or equity-based scaling.
The script adjusts position sizing dynamically based on your selection.
Pyramiding Feature:
Customizable Entries: Adjust the number of pyramiding trades allowed (e.g., 1-3 additional positions) in the strategy settings. Each new entry is triggered only if the prior trade hits its 1.5x RR target and the trend remains intact.
Risk-Scaled Additions: New positions use profits from prior trades, compounding gains without increasing initial risk.
Risk-Free Trade Mechanic:
Once a trade reaches 1.5x RR, the stop loss is moved to breakeven, eliminating downside risk.
The strategy then opens a new position (if pyramiding is enabled) using a portion of the locked-in profit. This "snowballs" winners while keeping total capital exposure stable.
Impact on Net Profit & Drawdown:
Net Profit Boost: Pyramiding lets you ride multi-leg trends aggressively. For example, a 100% runner could generate 2-3x more profit vs. a single-entry approach.
Controlled Drawdowns: Since new positions are funded by profits (not initial capital), max drawdown stays anchored to your original risk per trade (e.g., 1-2% of account). Even if later entries fail, the breakeven stop on prior trades protects overall equity.
Why This Works: Most strategies either over-leverage (increasing drawdowns) or exit too early. By recycling profits into new positions only after securing risk-free capital, this approach mimics hedge fund "scaling in" tactics while staying retail-trader friendly.
----
How does the strategy identify market structure for its trailing stoploss?
The strategy identifies market structure by utilizing an efficient logic with for loops to pinpoint the first swing candle that features a pivot of 2. This marks the beginning of the break of structure, where the market's previous trend or pattern is considered invalidated or changed.
----
What are the underlying calculations?
The underlying calculations involve:
Identifying Swing Points: The strategy looks for swing highs (marked with blue Xs) and swing lows (marked with red Xs). A swing high is identified when a candle's high is higher than the highs of the candles before and after it. Conversely, a swing low is when a candle's low is lower than the lows of the candles before and after it.
Break of Structure (BOS):
Bullish BOS: This occurs when the price breaks above the swing high level of the previous structure, indicating a potential shift to a bullish trend.
Bearish BOS: This happens when the price breaks below the swing low level of the previous structure, signaling a potential shift to a bearish trend.
Structural Liquidity and Invalidation:
Structural Liquidity: After a break of structure, liquidity levels are updated to the first swing high in a bullish BOS or the first swing low in a bearish BOS.
Structural Invalidation: If the price moves back to the level of the first swing low before the bullish BOS or the first swing high before the bearish BOS, it invalidates the break of structure, suggesting a potential reversal or continuation of the previous trend.
This method provides users with a technical approach to filter market regimes, offering an advantage by minimizing the risk of overfitting to historical data, which is often a concern with traditional indicators like moving averages.
By focusing on identifying pivotal swing points and the subsequent breaks of structure, the strategy maintains a balance between sensitivity to market changes and robustness against historical data anomalies, ensuring a more adaptable and potentially more reliable market analysis tool.
----
What entry criteria are used in this script?
The script uses two entry models for trading decisions: BreakOut and Fractal.
Underlying Calculations:
Breakout: The script records the most recent swing high by storing it in a variable. When the price closes above this recorded level, and all other predefined conditions are satisfied, the script triggers a breakout entry. This approach is considered conservative because it waits for the price to confirm a breakout above the previous high before entering a trade. As shown in the image, as soon as the price closes above the new candle (first tick), the long entry gets taken. The stop-loss is initially set and then moved to break-even once the price moves in favor of the trade.
Fractal: This method involves identifying a swing low with a period of 2, which means it looks for a low point where the price is lower than the two candles before and after it. Once this pattern is detected, the script executes the trade. This is an aggressive approach since it doesn't wait for further price confirmation. In the image, this is represented by the 'Fractal 2' label where the script identifies and acts on the swing low pattern.
----
What type of stop-loss identification method are used in this strategy?
This strategy employs two types of stop-loss methods: Initial Stop-loss and Trailing Stop-Loss.
Underlying Calculations:
Initial Stop-loss:
ATR Based: The strategy uses the Average True Range (ATR) to set an initial stop-loss, which helps in accounting for market volatility without predicting price direction.
Calculation:
- First, the True Range (TR) is calculated for each period, which is the greatest of:
- Current Period High - Current Period Low
- Absolute Value of Current Period High - Previous Period Close
- Absolute Value of Current Period Low - Previous Period Close
- The ATR is then the moving average of these TR values over a specified period, typically 14 periods by default. This ATR value can be used to set the stop-loss at a distance from the entry price that reflects the current market volatility.
Swing Low Based:
For this method, the stop-loss is set based on the most recent swing low identified in the market structure analysis. This approach uses the lowest point of the recent price action as a reference for setting the stop-loss.
Trailing Stop-Loss:
The strategy uses structural liquidity and structural invalidation levels across multiple timeframes to adjust the stop-loss once the trade is profitable. This method involves:
Detecting Structural Liquidity: After a break of structure, the liquidity levels are updated to the first swing high in a bullish scenario or the first swing low in a bearish scenario. These levels serve as potential areas where the price might find support or resistance, allowing the stop-loss to trail the price movement.
Detecting Structural Invalidation: If the price returns to the level of the first swing low before a bullish break of structure or the first swing high before a bearish break of structure, it suggests the trend might be reversing or invalidating, prompting the adjustment of the stop-loss to lock in profits or minimize losses.
By using these methods, the strategy dynamically adjusts the initial stop-loss based on market volatility, helping to protect against adverse price movements while allowing for enough room for trades to develop. The ATR-based stop-loss adapts to the current market conditions by considering the volatility, ensuring that the stop-loss is not too tight during volatile periods, which could lead to premature exits, nor too loose during calm markets, which might result in larger losses. Similarly, the swing low based stop-loss provides a logical exit point if the market structure changes unfavorably.
Each market behaves differently across various timeframes, and it is essential to test different parameters and optimizations to find out which trailing stop-loss method gives you the desired results and performance. This involves backtesting the strategy with different settings for the ATR period, the distance from the swing low, and how the trailing stop-loss reacts to structural liquidity and invalidation levels.
Through this process, you can tailor the strategy to perform optimally in different market environments, ensuring that the stop-loss mechanism supports the trade's longevity while safeguarding against significant drawdowns.
----
What type of break-even method is used in this strategy? What are the underlying calculations?
Moves the initial stop-loss to the entry price when the price reaches a certain RR ratio.
Calculation:
Break-even level = Entry Price + (Initial Risk * RR Ratio)
----
What tables are available in this script?
- Summary: Provides a general overview, displaying key performance parameters such as Net Profit, Profit Factor, Max Drawdown, Average Trade, Closed Trades and more.
Total Commission: Displays the cumulative commissions incurred from all trades executed within the selected backtesting window. This value is derived by summing the commission fees for each trade on your chart.
Average Commission: Represents the average commission per trade, calculated by dividing the Total Commission by the total number of closed trades. This metric is crucial for assessing the impact of trading costs on overall profitability.
Avg Trade: The sum of money gained or lost by the average trade generated by a strategy. Calculated by dividing the Net Profit by the overall number of closed trades. An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.
MaxDD: Displays the largest drawdown of losses, i.e., the maximum possible loss that the strategy could have incurred among all of the trades it has made. This value is calculated separately for every bar that the strategy spends with an open position.
Profit Factor: The amount of money a trading strategy made for every unit of money it lost (in the selected currency). This value is calculated by dividing gross profits by gross losses.
Avg RR: This is calculated by dividing the average winning trade by the average losing trade. This field is not a very meaningful value by itself because it does not take into account the ratio of the number of winning vs losing trades, and strategies can have different approaches to profitability. A strategy may trade at every possibility in order to capture many small profits, yet have an average losing trade greater than the average winning trade. The higher this value is, the better, but it should be considered together with the percentage of winning trades and the net profit.
Winrate: The percentage of winning trades generated by a strategy. Calculated by dividing the number of winning trades by the total number of closed trades generated by a strategy. Percent profitable is not a very reliable measure by itself. A strategy could have many small winning trades, making the percent profitable high with a small average winning trade, or a few big winning trades accounting for a low percent profitable and a big average winning trade. Most mean-reversion successful strategies have a percent profitability of 40-80% but are profitable due to risk management control.
BE Trades: Number of break-even trades, excluding commission/slippage.
Losing Trades: The total number of losing trades generated by the strategy.
Winning Trades: The total number of winning trades generated by the strategy.
Total Trades: Total number of taken traders visible your charts.
Net Profit: The overall profit or loss (in the selected currency) achieved by the trading strategy in the test period. The value is the sum of all values from the Profit column (on the List of Trades tab), taking into account the sign.
- Monthly: Displays performance data on a month-by-month basis, allowing users to analyze performance trends over each month and year.
- Weekly: Displays performance data on a week-by-week basis, helping users to understand weekly performance variations.
- UI Table: A user-friendly table that allows users to view and save the selected strategy parameters from user inputs. This table enables easy access to key settings and configurations, providing a straightforward solution for saving strategy parameters by simply taking a screenshot with Alt + S or ⌥ + S.
User-input styles and customizations:
Please note that all background colors in the style are disabled by default to enhance visualization.
How to Use This Strategy to Create a Profitable Edge and Systems?
Choose Your Strategy mode:
- Decide whether you are creating an investing strategy or a trading strategy.
Select a Market:
- Choose a one-sided market such as stocks, indices, or cryptocurrencies.
Historical Data:
- Ensure the historical data covers at least 10 years of price action for robust backtesting.
Timeframe Selection:
- Choose the timeframe you are comfortable trading with. It is strongly recommended to use a timeframe above 15 minutes to minimize the impact of commissions/slippage on your profits.
Set Commission and Slippage:
- Properly set the commission and slippage in the strategy properties according to your broker/prop firm specifications.
Parameter Optimization:
- Use trial and error to test different parameters until you find the performance results you are looking for in the summary table or, preferably, through deep backtesting using the strategy tester.
Trade Count:
- Ensure the number of trades is 200 or more; the higher, the better for statistical significance.
Positive Average Trade:
- Make sure the average trade is above zero.
(An important value since it must be large enough to cover the commission and slippage costs of trading the strategy and still bring a profit.)
Performance Metrics:
- Look for a high profit factor, and net profit with minimum drawdown.
- Ideally, aim for a drawdown under 20-30%, depending on your risk tolerance.
Refinement and Optimization:
- Try out different markets and timeframes.
- Continue working on refining your edge using the available filters and components to further optimize your strategy.
What Makes This Strategy Unique?
This strategy combines flexibility, smart risk management, and momentum focus in a way that’s rare and practical:
1. Adapts to Any Market Rhythm
Works on daily, weekly, or intraday charts without code changes.
Uses two entry types: classic breakouts (like trending stocks) or fractal patterns (to avoid false starts).
2. Smarter Stop-Loss System
No rigid rules: Stops adjust based on price structure (e.g., new “higher lows”), not fixed percentages.
Avoids whipsaws: Tightens stops only when the trend strengthens, not in choppy markets.
3. Safe Profit-Boosting Pyramiding
Adds new positions only after prior trades are risk-free (stops moved above breakeven).
Scales up using locked-in profits, not new capital, to grow gains safely.
4. Built-In Momentum Check
Tracks 1/3/6-month price growth to spotlight stocks with strong, lasting momentum.
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
Built-in components, features, and functionalities of our charting tools are the intellectual property of @Fractalyst Unauthorized use, reproduction, or distribution of these proprietary elements is prohibited.
- By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer and agrees to respect our intellectual property rights and comply with all applicable laws and regulations.
Auto TrendLines [TradingFinder] Support Resistance Signal Alerts🔵 Introduction
The trendline is one of the most essential tools in technical analysis, widely used in financial markets such as Forex, cryptocurrency, and stocks. A trendline is a straight line that connects swing highs or swing lows and visually indicates the market’s trend direction.
Traders use trendlines to identify price structure, the strength of buyers and sellers, dynamic support and resistance zones, and optimal entry and exit points.
In technical analysis, trendlines are typically classified into three categories: uptrend lines (drawn by connecting higher lows), downtrend lines (formed by connecting lower highs), and sideways trends (moving horizontally). A valid trendline usually requires at least three confirmed touchpoints to be considered reliable for trading decisions.
Trendlines can serve as the foundation for a variety of trading strategies, such as the trendline bounce strategy, valid breakout setups, and confluence-based analysis with other tools like candlestick patterns, divergences, moving averages, and Fibonacci levels.
Additionally, trendlines are categorized into internal and external, and further into major and minor levels, each serving unique roles in market structure analysis.
🔵 How to Use
Trendlines are a key component in technical analysis, used to identify market direction, define dynamic support and resistance zones, highlight strategic entry and exit points, and manage risk. For a trendline to be reliable, it must be drawn based on structural principles—not by simply connecting two arbitrary points.
🟣 Selecting Pivot Types Based on Trend Direction
The first step is to determine the market trend: uptrend, downtrend, or sideways.
Then, choose pivot points that match the trend type :
In an uptrend, trendlines are drawn by connecting low pivots, especially higher lows.
In a downtrend, trendlines are formed by connecting high pivots, specifically lower highs.
It is crucial to connect pivots of the same type and structure to ensure the trendline is valid and analytically sound.
🟣 Pivot Classification
This indicator automatically classifies pivot points into two categories :
Major Pivots :
MLL : Major Lower Low
MHL : Major Higher Low
MHH : Major Higher High
MLH : Major Lower High
These define the primary structure of the market and are typically used in broader structural analysis.
Minor Pivots :
mLL: minor Lower Low
mHL: minor Higher Low
mHH: minor Higher High
mLH: minor Lower High
These are used for drawing more precise trendlines within corrective waves or internal price movements.
Example : In a downtrend, drawing a trendline from an MHH to an mHH creates structural inconsistency and introduces noise. Instead, connect points like MHL to MHL or mLH to mLH for a valid trendline.
🟣 Drawing High-Precision Trendlines
To ensure a reliable trendline :
Use pivots of the same classification (Major with Major or Minor with Minor).
Ensure at least three valid contact points (three touches = structural confirmation).
Draw through candles with the least deviation (choose wicks or bodies based on confluence).
Preferably draw from right to left for better alignment with current market behavior.
Use parallel lines to turn a single trendline into a trendline zone, if needed.
🟣 Using Trendlines for Trade Entries
Bounce Entry: When price approaches the trendline and shows signs of reversal (e.g., a reversal candle, divergence, or support/resistance), enter in the direction of the trend with a logical stop-loss.
Breakout Entry: When price breaks through the trendline with strong momentum and a confirmation (such as a retest or break of structure), consider trading in the direction of the breakout.
🟣 Trendline-Based Risk Management
For bounce entries, the stop-loss is placed below the trendline or the last pivot low (in an uptrend).
For breakout entries, the stop-loss is set behind the breakout candle or the last structural level.
A broken trendline can also act as an exit signal from a trade.
🟣 Combining Trendlines with Other Tools (Confluence)
Trendlines gain much more strength when used alongside other analytical tools :
Horizontal support and resistance levels
Moving averages (such as EMA 50 or EMA 200)
Fibonacci retracement zones
Candlestick patterns (e.g., Engulfing, Pin Bar)
RSI or MACD divergences
Market structure breaks (BoS / ChoCH)
🔵 Settings
Pivot Period : This defines how sensitive the pivot detection is. A higher number means the algorithm will identify more significant pivot points, resulting in longer-term trendlines.
Alerts
Alert :
Enable or disable the entire alert system
Set a custom alert name
Choose how often alerts trigger (every time, once per bar, or on bar close)
Select the time zone for alert timestamps (e.g., UTC)
Each trendline type supports two alert types :
Break Alert : Triggered when price breaks the trendline
React Alert : Triggered when price reacts or bounces off the trendline
These alerts can be independently enabled or disabled for all trendline categories (Major/Minor, Internal/External, Up/Down).
Display :
For each of the eight trendline types, you can control :
Whether to show or hide the line
Whether to delete the previous line when a new one is drawn
Color, line style (solid, dashed, dotted), extension direction (e.g., right only), and width
Major lines are typically thicker and more opaque, while minor lines appear thinner and more transparent.
All settings are designed to give the user full control over the appearance, behavior, and alert system of the indicator, without requiring manual drawing or adjustments.
🔵 Conclusion
A trendline is more than just a line on the chart—it is a structural, strategic, and flexible tool in technical analysis that can serve as the foundation for understanding price behavior and making trading decisions. Whether in trending markets or during corrections, trendlines help traders identify market direction, key zones, and high-potential entry and exit points with precision.
The accuracy and effectiveness of a trendline depend on using structurally valid pivot points and adhering to proper market logic, rather than relying on guesswork or personal bias.
This indicator is built to solve that exact problem. It automatically detects and draws multiple types of trendlines based on actual price structure, separating them into Major/Minor and Internal/External categories, and respecting professional analytical principles such as pivot type, trend direction, and structural location.