AlgoRanger Fibonacci Synthesis//@version=5
indicator("AlgoRanger Fibonacci Synthesis", overlay=true)
// --- Inputs for Supertrend ---
atrPeriod = input(10, title="ATR Period")
factor = input.float(3.0, title="Multiplier", step=0.1)
// --- Calculate Supertrend ---
= ta.supertrend(factor, atrPeriod)
// --- Plot Supertrend ---
uptrend = direction > 0 ? supertrend : na
downtrend = direction < 0 ? supertrend : na
plot(uptrend, "Uptrend", color=color.green, linewidth=2)
plot(downtrend, "Downtrend", color=color.red, linewidth=2)
// --- Fibonacci Retracement Levels ---
fibLevels = array.new_float()
array.push(fibLevels, 0.0) // Low (0%)
array.push(fibLevels, 0.236) // 23.6%
array.push(fibLevels, 0.382) // 38.2%
array.push(fibLevels, 0.5) // 50%
array.push(fibLevels, 0.618) // 61.8%
array.push(fibLevels, 0.786) // 78.6%
array.push(fibLevels, 1.0) // High (100%)
// --- Detect Swing High & Swing Low (last 50 bars) ---
swingHigh = ta.highest(high, 50)
swingLow = ta.lowest(low, 50)
// --- Draw Fibonacci Retracement ---
if barstate.islast
fibStart = swingHigh
fibEnd = swingLow
// Adjust if trend is bullish/bearish
if direction > 0 // Uptrend (use recent low as base)
fibStart := swingLow
fibEnd := swingHigh
fibDiff = fibEnd - fibStart
// Plot Fibonacci Levels
for i = 0 to array.size(fibLevels) - 1
level = array.get(fibLevels, i)
priceLevel = fibStart + (fibDiff * level)
// Customize line color/style
lineColor = level == 0.0 or level == 1.0 ? color.blue :
level == 0.382 or level == 0.618 ? color.purple :
color.gray
line.new(bar_index - 50, priceLevel, bar_index, priceLevel,
color=lineColor, width=1, style=level == 0.0 or level == 1.0 ? line.style_solid : line.style_dashed)
// Label Fibonacci Levels
label.new(bar_index, priceLevel, str.tostring(level * 100, "#.##") + "%",
color=lineColor, style=label.style_label_left, textcolor=color.white)
Trendfollowing
AlgoRanger FlowState//@version=5
indicator("AlgoRanger FlowState", overlay=true)
// === INPUTS ===
atrPeriod = input.int(10, title="ATR Period")
factor = input.float(3.0, title="Multiplier")
// === ATR & BASIC BANDS ===
atr = ta.atr(atrPeriod)
hl2 = (high + low) / 2
upperBand = hl2 + factor * atr
lowerBand = hl2 - factor * atr
// === SUPER TREND LOGIC ===
var float supertrend = na
var bool isUpTrend = true
if na(supertrend)
supertrend := hl2
else
if close > supertrend
supertrend := math.max(lowerBand, supertrend)
isUpTrend := true
else
supertrend := math.min(upperBand, supertrend)
isUpTrend := false
// === TREND REVERSAL SIGNALS ===
buySignal = isUpTrend and not isUpTrend
sellSignal = not isUpTrend and isUpTrend
// === PLOT SUPER TREND ===
plot(supertrend, title="Supertrend", color=isUpTrend ? color.green : color.red, linewidth=2)
// === PLOT COLOR-CODED BARS ===
barcolor(isUpTrend ? color.new(color.green, 0) : color.new(color.red, 0))
AlgoRanger TrendFlow BB//@version=5
indicator("AlgoRanger TrendFlow BB", overlay=true)
// === Input ===
length = input.int(20, title="BB Length")
src = input(close, title="Source")
mult = input.float(2.0, title="StdDev Multiplier")
// === Bollinger Bands Calculation ===
basis = ta.sma(src, length)
dev = ta.stdev(src, length)
// === Additional Lines (6 Lines Total) ===
upper2 = basis + (2 * dev)
upper1 = basis + dev
lower1 = basis - dev
lower2 = basis - (2 * dev)
// === Trend Detection ===
isUptrend = close > basis
isDowntrend = close < basis
isSideway = not isUptrend and not isDowntrend
// === Color Based on Trend ===
upperBandColor = isUptrend ? color.rgb(106, 249, 111) : isDowntrend ? color.red : color.rgb(0, 140, 255)
lowerBandColor = isUptrend ? color.green : isDowntrend ? color.red : color.rgb(0, 140, 255)
basisColor = isUptrend ? color.green : isDowntrend ? color.red : color.rgb(0, 140, 255)
upper2Color = isUptrend ? color.green : color.rgb(0, 139, 253)
upper1Color = isUptrend ? color.green : color.rgb(0, 140, 255)
lower1Color = isDowntrend ? color.red : color.rgb(0, 140, 255)
lower2Color = isDowntrend ? color.red : color.rgb(0, 140, 255)
// === Plot Bollinger Bands with 6 Lines ===
plot(upper2, title="Upper 2", color=upper2Color, linewidth=1, style=plot.style_line)
plot(upper1, title="Upper 1", color=upper1Color, linewidth=1, style=plot.style_line)
plot(basis, title="Basis", color=basisColor, linewidth=3, style=plot.style_line)
plot(lower1, title="Lower 1", color=lower1Color, linewidth=1, style=plot.style_line)
plot(lower2, title="Lower 2", color=lower2Color, linewidth=1, style=plot.style_line)
AlgoRanger Momentum + Trend - Following//@version=5
indicator("AlgoRanger Momentum + Trend - Following", overlay=true)
startLen = input.int(20, title="Start EMA Length")
step = input.int(5, title="Step between EMAs")
maxCount = 8 // max number of EMAs
getColor(_price, _ema) =>
_price > _ema ? color.rgb(3, 203, 106) : color.rgb(255, 37, 37)
ema1 = ta.ema(close, startLen + 0 * step)
ema2 = ta.ema(close, startLen + 1 * step)
ema3 = ta.ema(close, startLen + 2 * step)
ema4 = ta.ema(close, startLen + 3 * step)
ema5 = ta.ema(close, startLen + 4 * step)
ema6 = ta.ema(close, startLen + 5 * step)
ema7 = ta.ema(close, startLen + 6 * step)
ema8 = ta.ema(close, startLen + 7 * step)
plot(ema1, color=getColor(close, ema1), linewidth=1, title="EMA 1")
plot(ema2, color=getColor(close, ema2), linewidth=1, title="EMA 2")
plot(ema3, color=getColor(close, ema3), linewidth=1, title="EMA 3")
plot(ema4, color=getColor(close, ema4), linewidth=1, title="EMA 4")
plot(ema5, color=getColor(close, ema5), linewidth=1, title="EMA 5")
plot(ema6, color=getColor(close, ema6), linewidth=1, title="EMA 6")
plot(ema7, color=getColor(close, ema7), linewidth=1, title="EMA 7")
plot(ema8, color=getColor(close, ema8), linewidth=1, title="EMA 8")
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.
一个加密货币的趋势跟踪指标,比你想的要强的那种,进入下方区域说明要关注买入/做多机会,进入上方区域说明要关注卖出/做空机会,实际操作试试看就知道了。不是振荡器/反转指标,别用错了。
AlgoRanger Trend Dashboard Panel//@version=5
indicator(" AlgoRanger Trend Dashboard Panel", overlay = true, max_lines_count = 500, max_labels_count = 500)
// === EMA Settings ===
group_ema = "📊 EMA Settings"
fastLen = input.int(10, minval = 1, title = "Fast EMA Length", group = group_ema)
slowLen = input.int(50, minval = 1, title = "Slow EMA Length", group = group_ema)
// === Timeframe Settings ===
group_tf = "🕒 Timeframes"
tf_1m = input.timeframe("1", title = "1 Minutes", group = group_tf)
tf_5m = input.timeframe("5", title = "5 Minutes", group = group_tf)
tf_15m = input.timeframe("15", title = "15 Minutes", group = group_tf)
tf_1h = input.timeframe("60", title = "1 Hour", group = group_tf)
tf_4h = input.timeframe("240", title = "4 Hours", group = group_tf)
tf_1d = input.timeframe("D", title = "1 Day", group = group_tf)
// === Trend Detection Function ===
getTrend(_tf) =>
fast = request.security(syminfo.tickerid, _tf, ta.ema(close, fastLen))
slow = request.security(syminfo.tickerid, _tf, ta.ema(close, slowLen))
fast > slow ? "🟢 UP" : fast < slow ? "🔴 DOWN" : "⚪ NEUTRAL"
// === Retrieve Trend Values ===
trend1 = getTrend(tf_1m)
trend5 = getTrend(tf_5m)
trend15 = getTrend(tf_15m)
trend1h = getTrend(tf_1h)
trend4h = getTrend(tf_4h)
trend1d = getTrend(tf_1d)
// === Dashboard Settings ===
group_dash = "📍 Dashboard Settings"
x_pos = input.int(10, title="X Offset", group=group_dash)
y_pos = input.int(20, title="Y Offset", group=group_dash)
fontSize = input.int(14, minval=10, maxval=30, title="Font Size", group=group_dash)
bgColor = input.color(color.new(#454336, 70), title="Panel Background", group=group_dash)
textColor = input.color(color.white, title="Text Color", group=group_dash)
// === Create Text with str.format() ===
dashboardText = str.format(" AlgoRanger Trend Dashboard 1M: {0} 5M : {1} 15M : {2} 1H : {3} 4H : {4} 1D : {5}", trend1, trend5, trend15, trend1h, trend4h, trend1d)
// === Draw the Dashboard Label ===
var label trendPanel = label.new(x = bar_index + x_pos, y = high + y_pos,
text = dashboardText, style = label.style_label_left,
textcolor = textColor, size = size.normal, color = bgColor)
label.set_xy(trendPanel, bar_index + x_pos, high + y_pos)
label.set_text(trendPanel, dashboardText)
label.set_textcolor(trendPanel, textColor)
label.set_size(trendPanel, fontSize >= 20 ? size.large : fontSize >= 14 ? size.normal : size.small)
label.set_color(trendPanel, bgColor)
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.
MACD 4C 2025 - GeorgeMoshe4-Colored MACD by GeorgeMoshe
A visually enhanced MACD that uses four distinct colors to indicate momentum and direction:
Lime – Positive MACD, rising momentum
Green – Positive MACD, declining momentum
Red – Negative MACD, rising momentum (bullish divergence potential)
Maroon – Negative MACD, declining momentum
Ideal for quickly spotting trend strength and possible reversals.
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.
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).
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.
HEMA Trend Levels [AlgoAlpha]OVERVIEW
This script plots two Hull-EMA (HEMA) curves to define a color-coded dynamic trend zone and generate context-aware breakout levels, allowing traders to easily visualize prevailing momentum and identify high-probability breakout retests. The script blends smoothed price tracking with conditional box plotting, delivering both trend-following and mean-reversion signals within one system. It is designed to be simple to read visually while offering nuanced trend shifts and test confirmations.
█ CONCEPTS
The Hull-EMA (HEMA) is a hybrid moving average combining the responsiveness of short EMAs with the smoothness of longer ones. It applies layered smoothing: first by subtracting a full EMA from a half-length EMA (doubling the short EMA's weight), and then by smoothing the result again with the square root of the original length. This process reduces lag while maintaining clarity in direction changes. In this script, two HEMAs—fast and slow—are used to define the trend structure and trigger events when they cross. These crossovers generate "trend shift boxes"—temporary support or resistance zones drawn immediately after trend transitions—to detect price retests in the new direction. When price cleanly retests these levels, the script marks them as confirmations with triangle symbols, helping traders isolate better continuation setups. Color-coded bars further enhance visual interpretation: bullish bars when price is above both HEMAs, bearish when below, and neutral (gray) when indecisive.
█ FEATURES
Bullish and bearish bar coloring based on price and HEMA alignment.
Box plotting at each crossover (bullish or bearish) to create short-term decision zones.
Real-time test detection: price must cleanly test and bounce from box levels to be considered valid.
Multiple alert conditions: crossover alerts, test alerts, and trend continuation alerts.
█ USAGE
Use this indicator on any time frame and asset. Adjust HEMA lengths to match your trading style—shorter lengths for scalping or intraday, longer for swing trading. The shaded area between HEMAs helps visually define the current trend. Watch for crossovers: a bullish crossover plots a green support box just below price, and a bearish one plots a red resistance box just above. These zones act as short-term decision points. When price returns to test a box and confirms with strong rejection (e.g., closes above for bullish or below for bearish), a triangle symbol is plotted. These tests can signal strong trend continuation. For traders looking for clean entries, combining the crossover with a successful retest improves reliability. Alerts can be enabled for all key signals: trend shift, test confirmations, and continuation conditions, making it suitable for automated setups or discretionary traders tracking multiple charts.
Ehlers Adaptive Trend Indicator [Alpha Extract]Ehlers Adaptive Trend Indicator
The Ehlers Adaptive Trend Indicator combines Ehlers' advanced digital signal processing techniques with dynamic volatility bands to identify robust trend conditions and potential reversals. This powerful tool helps traders visualize trend strength, adaptive support/resistance levels, and momentum shifts across various market conditions.
🔶 CALCULATION
The indicator employs a sophisticated adaptive algorithm that responds to changing market conditions:
• Ehlers Filter : Calculates a weighted average based on momentum differences to create an adaptive trend baseline.
• Dynamic Bands : Volatility-adjusted bands that expand and contract based on recent price action.
• Trend Level : A dynamic support/resistance level that adapts to the current trend direction.
• Smoothed Volatility : Market volatility measured and smoothed to provide reliable band width.
Formula:
• Ehlers Basis = Weighted average of price, with weights determined by momentum differences
• Volatility = Standard deviation of price over Ehlers Length period
• Smoothed Volatility = EMA of volatility over Smoothing Length
• Upper Band = Ehlers Basis + Smoothed Volatility × Sensitivity
• Lower Band = Ehlers Basis - Smoothed Volatility × Sensitivity
• Trend Level = Adaptive support in uptrends, resistance in downtrends
🔶 DETAILS
Visual Features :
• Ehlers Basis Line (Yellow): The core adaptive trend reference that serves as the primary trend indicator.
• Trend Level Line (Dynamic Color): Changes between green (bullish) and red (bearish) based on the current trend state.
• Fill Areas : Transparent green fill during bullish trends and transparent red fill during bearish trends for clear visual identification.
• Bar Coloring : Optional price bar coloring that reflects the current trend direction for enhanced visualization.
Interpretation :
• **Bullish Signal**: Price crosses above the upper band, triggering a trend change with the Trend Level becoming dynamic support.
• **Bearish Signal**: Price drops below the lower band, confirming a trend change with the Trend Level becoming dynamic resistance.
• **Trend Continuation**: Trend Level rises in bullish markets and falls in bearish markets, providing adaptive trailing support/resistance.
🔶 EXAMPLES
The chart demonstrates:
• Bullish Trend Identification : When price breaks above the upper band, the indicator shifts to bullish mode with green trend level and fill.
• Bearish Trend Identification : When price falls below the lower band, the indicator shifts to bearish mode with red trend level and fill.
• Trend Persistence : Trend Level adapts to market movement, rising during uptrends to provide dynamic support and falling during downtrends to act as resistance.
Example Snapshots :
• During a strong uptrend, the Trend Level continuously adjusts upward, keeping traders in the trend while filtering out minor retracements.
• During trend reversals, clear color changes and Trend Level shifts provide early warning of potential direction changes.
🔶 SETTINGS
Customization Options :
• Ehlers Length (p1) (Default: 30): Controls the primary adaptive calculation period, balancing responsiveness with stability.
• Momentum Length (p2) (Default: 25): Determines the lag for momentum calculations used in the adaptive weighting.
• Smoothing Length (Default: 10): Adjusts the volatility smoothing period—higher values provide more stable bands.
• Sensitivity (Default: 1.0): Multiplier for band width—higher values increase distance between bands, lower values tighten them.
• Visual Settings : Customizable colors for bullish and bearish trends, basis line, and optional bar coloring.
The Ehlers Adaptive Trend Indicator combines John Ehlers' digital signal processing expertise with modern volatility analysis to create a robust trend-following system that adapts to changing market conditions, helping traders stay on the right side of the market.
Smart MA CrossoverThe Smart MA Crossover indicator is a trend-following tool designed to help traders identify high-probability buy and sell signals based on a dynamic moving average and volume confirmation.
This indicator allows traders to customize the moving average type (SMA, EMA, HMA, WMA, VWMA, SMMA, or VWAP) while incorporating an ATR-based filter for better signal clarity.
How It Works
The script analyzes price movements in relation to a selected moving average and volume conditions to generate trend-based trade signals:
🟢 Buy Signal:
- Price is trading above the moving average for at least two bars.
- A sudden upward momentum is detected (price > open * 1.005).
- Volume is higher than the 50-period SMA of volume.
- The price was trading below the moving average three bars ago.
🔴 Sell Signal:
- Price is trading below the moving average for at least two bars.
- A sudden downward movement is detected (price < open * 0.995).
- Volume is higher than the 50-period SMA of volume.
- The price was trading above the moving average three bars ago.
- When these conditions are met, a label appears on the chart, marking the potential trade signal.
Key Features
- Customizable Moving Averages – Choose between SMA, EMA, HMA, WMA, VWMA, SMMA, or VWAP.
- Dynamic Trend Detection – Moving average color changes based on trend direction.
- Volume Confirmation – Avoid false signals by filtering trades using SMA-based volume analysis.
- ATR-Based Signal Placement – Labels are positioned dynamically based on ATR values to improve visibility.
- Background Trend Highlighting – The background changes color depending on whether price is above (green) or below (red) the moving average.
- Alerts for Buy & Sell Signals – Get real-time notifications when a trade signal is generated.
How to Use
- This indicator is best suited for trend-following strategies and works across different markets, including stocks, forex, and crypto.
- It can be used on multiple timeframes, but traders should combine it with additional analysis to refine trade decisions.
- ATR-based signal placement ensures that buy/sell labels do not clutter the chart.
Important Notes
- This indicator does not predict future price movements—it is a trend-based tool meant to assist with trade decisions.
- No financial advice – Always use risk management when trading.
- TradingView users who do not read Pine Script can still fully utilize this script thanks to clear labels and alerts.
Range Breakout Signals [AlgoAlpha]OVERVIEW
This script detects range-bound market conditions and breakout signals using a combination of volatility compression and volume imbalance analysis. It identifies zones where price consolidates within a defined range and highlights potential breakout points with visual markers. Traders can use this to spot market transitions from ranging to trending phases, aiding in decision-making for breakout strategies.
CONCEPTS
The script measures volatility by comparing the ratio of the simple moving average (SMA) of price movements to their median value. When volatility drops below a threshold, the script assumes a range-bound market. It then tracks the cumulative volume of buying and selling pressure to assess breakout strength. The approach is based on the idea that market consolidation often precedes strong moves, and volume distribution can provide clues on the breakout direction.
FEATURES
Range Detection : Uses a volatility filter to identify low-volatility zones and marks them on the chart with shaded boxes.
Volume Imbalance Analysis : Evaluates cumulative up and down volume over a confirmation period to assess directional bias.
Breakout Signals : When price exits a detected range, the script plots breakout markers. A ▲ symbol indicates a bullish breakout, and a ▼ symbol indicates a bearish breakout. Additional "+" markers indicate strong volume imbalance favoring the breakout direction.
Adaptive Timeframe Volume Analysis : The script dynamically adjusts its volume calculation based on the chart’s timeframe, ensuring reliable signal generation across different trading conditions.
Alerts : Notifies traders when a new range is detected or when a breakout occurs, allowing for automated monitoring.
USAGE
Traders can use this script to identify potential trade setups by entering positions when price breaks out of a detected range. For breakout confirmation, traders can look at volume imbalance cues—bullish breakouts with strong buying volume may indicate sustained moves, while weak volume breakouts may lead to false signals. This script is particularly useful for breakout traders, range traders seeking to fade breakouts, and those looking to automate trade alerts in volatile markets.
AI Adaptive Oscillator [PhenLabs]📊 Algorithmic Adaptive Oscillator
Version: PineScript™ v6
📌 Description
The AI Adaptive Oscillator is a sophisticated technical indicator that employs ensemble learning and adaptive weighting techniques to analyze market conditions. This innovative oscillator combines multiple traditional technical indicators through an AI-driven approach that continuously evaluates and adjusts component weights based on historical performance. By integrating statistical modeling with machine learning principles, the indicator adapts to changing market dynamics, providing traders with a responsive and reliable tool for market analysis.
🚀 Points of Innovation:
Ensemble learning framework with adaptive component weighting
Performance-based scoring system using directional accuracy
Dynamic volatility-adjusted smoothing mechanism
Intelligent signal filtering with cooldown and magnitude requirements
Signal confidence levels based on multi-factor analysis
🔧 Core Components
Ensemble Framework : Combines up to five technical indicators with performance-weighted integration
Adaptive Weighting : Continuous performance evaluation with automated weight adjustment
Volatility-Based Smoothing : Adapts sensitivity based on current market volatility
Pattern Recognition : Identifies potential reversal patterns with signal qualification criteria
Dynamic Visualization : Professional color schemes with gradient intensity representation
Signal Confidence : Three-tiered confidence assessment for trading signals
🔥 Key Features
The indicator provides comprehensive market analysis through:
Multi-Component Ensemble : Integrates RSI, CCI, Stochastic, MACD, and Volume-weighted momentum
Performance Scoring : Evaluates each component based on directional prediction accuracy
Adaptive Smoothing : Automatically adjusts based on market volatility
Pattern Detection : Identifies potential reversal patterns in overbought/oversold conditions
Signal Filtering : Prevents excessive signals through cooldown periods and minimum change requirements
Confidence Assessment : Displays signal strength through intuitive confidence indicators (average, above average, excellent)
🎨 Visualization
Gradient-Filled Oscillator : Color intensity reflects strength of market movement
Clear Signal Markers : Distinct bullish and bearish pattern signals with confidence indicators
Range Visualization : Clean representation of oscillator values from -6 to 6
Zero Line : Clear demarcation between bullish and bearish territory
Customizable Colors : Color schemes that can be adjusted to match your chart style
Confidence Symbols : Intuitive display of signal confidence (no symbol, +, or ++) alongside direction markers
📖 Usage Guidelines
⚙️ Settings Guide
Color Settings
Bullish Color
Default: #2b62fa (Blue)
This setting controls the color representation for bullish movements in the oscillator. The color appears when the oscillator value is positive (above zero), with intensity indicating the strength of the bullish momentum. A brighter shade indicates stronger bullish pressure.
Bearish Color
Default: #ce9851 (Amber)
This setting determines the color representation for bearish movements in the oscillator. The color appears when the oscillator value is negative (below zero), with intensity reflecting the strength of the bearish momentum. A more saturated shade indicates stronger bearish pressure.
Signal Settings
Signal Cooldown (bars)
Default: 10
Range: 1-50
This parameter sets the minimum number of bars that must pass before a new signal of the same type can be generated. Higher values reduce signal frequency and help prevent overtrading during choppy market conditions. Lower values increase signal sensitivity but may generate more false positives.
Min Change For New Signal
Default: 1.5
Range: 0.5-3.0
This setting defines the minimum required change in oscillator value between consecutive signals of the same type. It ensures that new signals represent meaningful changes in market conditions rather than minor fluctuations. Higher values produce fewer but potentially higher-quality signals, while lower values increase signal frequency.
AI Core Settings
Base Length
Default: 14
Minimum: 2
This fundamental setting determines the primary calculation period for all technical components in the ensemble (RSI, CCI, Stochastic, etc.). It represents the lookback window for each component’s base calculation. Shorter periods create a more responsive but potentially noisier oscillator, while longer periods produce smoother signals with potential lag.
Adaptive Speed
Default: 0.1
Range: 0.01-0.3
Controls how quickly the oscillator adapts to new market conditions through its volatility-adjusted smoothing mechanism. Higher values make the oscillator more responsive to recent price action but potentially more erratic. Lower values create smoother transitions but may lag during rapid market changes. This parameter directly influences the indicator’s adaptiveness to market volatility.
Learning Lookback Period
Default: 150
Minimum: 10
Determines the historical data range used to evaluate each ensemble component’s performance and calculate adaptive weights. This setting controls how far back the AI “learns” from past performance to optimize current signals. Longer periods provide more stable weight distribution but may be slower to adapt to regime changes. Shorter periods adapt more quickly but may overreact to recent anomalies.
Ensemble Size
Default: 5
Range: 2-5
Specifies how many technical components to include in the ensemble calculation.
Understanding The Interaction Between Settings
Base Length and Learning Lookback : The base length determines the reactivity of individual components, while the lookback period determines how their weights are adjusted. These should be balanced according to your timeframe - shorter timeframes benefit from shorter base lengths, while the lookback should generally be 10-15 times the base length for optimal learning.
Adaptive Speed and Signal Cooldown : These settings control sensitivity from different angles. Increasing adaptive speed makes the oscillator more responsive, while reducing signal cooldown increases signal frequency. For conservative trading, keep adaptive speed low and cooldown high; for aggressive trading, do the opposite.
Ensemble Size and Min Change : Larger ensembles provide more stable signals, allowing for a lower minimum change threshold. Smaller ensembles might benefit from a higher threshold to filter out noise.
Understanding Signal Confidence Levels
The indicator provides three distinct confidence levels for both bullish and bearish signals:
Average Confidence (▲ or ▼) : Basic signal that meets the minimum pattern and filtering criteria. These signals indicate potential reversals but with moderate confidence in the prediction. Consider using these as initial alerts that may require additional confirmation.
Above Average Confidence (▲+ or ▼+) : Higher reliability signal with stronger underlying metrics. These signals demonstrate greater consensus among the ensemble components and/or stronger historical performance. They offer increased probability of successful reversals and can be traded with less additional confirmation.
Excellent Confidence (▲++ or ▼++) : Highest quality signals with exceptional underlying metrics. These signals show strong agreement across oscillator components, excellent historical performance, and optimal signal strength. These represent the indicator’s highest conviction trade opportunities and can be prioritized in your trading decisions.
Confidence assessment is calculated through a multi-factor analysis including:
Historical performance of ensemble components
Degree of agreement between different oscillator components
Relative strength of the signal compared to historical thresholds
✅ Best Use Cases:
Identify potential market reversals through oscillator extremes
Filter trade signals based on AI-evaluated component weights
Monitor changing market conditions through oscillator direction and intensity
Confirm trade signals from other indicators with adaptive ensemble validation
Detect early momentum shifts through pattern recognition
Prioritize trading opportunities based on signal confidence levels
Adjust position sizing according to signal confidence (larger for ++ signals, smaller for standard signals)
⚠️ Limitations
Requires sufficient historical data for accurate performance scoring
Ensemble weights may lag during dramatic market condition changes
Higher ensemble sizes require more computational resources
Performance evaluation quality depends on the learning lookback period length
Even high confidence signals should be considered within broader market context
💡 What Makes This Unique
Adaptive Intelligence : Continuously adjusts component weights based on actual performance
Ensemble Methodology : Combines strength of multiple indicators while minimizing individual weaknesses
Volatility-Adjusted Smoothing : Provides appropriate sensitivity across different market conditions
Performance-Based Learning : Utilizes historical accuracy to improve future predictions
Intelligent Signal Filtering : Reduces noise and false signals through sophisticated filtering criteria
Multi-Level Confidence Assessment : Delivers nuanced signal quality information for optimized trading decisions
🔬 How It Works
The indicator processes market data through five main components:
Ensemble Component Calculation :
Normalizes traditional indicators to consistent scale
Includes RSI, CCI, Stochastic, MACD, and volume components
Adapts based on the selected ensemble size
Performance Evaluation :
Analyzes directional accuracy of each component
Calculates continuous performance scores
Determines adaptive component weights
Oscillator Integration :
Combines weighted components into unified oscillator
Applies volatility-based adaptive smoothing
Scales final values to -6 to 6 range
Signal Generation :
Detects potential reversal patterns
Applies cooldown and magnitude filters
Generates clear visual markers for qualified signals
Confidence Assessment :
Evaluates component agreement, historical accuracy, and signal strength
Classifies signals into three confidence tiers (average, above average, excellent)
Displays intuitive confidence indicators (no symbol, +, ++) alongside direction markers
💡 Note:
The AI Adaptive Oscillator performs optimally when used with appropriate timeframe selection and complementary indicators. Its adaptive nature makes it particularly valuable during changing market conditions, where traditional fixed-weight indicators often lose effectiveness. The ensemble approach provides a more robust analysis by leveraging the collective intelligence of multiple technical methodologies. Pay special attention to the signal confidence indicators to optimize your trading decisions - excellent (++) signals often represent the most reliable trade opportunities.
Fractal Breakout Trend Following System█ OVERVIEW
The Fractal Breakout Trend Following System is a custom technical analysis tool designed to pinpoint significant fractal pivot points and breakout levels. By analyzing price action through configurable pivot parameters, this indicator dynamically identifies key support and resistance zones. It not only marks crucial highs and lows on the chart but also signals potential trend reversals through real-time breakout detections, helping traders capture shifts in market momentum.
█ KEY FEATURES
Fractal Pivot Detection
Utilizes user-defined left and right pivot lengths to detect local highs (pivot highs) and lows (pivot lows). This fractal-based approach ensures that only meaningful price moves are considered, effectively filtering out minor market noise.
Dynamic Line Visualization
Upon confirmation of a pivot, the system draws a dynamic line representing resistance (from pivot highs) or support (from pivot lows). These lines extend across the chart until a breakout occurs, offering a continuous visual guide to key levels.
Trend Breakout Signals
Monitors for price crossovers relative to the drawn pivot lines. A crossover above a resistance line signals a bullish breakout, while a crossunder below a support line indicates a bearish move, thus updating the prevailing trend.
Pivot Labelling
Assigns labels such as "HH", "LH", "LL", or "HL" to detected pivots based on their relative values.
It uses the following designations:
HH (Higher High) : Indicates that the current pivot high is greater than the previous pivot high, suggesting continued upward momentum.
LH (Lower High) : Signals that the current pivot high is lower than the previous pivot high, which may hint at a potential reversal within an uptrend.
LL (Lower Low) : Shows that the current pivot low is lower than the previous pivot low, confirming sustained downward pressure.
HL (Higher Low) : Reveals that the current pivot low is higher than the previous pivot low, potentially indicating the beginning of an upward reversal in a downtrend.
These labels provide traders with immediate insight into the market structure and recent price behavior.
Customizable Visual Settings
Offers various customization options:
• Adjust pivot sensitivity via left/right pivot inputs.
• Toggle pivot labels on or off.
• Enable background color changes to reflect bullish or bearish trends.
• Choose preferred colors for bullish (e.g., green) and bearish (e.g., red) signals.
█ UNDERLYING METHODOLOGY & CALCULATIONS
Fractal Pivot Calculation
The script employs a sliding window technique using configurable left and right parameters to identify local highs and lows. Detected pivot values are sanitized to ensure consistency in subsequent calculations.
Dynamic Line Plotting
When a new pivot is detected, a corresponding line is drawn from the pivot point. This line extends until the price breaks the level, at which point it is reset. This method provides a continuous reference for support and resistance.
Trend Breakout Identification
By continuously monitoring price interactions with the pivot lines, the indicator identifies breakouts. A price crossover above a resistance line suggests a bullish breakout, while a crossunder below a support line indicates a bearish shift. The current trend is updated accordingly.
Pivot Label Assignment
The system compares the current pivot with the previous one to determine if the move represents a higher high, lower high, higher low, or lower low. This classification helps traders understand the underlying market momentum.
█ HOW TO USE THE INDICATOR
1 — Apply the Indicator
• Add the Fractal Breakout Trend Following System to your chart to begin visualizing dynamic pivot points and breakout signals.
2 — Adjust Settings for Your Market
• Pivot Detection – Configure the left and right pivot lengths for both highs and lows to suit your desired sensitivity:
- Use shorter lengths for more responsive signals in fast-moving markets.
- Use longer lengths to filter out minor fluctuations in volatile conditions.
• Visual Customization – Toggle the display of pivot labels and background color changes. Select your preferred colors for bullish and bearish trends.
3 — Interpret the Signals
• Support & Resistance Lines – Observe the dynamically drawn lines that represent key pivot levels.
• Pivot Labels – Look for labels like "HH", "LH", "LL", and "HL" to quickly assess market structure and trend behavior.
• Trend Signals – Watch for price crossovers and corresponding background color shifts to gauge bullish or bearish breakouts.
4 — Integrate with Your Trading Strategy
• Use the identified pivot points as potential support and resistance levels.
• Combine breakout signals with other technical indicators for comprehensive trade confirmation.
• Adjust the sensitivity settings to tailor the indicator to various instruments and market conditions.
█ CONCLUSION
The Fractal Breakout Trend Following System offers a robust framework for identifying critical fractal pivot points and potential breakout opportunities. With its dynamic line plotting, clear pivot labeling, and customizable visual settings, this indicator equips traders with actionable insights to enhance decision-making and optimize entry and exit strategies.