AlphaTrend// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// author © KivancOzbilgic
// developer © KivancOzbilgic
//@version=5
indicator('AlphaTrend', shorttitle='AT', overlay=true, format=format.price, precision=2, timeframe='')
coeff = input.float(1, 'Multiplier', step=0.1)
AP = input(14, 'Common Period')
ATR = ta.sma(ta.tr, AP)
src = input(close)
showsignalsk = input(title='Show Signals?', defval=true)
novolumedata = input(title='Change calculation (no volume data)?', defval=false)
upT = low - ATR * coeff
downT = high + ATR * coeff
AlphaTrend = 0.0
AlphaTrend := (novolumedata ? ta.rsi(src, AP) >= 50 : ta.mfi(hlc3, AP) >= 50) ? upT < nz(AlphaTrend ) ? nz(AlphaTrend ) : upT : downT > nz(AlphaTrend ) ? nz(AlphaTrend ) : downT
color1 = AlphaTrend > AlphaTrend ? #00E60F : AlphaTrend < AlphaTrend ? #80000B : AlphaTrend > AlphaTrend ? #00E60F : #80000B
k1 = plot(AlphaTrend, color=color.new(#0022FC, 0), linewidth=3)
k2 = plot(AlphaTrend , color=color.new(#FC0400, 0), linewidth=3)
fill(k1, k2, color=color1)
buySignalk = ta.crossover(AlphaTrend, AlphaTrend )
sellSignalk = ta.crossunder(AlphaTrend, AlphaTrend )
K1 = ta.barssince(buySignalk)
K2 = ta.barssince(sellSignalk)
O1 = ta.barssince(buySignalk )
O2 = ta.barssince(sellSignalk )
plotshape(buySignalk and showsignalsk and O1 > K2 ? AlphaTrend * 0.9999 : na, title='BUY', text='BUY', location=location.absolute, style=shape.labelup, size=size.tiny, color=color.new(#0022FC, 0), textcolor=color.new(color.white, 0))
plotshape(sellSignalk and showsignalsk and O2 > K1 ? AlphaTrend * 1.0001 : na, title='SELL', text='SELL', location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.new(color.maroon, 0), textcolor=color.new(color.white, 0))
alertcondition(buySignalk and O1 > K2, title='Potential BUY Alarm', message='BUY SIGNAL!')
alertcondition(sellSignalk and O2 > K1, title='Potential SELL Alarm', message='SELL SIGNAL!')
alertcondition(buySignalk and O1 > K2, title='Confirmed BUY Alarm', message='BUY SIGNAL APPROVED!')
alertcondition(sellSignalk and O2 > K1, title='Confirmed SELL Alarm', message='SELL SIGNAL APPROVED!')
alertcondition(ta.cross(close, AlphaTrend), title='Price Cross Alert', message='Price - AlphaTrend Crossing!')
alertcondition(ta.crossover(low, AlphaTrend), title='Candle CrossOver Alarm', message='LAST BAR is ABOVE ALPHATREND')
alertcondition(ta.crossunder(high, AlphaTrend), title='Candle CrossUnder Alarm', message='LAST BAR is BELOW ALPHATREND!')
alertcondition(ta.cross(close , AlphaTrend ), title='Price Cross Alert After Bar Close', message='Price - AlphaTrend Crossing!')
alertcondition(ta.crossover(low , AlphaTrend ), title='Candle CrossOver Alarm After Bar Close', message='LAST BAR is ABOVE ALPHATREND!')
alertcondition(ta.crossunder(high , AlphaTrend ), title='Candle CrossUnder Alarm After Bar Close', message='LAST BAR is BELOW ALPHATREND!')
Indicators and strategies
Candle/Keltner Channels BUY SELLWhy Use Candlesticks?
They help traders visualize price action
Used in technical analysis and price pattern recognition (e.g., Doji, Engulfing, Hammer)
Assist in determining entry and exit points
Why Traders Use Keltner Channels?
Keltner Channels are widely used by traders for identifying trends, detecting volatility, and spotting trade opportunities.
1. Trend Identification
The middle line (EMA) shows the general trend.
If price consistently stays above the middle line, it indicates a strong uptrend.
If price stays below, it signals a downtrend.
Use: Traders follow the trend direction to enter trades in line with momentum.
2. Volatility Measurement
The width of the channel expands and contracts based on Average True Range (ATR).
Wider channels = high volatility, tighter channels = low volatility.
Use: Helps traders decide when to expect breakouts or calm periods.
3. Breakout Signals
A break above the upper band can signal a bullish breakout.
A break below the lower band can signal a bearish breakout.
Use: Traders use this for momentum trading and breakout entries.
4. Overbought/Oversold Conditions
Price touching or crossing the upper band may suggest it's overbought.
Price touching or crossing the lower band may suggest it's oversold.
Use: Traders combine this with RSI or MACD to confirm reversal setups.
5. Trade Entry and Exit
When price pulls back to the middle EMA during a trend, it may present a buy/sell opportunity.
Exits can also be planned if price returns inside the bands after a breakout.
Use: Helps with precise entry and exit timing.
6. Combines Well With Other Indicators
Commonly used with:
RSI (for confirmation)
MACD (for momentum)
Candlestick patterns (for price action signals)
Combining Candlestick Patterns with Keltner Channels gives traders a powerful method to confirm entries, spot reversals, and improve accuracy. Here’s why this combination works so well:
1. Context for Candlestick Signals
Candlestick patterns (like doji, engulfing, or pin bars) show potential price reversals, but they need context to be reliable. Keltner Channels provide that context:
A bullish candlestick near the lower band suggests a stronger buy signal.
A bearish candlestick near the upper band strengthens a sell signal.
2. Filtering False Signals
Candlestick patterns occur frequently, and not all are meaningful.
The location within the Keltner Channel helps filter out weak or false patterns.
Example: A bullish engulfing candle outside the lower band = high-probability reversal.
3. Improved Entry Timing
Traders wait for a candlestick pattern confirmation when price touches or crosses a Keltner band.
This avoids premature entries and allows tighter stop-losses.
4. Better Risk-Reward Setup
Candlestick entry near channel extremes (upper/lower band) lets traders place stop-losses just beyond recent highs/lows.
The target can be the opposite side of the channel or the middle EMA.
5. Visual Simplicity
Keltner Channels + Candles are visually intuitive.
Even beginner traders can easily recognize:
Overextended candles near channel edges.
Confirmed breakouts or reversals.
This Timeframe 5 min : XAUUSD
21-Day Trend Direction📈 21-Day Trend Direction Indicator
📊 How It Works:
🎯 Trend Detection Logic:
Analyzes last 21 daily candles
Calculates total price change from start to end
Compares against sideways threshold (default 2%)
Counts bullish vs bearish days
Tracks higher highs and lower lows
📈 Trend Classifications:
• 📈 UPTREND: Price change > +2% over 21 days
• 📉 DOWNTREND: Price change < -2% over 21 days
• ➡️ SIDEWAYS: Price change between -2% and +2%
💪 Trend Strength Levels:
• 🔥 Very Strong: >5% price change
• 💪 Strong: 3-5% price change
• 📊 Moderate: 1.5-3% price change
• 📉 Weak: <1.5% price change
🎨 Visual Features:
📋 Information Table Shows:
• Trend Direction with color coding
• Price Change % over 21 days
• Trend Strength classification
• Bull/Bear Days count
• Higher Highs/Lower Lows count
• Analysis Period (customizable)
📊 Chart Indicators:
• Trend Line (21-day moving average)
• Background Color for quick trend identification
• Trend Arrows (▲ ▼ ➡) on chart
• Customizable display options
⚙️ Customizable Settings:
🎯 Analysis Settings:
• Lookback Days: 5-50 days (default: 14)
• Sideways Threshold: 0.5-10% (default: 2%)
• Trend Strength: Low/Medium/High sensitivity
🎨 Display Options:
• Table Position: 9 different positions
• Table Size: Tiny to Large
• Show/Hide: Table, Trend Line, Background, Arrows
🚨 Alert Options:
• Trend Change to Uptrend
• Trend Change to Downtrend
• Trend Change to Sideways
This indicator gives you a clear, objective view of the 21-day trend with multiple confirmation signals! 🚀
OPR MATIN/APRÈS-MIDI/ASIA🔹 OPR Morning / Afternoon / Asia – Session High-Low Zones
This indicator automatically plots the high, low, and midline of three key trading sessions:
OPR Morning
OPR Afternoon
Asia Session
Each session is configurable with:
Custom time range (with automatic -2h adjustment using UTC+2)
Custom colors for lines and background
Adjustable line length and thickness
🔧 Perfect for identifying session-based market structure, key levels, and intraday zones of interest.
✅ Built with Pine Script v6
✅ Designed for scalpers and intraday traders
✅ Automatically adjusts time zones for consistency across platforms
Linda 3/10 by Paul Willy HammerUnfortunately, I was unable to locate the original 3/10 Oscillator by Linda Raschke, so I’ve created a new version based on Pine Script v6.
Please note that I’m not providing support for this script.
If you have questions about how to use it, I encourage you to do your own research.
The MACD line is displayed in green when rising and in red when falling.
GMMA + Fastest EMA Collapse/Expansion - Bold BUY/SELLA perfect blend of accurrate GMMA cross up and cross down giving direct buy and sell signals.
Dynamic Range Filter with Trend Candlesticks (Zeiierman)█ Overview
Dynamic Range Filter with Trend Candlesticks (Zeiierman) is a volatility-responsive trend engine that adapts in real-time to market structure, offering a clean and intelligent visualization of directional bias. It blends dynamic range calculation with customizable smoothing techniques and layered trend confirmation logic, making it ideal for traders who rely on clear trend direction, structural range analysis, and momentum-based candlestick signals.
By measuring scaled volatility over configurable lengths and applying advanced moving average techniques, this indicator filters out market noise while preserving true directional intent. Complementing this, a dual-trend system (range-based and candle-based) enhances clarity and responsiveness, particularly during shifting market conditions.
█ How It Works
⚪ Scaled Volatility Band Calculation
At the core lies a volatility engine that constructs adaptive range bands around price using smoothed high/low calculations. The bands are dynamically adjusted using:
High/Low Smoothing – Applies a moving average to the raw high and low data before calculating the range.
Scaled Range Volatility – A 2.618 multiplier scales the distance between smoothed highs and lows, forming a responsive volatility envelope.
Band Multiplier – Controls how wide the upper/lower range bands extend from the mean.
This filtering process minimizes false signals and highlights only structurally meaningful moves.
⚪ Multi-Type Smoothing Engine
Users can choose from a wide array of smoothing algorithms for trend construction, including:
HMA (default), SMA, EMA, RMA
KAMA – Adapts to market volatility using efficiency ratios.
VIDYA – Momentum-sensitive smoothing using CMO logic.
FRAMA – Dynamically adjusts to fractal dimension in price.
Super Smoother – Ideal for eliminating aliasing in range signals.
This provides the trader with fine-tuned control over reactivity vs. smoothness.
⚪ Trend Detection (Dual Engine)
The indicator includes two independent trend tracking systems:
Main Trend Filter – Based on adaptive volatility band shifts.
Candle Trend Filter – A second-tier confirmation using smoothed candle data, ideal for directional candles and confirmation entries.
█ How to Use
⚪ Trend Confirmation
Use the Trend Line and colored candlesticks for high-probability entries in the trend direction. The more trend layers that align, the higher the confidence.
⚪ Reversal Zones
When the price reaches the outer bands or fails to break them, look for candle color shifts or a crossover in the range to anticipate possible reversals or consolidations.
█ Settings
Scaled Volatility Length – Controls the lookback used to stabilize the base volatility band.
MA Type & Length – Choose and fine-tune the smoothing method (HMA, EMA, KAMA, etc.)
High/Low Smoother – Pre-smoothing for structural high/low banding.
Band Multiplier – Adjusts the width of the dynamic bands.
Trend Length (Candles) – Length used for candle-based trend confirmation.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Candle/RSI BUY SELLWhy Use Candlesticks?
They help traders visualize price action
Used in technical analysis and price pattern recognition (e.g., Doji, Engulfing, Hammer)
Assist in determining entry and exit points
Why Traders Use RSI:
To identify potential reversal zones
To confirm trend strength
To detect divergences between price and momentum
Why Combine Candlestick Patterns with RSI?
Using Candlestick patterns together with the Relative Strength Index (RSI) enhances trading decisions by combining price action and momentum analysis.
Conclusion:
Combining RSI with Candlestick patterns allows traders to:
Confirm potential reversals
Filter false signals
Improve entry and exit timing
Make more confident and accurate decisions
How It Works:
RSI Calculation
Custom RSI is calculated manually using Wilder's smoothing technique.
MA or BB Option
User can select whether to apply a smoothing MA or Bollinger Bands to RSI (useful for visual enhancements or custom strategies).
Buy/Sell Logic
check for:
Buy when the current candle is bullish (open <= close) and the previous candle was bearish (open >= close ), AND RSI is ≥ 50.
Sell when current candle is bearish and previous was bullish, AND RSI is ≤ 50.
Plot Buy/Sell Labels
Final Verdict
code is:
Valid (no syntax errors)
Useful (combines candlestick confirmation + RSI strength)
Extendable (can add divergence, alerts, etc.)
This Timeframe 5 min
EMA 20 Bull-Bear Volume & Price Action Adjusted SignalThis indicator is used for swing traders, not for all please consult your financial advisor before investing
Candle/RSI BUY SELLWhy Use Candlesticks?
They help traders visualize price action
Used in technical analysis and price pattern recognition (e.g., Doji, Engulfing, Hammer)
Assist in determining entry and exit points
Why Traders Use RSI:
To identify potential reversal zones
To confirm trend strength
To detect divergences between price and momentum
Why Combine Candlestick Patterns with RSI?
Using Candlestick patterns together with the Relative Strength Index (RSI) enhances trading decisions by combining price action and momentum analysis.
Conclusion:
Combining RSI with Candlestick patterns allows traders to:
Confirm potential reversals
Filter false signals
Improve entry and exit timing
Make more confident and accurate decisions
How It Works:
RSI Calculation
Custom RSI is calculated manually using Wilder's smoothing technique.
MA or BB Option
User can select whether to apply a smoothing MA or Bollinger Bands to RSI (useful for visual enhancements or custom strategies).
Buy/Sell Logic
check for:
Buy when the current candle is bullish (open <= close) and the previous candle was bearish (open >= close ), AND RSI is ≥ 50.
Sell when current candle is bearish and previous was bullish, AND RSI is ≤ 50.
Plot Buy/Sell Labels
Final Verdict
code is:
Valid (no syntax errors)
Useful (combines candlestick confirmation + RSI strength)
Extendable (can add divergence, alerts, etc.)
This Timeframe 5 min
email : dudedicate@gmail.com
BTC vs XAU Divergenz SetupWenn Gold sich stark bewegt und Bitcoin nicht – dann sei bereit für eine Bewegung bei BTC.
EMA 20 Bull-Bear Volume Adjusted Signalthis indicator is useful for traders. Don’t take a decision only based on this indicator. Please consult your financial advisor.
EMA 20 Bull-Bear Volume Adjusted Signalthis indicator is under progress don’t take a decision only based on this
ADX+ Oscillator📈 ADX+ Oscillator — Enhanced Trend Strength Indicator
🔹 Description:
A modified oscillator based on the ADX (Average Directional Index), providing both visual and digital interpretation of trend strength and direction. A powerful tool for filtering sideways markets and identifying strong impulses across any timeframe.
🔹 Features:
• ADX line to assess trend strength
• DI+ and DI− lines to determine trend direction
• Colored background zones:
• Gray: ranging market (ADX < 20)
• Orange: transition zone (20 ≤ ADX < 25)
• Green: strong trend (ADX ≥ 25)
• Digital value labels for ADX / DI+ / DI− on the latest candle
• Signal arrows when DI+ crosses DI− and vice versa
🔹 Why use it:
• Signal filtering: avoid trades in flat markets (ADX < 20)
• Trend confirmation: enter only when ADX is rising above 25
• Directional guidance via DI+ and DI− behavior
🔹 Best for:
• Scalping (1m, 5m)
• Intraday trading (15m, 1h)
• Swing trading (4h and above)
• Breakout and pullback strategies
Best Fractals (Modified)"Best Fractals" Indicator – Modified Version
This updated version of the "Best Fractals" TradingView indicator introduces the following improvements:
✅ Changes Implemented:
Line Color Changed to Black:
The horizontal lines that represent recent fractal levels are now drawn in black instead of red (for tops) and green (for bottoms).
This helps ensure better visibility across various chart backgrounds.
Fractal Marker Position Adjusted (Bottom Fractals):
The bottom fractal triangle markers are now positioned closer to the candles by reducing the offset from -len to -1.
This provides a more visually aligned and natural placement relative to price action.
🔧 Unchanged Features:
Top and bottom fractals are still identified using custom logic based on the candle body highs and lows (not wicks).
Triangular markers are shown above or below bars.
Up to a specified number (fractalCount) of recent fractals are used to draw persistent horizontal lines.
Support/Resistance Zones + Volume**Strategy**: Identify dynamic support/resistance zones with volume confirmation
**Signals**: Bounce from tested zones + breakout with high volume
**Win Rate**: \~72% | R/R: 1:3
**Ideal for**: Swing trading with precise entries at key levels.
RSI + EMA Crossover Strategy**Indicator 1: RSI + EMA Crossover (1H)**
* **Strategy**: Combines RSI for optimal timing with EMA crossover for trend direction
* **Signals**: Buy when RSI exits oversold with bullish EMA trend, Sell when RSI exits overbought with bearish EMA trend
* **Win Rate**: ~65% | **R/R**: 1:2
* **Ideal for**: Day trading on short-medium timeframes
Best FracktalsKey Features:
Fractal Detection: The script detects both top and bottom fractals using custom logic based on candle body highs and lows, not wicks.
Customizable Parameters:
Number of candles (len) to check on each side of the central bar to determine if it forms a fractal.
Number of fractals (fractalCount) to remember and draw lines for.
Visual Indicators:
A red downward triangle marks top fractals above the bar.
A green upward triangle marks bottom fractals below the bar.
Fractal Lines:
Draws up to fractalCount horizontal lines across the chart at the levels of the most recent fractals.
Lines update dynamically as new fractals are detected.
Logic Overview:
Top Fractal: The central candle has a higher body high than surrounding candles.
Bottom Fractal: The central candle has a lower body low than surrounding candles.
Ensures no duplicate fractals are marked on equal highs or lows.
ATR scalping-YT)Zone ATR Condition Background Color (bgcolor) Meaning
🔵 Light Blue ATR < low threshold (lowVol) color.new(color.blue, 80) Volatility too low → sluggish market, best to avoid scalping
🟢 Light Green low threshold ≤ ATR ≤ high threshold color.new(color.green, 80) Ideal volatility → optimal zone for scalping
🔴 Light Red ATR > high threshold (highVol) color.new(color.red, 80) Volatility too high → erratic market, higher risk
SMA Crossover with Optional RSI, MACD, Volume and VBB FiltersSMA Crossover + Optional RSI, MACD, Volume, and VBB Filters
This indicator visualizes the crossover between two SMAs (fast and slow) and allows refining the signals using optional filters: RSI, MACD, volume, and Volatility Bollinger Bands (VBB). All filters are optional and fully customizable.
✅ Available filters:
MACD Direction Filter – allows signals only when the MACD line is rising (for longs) or falling (for shorts).
MACD Cross Filter – restricts signals to occur only between MACD crossovers in a specific direction (e.g., long signals only after a bullish MACD cross and until the next bearish cross). You can combine both MACD filters for stricter conditions.
Volatility Bollinger Band (VBB) Filter – filters out signals during low-volatility periods by measuring Bollinger Band width, ensuring signals occur only in sufficiently volatile conditions.
🔧 Recommended: adjust the volatility threshold depending on the market you trade (e.g., crypto, forex, stocks).
RSI Filter – allows signals only when RSI is above a defined buy level or below a sell level.
Volume Filter – allows signals only when the current volume exceeds the average volume multiplied by a defined factor.
💡 All filters can be enabled or disabled independently.
The VBB bands can also be hidden from the chart while still functioning as a background filter.
📈 Buy and sell signals are plotted directly on the chart based on SMA crossovers, validated by the selected filters.
EMA 20 Volume Adjusted Signalthis indicator is useful for swing traders, you can take trading decisions before consult your financial advisor