Yuthavithi Kana with S/R StrategyI have got the idea from this page iwongsakorn.com and wrote my own kana scalper. This strategy draws 3 200 ATR level along side with the sma. It uses 200 ema as trend. Once the price approaches the 20 ema. it will place orders according to trend and take profit and stop loss quickly using the 200 ATR lines.
This is a quick scalper strategy with winrate over 50%
在脚本中搜索"200元+股票大盘"
Heiken Ashi BAS - Multi-Timeframe Strategy with Advanced FiltersHeiken Ashi BAS - Multi-Timeframe Strategy with Advanced Filters
🚀 Revolutionary Multi-Filter Trading System
This advanced indicator combines the power of Heiken Ashi smoothing with Ichimoku Baseline analysis, enhanced by multiple sophisticated filters for precision trading. ⭐ Add to Favorites and Follow for future updates!
✨ KEY ADVANCEMENTS IN VERSION 2.0
🎯 Dual Slope Divergence System
First Slope (1-bar): Captures immediate momentum shifts
Second Slope (3-bar): Identifies sustained trend direction
Slope Threshold Control: Customizable sensitivity for precise entries
Visual Slope Lines: Real-time slope visualization with color-coded trends
📊 Advanced Filter Matrix
RSI Momentum Filter: Confirms strength with customizable thresholds
ATR Volatility Filter: Ensures meaningful market movements
Volume Spike Detection: Filters low-volume false signals
Session Time Filter: Trade only during optimal market hours
🎭 Revolutionary Trading Psychology Features
Real-Time HA Candle Hidden Mode: Eliminate emotional trading by hiding unfolding candles - only see confirmed formations
Smart Alert Confirmation: Choose between real-time alerts or wait for candle close confirmation
Sound Alert System: Audio notifications for instant signal recognition
Emotion-Free Environment: Trade without the psychological pressure of watching candles form
🔧 CORE FEATURES
Multi-Timeframe Architecture: Separate timeframes for each component: Baseline, EMA, Slope, ATR, RSI - all can operate on different timeframes
True Multi-Timeframe Analysis: Unlike basic indicators, each filter can reference its own optimal timeframe
Flexible configuration: Match timeframes to your trading style - intraday, swing, or position trading
Consistent performance: Works seamlessly across all market conditions and instruments
Smart Alert & Display System
Real-Time vs Confirmed Mode: Toggle between immediate signals or wait for candle close
Sound Alert Integration: Customizable audio notifications with clear distinction between long/short signals
Visual Signal Options: Multiple sizes and colors for clear identification
Background Highlighting: Color-coded backgrounds for quick signal recognition
Advanced Sound Alert System
Instant Audio Notifications: Never miss a signal with clear sound alerts
Customizable Alert Types: Choose which signals trigger audio alerts
Real-time vs Closed Alerts: Sound alerts respect your confirmation preferences
Professional Alert Messages: Clear audio cues for long/short positions with price levels
Real-Time Candle Hidden Technology
Emotion-Free Trading: Hide unfolding candles to eliminate psychological pressure
Professional Approach: Trade like institutions that don't watch tick-by-tick movements
Reduced Overtrading: Fewer impulsive decisions by waiting for confirmed closes
Enhanced Focus: Concentrate on completed price action, not forming candles
Smart Risk Management
Dynamic TP/SL System:
-TP based on higher timeframe ATR
-SL referenced to Ichimoku Baseline
-Extended TP lines act as resistance levels
Configurable Risk-Reward: Adjustable multipliers for TP/SL
Visual Intelligence:
-Color-coded Heiken Ashi candles with adjustable opacity
-Clean, professional chart presentation
-Customizable signal sizes and colors
-Real-time information table with status overview
⚡ ADVANTAGES For TRADERS
Psychology-First Design: Hidden real-time candles eliminate emotional decision making
Double Slope Confirmation: Unlike single-slope systems, our dual approach reduces false signals
Flexible Alert Timing: Choose your confirmation style - immediate or after close
TP as Dynamic Resistance: Take-profit levels often act as temporary resistance, providing additional confirmation
Complete Filter Suite: 6 different filter types for maximum signal quality
True Multi-Timeframe Harmony: Each component can operate on its optimal timeframe
🛠 TECHNICAL SPECIFICATIONS
Primary Signal: Heiken Ashi close above/below Ichimoku Baseline + 200 EMA
Confirmation: Green/Red HA candles with minimum wick requirements
Psychology Tools: Hidden real-time candles + confirmed close options
Alert System: Sound + visual notifications with timing flexibility
Filters: Slope, ATR, RSI, Volume, Session Time
Risk Management: ATR-based TP/SL with extended visibility
Visual Options: Fully customizable colors, opacity, and sizes
🎯 TRADING PSYCHOLOGY BREAKTHROUGH
The Hidden Candle Advantage:
No More Emotional Reactions: Stop watching candles form and second-guessing entries
Confirmed Signals Only: Trade based on completed price action, not anticipation
Reduced Overtrading: Fewer false entries by waiting for proper confirmation
Professional Mindset: Think like institutional traders who don't watch tick-by-tick movements
🌟Sound Alert Benefits:
Instant Recognition: Audio cues help you recognize signals without staring at charts
Multi-Tasking Friendly: Get alerts while working on other tasks
Clear Distinction: Different sounds for long vs short positions
Customizable Volume: Adjust alert volume to your preference
Professional Timeframe Stacking:
Trend Identification: Higher timeframe baseline for overall direction
Entry Precision: Lower timeframe signals for exact timing
Risk Management: Separate timeframe for volatility assessment
Momentum Confirmation: Independent RSI timeframe for strength verification
📈 OPTIMAL SETTINGS
Emotion-Prone Traders: Enable hidden candles + confirmed close + sound alerts
Active Day Traders: Real-time mode with multi-timeframe analysis
Trend Markets: Enable all filters for high-quality signals
Ranging Markets: Use ATR filter to avoid choppy conditions
Session-Specific: Time filter for active hours only
🔍 WHY TRADERS CHOOSE THIS SYSTEM
Psychology Mastery: First indicator designed specifically for emotional control
Proven Accuracy: Multiple confluence points for reliable signals
Adaptive Design: Works across all markets and timeframes
Professional Grade: Institutional-level filtering in retail package
Continuous Innovation: Regular updates with new features
⭐ Don't forget to Add to Favorites and Follow for future updates!
Experience emotion-free trading with the Heiken Ashi Bas system that prioritizes your trading psychology as much as your technical analysis. Join traders who have improve their trading with our multi-timeframe, psychology-first approach.
Traffic Light MA — Trend IndicatorThis script displays a simple “traffic light” circle that reflects the market trend based on two moving averages (MA).
-Green: Price > Fast MA > Slow MA → Uptrend confirmation
-Yellow: Mixed conditions (transition zone)
-Red: Slow MA > Fast MA > Price → Downtrend confirmation
You can customize:
-MA type (SMA or EMA)
-Lengths of both MAs
-Timeframe used for evaluation (e.g. Daily, 4H, Weekly)
This tool is designed for traders who prefer a minimalistic chart, showing only a clean color signal instead of multiple lines.
Recommendation:
For small MAs (8,15,21) use EMA, for big MAs (50,100,200) use SMA
Multi-Timeframe EMA Trend Dashboard with Volume and RSI Filters═══════════════════════════════════════════════════════════
MULTI-TIMEFRAME EMA TREND DASHBOARD
═══════════════════════════════════════════════════════════
OVERVIEW
This indicator provides a comprehensive view of trend direction across multiple timeframes using the classic EMA 20/50 crossover methodology, enhanced with volume confirmation and RSI filtering. It aggregates trend information from six timeframes into a single dashboard for efficient market analysis.
The indicator is designed for educational purposes and to assist traders in identifying potential trend alignments across different time horizons.
═══════════════════════════════════════════════════════════
FEATURES
═══════════════════════════════════════════════════════════
MULTI-TIMEFRAME ANALYSIS
• Monitors 6 timeframes simultaneously: 1m, 5m, 15m, 1H, 4H, 1D
• Each timeframe analyzed independently using request.security()
• Non-repainting implementation with proper lookahead settings
• Calculates overall trend strength as percentage of bullish timeframes
EMA CROSSOVER SYSTEM
• Fast EMA (default: 20) and Slow EMA (default: 50)
• Bullish: Fast EMA > Slow EMA
• Bearish: Fast EMA < Slow EMA
• Neutral: Fast EMA = Slow EMA (rare condition)
• Visual EMA plots with optional fill area
VOLUME CONFIRMATION
• Optional volume filter for crossover signals
• Compares current volume against moving average (default: 20-period SMA)
• Categorizes volume as: High (>1.5x average), Normal (>average), Low (70), oversold (<30), and neutral zones
• Used in quality score calculation
• Optional display toggle
SUPPORT & RESISTANCE DETECTION
• Automatic detection using highest/lowest over lookback period (default: 50 bars)
• Plots resistance (red), support (green), and mid-level (gray)
• Step-line style for clear visualization
• Optional display toggle
QUALITY SCORING SYSTEM
• Rates trade setups from 1-5 stars
• Considers: MTF alignment, volume confirmation, RSI positioning
• 5 stars: 4+ timeframes aligned + volume confirmed + RSI 50-70
• 4 stars: 4+ timeframes aligned + volume confirmed
• 3 stars: 3+ timeframes aligned
• 2 stars: Exactly 3 timeframes aligned
• 1 star: Other conditions
VISUAL DASHBOARD
• Clean table display (position customizable)
• Color-coded trend indicators (green/red/yellow)
• Extended statistics panel (toggleable)
• Shows: Trends, Strength, Quality, RSI, Volume, Price Distance
═══════════════════════════════════════════════════════════
TECHNICAL SPECIFICATIONS
═══════════════════════════════════════════════════════════
CALCULATIONS
Trend Determination per Timeframe:
• request.security() fetches EMA values with gaps=off, lookahead=off
• Compares Fast EMA vs Slow EMA
• Returns: 1 (bullish), -1 (bearish), 0 (neutral)
Trend Strength:
• Counts number of bullish timeframes
• Formula: (bullish_count / 6) × 100
• Range: 0% (all bearish) to 100% (all bullish)
Price Distance from EMA:
• Formula: ((close - EMA) / EMA) × 100
• Positive: Price above EMA
• Negative: Price below EMA
• Warning when absolute distance > 5%
ANTI-REPAINTING MEASURES
• All request.security() calls use lookahead=barmerge.lookahead_off
• Dashboard updates only on barstate.islast
• Historical bars remain unchanged
• Crossover signals finalize on bar close
═══════════════════════════════════════════════════════════
USAGE GUIDE
═══════════════════════════════════════════════════════════
INTERPRETING THE DASHBOARD
Timeframe Rows:
• Each row shows individual timeframe trend status
• Look for alignment (multiple timeframes same direction)
• Higher timeframes generally more significant
Strength Indicator:
• >66.67%: Strong bullish (4+ timeframes bullish)
• 33.33-66.67%: Mixed/choppy conditions
• <33.33%: Strong bearish (4+ timeframes bearish)
Quality Score:
• Higher stars = better confluence of factors
• 5-star setups have strongest multi-factor confirmation
• Lower scores may indicate weaker or conflicting signals
SUGGESTED APPLICATIONS
Trend Confirmation:
• Check if multiple timeframes confirm current chart trend
• Higher agreement = stronger trend confidence
• Use for position sizing decisions
Entry Timing:
• Wait for EMA crossover on chart timeframe
• Confirm with higher timeframe alignment
• Volume above average preferred
• RSI not in extreme zones
Divergence Detection:
• When lower timeframes diverge from higher
• May indicate trend exhaustion or reversal
• Requires additional confirmation
CUSTOMIZATION
EMA Settings:
• Adjust Fast/Slow lengths for different sensitivities
• Shorter periods = more responsive, more signals
• Longer periods = smoother, fewer signals
• Common alternatives: 10/30, 12/26, 50/200
Volume Filter:
• Enable for higher-quality signals (fewer false positives)
• Disable in always-liquid markets or for more signals
• Adjust MA length based on typical volume patterns
Display Options:
• Toggle EMAs, S/R levels, extended stats as needed
• Choose dashboard position to avoid chart overlap
• Adjust colors for visibility preferences
═══════════════════════════════════════════════════════════
ALERTS
═══════════════════════════════════════════════════════════
AVAILABLE ALERT CONDITIONS
1. Bullish EMA Cross (Volume Confirmed)
2. Bearish EMA Cross (Volume Confirmed)
3. Strong Bullish Alignment (4+ timeframes)
4. Strong Bearish Alignment (4+ timeframes)
5. Trend Strength Increasing (>16.67% jump)
6. Trend Strength Decreasing (>16.67% drop)
7. Excellent Trade Setup (5-star rating)
Alert messages use standard placeholders:
• {{ticker}} - Symbol name
• {{close}} - Current close price
• {{time}} - Bar timestamp
═══════════════════════════════════════════════════════════
LIMITATIONS & CONSIDERATIONS
═══════════════════════════════════════════════════════════
KNOWN LIMITATIONS
• Lower timeframe data may not be available on all symbols
• 1-minute data typically limited to recent history
• request.security() subject to TradingView data limits
• Dashboard requires screen space (may overlap on small screens)
• More complex calculations may affect load time on slower devices
NOT SUITABLE FOR
• Highly volatile/illiquid instruments (many false signals)
• News-driven markets during announcements
• Automated trading without additional filters
• Markets where EMA strategies don't perform well
DOES NOT PROVIDE
• Exact entry/exit prices
• Stop-loss or take-profit levels
• Position sizing recommendations
• Guaranteed profit signals
• Market predictions
═══════════════════════════════════════════════════════════
BEST PRACTICES
═══════════════════════════════════════════════════════════
RECOMMENDED USAGE
✓ Combine with price action analysis
✓ Use appropriate risk management
✓ Backtest on historical data before live use
✓ Adjust settings for specific market characteristics
✓ Wait for higher-quality setups in important trades
✓ Consider overall market context and fundamentals
NOT RECOMMENDED
✗ Using as standalone trading system without confirmation
✗ Trading every signal without discretion
✗ Ignoring risk management principles
✗ Trading without understanding the methodology
✗ Applying to unsuitable markets/timeframes
═══════════════════════════════════════════════════════════
EDUCATIONAL BACKGROUND
═══════════════════════════════════════════════════════════
EMA CROSSOVER STRATEGY
The Exponential Moving Average crossover is a classical trend-following technique:
• Golden Cross: Fast EMA crosses above Slow EMA (bullish signal)
• Death Cross: Fast EMA crosses below Slow EMA (bearish signal)
• Widely used since the 1970s in various markets
• More responsive than SMA due to exponential weighting
MULTI-TIMEFRAME ANALYSIS
Analyzing multiple timeframes helps traders:
• Identify alignment between short and long-term trends
• Reduce false signals from single-timeframe noise
• Understand market context across different horizons
• Make informed decisions about trade duration
VOLUME ANALYSIS
Volume confirmation adds reliability:
• High volume suggests institutional participation
• Low volume signals may indicate false breakouts
• Volume precedes price in many market theories
• Helps distinguish genuine moves from noise
═══════════════════════════════════════════════════════════
TECHNICAL IMPLEMENTATION
═══════════════════════════════════════════════════════════
CODE STRUCTURE
• Organized in clear sections with proper commenting
• Uses explicit type declarations (int, float, bool, color, string)
• Constants defined at top (BULLISH=1, BEARISH=-1, etc.)
• Functions documented with @function, @param, @returns
• Follows PineCoders naming conventions (camelCase variables)
PERFORMANCE OPTIMIZATION
• var keyword for table (created once, not every bar)
• Calculations cached where possible
• Dashboard updates only on last bar
• Minimal redundant security() calls
SECURITY IMPLEMENTATION
• Proper gaps and lookahead parameters
• No future data leakage
• Signals finalize on bar close
• Historical bars remain static
═══════════════════════════════════════════════════════════
VERSION INFORMATION
═══════════════════════════════════════════════════════════
Current Version: 2.0
Pine Script Version: 5
Last Updated: 2024
Developed by: Zakaria Safri
═══════════════════════════════════════════════════════════
SETTINGS REFERENCE
═══════════════════════════════════════════════════════════
EMA SETTINGS
• Fast EMA Length: 1-500 (default: 20)
• Slow EMA Length: 1-500 (default: 50)
VOLUME & MOMENTUM
• Use Volume Confirmation: true/false (default: true)
• Volume MA Length: 1-500 (default: 20)
• Show RSI Levels: true/false (default: true)
• RSI Length: 1-500 (default: 14)
PRICE ACTION FEATURES
• Show Price Distance: true/false (default: true)
• Show Key Levels: true/false (default: true)
• S/R Lookback Period: 10-500 (default: 50)
DISPLAY SETTINGS
• Show EMAs on Chart: true/false (default: true)
• Fast EMA Color: customizable (default: cyan)
• Slow EMA Color: customizable (default: orange)
• EMA Line Width: 1-5 (default: 2)
• Show Fill Between EMAs: true/false (default: true)
• Show Crossover Signals: true/false (default: true)
DASHBOARD SETTINGS
• Position: Top Left/Right, Bottom Left/Right
• Show Extended Statistics: true/false (default: true)
ALERT SETTINGS
• Alert on Multi-TF Alignment: true/false (default: true)
• Alert on Trend Strength Change: true/false (default: true)
═══════════════════════════════════════════════════════════
RISK DISCLAIMER
═══════════════════════════════════════════════════════════
This indicator is provided for educational and informational purposes only. It should not be considered financial advice or a recommendation to buy or sell any security.
IMPORTANT NOTICES:
• Past performance does not indicate future results
• All trading involves risk of capital loss
• No indicator guarantees profitable trades
• Always conduct independent research and analysis
• Use proper risk management and position sizing
• Consult a qualified financial advisor before trading
• The developer assumes no liability for trading losses
By using this indicator, you acknowledge that you understand these risks and accept full responsibility for your trading decisions.
═══════════════════════════════════════════════════════════
SUPPORT & CONTRIBUTIONS
═══════════════════════════════════════════════════════════
FEEDBACK WELCOME
• Constructive comments appreciated
• Bug reports help improve the indicator
• Feature suggestions considered for future versions
• Share your experience to help other users
OPEN SOURCE
This code is published as open source for the TradingView community to:
• Learn from the implementation
• Modify for personal use
• Understand multi-timeframe analysis techniques
If you find this indicator useful, please consider:
• Leaving a thoughtful review
• Sharing with other traders who might benefit
• Following for future updates and releases
═══════════════════════════════════════════════════════════
ADDITIONAL RESOURCES
═══════════════════════════════════════════════════════════
RECOMMENDED READING
• TradingView Pine Script documentation
• PineCoders community resources
• Technical analysis textbooks on moving averages
• Multi-timeframe trading strategy guides
• Risk management principles
RELATED CONCEPTS
• Trend following strategies
• Moving average convergence/divergence
• Multiple timeframe analysis
• Volume-price relationships
• Momentum indicators
═══════════════════════════════════════════════════════════
Thank you for using this indicator. Trade responsibly and continue learning!
═══════════════════════════════════════════════════════════
saodisengxiaoyu-lianghua-2.1- This indicator is a modular, signal-building framework designed to generate long and short signals by combining a chosen leading indicator with selectable confirmation filters. It runs on Pine Script version 5, overlays directly on price, and is built to be highly configurable so traders can tailor the signal logic to their market, timeframe, and trading style. It includes a dashboard to visualize which conditions are active and whether they validate a signal, and it outputs clear buy/sell labels and alert conditions so you can automate or monitor trades with confidence.
Core Design
- Leading Indicator: You choose one primary signal generator from a broad list (for example, Range Filter, Supertrend, MACD, RSI, Ichimoku, and many others). This serves as the anchor of the system and determines when a preliminary long or short setup exists.
- Confirmation Filters: You can enable additional filters that validate the leading signal before it becomes actionable. Each “respect…” input toggles a filter on or off. These filters include popular tools like EMA, 2/3 EMA crosses, RQK (Nadaraya Watson), ADX/DMI, Bollinger-based oscillators, MACD variations, QQE, Hull, VWAP, Choppiness Index, Damiani Volatility, and more.
- Signal Expiry: To avoid waiting indefinitely for confirmations, the indicator counts how many consecutive bars the leading condition holds. If confirmations do not align within a defined number of bars, the setup expires. This controls latency and helps reduce late or stale entries.
- Alternating Signals: An optional mode enforces alternation (long must follow short and vice versa), helping avoid repeated entries in the same direction without a meaningful reset.
- Aggregation Logic: The final long/short conditions are formed by combining the leading condition with all selected confirmation filters through logical conjunction. Only if all enabled filters validate the signal (within expiry constraints) does the indicator consider it a confirmed long or short.
- Visualization and Alerts: The script plots buy/sell labels at signal points, provides alert conditions for automation, and displays a compact dashboard summarizing the leading indicator’s status and each confirmation’s pass/fail result using checkmarks.
Leading Indicator Options
- The indicator includes a very large menu of leading tools, each with its own logic to determine uptrend or downtrend impulses. Highlights include:
- Range Filter: Uses a dynamic centerline and bands computed via conditional EMA/SMA and range sizing to define directional movement. It can operate in a default mode or an alternative “DW” mode.
- Rational Quadratic Kernel (RQK): Applies a kernel smoothing model (Nadaraya Watson) to detect uptrends and downtrends with a focus on noise reduction.
- Supertrend, Half Trend, SSL Channel: Classic trend-following tools that derive direction from ATR-based bands or moving average channels.
- Ichimoku Cloud and SuperIchi: Multi-component systems validating trend via cloud position, conversion/base line relationships, projected cloud, and lagging span.
- TSI (True Strength Index), DPO (Detrended Price Oscillator), AO (Awesome Oscillator), MACD, STC (Schaff Trend Cycle), QQE Mod: Momentum and cycle tools that parse direction from crossovers, zero-line behavior, and momentum shifts.
- Donchian Trend Ribbon, Chandelier Exit: Trend and exit tools that can validate breakouts or sustained trend strength.
- ADX/DMI: Measures trend strength and directional movement via +DI/-DI relationships and minimum ADX thresholds.
- RSI and Stochastic: Use crossovers, level exits, or threshold filters to gate entries based on overbought/oversold dynamics or relative strength trends.
- Vortex, Chaikin Money Flow, VWAP, Bull Bear Power, ROC, Wolfpack Id, Hull Suite: A diverse set of directional, momentum, and volume-based indicators to suit different markets and styles.
- Trendline Breakout and Range Detector: Price-behavior filters that confirm signals during breakouts or within defined ranges.
Confirmation Filters
- Each filter is optional. When enabled, it must validate the leading condition for a signal to pass. Examples:
- EMA Filter: Requires price to be above a specified EMA for longs and below for shorts, filtering signals that contradict broader trend or baseline levels.
- 2 EMA Cross and 3 EMA Cross: Enforce moving average cross conditions (fast above slow for long, the reverse for short) or a three-line stacking logic for more stringent trend alignment.
- RQK, Supertrend, Half Trend, Donchian, QQE, Hull, MACD (crossover vs. zero-line), AO (zero line or AC momentum variants), SSL: Each adds its characteristic validation pattern.
- RSI family (MA cross, exits OB/OS zones, threshold levels) plus RSI MA direction and RSI/RSI MA limits: Multiple ways to constrain signals via relative strength behavior and trajectories.
- Choppiness Index and Damiani Volatility: Prevent entries during ranging conditions or insufficient volatility; choppiness thresholds and volatility states gate the trade.
- VWAP, Volume modes (above MA, simple up/down, delta), Chaikin Money Flow: Volume and flow conditions that ensure signals happen in supportive liquidity or accumulation/distribution contexts.
- ADX/DMI thresholds: Demand a minimum trend strength and directional DI alignment to reduce whipsaw trades.
- Trendline Breakout and Range Detector: Confirm that the price is breaking structure or remains within active range consistent with the leading setup.
- By combining several filters you can create strict, conservative entries or looser setups depending on your goals.
Range Filter Engine
- A core building block, the Range Filter uses conditional EMA and SMA functions to compute adaptive bands around a dynamic centerline. It supports two types:
- Type 1: The centerline updates when price exceeds the band thresholds; bands define acceptable drift ranges.
- Type 2: Uses quantized steps (via floor operations) relative to the previous centerline to handle larger moves in discrete increments.
- The engine offers smoothing for range values using a secondary EMA and can switch between raw and averaged outputs. Its hi/lo bands and centerline compose a corridor that defines directional movement and potential breakout confirmation.
Signal Construction
- The script computes:
- leadinglongcond and leadingshortcond : The primary directional signals from the chosen leading indicator.
- longCond and shortCond : Final signals formed by combining the leading conditions with all enabled confirmations. Each confirmation contributes a boolean gate. If a filter is disabled, it contributes a neutral pass-through, keeping the logic intact without enforcing that condition.
- Expiry Logic: The code counts consecutive bars where the leading condition remains true. If confirmations do not line up within the user-defined “Signal Expiry Candle Count,” the setup is abandoned and the signal does not trigger.
- Alternation: An optional state ensures that long and short signals alternate. This can reduce repeated entries in the same direction without a clear reset.
- Finally, longCondition and shortCondition represent the actionable signals after expiry and alternation logic. These drive the label plotting and alert conditions.
Visualization
- Buy and Sell Labels: When longCondition or shortCondition confirm, the script plots annotated labels directly on the chart, making entries easy to see at a glance. The labels use color coding and clear text tags (“long” vs. “short”).
- Dashboard: A table summarizes the status of the leading indicator and all confirmations. Each row shows the indicator label and whether it passed (✔️) or failed (❌) on the current bar. This intensely practical UI helps you diagnose why a signal did or did not trigger, empowering faster strategy iteration and parameter tuning.
- Failed Confirmation Markers: If a setup expires (count exceeds the limit) and confirmations failed to align, the script can mark the chart with a small label and provide a tooltip listing which confirmations did not pass. It’s a helpful audit trail to understand missed trades or prevent “chasing” invalid signals.
- Data Window Values: The script outputs signal states to the data window, which can be useful for debugging or building composite conditions in multi-indicator templates.
Inputs and Parameters
- You control the indicator from a comprehensive input panel:
- Setup: Signal expiry count, whether to enforce alternating signals, and whether to display labels and the dashboard (including position and size).
- Leading Indicator: Choose the primary signal generator from the large list.
- Per-Filter Toggles: For each confirmation, a respect... toggle enables or disables it. Many include sub-options (like MACD type, Stochastic mode, RSI mode, ADX variants, thresholds for choppiness/volatility, etc.) to fine-tune behavior.
- Range Filter Settings: Choose type and behavior; select default vs. DW mode and smoothing. The underlying functions adjust band sizes using ATR, average change, standard deviation, or user-defined scales.
- Because everything is customizable, you can adapt the indicator to different assets, volatility regimes, and timeframes.
Alerts and Automation
- The script defines alert conditions tied to longCondition and shortCondition . You can set these alerts in your chart to trigger notifications or webhook calls for automated execution in external bots. The alert text is simple, and you can configure your own message template when creating alerts in the chart, including JSON payloads for algorithmic integration.
Typical Workflow
- Select a Leading Indicator aligned with your style. For trend following, Supertrend or SSL may be appropriate; for momentum, MACD or TSI; for range/trend-change detection, Range Filter, RQK, or Donchian.
- Add a few key Confirmation Filters that complement the leading signal. For example:
- Pair Supertrend with EMA Filter and RSI MA Direction to ensure trend alignment and positive momentum.
- Combine MACD Crossover with ADX/DMI and Volume Above MA to avoid signals in low-trend or low-liquidity conditions.
- Use RQK with Choppiness Index and Damiani Volatility to only act when the market is trending and volatile enough.
- Set a sensible Signal Expiry Candle Count. Shorter expiry keeps entries timely and reduces lag; longer expiry captures setups that mature slowly.
- Observe the Dashboard during live markets to see which filters pass or fail, then iterate. Tighten or loosen thresholds and filter combinations as needed.
- For automation, turn on alerts for the final conditions and use webhook payloads to notify your trading robot.
Strengths and Practical Notes
- Flexibility: The indicator is a toolkit rather than a single rigid model. It lets you test different combinations rapidly and visualize outcomes immediately.
- Clarity: Labels, dashboard, and failed-confirmation markers make it easy to audit behavior and refine settings without digging into code.
- Robustness: The expiry and alternation options add discipline, avoiding the temptation to enter late or repeatedly in one direction without a reset.
- Modular Design: The logical gates (“respect…”) make the behavior transparent: if a filter is on, it must pass; if it’s off, the signal ignores it. This keeps reasoning clean.
- Avoiding Overfitting: Because you can stack many filters, it’s tempting to over-constrain signals. Start simple (one leading indicator and one or two confirmations). Add complexity only if it demonstrably improves your edge across varied market regimes.
Limitations and Recommendations
- No single configuration is universally optimal. Markets change; tune filters for the instrument and timeframe you trade and revisit settings periodically.
- Trend filters can underperform in choppy markets; likewise, momentum filters can false-trigger in quiet periods. Consider using Choppiness Index or Damiani to gate signals by regime.
- Use expiry wisely. Too short may miss good setups that need a few bars to confirm; too long may cause late entries. Balance responsiveness and accuracy.
- Always consider risk management externally (position sizing, stops, profit targets). The indicator focuses on signal quality; combining it with robust trade management methods will improve results.
Example Configurations
- Trend-Following Setup:
- Leading: Supertrend uptrend for longs and downtrend for shorts.
- Confirmations: EMA Filter (price above 200 EMA for long, below for short), ADX/DMI (trend strength above threshold with +DI/-DI alignment), Volume Above MA.
- Expiry: 3–4 bars to keep entries timely.
- Result: Strong bias toward sustained moves while avoiding weak trends and thin liquidity.
- Mean-Reversion to Momentum Crossover:
- Leading: RSI exits from OB/OS zones (e.g., RSI leaves oversold for long and leaves overbought for short).
- Confirmations: 2 EMA Cross (fast crossing slow in the same direction), MACD zero-line behavior for added momentum validation.
- Expiry: 2–3 bars for responsive re-entry.
- Result: Captures momentum transitions after short-term extremes, with extra confirmation to reduce head-fakes.
- Range Breakout Focus:
- Leading: Range Filter Type 2 or Donchian Trend Ribbon to detect breakouts.
- Confirmations: Damiani Volatility (avoid low-volatility false breaks), Choppiness Index (prefer trend-ready states), ROC positive/negative threshold.
- Expiry: 1–3 bars to act on breakout windows.
- Result: Better alignment to breakout dynamics, gating trades by volatility and regime.
Conclusion
- This indicator is a comprehensive, configurable framework that merges a chosen leading signal with an array of corroborating filters, disciplined expiry handling, and intuitive visualization. It’s designed to help you build high-quality entry signals tailored to your approach, whether that’s trend-following, breakout trading, momentum capturing, or a hybrid. By surfacing pass/fail states in a dashboard and allowing alert-based automation, it bridges the gap between discretionary analysis and systematic execution. With sensible parameter tuning and thoughtful filter selection, it can serve as a robust backbone for signal generation across diverse instruments and timeframes.
EMA Crossover Signals [LummiCrypto]Handsome, just turn on the buy and sell alerts.
English Instruction
How to Use the EMA Crossover Signals Indicator
This TradingView Pine Script generates BUY and SELL signals based on the crossover of two Exponential Moving Averages (EMAs) with user-selectable lengths (9, 20, 50, 100, or 200). BUY signals occur when the first EMA crosses above the second EMA, and SELL signals occur when the first EMA crosses below the second EMA. Signals are visualized as tiny green triangles (BUY) below the bar and red triangles (SELL) above the bar. Alerts are set up using alertcondition() for compatibility with Telegram notifications.
1. Add the Script to TradingView
Open TradingView and go to the Pine Editor (bottom of the screen).
Copy and paste the Pine Script into the editor.
Click “Add to Chart” to apply the indicator to your chart.
2. Configure EMA Lengths
Double-click the indicator name (“EMA Crossover Signals”) on the chart to open its settings.
In the settings, select the “First EMA Length” and “Second EMA Length” from the dropdown menus. Options are 9, 20, 50, 100, or 200.
Note: Choose different lengths for the two EMAs (e.g., 9 and 20) to ensure crossovers can occur. Setting both to the same length will prevent signals.
Click “OK” to save the settings.
3. Set Up Alerts in TradingView
Click the “Alert” button (bell icon) at the top of TradingView.
In the alert creation window:
Select “EMA Crossover Signals” as the condition.
Choose either “BUY Signal” or “SELL Signal” from the condition dropdown.
Keep the default message (e.g., “EMA Crossover: BUY Signal at {{close}}”) or customize it if needed.
Set the frequency to “Once Per Bar Close” to avoid duplicate alerts.
Name the alert, e.g., “EMA Buy Alert” or “EMA Sell Alert”.
Repeat the process to create separate alerts for BUY and SELL signals if desired.
Click “Create” to activate the alert.
4. Connect Alerts to Telegram
To send BUY and SELL signals to Telegram, you need to link TradingView alerts to a Telegram bot or channel. Here are the options:
Option 1: Webhook Setup
Create a Telegram bot using BotFather in Telegram and obtain the bot token.
Set up a webhook server (e.g., using Python, Node.js, or a service like Heroku) to receive TradingView alerts and forward them to Telegram.
In the TradingView alert settings, enable “Webhook URL” and enter your server’s URL (e.g., your-server.com).
Configure your server to send the alert message to Telegram using the Telegram Bot API (e.g., api.telegram.org).
Option 2: Third-Party Service
Use a service like Zapier or IFTTT to connect TradingView alerts to Telegram.
Set up a zap with TradingView as the trigger (via webhook) and Telegram as the action to send messages to your chat or channel.
Follow the service’s instructions to link your Telegram bot and specify the destination chat or channel.
Option 3: TradingView’s Telegram Integration (if available)
If TradingView offers direct Telegram integration in your region, follow their official guide to link your Telegram account and configure alerts to send messages directly.
5. Test the Alerts
Create test alerts for both BUY and SELL signals to ensure they work correctly.
Verify that messages (e.g., “EMA Crossover: BUY Signal at 50000”) appear in your Telegram chat or channel.
Check that the signals (green triangles for BUY, red triangles for SELL) appear correctly on the chart.
Инструкция на русском
Как использовать индикатор EMA Crossover Signals
Этот Pine Script для TradingView генерирует сигналы на покупку (BUY) и продажу (SELL) на основе пересечения двух экспоненциальных скользящих средних (EMA) с длинами, выбираемыми пользователем (9, 20, 50, 100 или 200). Сигнал BUY появляется, когда первая EMA пересекает вторую EMA снизу вверх, а сигнал SELL — когда первая EMA пересекает вторую EMA сверху вниз. Сигналы отображаются в виде маленьких зеленых треугольников (BUY) под свечой и красных треугольников (SELL) над свечой. Для уведомлений в Telegram используются alertcondition().
1. Добавление скрипта в TradingView
Откройте TradingView и перейдите в редактор Pine (внизу экрана).
Скопируйте и вставьте Pine Script в редактор.
Нажмите «Добавить на график», чтобы применить индикатор.
2. Настройка длин EMA
Дважды щелкните по названию индикатора («EMA Crossover Signals») на графике, чтобы открыть настройки.
В настройках выберите «First EMA Length» (Длина первой EMA) и «Second EMA Length» (Длина второй EMA) из выпадающих меню. Варианты: 9, 20, 50, 100, 200.
Важно: Выберите разные длины для двух EMA (например, 9 и 20), чтобы сигналы пересечения были возможны. Если выбрать одинаковые длины, сигналы не будут генерироваться.
Нажмите «ОК», чтобы сохранить настройки.
3. Настройка алертов в TradingView
Нажмите на кнопку «Алерт» (значок колокольчика) вверху TradingView.
В окне создания алерта:
Выберите «EMA Crossover Signals» в качестве условия.
Выберите «BUY Signal» или «SELL Signal» из выпадающего списка условий.
Оставьте сообщение по умолчанию (например, «EMA Crossover: BUY Signal at {{close}}») или настройте его по желанию.
Установите частоту «Только при закрытии бара», чтобы избежать дублирования алертов.
Задайте имя алерта, например, «EMA Buy Alert» или «EMA Sell Alert».
Повторите процесс, чтобы создать отдельные алерты для сигналов BUY и SELL, если нужно.
Нажмите «Создать», чтобы активировать алерт.
4. Подключение алертов к Telegram
Чтобы отправлять сигналы BUY и SELL в Telegram, необходимо связать алерты TradingView с ботом или каналом Telegram. Варианты:
Вариант 1: Настройка вебхука
Создайте бота в Telegram с помощью BotFather и получите токен бота.
Настройте сервер вебхука (например, с использованием Python, Node.js или сервиса Heroku), чтобы принимать алерты от TradingView и отправлять их в Telegram.
В настройках алерта TradingView включите «Webhook URL» и укажите URL вашего сервера (например, your-server.com).
Настройте сервер для отправки сообщений в Telegram через Telegram Bot API (например, api.telegram.org).
Вариант 2: Сторонний сервис
Используйте сервисы, такие как Zapier или IFTTT, для связи алертов TradingView с Telegram.
Настройте задачу (zap), где TradingView будет триггером (через вебхук), а Telegram — действием для отправки сообщений в ваш чат или канал.
Следуйте инструкциям сервиса для подключения бота Telegram и указания чата или канала.
Вариант 3: Прямая интеграция TradingView с Telegram (если доступно)
Если TradingView поддерживает прямую интеграцию с Telegram в вашем регионе, следуйте их официальной инструкции для подключения вашего аккаунта Telegram и настройки отправки сообщений.
5. Тестирование алертов
Создайте тестовые алерты для сигналов BUY и SELL, чтобы убедиться, что они работают корректно.
Проверьте, что сообщения (например, «EMA Crossover: BUY Signal at 50000») появляются в вашем чате или канале Telegram.
Убедитесь, что сигналы (зеленые треугольники для BUY, красные треугольники для SELL) корректно отображаются на графике.
RSI(14) Divergence — Enhanced Hidden Detection (v6) — exterm hidTitle:
RSI(14) Divergence — Regular + Hidden + HTF EMA Filter (Scalping Edition)
🔹 Description:
This indicator automatically detects RSI(14) divergences — both Regular (Reversal) and Hidden (Continuation) — and plots them directly on the chart for precision scalping and intraday trading.
It’s optimized for low timeframes (1-minute) such as Bank Nifty, Nifty 50, and Sensex, where spotting early divergence can help confirm short-term momentum shifts.
⚙️ Core Features:
Regular Divergence Detection
Bullish Divergence: Price makes a lower low while RSI makes a higher low → potential reversal upward.
Bearish Divergence: Price makes a higher high while RSI makes a lower high → potential reversal downward.
Hidden Divergence Detection
Hidden Bullish Divergence: Price makes a higher low while RSI makes a lower low → continuation of bullish trend.
Hidden Bearish Divergence: Price makes a lower high while RSI makes a higher high → continuation of bearish trend.
HTF EMA Trend Alignment (Smart Filter)
Optional feature that aligns signals with the higher timeframe (HTF) trend using a 200 EMA.
Example: Only shows bullish divergences when the 5-minute price is above the 5-minute 200 EMA (uptrend alignment).
Helps filter false signals and keeps divergence trading directional.
Chart Visualization
Regular divergences: Bold solid lines (Green for bullish, Red for bearish).
Hidden divergences: Thin dashed lines (Teal for hidden bull, Maroon for hidden bear) — subtle enough to stay unnoticed by casual chart viewers.
Optional labels (“Bull Div”, “Bear Div”, etc.) and minimalistic markers for scalping clarity.
Option to extend divergence lines for future reference.
Custom Alerts (for all divergence types)
Get instant alerts when any regular or hidden divergence is detected.
Works seamlessly for both long and short bias setups.
📈 Recommended Usage:
Timeframe: 1-Minute (Scalping) or 3-Minute (Micro Intraday)
Markets: Bank Nifty, Nifty 50, Sensex, or any high-volatility index/stocks
Combine With:
Higher timeframe structure (H1/H4 bias)
Volume spikes or order block retests
Key support/resistance zones
RSI(14) Divergence — Regular + Hidden + HTF EMA Filter (pro)Title:
RSI(14) Divergence — Regular + Hidden + HTF EMA Filter (Scalping Edition)
🔹 Description:
This indicator automatically detects RSI(14) divergences — both Regular (Reversal) and Hidden (Continuation) — and plots them directly on the chart for precision scalping and intraday trading.
It’s optimized for low timeframes (1-minute) such as Bank Nifty, Nifty 50, and Sensex, where spotting early divergence can help confirm short-term momentum shifts.
⚙️ Core Features:
Regular Divergence Detection
Bullish Divergence: Price makes a lower low while RSI makes a higher low → potential reversal upward.
Bearish Divergence: Price makes a higher high while RSI makes a lower high → potential reversal downward.
Hidden Divergence Detection
Hidden Bullish Divergence: Price makes a higher low while RSI makes a lower low → continuation of bullish trend.
Hidden Bearish Divergence: Price makes a lower high while RSI makes a higher high → continuation of bearish trend.
HTF EMA Trend Alignment (Smart Filter)
Optional feature that aligns signals with the higher timeframe (HTF) trend using a 200 EMA.
Example: Only shows bullish divergences when the 5-minute price is above the 5-minute 200 EMA (uptrend alignment).
Helps filter false signals and keeps divergence trading directional.
Chart Visualization
Regular divergences: Bold solid lines (Green for bullish, Red for bearish).
Hidden divergences: Thin dashed lines (Teal for hidden bull, Maroon for hidden bear) — subtle enough to stay unnoticed by casual chart viewers.
Optional labels (“Bull Div”, “Bear Div”, etc.) and minimalistic markers for scalping clarity.
Option to extend divergence lines for future reference.
Custom Alerts (for all divergence types)
Get instant alerts when any regular or hidden divergence is detected.
Works seamlessly for both long and short bias setups.
📈 Recommended Usage:
Timeframe: 1-Minute (Scalping) or 3-Minute (Micro Intraday)
Markets: Bank Nifty, Nifty 50, Sensex, or any high-volatility index/stocks
Combine With:
Higher timeframe structure (H1/H4 bias)
Volume spikes or order block retests
Key support/resistance zones
RSI(14) Divergence Only — Scalping (v6)Title:
RSI(14) Divergence — Regular + Hidden + HTF EMA Filter (Scalping Edition)
🔹 Description:
This indicator automatically detects RSI(14) divergences — both Regular (Reversal) and Hidden (Continuation) — and plots them directly on the chart for precision scalping and intraday trading.
It’s optimized for low timeframes (1-minute) such as Bank Nifty, Nifty 50, and Sensex, where spotting early divergence can help confirm short-term momentum shifts.
⚙️ Core Features:
Regular Divergence Detection
Bullish Divergence: Price makes a lower low while RSI makes a higher low → potential reversal upward.
Bearish Divergence: Price makes a higher high while RSI makes a lower high → potential reversal downward.
Hidden Divergence Detection
Hidden Bullish Divergence: Price makes a higher low while RSI makes a lower low → continuation of bullish trend.
Hidden Bearish Divergence: Price makes a lower high while RSI makes a higher high → continuation of bearish trend.
HTF EMA Trend Alignment (Smart Filter)
Optional feature that aligns signals with the higher timeframe (HTF) trend using a 200 EMA.
Example: Only shows bullish divergences when the 5-minute price is above the 5-minute 200 EMA (uptrend alignment).
Helps filter false signals and keeps divergence trading directional.
Chart Visualization
Regular divergences: Bold solid lines (Green for bullish, Red for bearish).
Hidden divergences: Thin dashed lines (Teal for hidden bull, Maroon for hidden bear) — subtle enough to stay unnoticed by casual chart viewers.
Optional labels (“Bull Div”, “Bear Div”, etc.) and minimalistic markers for scalping clarity.
Option to extend divergence lines for future reference.
Custom Alerts (for all divergence types)
Get instant alerts when any regular or hidden divergence is detected.
Works seamlessly for both long and short bias setups.
📈 Recommended Usage:
Timeframe: 1-Minute (Scalping) or 3-Minute (Micro Intraday)
Markets: Bank Nifty, Nifty 50, Sensex, or any high-volatility index/stocks
Combine With:
Higher timeframe structure (H1/H4 bias)
Volume spikes or order block retests
Key support/resistance zones
Trend Colors + Transition Labels (Clean MAs + Supertrend)//@version=5
indicator("Trend Colors + Transition Labels (Clean MAs + Supertrend)", overlay=true, max_labels_count=500)
//———— Inputs
atrMultST = input.float(3.0, "Supertrend ATR Multiplier", step=0.1)
atrLenST = input.int(10, "Supertrend ATR Length")
lenMAfast = input.int(50, "Fast MA (chart TF)")
lenMAslow = input.int(200, "Slow MA (chart TF)")
htf = input.string("W", "Higher TF for Confirmation (use W on Daily, D on 1H)")
//———— Chart TF signals
maFast = ta.sma(close, lenMAfast)
maSlow = ta.sma(close, lenMAslow)
= ta.supertrend(atrMultST, atrLenST) // dir: 1=up, -1=down
ctf_up = dir_ctf == 1
ctf_dn = dir_ctf == -1
above50 = close > maFast
above200 = close > maSlow
maBull = maFast > maSlow
maBear = maFast < maSlow
//———— Higher TF signals
= request.security(syminfo.tickerid, htf, ta.supertrend(atrMultST, atrLenST))
maFast_htf = request.security(syminfo.tickerid, htf, ta.sma(close, lenMAfast))
maSlow_htf = request.security(syminfo.tickerid, htf, ta.sma(close, lenMAslow))
htf_up = dir_htf == 1
htf_dn = dir_htf == -1
htfBull = maFast_htf > maSlow_htf
htfBear = maFast_htf < maSlow_htf
//———— Final states (clear & symmetric)
strongUp = ctf_up and htf_up and maBull and htfBull and above50 and above200
strongDn = ctf_dn and htf_dn and maBear and htfBear and not above50 and not above200
earlyUp = ctf_up and not strongUp and not strongDn
//———— Background colors (GREEN up, RED down, LIGHT GREEN early)
bgcolor(strongUp ? color.new(color.green, 85) :
strongDn ? color.new(color.red, 85) :
earlyUp ? color.new(color.lime, 88) : na)
//———— Transition detection (integer state avoids string quirks)
var int lastState = 0 // 1=up, -1=down, 0=neutral
curState = strongUp ? 1 : strongDn ? -1 : 0
upStarted = curState == 1 and lastState != 1
downStarted = curState == -1 and lastState != -1
//———— Labels at transitions (single-line calls, ASCII only)
if upStarted
label.new(bar_index, low, "Uptrend Starts", style=label.style_label_up, color=color.new(color.green, 0), textcolor=color.white, size=size.normal)
if downStarted
label.new(bar_index, high, "Downtrend Starts", style=label.style_label_down, color=color.new(color.red, 0), textcolor=color.white, size=size.normal)
//———— Update state
lastState := curState
//———— Visual MAs
plot(maSlow, color=color.orange, title="200 MA")
plot(maFast, color=color.new(color.blue, 0), title="50 MA")
Multi-TF Trend Dashboard (12H / D / W)Trend Alignment Dashboard (12H/D/W, 200 EMA)
Quickly see trend direction across 12H, Daily, and Weekly charts. Includes 12H 200 EMA for major trend confirmation. Perfect for spotting strong multi-timeframe alignment at a glance.
Historical Matrix Analyzer [PhenLabs]📊Historical Matrix Analyzer
Version: PineScriptv6
📌Description
The Historical Matrix Analyzer is an advanced probabilistic trading tool that transforms technical analysis into a data-driven decision support system. By creating a comprehensive 56-cell matrix that tracks every combination of RSI states and multi-indicator conditions, this indicator reveals which market patterns have historically led to profitable outcomes and which have not.
At its core, the indicator continuously monitors seven distinct RSI states (ranging from Extreme Oversold to Extreme Overbought) and eight unique indicator combinations (MACD direction, volume levels, and price momentum). For each of these 56 possible market states, the system calculates average forward returns, win rates, and occurrence counts based on your configurable lookback period. The result is a color-coded probability matrix that shows you exactly where you stand in the historical performance landscape.
The standout feature is the Current State Panel, which provides instant clarity on your active market conditions. This panel displays signal strength classifications (from Strong Bullish to Strong Bearish), the average return percentage for similar past occurrences, an estimated win rate using Bayesian smoothing to prevent small-sample distortions, and a confidence level indicator that warns you when insufficient data exists for reliable conclusions.
🚀Points of Innovation
Multi-dimensional state classification combining 7 RSI levels with 8 indicator combinations for 56 unique trackable market conditions
Bayesian win rate estimation with adjustable smoothing strength to provide stable probability estimates even with limited historical samples
Real-time active cell highlighting with “NOW” marker that visually connects current market conditions to their historical performance data
Configurable color intensity sensitivity allowing traders to adjust heat-map responsiveness from conservative to aggressive visual feedback
Dual-panel display system separating the comprehensive statistics matrix from an easy-to-read current state summary panel
Intelligent confidence scoring that automatically warns traders when occurrence counts fall below reliable thresholds
🔧Core Components
RSI State Classification: Segments RSI readings into 7 distinct zones (Extreme Oversold <20, Oversold 20-30, Weak 30-40, Neutral 40-60, Strong 60-70, Overbought 70-80, Extreme Overbought >80) to capture momentum extremes and transitions
Multi-Indicator Condition Tracking: Simultaneously monitors MACD crossover status (bullish/bearish), volume relative to moving average (high/low), and price direction (rising/falling) creating 8 binary-encoded combinations
Historical Data Storage Arrays: Maintains rolling lookback windows storing RSI states, indicator states, prices, and bar indices for precise forward-return calculations
Forward Performance Calculator: Measures price changes over configurable forward bar periods (1-20 bars) from each historical state, accumulating total returns and win counts per matrix cell
Bayesian Smoothing Engine: Applies statistical prior assumptions (default 50% win rate) weighted by user-defined strength parameter to stabilize estimated win rates when sample sizes are small
Dynamic Color Mapping System: Converts average returns into color-coded heat map with intensity adjusted by sensitivity parameter and transparency modified by confidence levels
🔥Key Features
56-Cell Probability Matrix: Comprehensive grid displaying every possible combination of RSI state and indicator condition, with each cell showing average return percentage, estimated win rate, and occurrence count for complete statistical visibility
Current State Info Panel: Dedicated display showing your exact position in the matrix with signal strength emoji indicators, numerical statistics, and color-coded confidence warnings for immediate situational awareness
Customizable Lookback Period: Adjustable historical window from 50 to 500 bars allowing traders to focus on recent market behavior or capture longer-term pattern stability across different market cycles
Configurable Forward Performance Window: Select target holding periods from 1 to 20 bars ahead to align probability calculations with your trading timeframe, whether day trading or swing trading
Visual Heat Mapping: Color-coded cells transition from red (bearish historical performance) through gray (neutral) to green (bullish performance) with intensity reflecting statistical significance and occurrence frequency
Intelligent Data Filtering: Minimum occurrence threshold (1-10) removes unreliable patterns with insufficient historical samples, displaying gray warning colors for low-confidence cells
Flexible Layout Options: Independent positioning of statistics matrix and info panel to any screen corner, accommodating different chart layouts and personal preferences
Tooltip Details: Hover over any matrix cell to see full RSI label, complete indicator status description, precise average return, estimated win rate, and total occurrence count
🎨Visualization
Statistics Matrix Table: A 9-column by 8-row grid with RSI states labeling vertical axis and indicator combinations on horizontal axis, using compact abbreviations (XOverS, OverB, MACD↑, Vol↓, P↑) for space efficiency
Active Cell Indicator: The current market state cell displays “⦿ NOW ⦿” in yellow text with enhanced color saturation to immediately draw attention to relevant historical performance
Signal Strength Visualization: Info panel uses emoji indicators (🔥 Strong Bullish, ✅ Bullish, ↗️ Weak Bullish, ➖ Neutral, ↘️ Weak Bearish, ⛔ Bearish, ❄️ Strong Bearish, ⚠️ Insufficient Data) for rapid interpretation
Histogram Plot: Below the price chart, a green/red histogram displays the current cell’s average return percentage, providing a time-series view of how historical performance changes as market conditions evolve
Color Intensity Scaling: Cell background transparency and saturation dynamically adjust based on both the magnitude of average returns and the occurrence count, ensuring visual emphasis on reliable patterns
Confidence Level Display: Info panel bottom row shows “High Confidence” (green), “Medium Confidence” (orange), or “Low Confidence” (red) based on occurrence counts relative to minimum threshold multipliers
📖Usage Guidelines
RSI Period
Default: 14
Range: 1 to unlimited
Description: Controls the lookback period for RSI momentum calculation. Standard 14-period provides widely-recognized overbought/oversold levels. Decrease for faster, more sensitive RSI reactions suitable for scalping. Increase (21, 28) for smoother, longer-term momentum assessment in swing trading. Changes affect how quickly the indicator moves between the 7 RSI state classifications.
MACD Fast Length
Default: 12
Range: 1 to unlimited
Description: Sets the faster exponential moving average for MACD calculation. Standard 12-period setting works well for daily charts and captures short-term momentum shifts. Decreasing creates more responsive MACD crossovers but increases false signals. Increasing smooths out noise but delays signal generation, affecting the bullish/bearish indicator state classification.
MACD Slow Length
Default: 26
Range: 1 to unlimited
Description: Defines the slower exponential moving average for MACD calculation. Traditional 26-period setting balances trend identification with responsiveness. Must be greater than Fast Length. Wider spread between fast and slow increases MACD sensitivity to trend changes, impacting the frequency of indicator state transitions in the matrix.
MACD Signal Length
Default: 9
Range: 1 to unlimited
Description: Smoothing period for the MACD signal line that triggers bullish/bearish state changes. Standard 9-period provides reliable crossover signals. Shorter values create more frequent state changes and earlier signals but with more whipsaws. Longer values produce more confirmed, stable signals but with increased lag in detecting momentum shifts.
Volume MA Period
Default: 20
Range: 1 to unlimited
Description: Lookback period for volume moving average used to classify volume as “high” or “low” in indicator state combinations. 20-period default captures typical monthly trading patterns. Shorter periods (10-15) make volume classification more reactive to recent spikes. Longer periods (30-50) require more sustained volume changes to trigger state classification shifts.
Statistics Lookback Period
Default: 200
Range: 50 to 500
Description: Number of historical bars used to calculate matrix statistics. 200 bars provides substantial data for reliable patterns while remaining responsive to regime changes. Lower values (50-100) emphasize recent market behavior and adapt quickly but may produce volatile statistics. Higher values (300-500) capture long-term patterns with stable statistics but slower adaptation to changing market dynamics.
Forward Performance Bars
Default: 5
Range: 1 to 20
Description: Number of bars ahead used to calculate forward returns from each historical state occurrence. 5-bar default suits intraday to short-term swing trading (5 hours on hourly charts, 1 week on daily charts). Lower values (1-3) target short-term momentum trades. Higher values (10-20) align with position trading and longer-term pattern exploitation.
Color Intensity Sensitivity
Default: 2.0
Range: 0.5 to 5.0, step 0.5
Description: Amplifies or dampens the color intensity response to average return magnitudes in the matrix heat map. 2.0 default provides balanced visual emphasis. Lower values (0.5-1.0) create subtle coloring requiring larger returns for full saturation, useful for volatile instruments. Higher values (3.0-5.0) produce vivid colors from smaller returns, highlighting subtle edges in range-bound markets.
Minimum Occurrences for Coloring
Default: 3
Range: 1 to 10
Description: Required minimum sample size before applying color-coded performance to matrix cells. Cells with fewer occurrences display gray “insufficient data” warning. 3-occurrence default filters out rare patterns. Lower threshold (1-2) shows more data but includes unreliable single-event statistics. Higher thresholds (5-10) ensure only well-established patterns receive visual emphasis.
Table Position
Default: top_right
Options: top_left, top_right, bottom_left, bottom_right
Description: Screen location for the 56-cell statistics matrix table. Position to avoid overlapping critical price action or other indicators on your chart. Consider chart orientation and candlestick density when selecting optimal placement.
Show Current State Panel
Default: true
Options: true, false
Description: Toggle visibility of the dedicated current state information panel. When enabled, displays signal strength, RSI value, indicator status, average return, estimated win rate, and confidence level for active market conditions. Disable to declutter charts when only the matrix table is needed.
Info Panel Position
Default: bottom_left
Options: top_left, top_right, bottom_left, bottom_right
Description: Screen location for the current state information panel (when enabled). Position independently from statistics matrix to optimize chart real estate. Typically placed opposite the matrix table for balanced visual layout.
Win Rate Smoothing Strength
Default: 5
Range: 1 to 20
Description: Controls Bayesian prior weighting for estimated win rate calculations. Acts as virtual sample size assuming 50% win rate baseline. Default 5 provides moderate smoothing preventing extreme win rate estimates from small samples. Lower values (1-3) reduce smoothing effect, allowing win rates to reflect raw data more directly. Higher values (10-20) increase conservatism, pulling win rate estimates toward 50% until substantial evidence accumulates.
✅Best Use Cases
Pattern-based discretionary trading where you want historical confirmation before entering setups that “look good” based on current technical alignment
Swing trading with holding periods matching your forward performance bar setting, using high-confidence bullish cells as entry filters
Risk assessment and position sizing, allocating larger size to trades originating from cells with strong positive average returns and high estimated win rates
Market regime identification by observing which RSI states and indicator combinations are currently producing the most reliable historical patterns
Backtesting validation by comparing your manual strategy signals against the historical performance of the corresponding matrix cells
Educational tool for developing intuition about which technical condition combinations have actually worked versus those that feel right but lack historical evidence
⚠️Limitations
Historical patterns do not guarantee future performance, especially during unprecedented market events or regime changes not represented in the lookback period
Small sample sizes (low occurrence counts) produce unreliable statistics despite Bayesian smoothing, requiring caution when acting on low-confidence cells
Matrix statistics lag behind rapidly changing market conditions, as the lookback period must accumulate new state occurrences before updating performance data
Forward return calculations use fixed bar periods that may not align with actual trade exit timing, support/resistance levels, or volatility-adjusted profit targets
💡What Makes This Unique
Multi-Dimensional State Space: Unlike single-indicator tools, simultaneously tracks 56 distinct market condition combinations providing granular pattern resolution unavailable in traditional technical analysis
Bayesian Statistical Rigor: Implements proper probabilistic smoothing to prevent overconfidence from limited data, a critical feature missing from most pattern recognition tools
Real-Time Contextual Feedback: The “NOW” marker and dedicated info panel instantly connect current market conditions to their historical performance profile, eliminating guesswork
Transparent Occurrence Counts: Displays sample sizes directly in each cell, allowing traders to judge statistical reliability themselves rather than hiding data quality issues
Fully Customizable Analysis Window: Complete control over lookback depth and forward return horizons lets traders align the tool precisely with their trading timeframe and strategy requirements
🔬How It Works
1. State Classification and Encoding
Each bar’s RSI value is evaluated and assigned to one of 7 discrete states based on threshold levels (0: <20, 1: 20-30, 2: 30-40, 3: 40-60, 4: 60-70, 5: 70-80, 6: >80)
Simultaneously, three binary conditions are evaluated: MACD line position relative to signal line, current volume relative to its moving average, and current close relative to previous close
These three binary conditions are combined into a single indicator state integer (0-7) using binary encoding, creating 8 possible indicator combinations
The RSI state and indicator state are stored together, defining one of 56 possible market condition cells in the matrix
2. Historical Data Accumulation
As each bar completes, the current state classification, closing price, and bar index are stored in rolling arrays maintained at the size specified by the lookback period
When the arrays reach capacity, the oldest data point is removed and the newest added, creating a sliding historical window
This continuous process builds a comprehensive database of past market conditions and their subsequent price movements
3. Forward Return Calculation and Statistics Update
On each bar, the indicator looks back through the stored historical data to find bars where sufficient forward bars exist to measure outcomes
For each historical occurrence, the price change from that bar to the bar N periods ahead (where N is the forward performance bars setting) is calculated as a percentage return
This percentage return is added to the cumulative return total for the specific matrix cell corresponding to that historical bar’s state classification
Occurrence counts are incremented, and wins are tallied for positive returns, building comprehensive statistics for each of the 56 cells
The Bayesian smoothing formula combines these raw statistics with prior assumptions (neutral 50% win rate) weighted by the smoothing strength parameter to produce estimated win rates that remain stable even with small samples
💡Note:
The Historical Matrix Analyzer is designed as a decision support tool, not a standalone trading system. Best results come from using it to validate discretionary trade ideas or filter systematic strategy signals. Always combine matrix insights with proper risk management, position sizing rules, and awareness of broader market context. The estimated win rate feature uses Bayesian statistics specifically to prevent false confidence from limited data, but no amount of smoothing can create reliable predictions from fundamentally insufficient sample sizes. Focus on high-confidence cells (green-colored confidence indicators) with occurrence counts well above your minimum threshold for the most actionable insights.
HermesHERMES STRATEGY - TRADINGVIEW DESCRIPTION
OVERVIEW
Hermes is an adaptive trend-following strategy that uses dual ALMA (Arnaud Legoux Moving Average) filters to identify high-quality entry and exit points. It's designed for swing and position traders who want smooth, low-lag signals with minimal whipsaws.
Unlike traditional moving averages that operate on price, Hermes analyzes price returns (percentage changes) to create signals that work consistently across any asset class and price range.
HOW IT WORKS
DUAL ALMA SYSTEM
The strategy uses two ALMA lines applied to price returns:
• Fast ALMA (Blue Line): Short-term trend signal (default: 80 periods)
• Slow ALMA (Black Line): Long-term baseline trend (default: 250 periods)
ALMA is superior to simple or exponential moving averages because it provides:
• Smoother curves with less noise
• Significantly reduced lag
• Natural resistance to outliers and flash crashes
TRADING LOGIC
BUY SIGNAL:
• Fast ALMA crosses above Slow ALMA (bullish regime)
• Price makes new N-bar high (momentum confirmation)
• Optional: Price above 200 EMA (macro trend filter)
• Optional: ALMA lines sufficiently separated (strength filter)
SELL SIGNAL:
• Fast ALMA crosses below Slow ALMA (bearish regime)
• Optional: Price makes new N-bar low (momentum confirmation)
The strategy stays in position during the entire bullish regime, allowing you to ride trends for weeks or months.
VISUAL INDICATORS
LINES:
• Blue Line: Fast ALMA (short-term signal)
• Black Line: Slow ALMA (long-term baseline)
TRADE MARKERS:
• Green Triangle Up: Buy executed
• Red Triangle Down: Sell executed
• Orange "M": Buy blocked by momentum filter
• Purple "W": Buy blocked by weak crossover strength
KEY PARAMETERS
ALMA SETTINGS:
• Short Period (default: 30) - Fast signal responsiveness
• Long Period (default: 250) - Baseline stability
• ALMA Offset (default: 0.90) - Balance between lag and smoothness
• ALMA Sigma (default: 7.5) - Gaussian curve width
ENTRY/EXIT FILTERS:
• Buy Lookback (default: 7) - Bars for momentum confirmation (required)
• Sell Lookback (default: 0) - Exit momentum bars (0 = disabled for faster exits)
• Min Crossover Strength (default: 0.0) - Required ALMA separation (0 = disabled)
• Use Macro Filter (default: true) - Only enter above 200 EMA
BEST PRACTICES
RECOMMENDED ASSETS - Works well on:
• Cryptocurrencies (Bitcoin, Ethereum, etc.)
• Major indices (S&P 500, Nasdaq)
• Large-cap stocks
• Commodities (Gold, Oil)
RECOMMENDED TIMEFRAMES:
• Daily: Primary timeframe for swing trading
• 4-Hour: More active trading (increase trade frequency)
• Weekly: Long-term position trading
PARAMETER TUNING:
• More trades: Lower Short Period (60-80)
• Fewer trades: Raise Short Period (100-120)
• Faster exits: Set Sell Lookback = 0
• Safer entries: Enable Macro Filter (Use Macro Filter = true)
STRATEGY ADVANTAGES
1. Low Lag - ALMA provides faster signals than traditional moving averages
2. Smooth Signals - Minimal whipsaws compared to crossover strategies
3. Asset Agnostic - Same parameters work across different markets
4. Trend Capture - Stays positioned during entire bullish regimes
5. Risk Management - Multiple filters prevent poor entries
6. Visual Clarity - Easy to interpret regime and filter states
WHEN TO USE HERMES
BEST FOR:
• Trending markets (crypto bull runs, equity uptrends)
• Swing trading (hold days to weeks)
• Position trading (hold weeks to months)
• Clear trend identification
• Risk-managed exposure
NOT SUITABLE FOR:
• Ranging/sideways markets
• Scalping or day trading
• High-frequency trading
• Mean reversion strategies
RISK DISCLAIMER
This indicator is for educational purposes only. Past performance does not guarantee future results. Always use proper position sizing and risk management. Test thoroughly on historical data before live trading.
CREDITS
Inspired by Giovanni Santostasi's Power Law Volatility Indicator, generalized for universal application across all assets using adaptive ALMA filtering.
Strategy by Hermes Trading Systems
QUICK START
1. Add indicator to chart
2. Use on daily timeframe for best results
3. Look for green buy signals when blue line crosses above black line
4. Exit on red sell signals when blue line crosses below black line
5. Adjust parameters based on your trading style:
• Conservative: Enable Macro Filter, increase Buy Lookback to 10
• Aggressive: Disable Macro Filter, lower Short Period to 60
• Default settings work well for most assets
ZS Master Vision Pro - Advanced Multi-Timeframe Trading SystemZS MASTER VISION PRO - PROFESSIONAL TRADING SUITE
Created by Zakaria Safri
A comprehensive, all-in-one trading system combining multiple proven technical analysis methods into a single, powerful indicator. Designed for traders who demand precision, clarity, and actionable signals across all timeframes.
KEY FEATURES
CORE TREND ALGORITHM
Adaptive ATR-based trend detection with dynamic support and resistance zones. Features Type A and Type B signal modes for different trading styles, strong signal detection in key reversal zones, and optional EMA source smoothing for noise reduction.
MULTI-LAYER EMA CLOUD SYSTEM
Five customizable EMA cloud layers for multi-timeframe analysis with theme-adaptive color coding across five professional themes. Optional line display for detailed MA tracking with configurable periods from scalping to position trading.
WAVE TREND OSCILLATOR
Advanced momentum oscillator with channel-based calculations featuring smart reversal detection at extreme overbought and oversold levels. Includes directional strength confirmation and customizable sensitivity with adjustable reaction periods.
DIVERGENCE SCANNER
Detects four types of divergence automatically:
- Regular Bullish: Price making lower lows while oscillator making higher lows
- Regular Bearish: Price making higher highs while oscillator making lower highs
- Hidden Bullish: Trend continuation signals in uptrends
- Hidden Bearish: Trend continuation signals in downtrends
Automatic fractal-based detection with clear visual labels on chart.
MARKET BIAS INDICATOR
Heikin Ashi-based trend strength analysis with real-time bias calculation showing Bullish or Bearish combined with Strong or Weak conditions. Smoothed for cleaner signals and perfect for trend confirmation.
MOMENTUM SYSTEM
Proprietary momentum calculation using adaptive smoothing with growing and falling state detection. Normalized values for consistent interpretation and responsive to rapid market changes.
DYNAMIC SUPPORT AND RESISTANCE
Automatic pivot-based support and resistance level detection with adjustable left and right bar lookback. Non-repainting levels with visual clarity through color-coded lines.
LIVE INFORMATION DASHBOARD
Real-time market analysis panel displaying current trend direction, market bias based on Heikin Ashi, Wave Trend status and value, and momentum trend with state. Customizable display options with theme-adaptive colors.
VISUAL CUSTOMIZATION
FIVE PROFESSIONAL COLOR THEMES:
Pro - Modern green and red color scheme (default)
Classic - Traditional teal and red combination
Cyberpunk - Neon cyan and magenta contrast
Ocean - Blue and orange contrast
Sunset - Gold and red warmth
SIGNAL STYLES:
Labels with emoji indicators (BUY with rocket, SELL with bear, STRONG with lightning)
Arrows for clean minimal appearance
Triangles for classic approach
DISPLAY OPTIONS:
Color-coded candles following trend direction
Trend background highlighting for instant trend recognition
Optional EMA line display for detailed analysis
Adjustable transparency levels for personal preference
SMART ALERTS
Pre-configured alert conditions for all major signals:
Buy signals for standard entry opportunities
Sell signals for standard exit or short opportunities
Strong buy signals for high-confidence long entries
Strong sell signals for high-confidence short entries
Bullish divergence detection alerts
Bearish divergence detection alerts
Alert messages automatically include ticker symbol, current price, and specific signal type for quick decision making.
HOW TO USE
FOR TREND TRADERS:
Enable EMA Clouds with focus on Cloud 5 featuring 50 and 200 period moving averages. Wait for trend background color change to confirm direction. Enter on STRONG signals aligned with higher timeframe trend direction. Use support and resistance levels for strategic exits.
FOR SWING TRADERS:
Enable Wave Trend Oscillator information display. Look for oversold and overbought reversal setups. Confirm potential reversals with divergence scanner. Enter on smart reversal signals with proper risk management.
FOR SCALPERS:
Use Type B signal mode for more frequent trading signals. Enable Cloud 1 with 5 and 13 periods for quick trend confirmation. Focus on momentum growing and falling states for entry timing. Take quick entries on regular buy and sell signals.
FOR POSITION TRADERS:
Use Type A mode with higher ATR multiplier set to 3.0 or above. Enable only Cloud 5 with 50 and 200 periods for major trend confirmation. Only take STRONG signals for highest probability setups. Hold positions through minor pullbacks and noise.
RECOMMENDED SETTINGS
STOCKS ON DAILY TIMEFRAME:
Trend Period: 180
ATR Period: 155
ATR Multiplier: 2.1
Signal Mode: Type A
FOREX ON HOURLY AND 4-HOUR TIMEFRAMES:
Trend Period: 150
ATR Period: 120
ATR Multiplier: 2.5
Signal Mode: Type A
CRYPTOCURRENCY ON 15-MINUTE AND 1-HOUR TIMEFRAMES:
Trend Period: 100
ATR Period: 80
ATR Multiplier: 3.0
Signal Mode: Type B
SCALPING ON 1-MINUTE AND 5-MINUTE TIMEFRAMES:
Trend Period: 50
ATR Period: 40
ATR Multiplier: 2.0
Signal Mode: Type B
WHAT IS INCLUDED
Trend Analysis using ATR-based adaptive algorithm
Five EMA Cloud Layers for multi-timeframe confluence
Wave Trend Oscillator for momentum and reversal detection
Divergence Scanner detecting four types of divergence
Market Bias using Heikin Ashi-based trend strength
Momentum System with advanced momentum tracking
Support and Resistance Levels with automatic pivot detection
Live Dashboard showing real-time market analysis
Smart Alerts featuring six pre-configured alert types
Five Color Themes offering professional visual options
TECHNICAL DETAILS
CALCULATION METHODS:
Average True Range (ATR) for volatility adaptation
Exponential Moving Average (EMA) and Simple Moving Average (SMA) for trend smoothing
Wave Trend channel oscillator for momentum analysis
Fractal-based divergence detection algorithm
Heikin Ashi transformation for bias calculation
Logarithmic momentum calculation for precision
PERFORMANCE CHARACTERISTICS:
Optimized for maximum speed and efficiency
No repainting signals ensuring reliability
Works on all timeframes from 1 minute to monthly
Compatible with all instruments including stocks, forex, crypto, and futures
RISK DISCLAIMER
This indicator is a technical analysis tool and should not be used as the sole basis for trading decisions. Always use proper risk management and never risk more than you can afford to lose. Combine with other analysis methods and practice on demo accounts first. Past performance does not guarantee future results. Trading carries substantial risk and is not suitable for all investors.
SUPPORT AND UPDATES
Regular updates and continuous improvements
Based on proven technical analysis principles
Developed following Pine Coders best practices and standards
Clean, well-documented, and optimized code structure
WHY CHOOSE ZS MASTER VISION PRO
All-in-one solution eliminating the need for multiple indicators
Highly customizable to adapt to your specific trading style
Professional grade analysis with institutional-quality standards
Clean interface that is not cluttered or confusing
Works everywhere across all markets and all timeframes
Smart signals filtered for quality over quantity
Beautiful design featuring five professional color themes
Active development with regular improvements and updates
Transform your trading with ZS Master Vision Pro today.
Version 2.0 | Created by Zakaria Safri | Pine Script Version 5
DAMMU Swing Trading PRODammu Scalping Pro – Short Notes
1️⃣ Purpose:
Scalping and swing trading tool for 15-min and 1-min charts.
Designed for trend continuation, pullbacks, and reversals.
Works well with Heikin Ashi candles (optional).
2️⃣ Core Components:
EMAs:
Fast: EMA5-12
Medium: EMA12-36 Ribbon
Long: EMA75/89 (1-min), EMA180/200 (15-min), EMA540/633
Price Action Channel (PAC): EMA-based High, Low, Close channel.
Fractals: Regular & filtered (BW) fractals for swing recognition.
Higher Highs / Lower Highs / Higher Lows / Lower Lows (HH, LH, HL, LL).
Pivot Points: Optional display with labels.
3️⃣ Bar Coloring:
Blue: Close above PAC
Red: Close below PAC
Gray: Close inside PAC
4️⃣ Alerts:
Swing Buy/Sell arrows based on PAC breakout and EMA200 filter.
Optional “Big Arrows” mode for visibility.
Alert messages: "SWING_UP" and "SWING_DN"
5️⃣ Workflow / Usage Tips:
Set chart to 15-min (for trend) + 1-min (for entry).
Optionally enable Heikin Ashi candles.
Trade long only above EMA200, short only below EMA200.
Watch for pullbacks into EMA channels or ribbons.
Confirm trend resumption via PAC breakout & bar color change.
Use fractals and pivot points to draw trendlines and locate support/resistance.
6️⃣ Optional Filters:
Filter PAC signals with 200 EMA.
Filter fractals for “Pristine/Ideal” patterns (BW filter).
7️⃣ Visuals:
EMA ribbons, PAC fill, HH/LL squares, fractal triangles.
Pivot labels & candle numbering for patterns.
8️⃣ Notes:
No extra indicators needed except optionally SweetSpot Gold2 for major S/R levels.
Suitable for scalping pullbacks with trend confirmation.
If you want, I can make an even shorter “one-screen cheat sheet” with colors, alerts, and EMAs, perfect for real-time chart reference.
Do you want me to do that?
DAMMU Swing Trading PRODammu Scalping Pro – Short Notes
1️⃣ Purpose:
Scalping and swing trading tool for 15-min and 1-min charts.
Designed for trend continuation, pullbacks, and reversals.
Works well with Heikin Ashi candles (optional).
2️⃣ Core Components:
EMAs:
Fast: EMA5-12
Medium: EMA12-36 Ribbon
Long: EMA75/89 (1-min), EMA180/200 (15-min), EMA540/633
Price Action Channel (PAC): EMA-based High, Low, Close channel.
Fractals: Regular & filtered (BW) fractals for swing recognition.
Higher Highs / Lower Highs / Higher Lows / Lower Lows (HH, LH, HL, LL).
Pivot Points: Optional display with labels.
3️⃣ Bar Coloring:
Blue: Close above PAC
Red: Close below PAC
Gray: Close inside PAC
4️⃣ Alerts:
Swing Buy/Sell arrows based on PAC breakout and EMA200 filter.
Optional “Big Arrows” mode for visibility.
Alert messages: "SWING_UP" and "SWING_DN"
5️⃣ Workflow / Usage Tips:
Set chart to 15-min (for trend) + 1-min (for entry).
Optionally enable Heikin Ashi candles.
Trade long only above EMA200, short only below EMA200.
Watch for pullbacks into EMA channels or ribbons.
Confirm trend resumption via PAC breakout & bar color change.
Use fractals and pivot points to draw trendlines and locate support/resistance.
6️⃣ Optional Filters:
Filter PAC signals with 200 EMA.
Filter fractals for “Pristine/Ideal” patterns (BW filter).
7️⃣ Visuals:
EMA ribbons, PAC fill, HH/LL squares, fractal triangles.
Pivot labels & candle numbering for patterns.
8️⃣ Notes:
No extra indicators needed except optionally SweetSpot Gold2 for major S/R levels.
Suitable for scalping pullbacks with trend confirmation.
If you want, I can make an even shorter “one-screen cheat sheet” with colors, alerts, and EMAs, perfect for real-time charT
EMA 3 Lines✅ JP
1つのインジケーター枠内に3本のEMA(短期・中期・長期)を表示します。
初期設定では 8(青)/50(赤)/200(緑)の期間が適用されます。
設定画面から期間・ラインカラー・太さを自由にカスタマイズできます。
✅ EN
This indicator displays three EMAs (short-term, mid-term, and long-term) within a single indicator window.
By default, the EMA periods are set to 8 (blue), 50 (red), and 200 (green).
You can freely customize the EMA lengths, line colors, and line thickness from the settings panel.
Swing Breakout Strategy ver 1Overview
A multi-confirmation swing strategy that seeks trend breakouts and adds three optional confluence modules: candlestick patterns, RSI/MACD regular divergences, and simple chart patterns (double top/bottom). Built for clarity, fast testing, and togglable debug markers.
Core Logic
Trend filter: SMA(50) vs SMA(200) + price vs SMA(21).
Breakout engine: Close breaks prior N-bar high/low (lookback configurable).
Momentum: Stochastic cross (optional view), MACD cross/zone, RSI regime (>50 or <50).
Volume: Above SMA(volume) filter.
Optional Confluence Modules
Candlestick analysis (enable/disable):
Bull/Bear Engulfing, Hammer, Shooting Star, Inside Bar (bull/bear flavors).
Divergence (enable/disable):
Regular divergences on RSI and MACD histogram using confirmed pivots (HH/LH or LL/HL).
Chart patterns (enable/disable):
Double Bottom (two similar lows + neckline break).
Double Top (two similar highs + neckline break).
Tolerance and pivot width are configurable.
Entries & Exits
Entry Long: Any of (Base Breakout + Trend + Momentum + Volume) OR enabled confluences (candles / divergence / pattern).
Entry Short: Symmetric logic for downside.
Risk management: Optional ATR-based stop loss and take profit (configurable length & multipliers).
Note: If you prefer confluences to be filters (AND), change the final buySignal/sellSignal lines accordingly.
Inputs (key)
SMA lengths (21/50/200), RSI length, Stochastic lengths & smoothing, MACD (12/26/9).
Breakout lookback, Volume SMA.
ATR exits (on/off, ATR length, SL/TP multipliers).
Toggles for Candlesticks, Divergences, Patterns, plus per-module debug markers.
Plots & Markers
Plots SMA 21/50/200.
Buy/Sell arrows on chart.
Optional debug markers for each condition (global-scope safe).
Divergence/pattern markers offset to the actual pivot/neckline bars.
Good Practices
Test on multiple timeframes and instruments; tune lookbacks and ATR multipliers.
Consider using the modules as filters in trending markets to reduce whipsaws.
Always forward-test and combine with position sizing.
Disclaimer
For educational purposes only. This is not financial advice. Trading involves risk.
Version & Credits
Pine Script® v6 — Strategy.
Developed by: Mohammed Bedaiwi.
Swing Breakout Strategy — Candles + Divergences + Patterns (rev)Overview
A multi-confirmation swing strategy that seeks trend breakouts and adds three optional confluence modules: candlestick patterns, RSI/MACD regular divergences, and simple chart patterns (double top/bottom). Built for clarity, fast testing, and togglable debug markers.
Core Logic
Trend filter: SMA(50) vs SMA(200) + price vs SMA(21).
Breakout engine: Close breaks prior N-bar high/low (lookback configurable).
Momentum: Stochastic cross (optional view), MACD cross/zone, RSI regime (>50 or <50).
Volume: Above SMA(volume) filter.
Optional Confluence Modules
Candlestick analysis (enable/disable):
Bull/Bear Engulfing, Hammer, Shooting Star, Inside Bar (bull/bear flavors).
Divergence (enable/disable):
Regular divergences on RSI and MACD histogram using confirmed pivots (HH/LH or LL/HL).
Chart patterns (enable/disable):
Double Bottom (two similar lows + neckline break).
Double Top (two similar highs + neckline break).
Tolerance and pivot width are configurable.
Entries & Exits
Entry Long: Any of (Base Breakout + Trend + Momentum + Volume) OR enabled confluences (candles / divergence / pattern).
Entry Short: Symmetric logic for downside.
Risk management: Optional ATR-based stop loss and take profit (configurable length & multipliers).
Note: If you prefer confluences to be filters (AND), change the final buySignal/sellSignal lines accordingly.
Inputs (key)
SMA lengths (21/50/200), RSI length, Stochastic lengths & smoothing, MACD (12/26/9).
Breakout lookback, Volume SMA.
ATR exits (on/off, ATR length, SL/TP multipliers).
Toggles for Candlesticks, Divergences, Patterns, plus per-module debug markers.
Plots & Markers
Plots SMA 21/50/200.
Buy/Sell arrows on chart.
Optional debug markers for each condition (global-scope safe).
Divergence/pattern markers offset to the actual pivot/neckline bars.
Good Practices
Test on multiple timeframes and instruments; tune lookbacks and ATR multipliers.
Consider using the modules as filters in trending markets to reduce whipsaws.
Always forward-test and combine with position sizing.
Disclaimer
For educational purposes only. This is not financial advice. Trading involves risk.
Version & Credits
Pine Script® v6 — Strategy.
Developed by: Mohammed Bedaiwi.
Multi-Timeframe Trend Indicator with Signals═══════════════════════════════════════════════════════════════
Multi-Timeframe Trend Indicator with Signals
by Zakaria Safri
═══════════════════════════════════════════════════════════════
⚠️ IMPORTANT DISCLAIMERS:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• This indicator may REPAINT on unconfirmed bars
• Signals appear in real-time but may change or disappear
• FOR EDUCATIONAL PURPOSES ONLY - NOT FINANCIAL ADVICE
• Past performance does not guarantee future results
• Always do your own research and use proper risk management
• The Risk Management feature is VISUAL ONLY - does not execute trades
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 OVERVIEW:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator combines multiple technical analysis tools to help identify
potential trend directions and entry/exit points across different timeframes.
It uses SuperTrend, EMAs, ADX, RSI, and Keltner Channels to generate signals.
🎯 KEY FEATURES:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📍 SIGNAL TYPES:
• All Signals: Shows all SuperTrend crossovers
• Filtered Signals: Additional EMA filter for potentially higher quality signals
• Signals use barstate.isconfirmed to reduce (but not eliminate) repainting
📈 TREND ANALYSIS:
• Trend Ribbon: 8 EMAs creating a visual trend direction indicator
• Trend Cloud: EMA 150/250 cloud for long-term trend context
• Chaos Trend Line: Dynamic support/resistance trend line
• Multi-timeframe dashboard showing trend across 8 timeframes (3m to Daily)
📊 TECHNICAL INDICATORS:
• Keltner Channels: Dynamic price channels
• RSI Background: Visual overbought/oversold zones
• Candlestick Coloring: Three modes (CleanScalper/Trend Ribbon/Moving Average)
• ADX-based trend strength analysis for MTF dashboard
🎯 VISUAL TOOLS:
• Order Blocks: Supply/demand zones (optional)
• Channel Breakouts: Pivot-based support/resistance levels
• Reversal Signals: RSI-based potential reversal indicators
• Visual TP/SL Lines: For reference only - does NOT execute trades
📊 DASHBOARD:
• Real-time multi-timeframe trend analysis
• Volatility indicator (Very Low to Very High)
• Current RSI value with color coding
• Customizable position and size
⚙️ SETTINGS:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MAIN SETTINGS:
• Sensitivity: Controls signal frequency (lower = more signals)
• Signal Type: Choose between All Signals or Filtered Signals
• Factor: ATR multiplier for SuperTrend calculation
TREND SETTINGS:
• Toggle Trend Ribbon, Trend Cloud, Chaos Trend, Order Blocks
• Moving Average: Customizable EMA (default 200)
ADVANCED SETTINGS:
• Candlestick coloring with 3 different modes
• Overbought/Oversold background coloring
• Channel breakout levels
• Show/hide signals
RISK MANAGEMENT (VISUAL ONLY):
• ⚠️ Does NOT execute trades automatically
• Shows potential Take Profit levels (TP1, TP2, TP3)
• Shows potential Stop Loss level
• Adjustable TP strength multiplier
• For educational reference only
📖 HOW TO USE:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. SIGNAL INTERPRETATION:
• "Buy" signals appear below candles when conditions are met
• "Sell" signals appear above candles when conditions are met
• Wait for bar close confirmation to avoid repainting
• Use multiple timeframes for confluence
2. TREND CONFIRMATION:
• Check the multi-timeframe dashboard for trend alignment
• Use Trend Ribbon for visual trend direction
• Trend Cloud shows longer-term market bias
• Green candles = potential uptrend, Red = potential downtrend
3. ENTRY/EXIT STRATEGY:
• Combine signals with other analysis tools
• Check volatility status before entering trades
• Use support/resistance levels for confirmation
• The visual TP/SL lines are for planning only
4. RISK MANAGEMENT:
• Always use stop losses (indicator shows suggested levels only)
• Position size according to your risk tolerance
• Never risk more than you can afford to lose
• The indicator does NOT manage trades automatically
⚠️ LIMITATIONS & RISKS:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
REPAINTING:
• Signals may appear and disappear on unconfirmed bars
• Always wait for bar close before taking action
• Historical performance may look better than real-time results
FALSE SIGNALS:
• No indicator is 100% accurate
• Signals can fail in ranging/choppy markets
• Use additional confirmation methods
• Consider market context and fundamentals
VISUAL TP/SL:
• Lines are for reference/planning only
• Does NOT place or manage actual trades
• You must manually set your own stop losses
• TP levels are calculated estimates, not guarantees
🔧 TECHNICAL DETAILS:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Version: Pine Script v5
• Overlay: Yes (displays on main chart)
• Anti-repaint measures: Uses barstate.isconfirmed on signals
• Security function: Uses lookahead protection for higher timeframes
• Dynamic requests: Enabled for MTF analysis
• Max labels: 500
📚 COMPONENTS EXPLAINED:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SUPERTREND:
• Core signal generator using ATR-based bands
• Crossovers indicate potential trend changes
• Adjustable via Sensitivity and Factor inputs
EMA FILTER:
• Uses 200 EMA as trend filter (customizable)
• Filtered signals require price above/below EMA
• Helps reduce false signals in ranging markets
ADX TREND QUALITY:
• Measures trend strength across timeframes
• Used in multi-timeframe dashboard
• Shows Bullish/Bearish/Neutral states
KELTNER CHANNELS:
• Multiple bands showing volatility zones
• Color-coded based on RSI levels
• Helps identify overbought/oversold conditions
ORDER BLOCKS:
• Identifies supply/demand zones
• Based on price structure and pivots
• Can extend to the right for projection
💡 BEST PRACTICES:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Use multiple timeframe confirmation
✓ Wait for bar close before acting on signals
✓ Combine with support/resistance analysis
✓ Check overall market conditions
✓ Use proper risk management (1-2% per trade)
✓ Backtest on your specific market/timeframe
✓ Paper trade before using real money
✓ Keep a trading journal
✓ Adjust settings to your trading style
✗ Don't rely solely on this indicator
✗ Don't ignore risk management
✗ Don't trade on unconfirmed signals
✗ Don't overtrade every signal
✗ Don't use without understanding how it works
✗ Don't expect the TP/SL feature to trade for you
📞 SUPPORT & UPDATES:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Creator: Zakaria Safri
Version: 4.3 (Compliance Update)
For questions or feedback, please use TradingView's comment section.
⚖️ FINAL DISCLAIMER:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is provided for EDUCATIONAL and INFORMATIONAL purposes only.
It is NOT financial advice, investment advice, or a recommendation to buy/sell.
Trading involves substantial risk of loss. Past performance, whether actual or
indicated by historical tests of strategies, is not indicative of future results.
The creator assumes NO responsibility for your trading results. You are solely
responsible for your own investment decisions and due diligence.
Always consult with a qualified financial advisor before making investment decisions.
By using this indicator, you acknowledge and accept these risks and limitations.
Ripster: DTR/ATR + SMA Div + RVOL🧭 Overview
The indicator combines three major analytical tools into one TradingView Pine v6 script — designed for clean, at-a-glance insight into range, divergence, and volume activity.
It shows:
DTR vs ATR Table – current Daily True Range compared to Average True Range.
SMA Price Divergence + EMA Signal – a histogram with color-coded momentum bands.
RVOL Table + Candle Coloring + Change Labels – relative-volume analysis with visual cues on the chart.
Short title: ripcombo
Runs on chart overlay (no separate pane).
📊 1. DTR vs ATR Table
Compares today’s price range (High-Low) to the average true range over a selectable length.
Supports multiple smoothing methods: EMA, RMA, SMA, WMA.
Table position and text size are configurable.
Color logic:
🟢 ≤ 70 % of ATR → low volatility
🟡 70–90 % → average
🔴 ≥ 90 % → expanded range
📈 2. SMA Divergence + EMA Signal
Computes fast (14 SMA) and slow (30 SMA) divergences of price.
Plots two histograms plus an EMA signal line of the slow divergence.
Visuals:
Columns shaded by transparency for clarity.
Rising EMA → lime line (up momentum).
Falling EMA → red line (down momentum).
Optional upper/lower bands and zero line provide quick overbought/oversold zones.
🔥 3. RVOL (Relative Volume)
Adds powerful volume-based context:
a. Table Display
Shows:
Candle Volume
RVOL (Now)
RVOL (Prev)
Δ RVOL (change Now − Prev)
Colors:
🔴 > 200 % (very high volume)
🟠 100–200 % (high volume)
🟡 < 100 % (normal/low volume)
Δ column is green ▲ for increase, red ▼ for decrease.
b. Candle Coloring (optional)
Colors price candles themselves by current RVOL threshold so high-volume candles visually stand out.
c. Last-Bar Label (optional)
Prints a compact label on the latest candle showing:
RVOL: ### % Δ: ▲/▼## %
so you can instantly see the current volume strength and how it changed from the previous bar.
⚙️ User Settings
All major elements are toggle-controlled:
Enable/disable ATR, Divergence, or RVOL sections.
Choose table positions (top/middle/bottom × left/center/right).
Select text sizes, smoothing types, color modes, and visual transparency.
Candle coloring + label visibility are optional.
🧠 At a Glance
Component Purpose Key Visuals
DTR vs ATR Measures volatility expansion One-cell colored table
SMA Divergence Detects price momentum shifts Columns + EMA line + bands
RVOL Analysis Highlights unusual trading volume Colored table + Δ column + candle colors + label
✅ Result
You get a single on-chart tool that:
Quantifies volatility, momentum, and volume context together.
Highlights strong activity days (ATR & RVOL) in color.
Shows whether current candle’s volume is rising or falling vs the previous.
Perfect for spotting breakouts, reversals, or exhaustion moves without switching indicators.
Custom MTF EMA CloudsVisualize market structure and trend alignment across multiple timeframes with six layered EMA clouds — from short-term momentum to macro trend anchors.
Each pair of EMAs forms a dynamic cloud that adapts to your selected timeframe.
Colors, lengths, and visibility are fully customizable, allowing you to tailor the setup for any trading style.
⚙️ Default Configuration
EMA Short Long Purpose
1 8 13 🔸 Intraday momentum cloud (scalping layer)
2 21 24 🟩 Short-term trend confirmation
3 50 55 🔵 Medium-term swing structure
4 120 144 🔴 Long-term support/resistance band
5 200 238 🟠 Institutional trend foundation
6 400 460 🟣 Macro directional anchor
🧩 Features
✅ Up to 6 independent EMA clouds
✅ Fully customizable short & long lengths
✅ Individual line and cloud colors
✅ Toggle each layer on/off
✅ Works with any timeframe via the Resolution input
✅ Automatic cloud transparency for better chart clarity
📈 How to Use
Use EMA 1–2 (8/13, 21/24) for momentum shifts and intraday entries.
Use EMA 3–4 (50/55, 120/144) for swing confirmation and trend continuation.
Use EMA 5–6 (200/238, 400/460) as long-term anchors to stay aligned with institutional flow.
Watch for crossovers or price breaking in/out of clouds — they often precede strong directional moves.