Wskaźnik Pine Script®
Średnie kroczące
Ratio Between Two SymbolsThis indicator calculates and displays the price ratio between two symbols, allowing you to compare relative performance and strength.
The chart shows the current symbol divided by a benchmark symbol (default: S&P 500), with an optional multiplier to scale the ratio for easier visualization. A moving average (default 20-period SMA) smooths the ratio to identify trends in relative performance.
When the ratio is rising, the current symbol is outperforming the benchmark. When falling, it's underperforming. The moving average helps identify the overall trend direction and potential reversals in relative strength.
Features:
- Compare any two symbols in real-time
- Adjustable moving average period
- Customizable ratio multiplier for scaling
- Optional label showing current ratio value
- Adjustable decimal precision
Useful for:
- Relative strength analysis
- Pair trading opportunities
- Sector/stock rotation strategies
- Comparing asset class performance
Wskaźnik Pine Script®
Trend Leadership Eligibility WeeklyTrend Leadership Eligibility Weekly
Overview
Trend Leadership Eligibility Weekly is a higher-timeframe structural classification tool designed to evaluate whether a symbol meets defined weekly trend and relative strength criteria.
The indicator operates on confirmed weekly data and classifies symbols into a binary structural state:
Eligible or Not Eligible
It is intended for screening, structural analysis, and research workflows.
It does not generate trading signals and does not execute orders.
________________________________________
Methodology
Eligibility is determined using three independent weekly evaluations:
1. Relative Strength Trend
The ratio of symbol price to a user-defined benchmark is calculated and smoothed. Directional alignment is validated using moving average structure and slope conditions.
2. Volatility-Normalized Trend Smoothness
Weekly price variability (standard deviation of closes) is normalized by ATR to evaluate structural orderliness relative to volatility.
3. Weekly Range Structure Positioning
The current weekly range is assessed within its historical expansion–contraction distribution to evaluate structural tightness.
Classification requires simultaneous confirmation across all three components.
If any condition fails, the symbol is classified as Not Eligible.
________________________________________
Design Characteristics
• Weekly timeframe evaluation
• Non-repainting (lookahead = barmerge.lookahead_off)
• Confirmed higher-timeframe data usage
• Overlay compatible for daily chart workflows
• Alert conditions available for eligibility state transitions
________________________________________
Intended Use
This tool may be used for:
• Watchlist filtering
• Higher-timeframe structural gating
• Portfolio research
• Market context evaluation
It is not a trading system and does not provide entry or exit instructions.
________________________________________
Important Notice
This script is provided for informational and educational purposes only.
All trading involves risk. No methodology guarantees future performance.
Wskaźnik Pine Script®
EMA 21 & EMA 50 Crossover + Close Line1️⃣ This indicator generates BUY and SELL signals based on EMA 21 and EMA 50 crossovers, where EMA 21 crossing above EMA 50 gives a BUY signal and crossing below gives a SELL signal.
2️⃣ All signals are confirmed only after candle close, which helps reduce false and premature entries.
3️⃣ Clear visual arrows (▲ / ▼) are plotted on the chart to easily identify BUY and SELL points.
4️⃣ A horizontal line is drawn at the signal candle’s close price, clearly marking the entry level on the chart.
5️⃣ The indicator includes built-in alert conditions, making it suitable for real-time alerts, manual trading, and algo/webhook-based execution.
Wskaźnik Pine Script®
Multi Timeframe Scalper StructureWhat It Does
This indicator generates trend-filtered scalping entries by requiring three independent layers of confirmation before any signal appears. A higher-timeframe trend filter sets the allowed direction. Two separate EMA structure zones on the micro timeframe must both confirm momentum alignment. Only when all three agree does an entry dot print on the chart.
It also includes a real-time signal matrix table that shows which conditions are currently met, an on-chart TP/SL line system for quick risk-reward visualization, and configurable alerts.
How It Works
The indicator operates on two timeframe layers:
Macro layer — A moving average (selectable: EMA, SMA, WMA, or VWMA) is calculated on a higher timeframe you choose (default: 4H). If the closing price on that timeframe is above the MA, the macro trend is bullish. If below, bearish. This acts as a directional gate — no signal can fire against it. The chart background tints green or red to reflect this bias.
Micro layer — Two pairs of EMAs run on the chart timeframe (or a custom micro timeframe), each forming a colored filled zone:
Structure 2 (default periods: 16 and 30) — the wider zone. When its fast EMA is above its slow EMA, the zone fills green, confirming bullish intermediate momentum. Below fills red.
Structure 1 (default periods: 8 and 16) — the tighter zone, used for precise entry timing. A crossover of its fast EMA above the slow EMA is the trigger event for a long entry. A crossunder triggers a short entry.
Entry conditions:
A long entry dot appears when:
The macro layer is bullish (price above the higher-TF MA)
Structure 2 is bullish (fast above slow)
Structure 1 crosses bullish (fast crosses above slow)
A short entry dot appears under the mirror conditions — macro bearish, both structures bearish, Structure 1 crosses down.
Early reversal detection (optional) — When enabled, the indicator can also trigger a signal when Structure 2 flips from bearish to bullish (or vice versa), allowing entry before Structure 1 has crossed, as long as the macro confirms. This captures momentum shifts earlier.
Non-repainting — All higher-timeframe data uses lookahead_off. The "Wait for Candle Close" option (on by default) ensures signals only appear after the candle is fully confirmed.
How the Components Interact
The macro layer decides which direction you are allowed to trade — it is the filter. Structure 2 confirms that intermediate momentum on the chart timeframe has already shifted in that same direction — it is the confirmation. Structure 1 provides the exact timing — its crossover is the trigger that places the entry dot. Each layer serves a distinct purpose: direction, confirmation, and timing. A signal must pass through all three before it appears, which is what reduces noise compared to a single crossover system.
When early reversal detection is active, Structure 2 can also serve as an alternative trigger (its color flip), but only while the macro still confirms. This creates two possible trigger paths under the same directional filter.
How to Use It
Set your macro timeframe meaningfully above your chart timeframe. If you scalp on the 5-minute chart, a 1-hour or 4-hour macro works well. On the 1-minute, try 15 minutes or 1 hour.
The background color tells you the macro bias instantly — green for bullish, red for bearish.
Watch the two filled zones on your chart. When both turn green (or both red) and align with the background color, conditions are building toward a signal.
Entry dots appear at the bottom of the chart for longs (green) and at the top for shorts (red).
The signal matrix table (movable to any corner) shows real-time status of each layer: Macro Trend, Structure 2, Structure 1, and the combined result — LONG, SHORT, or WAIT.
Use the TP/SL tool to project take-profit and stop-loss lines on the chart. Set the direction (Long or Short), optionally enter a manual entry price, and configure your percentages. Up to two partial TP levels can be displayed alongside the main TP.
Set alerts using the built-in alert conditions ("LONG Signal" or "SHORT Signal") to be notified when a confirmed entry fires.
Key Features
Three-layer hierarchical filtering architecture: Each layer has a distinct role — directional gating (macro), momentum confirmation (Structure 2), and entry timing (Structure 1) — and all three must agree simultaneously. This multi-layer approach reduces noise compared to single crossover systems.
Dual EMA structure zones: Two independent pairs of EMAs operating at different speeds provide both intermediate momentum confirmation and precise entry timing under a separate higher-timeframe umbrella.
Early reversal detection: Optional second trigger path that reads when the wider Structure 2 zone changes polarity, allowing entries at the point where intermediate momentum shifts.
Real-time signal matrix: Dashboard view showing which conditions are satisfied in real time, turning the indicator into a structured workflow rather than just a dot generator.
Integrated TP/SL system: On-chart trade management with optional partial targets keeps risk management visible without needing a separate tool.
Non-repainting design: All signals are confirmed and use proper lookahead settings to ensure historical accuracy matches real-time behavior.
Suitability
Markets: Any liquid market — forex pairs, crypto, stock indices, commodities, equities.
Timeframes: Designed for lower chart timeframes (1m, 3m, 5m, 15m) with the macro set higher (1H, 4H). Can also be adapted for intraday swing setups using 15m–1H charts with a daily macro.
Trading style: Trend-following momentum scalping — taking quick entries in the direction of the dominant trend when short-term momentum confirms the higher-timeframe bias. Entries target short directional bursts within established trends, not reversals or range-bound conditions. The built-in candle-close confirmation and the three-layer filter are designed for disciplined, fast-execution scalping where you enter with momentum and exit at predefined percentage targets.
Disclaimer
This indicator is a technical analysis tool, not financial advice. It does not guarantee profits and does not predict future price movements. No indicator can eliminate risk. Past behavior of signals does not ensure future results. Always use proper risk management and assess your own financial situation before entering any trade.
Wskaźnik Pine Script®
Triple EMA (7/25/100) Triple EMA (7 / 25 / 100) – Trend Alignment & Bias Tool
This script plots three Exponential Moving Averages (7, 25, and 100) to help identify market bias and trend alignment.
EMA 100 (Blue, thick) → Primary bias / higher timeframe control
EMA 25 (Orange) → Intermediate trend direction
EMA 7 (Yellow) → Short-term momentum
How to use:
Bullish alignment: 7 > 25 > 100 → Strong uptrend structure
Bearish alignment: 7 < 25 < 100 → Strong downtrend structure
Price above 100 EMA → Buyers in control
Price below 100 EMA → Sellers in control
This tool is best used for trend continuation setups and filtering trades in conjunction with structure, displacement, or Fair Value Gaps (FVGs).
Designed for clean, bias-first decision making without indicator clutter.
Wskaźnik Pine Script®
Block-Based Visual Logic Builder FrameworkThis strategy demonstrates a modular, block-based approach to strategy design in Pine Script. While TradingView does not support true drag-and-drop strategy builders, this script is structured to simulate a visual logic builder by separating trading logic into independent, configurable blocks.
Each block represents a conceptual component (trend, momentum, volatility, session, and risk), allowing users to enable, disable, or modify individual modules for testing and experimentation.
Visual Logic Builder Concept
The strategy is organized into distinct logic blocks:
Session Block - controls when trades are allowed
Trend Block - defines directional bias
Momentum Block - confirms directional strength
Volatility Block - filters for sufficient market movement
Risk Block - standardized ATR-based stop and target logic
This structure mirrors how visual trading systems and drag-and-drop interfaces organize logic into reusable components.
How It Works
Market conditions are evaluated through separate logic blocks.
Each block can be enabled or disabled using inputs.
Final entry decisions are based on the combined output of active blocks.
All exits are managed through a centralized risk block using ATR-based stops and fixed risk-reward.
Purpose
This script is intended as a structural template for building and testing modular trading systems. It emphasizes clarity, execution realism, and repeatable logic rather than optimization or signal density.
Usage Notes
Results depend on symbol, timeframe, volatility regime, and selected block settings. Users are encouraged to experiment with different combinations of blocks and validate behavior across multiple markets before relying on any configuration.
Strategia Pine Script®
Average Two Sources - Z-Score [supruzr]Average Two Sources – Z-Score
This utility indicator lets you combine and compare any two sources on a common scale using Z‑score normalization. It’s designed for cases where you want to blend indicators or prices that live on different value ranges.
How it works
Each source is converted to a Z‑score over the selected Normalization Period (value minus mean, divided by standard deviation).
The script plots both Z‑scores plus their simple average.
A value above 0 means the source is above its recent mean; below 0 means it’s below its recent mean.
Typical uses
Combine two different oscillators (e.g., RSI + custom momentum) into a single averaged signal.
Blend price‑based data with breadth, volume, or volatility measures.
Quickly see when both inputs are stretched in the same direction versus when they diverge.
Inputs
Source 1 / Source 2: Any price or indicator output.
Normalization Period: Lookback length used to compute Z‑scores (default 20).
Created by supruzr.
Wskaźnik Pine Script®
Multi-Timeframe Quad EMAMulti-Timeframe Quad EMA Indicator (built based on standard tradingview ema calculation)
Overview
The Multi-Timeframe Quad EMA is a sophisticated technical analysis tool that displays up to four Exponential Moving Averages (EMAs) on your chart, with the ability to source each from different timeframes. This versatile indicator allows traders to visualize multiple moving averages simultaneously, offering a comprehensive view of price trends across various time periods.
Key Features
Multi-Timeframe Analysis
Each EMA can be configured to display data from any timeframe
Allows for comparing short-term and long-term trends on a single chart
Provides cross-timeframe insights without switching between chart periods
Customizable Visualization
Four independent EMAs, each individually configurable
Toggle any EMA on or off based on your analysis needs
Color customization for each EMA line
Adjustable line thickness for visual emphasis
Optional display offset for each EMA
Visual Smoothing
Optional smoothing feature for cleaner visual representation
Multiple smoothing methods: SMA, EMA, WMA, and RMA
Adjustable smoothing length to control the degree of smoothing
Smoothing affects only the display, not the underlying calculations
Information Display
On-chart information table showing EMA parameters
Customizable table position (choose any corner of the chart)
Optional value display showing current EMA values
Clear indication of timeframe and calculation length for each EMA
Use Cases
Trend Identification
Multiple EMAs help identify the current market trend direction
Shorter EMAs show immediate price action, longer EMAs show overall trend
EMA crossovers can signal potential trend changes
Multi-Timeframe Strategy Development
Compare how trends appear across different timeframes
Identify potential entry and exit points based on multiple timeframe analysis
Develop strategies that consider both short-term and long-term market conditions
Support and Resistance Levels
EMAs often act as dynamic support and resistance levels
Multiple EMAs provide several potential support/resistance zones
Price interaction with these levels can signal potential reversals or continuations
Market Structure Analysis
The relationship between different period EMAs helps understand market structure
EMA alignments can indicate trend strength or weakness
Divergences between EMAs may signal potential trend changes
Technical Details
Calculation Methods
Uses true EMAs with proper calculation methods
Option to apply visual smoothing for display purposes only
Multi-timeframe data properly synced using secure request methods
Performance Considerations
Optimized for efficient chart rendering
Dynamic table creation only when needed
Minimal resource usage even with all features enabled
Wskaźnik Pine Script®
EMA 19/91 Cross + Candle Confirm + 91 Trend FilterSimple Average Strategy Gives signal to buy and sell u wukll get another warning no doubt but i cannot add alert untill it is published
Strategia Pine Script®
Harmonic Confluence Wave Detector [JOAT]Harmonic Confluence Wave Detector
Introduction
The Harmonic Confluence Wave Detector is an open-source oscillator-based indicator that combines WaveTrend, Money Flow Index (MFI), RSI, MACD, and Stochastic RSI into a unified momentum analysis system. This mashup creates a multi-layered oscillator framework designed to identify momentum shifts, overbought/oversold conditions, and divergence patterns across multiple timeframes and calculation methods.
The indicator addresses a common trading challenge: single oscillators can give conflicting or premature signals. By synthesizing five different momentum calculations that use distinct mathematical approaches, this tool provides confluence-based signals that occur when multiple momentum indicators align, significantly reducing false signals compared to using any single oscillator alone.
Chart showing WaveTrend oscillator, MACD histogram, and multi-signal system on 1H timeframe
Why This Mashup Exists
This indicator combines five oscillators that complement each other through different calculation methodologies:
WaveTrend: Smoothed momentum oscillator based on price deviation from exponential moving average
Money Flow Index (MFI): Volume-weighted RSI showing buying/selling pressure
RSI: Classic momentum oscillator measuring speed and magnitude of price changes
MACD: Trend-following momentum indicator showing relationship between two EMAs
Stochastic RSI: Stochastic calculation applied to RSI for enhanced sensitivity
Each oscillator has unique strengths: WaveTrend excels at identifying wave-like momentum cycles, MFI incorporates volume for institutional flow analysis, RSI provides reliable overbought/oversold readings, MACD shows trend strength and direction, and Stochastic RSI catches early momentum shifts. Together, they create a comprehensive momentum picture that no single oscillator can provide.
The mashup is justified because these oscillators use fundamentally different calculations (price-based, volume-weighted, moving average convergence, stochastic) that respond to different market conditions. When they align, it indicates genuine momentum shift rather than noise.
Core Components Explained
1. WaveTrend Oscillator (Primary Signal Generator)
WaveTrend is the primary oscillator, calculated using this methodology:
// Calculate exponential average of HLC3
esa = ta.ema(hlc3, channelLength)
// Calculate deviation
d = ta.ema(abs(hlc3 - esa), channelLength)
// Calculate channel index
ci = (hlc3 - esa) / (0.015 * d)
// Apply smoothing to create WaveTrend 1
wt1 = ta.ema(ci, averageLength)
// Create WaveTrend 2 as simple moving average of WT1
wt2 = ta.sma(wt1, 4)
WaveTrend oscillates around zero, with:
Values above +60: Overbought zone
Values above +80: Extreme overbought
Values below -60: Oversold zone
Values below -80: Extreme oversold
Crossovers between WT1 and WT2: Momentum shift signals
The indicator plots WT1 and WT2 as lines with dynamic coloring based on momentum direction and strength.
2. Money Flow Index (MFI) - Volume-Weighted Momentum
MFI calculation incorporates both price and volume:
// Calculate typical price
typicalPrice = (high + low + close) / 3
// Calculate raw money flow
rawMoneyFlow = typicalPrice * volume
// Separate positive and negative money flow
positiveFlow = close > close ? rawMoneyFlow : 0
negativeFlow = close < close ? rawMoneyFlow : 0
// Sum over MFI period
positiveSum = sum(positiveFlow, mfiLength)
negativeSum = sum(negativeFlow, mfiLength)
// Calculate MFI
mfi = 100 - (100 / (1 + positiveSum / negativeSum))
MFI ranges from 0-100, with readings above 80 indicating buying pressure and below 20 indicating selling pressure. The indicator plots MFI as a line and uses it for confluence scoring.
3. RSI - Classic Momentum Oscillator
Standard RSI calculation over 14 periods (configurable):
RSI > 70: Overbought
RSI < 30: Oversold
RSI > 65 with other bearish signals: Potential reversal
RSI < 35 with other bullish signals: Potential reversal
RSI provides reliable baseline momentum readings and is used for divergence detection.
4. MACD - Trend Momentum Indicator
MACD uses standard 12/26/9 settings:
= ta.macd(close, 12, 26, 9)
The indicator displays MACD histogram with enhanced width (linewidth 8) for visibility. Histogram color changes based on:
Green: Positive and increasing (bullish momentum)
Light green: Positive but decreasing (weakening bulls)
Red: Negative and decreasing (bearish momentum)
Light red: Negative but increasing (weakening bears)
MACD histogram provides visual confirmation of momentum strength and direction.
5. Stochastic RSI - Enhanced Sensitivity
Stochastic calculation applied to RSI values:
stochRSI = ta.stoch(rsi, rsi, rsi, 14)
Stochastic RSI oscillates between 0-100 and is more sensitive than regular RSI, catching momentum shifts earlier. The indicator plots both K and D lines for crossover analysis.
Example showing all oscillators with divergence markers and signal labels
Multi-Signal System
The indicator generates six tiers of signals based on confluence strength:
BUY Signals:
BUY: WT1 crosses above WT2 in oversold zone (WT1 < -40)
STRONG BUY: BUY + volume above average + MACD histogram positive
MEGA BUY: STRONG BUY + WT1 < -60 (extreme oversold) + RSI < 35
ULTRA BUY: MEGA BUY + MFI < 30 + Stoch RSI oversold + bullish divergence
SELL Signals:
SELL: WT1 crosses below WT2 in overbought zone (WT1 > 40)
STRONG SELL: SELL + volume above average + MACD histogram negative
MEGA SELL: STRONG SELL + WT1 > 60 (extreme overbought) + RSI > 65
ULTRA SELL: MEGA SELL + MFI > 70 + Stoch RSI overbought + bearish divergence
Signal labels appear on chart with size proportional to signal strength (tiny for BUY/SELL, normal for ULTRA).
Divergence Detection System
The indicator detects divergences across multiple oscillators:
RSI Divergence:
Bullish: Price makes lower low, RSI makes higher low
Bearish: Price makes higher high, RSI makes lower high
WaveTrend Divergence:
Bullish: Price makes lower low, WT1 makes higher low
Bearish: Price makes higher high, WT1 makes lower high
MACD Divergence:
Bullish: Price makes lower low, MACD histogram makes higher low
Bearish: Price makes higher high, MACD histogram makes lower high
Divergences are marked with bright orange/yellow "D" labels (color.rgb(255, 200, 0)) with black text for maximum visibility. When multiple oscillators show divergence simultaneously, it signals strong momentum exhaustion and potential reversal.
Confluence Scoring System
The indicator calculates a real-time confluence score (0-100) by evaluating:
Confluence Components:
- WaveTrend Position: Up to 25 points (extreme zones add more weight)
- WaveTrend Momentum: Up to 15 points (WT1-WT2 relationship)
- RSI Level: Up to 15 points (extreme readings add weight)
- MFI Level: Up to 15 points (volume pressure confirmation)
- MACD Histogram: Up to 15 points (trend momentum)
- Stochastic RSI: Up to 10 points (early momentum detection)
- Divergence Presence: Up to 5 points (any divergence detected)
The dashboard displays the current confluence score with color coding:
Green (80-100): Strong bullish confluence
Light green (60-79): Moderate bullish confluence
Yellow (40-59): Neutral/mixed signals
Light red (20-39): Moderate bearish confluence
Red (0-19): Strong bearish confluence
Visual Elements
WaveTrend Lines: WT1 (blue) and WT2 (orange) with dynamic coloring
Overbought/Oversold Zones: Horizontal lines at +60/-60 and +80/-80
Zero Line: Reference line at 0
MACD Histogram: Large bars (linewidth 8) with gradient coloring
MFI Line: Purple line showing volume-weighted momentum
RSI Line: Green line with overbought/oversold reference levels
Stochastic RSI: K (blue) and D (red) lines
Signal Labels: BUY/SELL markers with size based on signal strength
Divergence Labels: Bright orange "D" markers at divergence points
Dashboard: Top-right table showing confluence score and oscillator readings
Chart demonstrating signal hierarchy from BUY to ULTRA BUY with divergence markers
How Components Work Together
The mashup creates a layered momentum analysis:
Layer 1 - Primary Momentum: WaveTrend identifies wave cycles and crossover signals
Layer 2 - Volume Confirmation: MFI validates moves with volume-weighted pressure
Layer 3 - Baseline Momentum: RSI provides reliable overbought/oversold context
Layer 4 - Trend Strength: MACD histogram shows underlying trend momentum
Layer 5 - Early Detection: Stochastic RSI catches momentum shifts before other oscillators
Layer 6 - Exhaustion Signals: Divergences across oscillators indicate momentum exhaustion
Example scenario: WT1 crosses above WT2 in oversold zone (Layer 1), MFI shows buying pressure increasing (Layer 2), RSI is below 35 (Layer 3), MACD histogram turns positive (Layer 4), Stochastic RSI crosses up (Layer 5), and RSI shows bullish divergence (Layer 6). This generates an ULTRA BUY signal with 90+ confluence score.
Input Parameters
WaveTrend Settings:
Channel Length: Period for EMA calculation (default: 10)
Average Length: Smoothing period for WT1 (default: 21)
Overbought Level: Upper threshold (default: 60)
Oversold Level: Lower threshold (default: -60)
Extreme OB Level: Extreme upper threshold (default: 80)
Extreme OS Level: Extreme lower threshold (default: -80)
Oscillator Settings:
RSI Length: Period for RSI calculation (default: 14)
MFI Length: Period for MFI calculation (default: 14)
MACD Fast: Fast EMA period (default: 12)
MACD Slow: Slow EMA period (default: 26)
MACD Signal: Signal line period (default: 9)
Stochastic RSI Length: Period for Stoch RSI (default: 14)
Signal Settings:
Show Signals: Toggle signal labels (default: enabled)
Show Divergences: Toggle divergence markers (default: enabled)
Volume Confirmation: Require volume for STRONG signals (default: enabled)
Min Confluence for Signals: Minimum score to display signals (default: 60)
Display Options:
Show Dashboard: Toggle confluence score table (default: enabled)
Show MACD Histogram: Toggle MACD display (default: enabled)
Show MFI Line: Toggle MFI display (default: enabled)
Show RSI Line: Toggle RSI display (default: enabled)
Show Stochastic RSI: Toggle Stoch RSI display (default: enabled)
Color Theme: Choose between multiple color schemes
How to Use This Indicator
Step 1: Monitor WaveTrend Oscillator
Watch for WT1/WT2 crossovers in extreme zones. Crossovers in oversold zone (< -60) suggest bullish reversals, crossovers in overbought zone (> 60) suggest bearish reversals.
Step 2: Check Confluence Score
Review the dashboard. Scores above 70 indicate strong momentum alignment. Higher scores generally produce more reliable signals.
Step 3: Identify Signal Strength
Pay attention to signal labels. ULTRA signals have highest probability but occur less frequently. STRONG signals offer good balance between frequency and reliability.
Step 4: Look for Divergences
Divergence markers indicate momentum exhaustion. When divergences appear with extreme oscillator readings, reversal probability increases significantly.
Step 5: Confirm with MACD Histogram
Check MACD histogram direction and strength. Large histogram bars confirm strong momentum, shrinking bars suggest momentum loss.
Step 6: Validate with Volume (MFI)
Ensure MFI supports the move. Bullish signals with rising MFI are stronger, bearish signals with falling MFI are stronger.
Best Practices
Use on 15-minute to 4-hour timeframes for optimal signal quality
Wait for STRONG or MEGA signals rather than acting on every BUY/SELL
Divergences work best when combined with extreme oscillator readings
Multiple oscillator divergences (RSI + WT + MACD) are most reliable
Use confluence score as filter - avoid signals below 60 score
MACD histogram size indicates momentum strength - larger bars = stronger moves
MFI divergence from price often precedes reversals (volume leads price)
Combine with price action and support/resistance for best results
Indicator Limitations
Oscillators can remain overbought/oversold longer than expected in strong trends
Divergences can persist for multiple bars before reversal occurs
Multiple signals in choppy markets can lead to whipsaws
Confluence score is mathematical calculation, not prediction of future movement
ULTRA signals are rare - waiting only for these may miss opportunities
Volume data quality varies across markets and can affect MFI reliability
Stochastic RSI is very sensitive and can generate premature signals
No indicator combination eliminates false signals entirely
Requires understanding of oscillator behavior for effective interpretation
Technical Implementation
Built with Pine Script v6 using:
Custom WaveTrend calculation with dual-line system
Proper MFI formula with volume-weighted money flow
Multi-oscillator divergence detection with pivot analysis
Confluence scoring algorithm with weighted components
Enhanced MACD histogram visualization (linewidth 8)
Dynamic color gradients for momentum visualization
Anti-overlap logic for signal labels
Real-time dashboard with oscillator readings
The code is fully open-source and can be modified to adjust oscillator weights, signal thresholds, and visual preferences.
Originality Statement
This indicator is original in its multi-oscillator integration approach. While individual components (WaveTrend, MFI, RSI, MACD, Stochastic RSI) are established oscillators, this mashup is justified because:
It combines five oscillators using fundamentally different calculation methods
The tiered signal system (BUY to ULTRA) provides graduated confidence levels
Multi-oscillator divergence detection catches momentum exhaustion across different timeframes
Confluence scoring quantifies momentum alignment across all oscillators
Volume integration through MFI adds institutional flow perspective
Enhanced visualization (large MACD histogram, bright divergence markers) improves usability
Each oscillator contributes unique information: WaveTrend provides wave-cycle analysis, MFI incorporates volume, RSI offers reliable baseline, MACD shows trend strength, and Stochastic RSI catches early shifts. The mashup's value lies in identifying when these different momentum calculations align, significantly reducing false signals compared to any single oscillator.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Oscillator-based indicators are lagging tools that analyze past price data. They do not predict future price movement. Overbought conditions can persist in strong uptrends, and oversold conditions can persist in strong downtrends. Divergences can continue for extended periods before reversals occur.
The confluence score is a mathematical calculation, not a guarantee of trade success. High confluence scores do not ensure profitable trades. Past signal performance does not guarantee future results. Market conditions change, and oscillator behavior varies across different market regimes.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades
Wskaźnik Pine Script®
SRD786-Multi-Factor Confluence IntradayMulti-Factor Confluence Intraday Indicator
Features:
Moving Averages
Fast EMA (default: 9)
Slow EMA (default: 21)
Long SMA (default: 50)
Momentum Indicators
RSI (14-period with overbought/oversold levels)
MACD (12, 26, 9)
Stochastic Oscillator
Volatility
ATR (Average True Range) for stop-loss calculation
Bollinger Bands (20-period, 2 standard deviations)
Volume Analysis
Volume SMA confirmation
On-Balance Volume (OBV)
Multi-Timeframe Analysis
Higher timeframe EMA (default: 60 minutes)
Shows HTF trend direction
Confluence Scoring (0-100)
Combines all factors into a single score
Strong (≥65), Moderate (50-65), Weak (<50)
Trading Signals:
Long: EMA crossover + Volume confirmation + RSI bullish + MACD bullish + Stochastic not overbought + Price above SMA50 + Confluence ≥65
Short: EMA crossunder + Volume confirmation + RSI bearish + MACD bearish + Stochastic not oversold + Price below SMA50 + Confluence ≥65
Risk Management:
Entry Price: Current close at signal
Stop Loss: ATR × 1.5 (default)
Target Price: 1:2 Risk-Reward (ATR × 3.0)
Display: Information table showing all key values
The code is now complete and syntax-error free. You can add it to TradingView and customize the parameters to fit your trading style.
Wskaźnik Pine Script®
MSJ EMA//@version=5
indicator("Failure Traders EMA 20 & 200", overlay=true)
// ===== INPUTS =====
fastLength = input.int(20, "Fast EMA (20)")
slowLength = input.int(200, "Slow EMA (200)")
// ===== EMA CALCULATION =====
emaFast = ta.ema(close, fastLength)
emaSlow = ta.ema(close, slowLength)
// ===== PLOT EMAs =====
plot(emaFast, color=color.yellow, linewidth=2, title="EMA 20")
plot(emaSlow, color=color.blue, linewidth=2, title="EMA 200")
// ===== SIGNAL CONDITIONS =====
buySignal = ta.crossover(emaFast, emaSlow)
sellSignal = ta.crossunder(emaFast, emaSlow)
// ===== SIGNAL LABELS =====
plotshape(buySignal, title="BUY", location=location.belowbar,
color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="SELL", location=location.abovebar,
color=color.red, style=shape.labeldown, text="SELL")
// ===== ALERT CONDITIONS =====
alertcondition(buySignal, title="BUY Alert", message="EMA 20 crossed above EMA 200")
alertcondition(sellSignal, title="SELL Alert", message="EMA 20 crossed below EMA 200")
Wskaźnik Pine Script®
LBR Cinderella Electric Curfew Session Capital ControlLinda Bradford Raschke's Cinderella Electric Curfew – Session Capital Control
Overview
This strategy demonstrates structured session-based trading with capital protection rules and volatility-adjusted risk management.
The core idea is simple:
Trade only during a defined exchange session, and automatically close all open positions once the session ends — enforcing a strict “capital curfew.”
The script includes configurable session templates for major global markets and applies risk-based position sizing using ATR-derived stop distance.
Core Features:
Session-Based Trading
Users can select a predefined exchange session (e.g., New York, London, Frankfurt, Tokyo, Hong Kong, Sydney).
Trades are only allowed during the selected session window.
Electric Curfew Logic
All open positions are automatically closed when the session ends (with optional grace period in minutes).
This prevents overnight exposure and reduces gap risk.
Risk-Based Position Sizing
Position size is calculated as:
Risk Amount ÷ Stop Distance
Where:
Risk Amount = % of current equity
Stop Distance = ATR × Multiplier
This ensures consistent capital allocation regardless of volatility regime.
ATR-Based Stops & Targets
Optional stop-loss and take-profit levels are volatility-adjusted.
Example Signal Logic
A simple SMA crossover is included as a placeholder.
Users are encouraged to replace it with their own entry logic.
Intended Use
This strategy is designed for:
• Intraday traders
• Session-based systems
• Traders avoiding overnight risk
• Prop-style capital discipline models
The session control framework can be integrated into any strategy logic.
Past performance does not guarantee future results.
Strategia Pine Script®
LBR Aberration Trend Following StrategyLinda Bradford Raschke's Aberration Trend Following Strategy
Overview
This strategy implements a directional Bollinger Band breakout model with volatility normalization and trend alignment.
Instead of trading every band breakout, the system applies:
• Trend bias using EMA
• ATR-based volatility regime filtering
• Volatility-adjusted stop-loss placement
• Fixed risk-to-reward targeting
Core Logic:
[Bollinger Band Expansion:
Entries trigger when price breaks beyond the outer band during acceptable volatility conditions.
Trend Confirmation:
Long trades require price above the trend EMA.
Short trades require price below the trend EMA.
Volatility Filter:
ATR is compared against its rolling percentile median to avoid extremely low or extreme volatility environments.
Risk Management:
Stops are ATR-based and targets are defined using configurable risk-reward ratios.
This strategy is designed for trending environments and performs best during volatility expansion phases.
Strategia Pine Script®
LBR's Game Theory - EMA StrategyLinda Bradford Raschke's Game Theory EMA Strategy:
Overview:
This strategy combines EMA crossover structure with a momentum-based utility edge model inspired by basic game theory concepts. The objective is to participate only when directional momentum suggests one side of the market has a measurable advantage.
Core Logic:
Structure Shift:
A fast EMA crossing a slow EMA signals a potential momentum transition.
Trend Alignment:
Trades are only taken in the direction of a higher timeframe trend (Trend EMA).
Utility Edge Model:
Momentum is normalized using RSI to approximate directional “utility.”
When RSI is above 50, buyer utility is positive.
When RSI is below 50, seller utility is positive.
If the difference between buyers and sellers is too small (equilibrium zone), trades are avoided.
Trend Strength Filter:
Optional ADX filter ensures trades occur in expanding trend conditions.
Risk Management:
Default Properties:
• Initial Capital: 10,000
• Risk per trade: 2% of equity
• Risk–Reward: 1.8 : 1
• Commission: 0.05%
• Slippage: 1 tick
• No pyramiding
Position size is dynamically calculated:
Position Size = (2% Equity) ÷ Stop Distance
Stops and targets are ATR-based to adapt to volatility.
Intended Use:
Best suited for:
• Trending instruments (Forex majors, Indices, Gold, Crypto)
• Multi-year datasets for proper statistical evaluation
This strategy reacts to structural and momentum shifts. It does not predict future price movement.
Past performance does not guarantee future results.
Strategia Pine Script®
Triple MA Weekly (50/100/200)What the Triple MA Weekly Actually Does
Even if you switch to smaller timeframes such as 1D, 4H, 1H, etc., the lines will always remain the 50 / 100 / 200 moving averages calculated from the Weekly chart.
They will simply adapt visually to your current timeframe, but the values themselves remain based on the Weekly timeframe.
The “stepped” or “choppy” effect is normal when displaying a Weekly MA on a chart that is not set to Weekly because:
The Weekly MA only updates at the close of the weekly candle
Therefore, during the entire week, the value remains fixed
Result → a “stair-step” effect
*****FRANÇAI*****
Ce que ça fait exactement la Triple MA Weekly
Même si tu passes sur des plus petits times frames 1D, 4H, 1H, ect.. Les lignes resteront les moyennes mobiles 50 / 100 / 200 du graphique Weekly.
Elles vont simplement s'adapter visuellement à ton timeframe actuel, mais la valeur restera hebdomadaire.
L’effet “saccadé” est normal quand on affiche une MA Weekly sur un graphique autre qu'en Weekly parce que :
La MA Weekly ne change qu’à la clôture de la bougie hebdomadaire
Donc pendant toute la semaine, la valeur reste fixe
Résultat → effet “marche d’escalier”
Wskaźnik Pine Script®
SRD786-Micro Futures Scalping IndicatorSRD786-Micro Futures Scalping Indicator provides details RSI, Volume, Multi timeframe analysis for scalping.
Wskaźnik Pine Script®
Scalp Trend Engine (EMA9/EMA50 + ATR Filter)a scalp tool for trading on the one minute chart. wil update with results later.
Wskaźnik Pine Script®
Alpha Trend Master (No Repaint)Overview
The Alpha Trend Master is a high-precision technical analysis tool designed for trend followers. This indicator is built on the core logic of volatility-based trailing stops, refined to provide clean, non-repainting signals. By combining Average True Range (ATR) sensitivity with a powerful long-term trend filter, it helps traders capture significant market moves while staying away from "noise."
Optimized Strategy: The 30-Minute Power Frame
While this indicator can adapt to various assets, it is specifically optimized for the 30-minute (30m) timeframe. This timeframe offers a perfect balance between intraday responsiveness and trend reliability, reducing the impact of micro-volatility.
The EMA 1000 Trend Filter (Institutional Confirmation)
To ensure you are always trading with the "Smart Money," we have integrated a 1000-period Exponential Moving Average (EMA) as the ultimate trend filter.
Bullish Confirmation (BUY): Look for Buy signals only when the price is trading ABOVE the Yellow EMA 1000. This indicates a strong long-term bullish regime.
Bearish Confirmation (SELL): Look for Sell signals only when the price is trading BELOW the Yellow EMA 1000. This confirms a dominant bearish structure.
Key Features
No Repaint: Signals are calculated and fixed once the bar is confirmed. What you see on the history is exactly how it performed in real-time.
Adaptive Sensitivity: Defaulted to a Key Value of 50 and ATR of 5 for a smoother, macro-focused signal delivery.
Visual Clarity: Includes dynamic bar coloring and signal line extensions for better entry visualization.
A Realistic Approach to Trading
In the world of finance, no indicator is a "holy grail" or 100% accurate. Markets are driven by complex human emotions and fundamental events. Our goal with Alpha Trend Master was to provide the highest possible precision by filtering out false signals through the 1000 EMA.
However, trading always involves risk. We strongly recommend:
1.Using proper Risk Management (Stop Losses are a must).
2.Combining these signals with your own price action analysis (Support/Resistance).
3.Testing the settings on a demo account before going live.
Wskaźnik Pine Script®
Typical Price BiasTypical Price Bias (TPB) is a normalized bias oscillator designed to quantify closing pressure relative to a bar’s typical price (HL2 = (High + Low)/2), while reducing noise through selectable moving-average smoothing.
What it measures
For each length, TPB computes:
Bias=( MA(close)−MA(HL2) ) / HL2t−1
This represents the smoothed tendency for price to close above or below typical price, scaled by the prior bar’s HL2 to produce a stable, percent-like oscillator across different markets.
Plots
Fast Bias (fast length): responsive bias component used to observe short-term pressure.
Baseline (slow length): slower bias component used as a regime/trend context line.
Zero line: neutral boundary. Above zero = bullish close bias; below zero = bearish close bias.
Visual encoding
Fast Bias coloring reflects:
Sign (above/below zero), and
Slope (increasing vs decreasing), helping you visually separate strengthening vs weakening bias.
Practical interpretation
Regime: Baseline > 0 suggests bullish conditions; Baseline < 0 suggests bearish conditions.
Confirmation: Fast Bias staying on the same side of zero as the Baseline supports continuation.
Early warning: Fast Bias turning down (while still above zero) can precede weakening momentum; similarly for upside turns below zero.
Notes
This indicator is not a complete trading system; it is best used as a filter/confirmation tool alongside structure, trend, or volatility context.
Wskaźnik Pine Script®
Forex Day & Week Separator (23h-22h)aaaaaaaaaaaazscfdqsvfqsbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
Wskaźnik Pine Script®
Alg0 Hal0 Crypto RVWAP🛠 Indicator Overview
The Crypto RVWAP Momentum Dashboard is built to help intraday traders identify the "Fair Value" of an asset while simultaneously quantifying the strength of the current trend using a normalized slope percentage.
1. The Rolling VWAP Line
The core line represents the volume-weighted average price over a user-defined number of bars (default: 20).
Bullish (Lime): The line is sloping upward ($RVWAP > RVWAP_{prev}$), indicating increasing value.
Bearish (Red): The line is sloping downward ($RVWAP < RVWAP_{prev}$), indicating decreasing value.
2. The Momentum Dashboard (Top-Right)
The dashboard provides a real-time look at the Slope %, which is the percentage change of the RVWAP over a 5-bar window.
Current Slope: The momentum of the active candle.
Prev 1, 2, 3: Historic momentum values from the previous three bars.
Why it matters: It allows you to see if a trend is accelerating (values getting larger) or exhaust
ing (values shrinking) before the price action actually changes direction.
3. Confirmed Cross Labels
The script automatically plots UP and DOWN labels when a candle closes on the opposite side of the RVWAP.
To keep the chart clean, only the two most recent crossing events are displayed.
These signals are confirmed on the bar close to prevent "repainting" or false signals during mid-candle volatility.
📈 How to Trade with this SystemStrategy
A: Trend Following (Momentum)Entry:
Wait for a "CROSS UP" label.
Confirmation: Look at the Dashboard. If Current Slope is higher than Prev 1, momentum is building.
Exit: Exit when the RVWAP line turns Red or when the Slope % in the dashboard drops sig
nificantly (e.g., from 0.08% to 0.01%).
Strategy B: Mean Reversion (The "Rubber Band" Trade )
In crypto, price rarely stays far from the RVWAP for long.
If the price is significantly above RVWAP and the Slope % begins to decrease (e.g., 0.15% → 0.10% → 0.05%), the price is likely to "snap back" to the line.
Traders use the line as a target for take-profits or as a "Buy the Dip" zone in a strong uptrend.
⚙️ Technical Settings
RVWAP Lookback: Adjust this based on your timeframe. On a 5m chart, 20 covers ~1.5 hours. For a "daily" feel, use 288.
Slope Lookback: The window used to calculate the % change. 5 is ideal for catching short-term pivots.
Dashboard Scaling: The UI is pre-scaled with Large Headers and Normal Body Text for high readabilit
y on 4K or mobile screens.
⚠️ Important
Confirmed Closes: This indicator is logic-locked to the Bar Close. Do not enter a trade until the 5-minute candle has physically finished and the label appears.
Alerts: Users should set TradingView alerts to "Once Per Bar Close" to match the script's internal logic.
Market Context: In a completely flat market (Slope near 0.000%), avoid trading the crosses, as these are "No-Trade" zones prone to sideways cho
p.
Enjoy!
Alg0 ۞ Hal0
Wskaźnik Pine Script®






















