Indicadores e estratégias
Dual ORB (EU/US) + VWAP + Filters (Retest/EMA/ATR/RVOL)Release Notes — Dual ORB (EU & US) + Color VWAP
Summary
This script plots two configurable Opening Range Breakouts (ORB)—one for the European open and one for the US open—along with a color-adaptive VWAP (green above price, red below). It’s designed for M5/M15 intraday trading on indices (e.g., US100) and metals (e.g., XAUUSD), with clean visuals, optional history retention, and simple breakout cues.
New & Key Features
Dual ORB Sessions
EU ORB (default 07:00) and US ORB (default 14:00).
Each session’s start time and duration are configurable (15/30/45/60 min).
Automatic OR box that tracks the session high/low and freezes at the end of the window.
Configurable Time Zone
Choose a specific UTC offset or an IANA time zone (e.g., Europe/Paris, America/New_York) for precise session timing.
“Exchange” option mirrors the chart’s exchange time when available.
Targets (1× Range by default)
First upside/downside target plotted as a step line once the OR closes (based on a % of the OR width).
Separate % settings per session (EU/US).
Breakout Signals
Optional ▲ / ▼ markers when price crosses ORH/ORL after the OR window closes.
Adjustable signal size and colors.
Color-Adaptive VWAP
VWAP plotted for the whole session; green when price ≥ VWAP, red when price < VWAP.
Single slider for VWAP line thickness and a toggle to show/hide.
Clean Visuals & History Control
Option to preserve historical boxes/lines/labels, or auto-clean previous sessions when a new OR starts.
Per-session colors for the OR lines, fills, labels.
Configuration
General
Show History: Keep OR drawings from prior sessions or clear them automatically.
Time Zone: Pick Exchange or a specific UTC/IANA zone.
ORB Europe / ORB US
Start Time (HH:MM)
Duration: 15 / 30 / 45 / 60 minutes.
Target %: Distance for the first target as a % of the OR range.
Colors: Line and fill per session.
Signals
Enable Breakout Signals
Up/Down Colors
Text Size: Tiny → Huge.
VWAP
Show/Hide
Line Width
Visual Elements
OR Box: Semi-transparent fill during the window; locks at end.
OR Levels: ORH / ORL solid lines; ORM dashed.
Target Lines: Step lines above/below after OR closes.
Signal Labels: ▲ at ORL (bull break), ▼ at ORH (bear break).
VWAP Line: Turns green/red with price relation.
Alerts (baseline)
Signal labels visually indicate ORH/ORL breaks. (You can add alertconditions to match these crossings if you want audible/Push alerts.)
Performance & Compatibility
Pine v6.
Intraday only (< 1D). The script aborts on daily or higher timeframes to avoid misleading OR timing.
Efficient drawing & clean-up to reduce line/label count.
Known Limitations
The script relies on bar timestamps; exact alignment depends on chart data and your chosen time zone
If your broker/exchange applies session gaps or custom trading hours, verify that your time zone and session align with the instrument.
Suggested Workflow
Pick your time zone.
Set EU/US start times and durations to match your plan (e.g., EU 07:00 30m, US 14:00 30m).
Choose whether to keep history.
Toggle signals and VWAP as desired.
Use ORH/ORL and the first target as decision levels; combine with your filter (trend MA, RSI, market structure, etc.).
Changelog (high-level)
v1.
Added dual configurable ORB (EU & US).
Added per-session targets (percent of OR width).
Added color-adaptive VWAP + width control.
Added breakout signals with customizable size and colors.
Added time zone selector (Exchange, UTC, IANA).
Added history on/off option and improved object lifecycle (clean-up vs persist).
Ported to Pine v6 and hardened against repainting artifacts at session edges.
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.
Cumulative Volume Delta Divergence Periodic EMACumulative Volume Delta Divergence Periodic EMA
extended indicator
Chanlun - Strokes & Central ZonesChanlun Indicator - Strokes and Central Zones
This indicator implements Chan lun's core concepts:
Bi (Stroke): Basic price movement units formed by local highs and lows
Zhongshu (Central Zone): Overlapping areas formed by at least 3 strokes
Extension Lines: Visual guides for the latest central zone boundaries
Key Features:
Automatic stroke identification based on local extremes
Central zone detection with customizable colors
Extension lines for latest central zone (upper/lower bounds)
Separate colors for strokes within central zones
Price labels on the axis for zone boundaries
Settings:
Max Bars: Maximum K-lines to analyze (default: 4900)
Lookback Period: Period for finding local extremes (default: 5)
Min Gap Bars: Minimum bars between strokes (default: 4)
Customizable colors for strokes, zones, and extension lines
Momentum Flow Build w/ FVG v2Good day.
The Momentum Flow Build w/ FVG v2 indicator
shows the previous session levels of Asia and London,
and the 5 min NY open levels (for 15 min go to 15 min chart).
The indicator also shows the FVGs.
The idea is that if price reaches a key level, we then
watch the level for whether price respects FVGs with a
retracement and engulfing candle at the FVG, or whether
price inverts the FVG (IFVG).
Cool. Be encouraged. Peace
Nadaraya-Watson Envelope [Dynamic Adaptive Working]LuxAlgo'a kernel channel-based, modified for dynamic stochastic bandwidth adaptation.
Nadaraya-Watson Envelope , "NWE Adaptive (Working)"
ATR %ATR % Oscillator
A simple and effective Average True Range (ATR) indicator displayed as a percentage of the current price in a separate panel.
FEATURES:
• ATR displayed as percentage of current price for easy cross-asset comparison
• EMA smoothing line using the same period as ATR
• Configurable ATR period (default: 20)
• Clean visualization with zero reference line
HOW IT WORKS:
The indicator calculates ATR and converts it to a percentage: (ATR / Close) × 100
This normalization allows you to:
- Compare volatility across different instruments regardless of price
- Identify high and low volatility periods
- Use the EMA line to spot volatility trends
PARAMETERS:
ATR Period - The lookback period for ATR calculation (default: 20)
Timeframe - Choose any timeframe for ATR calculation independently from the chart timeframe (default: chart timeframe)
Relative Valuation OscillatorRelative Valuation Oscillator (RVO) Description
The Valuation_OTC.pine script is a Relative Valuation Oscillator for TradingView that compares the current asset against a reference asset (like Bitcoin, S&P 500, or Gold) to determine if it's relatively overvalued or undervalued.
Key Features:
1. Multiple Calculation Methods:
Simple Ratio - Compares price ratio deviation from average
Percentage Difference - Direct percentage comparison between assets
Ratio Z-Score - Statistical measure (standard deviations from mean)
Rate of Change Comparison - Compares momentum/performance
Normalized Ratio - 0-100 scale centered at zero
2. Customizable Settings:
Reference asset selection (default: BTC/USDT)
Adjustable lookback period (10-500 bars)
Optional smoothing with configurable period
Overbought/oversold level thresholds (default: ±1.5)
3. Trading Signals:
Overvalued - Oscillator above overbought level (red zone)
Undervalued - Oscillator below oversold level (green zone)
Neutral - Between thresholds
Crossover alerts for key levels
Divergence detection (bullish/bearish)
4. Visual Components:
Color-coded oscillator line (green when positive, red when negative)
Optional signal line for additional smoothing
Background shading for valuation zones
Information table showing current metrics and status
Shape markers for crossovers and divergences
5. Alert Conditions:
Overvalued/undervalued alerts
Zero-line crossovers
Divergence signals
This indicator is useful for pairs trading, relative strength analysis, and identifying when an asset is trading at extremes relative to a benchmark asset.
Supernova IndicatorTim Sykes Supernova Indicator. This indicator will look for spikes in trading looking for a supernova.
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.
ICT Macro Time WindowsICT Macro Time Windows - Master institutional market timing with automated 'Macro' trading session tracking.
What are 'Macros'?
In ICT terminology, 'Macros' refer to the key institutional trading windows throughout the day where major banks and liquidity providers are most active. These specific time frames see heightened volatility, liquidity, and strategic positioning.
Perfect Timing Automation:
• 8 Critical Macro Sessions:
London 1: 02:33-03:00 EST
London 2: 04:03-04:30 EST
NY AM1: 08:50-09:10 EST
NY AM2: 09:50-10:10 EST
NY AM3: 10:50-11:10 EST
Lunch: 11:50-12:10 EST
PM: 13:10-13:40 EST
Close: 15:15-15:45 EST
• Fully customizable time zones and session times
• Real-time session detection with visual zones & labels
• Automatic High/Low range tracking within each window
• Boxes, lines, and labels for clear visual reference
• Never miss optimal entry/exit timing again
Trade when institutions trade - stop guessing and start timing your setups with precision during these key liquidity windows! All session times are easily adjustable in settings to match your preferred trading hours.
Perfect for Forex, Futures, and Index traders following ICT concepts and institutional flow analysis.
MarketMonkey-Indicator-Set-1 - GMMA open 🧠 MarketMonkey-Indicator-Set-1 — GMMA Open
GMMA (Guppy Multiple Moving Average) Toolkit for Trend Clarity & Timing
The MarketMonkey GMMA Open indicators brings a clean, high-performance visual of trend strength and direction using multiple exponential moving averages (EMAs) across short- and long-term time frames.
Designed for traders who want to see momentum shifts and market transitions as they happen, this version overlays directly on the price chart for quick and confident reads.
🔍 How It Works
* Short-term EMAs (3–15) track trader sentiment and momentum.
* Long-term EMAs (30–60) show investor trend commitment.
* The indicator dynamically colors the long-term EMAs:
* 🔵 Blue : Upward momentum
* 🔴 Red : Downward momentum
When the short-term group expands above the long-term group, it signals strength and potential continuation. Tightening or compression may warn of pauses or reversals.
💡 Features
* 12 adjustable EMA periods (customize your GMMA spacing)
* Automatic color shifts for trend clarity
* Live price flag for easy reference
* Compact ticker/date display in the top-right corner
* Minimalist, overlay-based design — no clutter, just clarity
📈 Best Used For
* Spotting early trend changes
* Confirming continuation or breakout setups
* Identifying compression zones before reversals
* Overlaying on ASX, S&P, FX, Gold, or Crypto charts
🔔 Part of the MarketMonkey Indicator Set series — tools built for real-world trend recognition and momentum trading.
MEGA_Long/Short📊 MTF Entry Signal (with L/S Labels)
A clean and compact multi-timeframe entry point indicator for TradingView. Shows clear entry signals for LONG and SHORT trades directly on the chart, with markers and letters for quick decision-making.
🎯 Key Features:
Dual timeframe analysis: Choose main and fast timeframes (default: 30m and 4h).
Entry signals:
🟢 Green triangle + "L" — LONG entry (Buy signal)
🔴 Red triangle + "S" — SHORT entry (Sell signal)
Signal only at true trend reversals – No excessive markers or noise.
Markers move dynamically with price – Always match the candlestick and chart movement.
⚙️ Signal Criteria:
LONG: EMA9 > EMA21 and MACD > 0, confirmed on both selected timeframes.
SHORT: EMA9 < EMA21 and MACD < 0, confirmed on both selected timeframes.
Entry marker appears only when signal direction changes.
🔧 Settings:
Manually select fast/main timeframes in the indicator menu (recommended: 30m + 4h).
Marker size set to minimal (size=tiny) for maximum clarity.
📈 Usage:
Designed for clean, non-overloaded charts.
Works perfectly for trend trading, reversals, and entry confirmation.
Suitable for scalping, swing trading, and crypto/futures analysis.
Complete Indicator Analysis By: arisutikno📊 3 MAIN COMPONENTS
1. EMA (Exponential Moving Average)
Function: Detect price trends and momentum
Periods: 8, 21, 50, 100, 200 + SMA 200
Purpose:
EMA 8-21: Short-term trend
EMA 50-100: Medium-term trend
EMA 200: Long-term trend
2. FIBONACCI RETRACEMENT & EXTENSION
Function: Identify support/resistance levels and profit targets
Retracement Levels: 0.5, 0.618, 0.786 (pullback areas)
Extension Levels: 1.272, 1.618, 2.0 (profit targets)
Purpose: Determine trading entry and exit points
3. DYNAMIC SUPPORT & RESISTANCE
Function: Detect important price levels
Based on: High/Low within specific period
Purpose: Identify potential price reversal areas
⚙️ ADDITIONAL FEATURES
Individual Toggles: Enable/disable each component
Color Customization: Adjust colors according to preference
Clean Visualization: Neat lines and labels, no clutter
MESA Adaptive Ehlers Flow | AlphaNattMESA Adaptive Ehlers Flow | AlphaNatt
An advanced adaptive indicator based on John Ehlers' MESA (Maximum Entropy Spectrum Analysis) algorithm that automatically adjusts to market cycles in real-time, providing superior trend identification with minimal lag across all market conditions.
🎯 What Makes This Indicator Revolutionary?
Unlike traditional moving averages with fixed parameters, this indicator uses Hilbert Transform mathematics to detect the dominant market cycle and adapts its responsiveness accordingly:
Automatically detects market cycles using advanced signal processing
MAMA (MESA Adaptive Moving Average) adapts from fast to slow based on cycle phase
FAMA (Following Adaptive Moving Average) provides confirmation signals
Dynamic volatility bands that expand and contract with cycle detection
Zero manual optimization required - the indicator tunes itself
📊 Core Components
1. MESA Adaptive Moving Average (MAMA)
The MAMA is the crown jewel of adaptive indicators. It uses the Hilbert Transform to measure the market's dominant cycle and adjusts its smoothing factor in real-time:
During trending phases: Responds quickly to capture moves
During choppy phases: Smooths heavily to filter noise
Transition is automatic and seamless based on price action
Parameters:
Fast Limit: Maximum responsiveness (default: 0.5) - how fast the indicator can adapt
Slow Limit: Minimum responsiveness (default: 0.05) - maximum smoothing during consolidation
2. Following Adaptive Moving Average (FAMA)
The FAMA is a slower version of MAMA that follows the primary signal. The relationship between MAMA and FAMA provides powerful trend confirmation:
MAMA > FAMA: Bullish trend in progress
MAMA < FAMA: Bearish trend in progress
Crossovers signal potential trend changes
3. Hilbert Transform Cycle Detection
The indicator employs sophisticated DSP (Digital Signal Processing) techniques:
Detects the dominant cycle period (1.5 to 50 bars)
Measures phase relationships in the price data
Calculates adaptive alpha values based on cycle dynamics
Continuously updates as market character changes
⚡ Key Features
Adaptive Alpha Calculation
The indicator's "intelligence" comes from its adaptive alpha:
Alpha dynamically adjusts between Fast Limit and Slow Limit based on the rate of phase change in the market cycle. Rapid phase changes trigger faster adaptation, while stable cycles maintain smoother response.
Dynamic Volatility Bands
Unlike static bands, these adapt to both ATR volatility AND the current cycle state:
Bands widen when the indicator detects fast adaptation (trending)
Bands narrow during slow adaptation (consolidation)
Band Multiplier controls overall width (default: 1.5)
Provides context-aware support and resistance
Intelligent Color Coding
Cyan: Bullish regime (MAMA > FAMA and price > MAMA)
Magenta: Bearish regime (MAMA < FAMA and price < MAMA)
Gray: Neutral/transitional state
📈 Trading Strategies
Trend Following Strategy
The MESA indicator excels at identifying and riding strong trends while automatically reducing sensitivity during choppy periods.
Entry Signals:
Long: MAMA crosses above FAMA with price closing above MAMA
Short: MAMA crosses below FAMA with price closing below MAMA
Exit/Management:
Exit longs when MAMA crosses below FAMA
Exit shorts when MAMA crosses above FAMA
Use dynamic bands as trailing stop references
Mean Reversion Strategy
When price extends beyond the dynamic bands during established trends, look for bounces back toward the MAMA line.
Setup Conditions:
Strong trend confirmed by MAMA/FAMA alignment
Price touches or exceeds outer band
Enter on first sign of reversal toward MAMA
Target: Return to MAMA line or opposite band
Cycle-Based Swing Trading
The indicator's cycle detection makes it ideal for swing trading:
Enter on MAMA/FAMA crossovers
Hold through the detected cycle period
Exit on counter-crossover or band extremes
Works exceptionally well on 4H to Daily timeframes
🔬 Technical Background
The Hilbert Transform
The Hilbert Transform is a mathematical operation used in signal processing to extract instantaneous phase and frequency information from a signal. In trading applications:
Separates trend from cycle components
Identifies the dominant market cycle without curve-fitting
Provides leading indicators of trend changes
MESA Algorithm Components
Smoothing: 4-bar weighted moving average for noise reduction
Detrending: Removes linear price trend to isolate cycles
InPhase & Quadrature: Orthogonal components for phase measurement
Homodyne Discriminator: Calculates instantaneous period
Adaptive Alpha: Converts period to smoothing factor
MAMA/FAMA: Final adaptive moving averages
⚙️ Optimization Guide
Fast Limit (0.1 - 0.9)
Higher values (0.5-0.9): More responsive, better for volatile markets and lower timeframes
Lower values (0.1-0.3): Smoother response, better for stable markets and higher timeframes
Default 0.5: Balanced for most applications
Slow Limit (0.01 - 0.1)
Higher values (0.05-0.1): Less smoothing during consolidation, more signals
Lower values (0.01-0.03): Heavy smoothing during chop, fewer but cleaner signals
Default 0.05: Good noise filtering while maintaining responsiveness
Band Multiplier (0.5 - 3.0)
Adjust based on instrument volatility
Backtest to find optimal value for your specific market
1.5 works well for most forex and equity indices
Consider higher values (2.0-2.5) for cryptocurrencies
🎨 Visual Interpretation
The gradient visualization shows probability zones around the MESA line:
MESA line: The adaptive trend center
Band expansion: Indicates strong cycle detection and trending
Band contraction: Indicates consolidation or ranging market
Color intensity: Shows confidence in trend direction
💡 Best Practices
Let it adapt: Give the indicator 50+ bars to properly calibrate to the market
Combine timeframes: Use higher timeframe MESA for trend bias, lower for entries
Respect the bands: Price rarely stays outside bands for extended periods
Watch for compression: Narrow bands often precede explosive moves
Volume confirmation: Combine with volume for higher probability setups
📊 Optimal Timeframes
15m - 1H: Day trading with Fast Limit 0.6-0.8
4H - Daily: Swing trading with Fast Limit 0.4-0.6 (recommended)
Weekly: Position trading with Fast Limit 0.2-0.4
⚠️ Important Considerations
The indicator needs time to "learn" the market - avoid trading the first 50 bars after applying
Extreme gap events can temporarily disrupt cycle calculations
Works best in markets with detectable cyclical behavior
Less effective during news events or extreme volatility spikes
Consider the detected cycle period for position holding times
🔍 What Makes MESA Superior?
Compared to traditional indicators:
vs. Fixed MAs: Automatically adjusts to market conditions instead of using one-size-fits-all parameters
vs. Other Adaptive MAs: Uses true DSP mathematics rather than simple volatility adjustments
vs. Manual Optimization: Continuously re-optimizes itself in real-time
vs. Lagging Indicators: Hilbert Transform provides earlier trend change detection
🎓 Understanding Adaptation
The magic of MESA is that it solves the eternal dilemma of technical analysis: be fast and get whipsawed in chop, or be smooth and miss the early move. MESA does both by detecting when to be fast and when to be smooth.
Adaptation in Action:
Strong trend starts → MESA quickly detects phase change → Fast Limit kicks in → Early entry
Trend continues → Phase stabilizes → MESA maintains moderate speed → Smooth ride
Consolidation begins → Phase changes slow → Slow Limit engages → Whipsaw avoidance
🚀 Advanced Applications
Multi-timeframe confluence: Use MESA on 3 timeframes for high-probability setups
Divergence detection: Watch for MAMA/price divergences at band extremes
Cycle period analysis: The internal period calculation can guide position duration
Band squeeze trading: Narrow bands + MAMA/FAMA cross = high-probability breakout
Created by AlphaNatt - Based on John Ehlers' MESA research. For educational purposes. Always practice proper risk management. Not financial advice. Always DYOR.
[LTS] Marubozu Candle StrategyOVERVIEW
The Marubozu Candle Strategy identifies and trades wickless candles (Marubozu patterns) with dynamic take-profit and stop-loss levels based on market volatility. This indicator combines traditional Japanese candlestick pattern recognition with modern volatility-adjusted risk management and includes a comprehensive performance tracking dashboard.
A Marubozu candle is a powerful continuation pattern characterized by the complete absence of wicks on one side, indicating strong directional momentum. This strategy specifically detects:
- Bullish Marubozu: Close > Open AND Low = Open (no lower wick)
- Bearish Marubozu: Close < Open AND High = Open (no upper wick)
When price returns to test these levels, the indicator generates trading signals with predefined risk-reward parameters.
CORE METHODOLOGY
Detection Logic:
The script scans each bar for Marubozu formations using precise price comparisons. When a wickless candle appears, a horizontal line extends from the opening price, marking it as a potential support (bullish) or resistance (bearish) level. These levels remain active until price touches them or until the maximum line limit is reached.
EMA Filter (Optional):
An exponential moving average filter enhances signal quality by requiring proper trend alignment. For bullish signals, price must be above the EMA when touching the level. For bearish signals, price must be below the EMA. This filter reduces counter-trend trades and improves win rates in trending markets. Users can disable this filter for range-bound conditions.
Dynamic Risk Management:
The strategy employs ATR-based (Average True Range) position sizing rather than fixed point values. This approach adapts to market volatility automatically:
- In low volatility: Tighter stops and targets
- In high volatility: Wider stops and targets proportional to market movement
Default settings use a 2:1 reward-to-risk ratio (1x ATR for take-profit, 0.5x ATR for stop-loss), but users can adjust these multipliers to match their trading style.
HOW IT WORKS
Step 1 - Pattern Detection:
On each bar, the indicator evaluates whether the candle qualifies as a Marubozu by comparing the high, low, open, and close prices. When detected, the opening price becomes the key level.
Step 2 - Level Management:
Horizontal lines extend from each Marubozu's opening price. The indicator maintains two separate arrays: one for unbroken levels (actively extending) and one for broken levels (historical reference). Users can configure how many of each type to display, preventing chart clutter while maintaining relevant context.
Step 3 - Signal Generation:
When price returns to touch a Marubozu level, the indicator evaluates the EMA filter condition. If the filter passes (or is disabled), the script draws TP/SL boxes showing the expected profit and loss zones based on current ATR values.
Step 4 - Trade Tracking:
Each valid signal enters the tracking system, which monitors subsequent price action to determine outcomes. The script identifies whether the take-profit or stop-loss was hit first (discarding trades where both trigger on the same candle to avoid ambiguous results).
PERFORMANCE DASHBOARD
The integrated dashboard provides real-time strategy analytics to automatically convert results to dollar values for any instrument:
Tracked Metrics:
- Total Trades: Complete count of closed positions
- Wins/Losses: Individual counts with color coding
- Win Rate: Success percentage with dynamic color (green >= 50%, red < 50%)
- Total P&L: Cumulative profit/loss in dollars
- Avg Win: Mean dollar amount per winning trade
- Avg Loss: Mean dollar amount per losing trade
NOTE: The dollar values shown in the dashboard are for trading only a single share/contract/etc. You will need to manually multiply those numbers by the amount of shares/contracts you are trading to get a true value.
The dollar conversion works automatically across all markets:
- Futures contracts (ES, NQ, CL, etc.) use their contract specifications
- Forex pairs use standard lot calculations
- Stocks and crypto use their respective point values
This eliminates manual calculation and provides immediate performance feedback in meaningful currency terms.
CUSTOMIZATION OPTIONS
ATR Settings:
- ATR Period: Lookback length for volatility calculation (default: 14)
- TP Multiplier: Take-profit distance as multiple of ATR (default: 3.0)
- SL Multiplier: Stop-loss distance as multiple of ATR (default: 1.5)
EMA Settings:
- EMA Length: Period for trend filter calculation (default: 9)
- Use EMA Filter: Toggle trend confirmation requirement (default: enabled)
Visual Settings:
- Bullish Color: Color for long signals and wins (default: green)
- Bearish Color: Color for short signals and losses (default: red)
- EMA Color: Color for trend filter line (default: orange)
- Line Width: Thickness of Marubozu level lines (1-5, default: 2)
- EMA Width: Thickness of EMA line (1-5, default: 2)
Line Management:
- Max Unbroken Lines: Limit for active extending lines (default: 10)
- Max Broken Lines: Limit for historical touched lines (default: 5)
Dashboard Settings:
- Show Dashboard: Toggle performance display on/off
- Dashboard Position: Corner placement (4 options)
- Dashboard Size: Text size selection (Tiny/Small/Normal/Large)
HOW TO USE
1. Add the indicator to your chart
2. Adjust ATR multipliers based on your risk tolerance (higher values = more conservative)
3. Configure the EMA filter based on market conditions (enable for trending, disable for ranging)
4. Set line limits to match your visual preference and chart timeframe
5. Monitor the dashboard to track strategy performance in real-time
6. Use the TP/SL boxes as reference levels for manual trades or automation
Best Practices:
- Enable EMA filter in strongly trending markets
- Disable EMA filter if you want more trade signals but at lower quality
- Increase ATR multipliers in highly volatile markets
- Decrease ATR multipliers for tighter, more frequent trades
- Review avg win/loss ratio to ensure positive expectancy
UNIQUE FEATURES
Unlike basic Marubozu detectors, this strategy provides:
1. Automatic level tracking with memory management
2. Volatility-adjusted risk parameters instead of fixed values
3. Optional trend confirmation via EMA filter
4. Real-time performance analytics with automatic dollar conversion
5. Separate tracking of wins/losses with individual averages
6. Configurable visual display to prevent chart clutter
7. Complete transparency with all logic visible in open-source code
Relative Momentum Rotation [CHE] Relative Momentum Rotation — Ranks assets by multi-horizon momentum for guided rotational selection with regime overlay
Summary
This indicator evaluates a universe of assets using a blended momentum measure across three time horizons, then ranks them to highlight top performers for potential portfolio rotation. It incorporates a regime filter to contextualize signals, tinting the background to indicate favorable or unfavorable market conditions and labeling transitions for awareness. By focusing on relative strength within a selectable universe, it helps identify leaders without relying on absolute thresholds, reducing noise from isolated trends and promoting disciplined asset switching.
Motivation: Why this design?
Traders often struggle with momentum signals that perform unevenly across market phases, such as overreacting in volatile periods or lagging in steady uptrends, leading to suboptimal rotations in multi-asset portfolios. The core idea of relative momentum rotation addresses this by comparing assets head-to-head within a defined group, blending short- and long-term changes to capture sustained strength while a regime overlay adds a macro layer to avoid fighting broader trends. This setup prioritizes peer-relative outperformance over standalone measures, aiding consistent selection in rotational strategies.
What’s different vs. standard approaches?
- Reference baseline: Traditional rate-of-change indicators track absolute price shifts over a single window, which can generate whipsaws in sideways markets or miss cross-asset opportunities.
- Architecture differences:
- Blends three distinct horizons into one composite score for a fuller momentum picture, rather than isolating one period.
- Applies ranking across a customizable universe (e.g., crypto or tech stocks) to emphasize relatives, not absolutes.
- Integrates a simple regime check via moving average crossover on a reference symbol, gating selections without overcomplicating the core logic.
- Outputs a dynamic table for visual ranking, plus subtle visual cues like background tints, instead of cluttered plots.
- Practical effect: Charts show clearer hierarchy among assets, with regime tints providing at-a-glance context—top ranks stand out more reliably in bull regimes, helping traders focus rotations without constant recalibration.
How it works (technical)
The indicator starts by assembling a list of symbols from the selected universe, including only those marked as active to keep the group focused. For each symbol, it gathers change rates over three specified horizons on a higher timeframe, blends them using user-defined weights (automatically normalized if they do not sum to one), and computes a single composite score. Scores are then ranked to select the top performers up to a set number, forming a rotation candidate list.
To add context, a regime state is determined by comparing the reference symbol's price to its moving average on daily bars—above signals a positive environment, below a negative one, with an option to invert this logic. The current chart's symbol is checked against the top list for inclusion status. All higher-timeframe data pulls are set to avoid lookahead bias, though updates may shift slightly until bars close. Persistent variables track the table state and prior regime to handle redraws efficiently, ensuring the display rebuilds only when the selection count changes.
Parameter Guide
Universe — Switches between predefined crypto or US-tech symbol sets for ranking peers. Default: Crypto. Trade-offs/Tips: Crypto for volatile assets; US-Tech for equities—match to your portfolio to avoid mismatched volatility.
Include Symbol 1–12 — Toggles individual symbols in the universe on or off. Default: Varies (true for top 10, false for extras). Trade-offs/Tips: Start with defaults for a balanced group; disable laggards to sharpen focus, but keep at least 5–8 for robust ranking.
Scoring Timeframe — Sets the aggregation period for momentum changes (e.g., monthly bars). Default: Monthly. Trade-offs/Tips: Monthly for long-term rotation; weekly for faster signals—increases noise if too short.
Weight 12m / 6m / 3m — Adjusts emphasis on long/medium/short horizons in the blend. Default: 0.50 / 0.30 / 0.20. Trade-offs/Tips: Heavier long-term for stability in trends; balance to fit asset class—test sums near 1.0 to avoid auto-normalization surprises.
ROC over MA instead of Close — Uses smoothed averages for change rates to reduce chop. Default: False. Trade-offs/Tips: Enable in noisy markets for fewer false tops; adds slight lag, so monitor for delayed rotations.
Top N to hold — Limits selections to this many highest-ranked assets. Default: 10. Trade-offs/Tips: Lower for concentrated bets (higher risk/reward); higher for diversification—align with your position sizing.
Mark current symbol if in Top N — Highlights if the chart's asset ranks in the selection. Default: True. Trade-offs/Tips: Useful for self-scanning; disable in multi-chart setups to declutter.
Enable Regime Filter — Activates macro overlay using reference symbol. Default: True. Trade-offs/Tips: Core for trend-aware trading; disable for pure momentum plays, but risks counter-trend entries.
Regime Symbol — Chooses the benchmark for regime (e.g., broad index). Default: QQQ. Trade-offs/Tips: Broad market proxy like SPY for equities; swap for BTC in crypto to match universe.
SMA Length (D) — Sets the averaging window for regime comparison. Default: 100. Trade-offs/Tips: Longer for fewer flips (smoother regimes); shorter for quicker detection—default suits daily checks.
Invert (rare) — Flips the regime logic (price above average becomes negative). Default: False. Trade-offs/Tips: Only if your view inverts the benchmark; test thoroughly as it reverses all tints/labels.
Show Ranking Table — Displays the ranked list with scores and regime status. Default: True. Trade-offs/Tips: Essential for selection; position tweaks help on crowded charts.
Table X / Y — Places the table on the chart (e.g., top-right). Default: Right / Top. Trade-offs/Tips: Corner placement avoids price overlap; middle for central focus in reviews.
Dark Theme — Applies inverted colors for visibility. Default: True. Trade-offs/Tips: Matches most TradingView themes; toggle for light backgrounds without losing contrast.
Text Size — Scales table font for readability. Default: Normal. Trade-offs/Tips: Smaller for dense data; larger on big screens—impacts only last-bar render.
Background Tint by Regime — Colors the chart faintly green/red based on state. Default: True. Trade-offs/Tips: Subtle cue for immersion; disable if it distracts from price action.
Label on Regime Flip — Adds text markers at state changes. Default: True. Trade-offs/Tips: Aids journaling flips; space them by disabling in low-vol periods to cut clutter.
Reading & Interpretation
The ranking table lists top assets by position, symbol, percentage score (higher indicates stronger blended momentum), and regime status—green "ON" for favorable, red "OFF" for cautionary. Background shifts to a light teal in positive regimes (suggesting alignment for longs) or pale red in negative ones (hinting at reduced exposure). Flip labels appear as green "Regime ON" above bars or red "Regime OFF" below, marking transitions without ongoing noise. If the current symbol appears in the top rows with a solid score, it signals potential hold or entry priority within rotations.
Practical Workflows & Combinations
- Trend following: Scan the table weekly on monthly charts for top entrants; confirm with higher highs/lows in price structure before rotating in. Use regime tint as a veto—skip buys in red phases.
- Exits/Stops: Rotate out of bottom-half ranks monthly; tighten stops below recent lows during regime flips to protect against reversals. Pair with volatility filters like average true range for dynamic sizing.
- Multi-asset/Multi-TF: Defaults work across crypto/equities on daily+ timeframes; for intraday, shorten scoring to weekly but expect more interim noise. Scale universe size with portfolio count—e.g., top 5 for aggressive crypto rotations.
Behavior, Constraints & Performance
Signals update on bar close to confirm higher-timeframe data, but live bars may preview shifts from security calls, introducing minor repaint until finalized—mitigated by non-lookahead settings, though daily regime checks can lag by one session. Arrays handle up to 12 symbols efficiently, with loops capped at selection size; max bars back at 5000 supports historical depth without overload. Resource use stays low, but dense universes on very long charts may slow initial loads.
Known limits include sensitivity to universe composition (skewed groups amplify biases) and regime lag at sharp market turns, potentially delaying rotations by a period.
Sensible Defaults & Quick Tuning
Defaults assume a 10-asset crypto rotation on monthly scoring with balanced weights and QQQ regime—ideal for intermediate-term equity-like plays. For too-frequent table reshuffles, extend scoring timeframe or weight longer horizons more. If selections feel sluggish, shorten the 3-month weight or enable MA smoothing off. In high-vol environments, raise top N and SMA length for stability; for crypto bursts, drop to weekly scoring and invert regime if using a volatile proxy.
What this indicator is—and isn’t
This is a selection and visualization tool for momentum-based rotations, layering relative ranks and regime context onto charts to inform asset picks. It is not a standalone system—pair it with entry/exit rules, position sizing, and risk limits. Nor is it predictive; it reacts to past changes and may underperform in prolonged ranges or during universe gaps.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Where does it come from, specifically?
The principle of “composite momentum across multiple horizons” is common in TAA/rotation strategies. As a documented example: Keller/Butler use a composite 1/3/6/12-month momentum (“13612W”)—same idea, different windows/weights.
Robot Wealth
A practical vendor example: EPS Momentum calculates an RMR composite as a weighted mix of 12/6/3/1-month ranks (very close to “12/6/3”).
EPS Momentum
Related but not identical: StockCharts’ RRG measures the momentum rotation of relative strength—often mentioned in the same context, but it doesn’t have a fixed “12/6/3” composite.
chartschool.stockcharts.com
How is it typically computed?
ROC_12 + ROC_6 + ROC_3 (often scaled/weighted), then ranked vs. peers; the rotation periodically holds the top ranks in the portfolio. (Variants use different weights or additionally include 1-month—see the sources above.)
robotwealth.com
epsmomentum.com
Average True Range Stop Loss Finder with KAMAATR SL finder with bands
Kaufmann adaptive moving average
ATR SL finder with bands
Kaufmann adaptive moving average
Pullback Finder AutoPullback Finder Auto — Intraday Momentum Cooling Detector
Pullback Finder Auto is designed to find stocks that have made a strong intraday run from the open and are now cooling off while still positive — the classic pullback zone where continuation entries often form.
It automatically measures the percentage change from today’s open and highlights bars where:
the stock has already run at least a chosen amount (for example +10 % above its open), and
the current price is still up but within a defined pullback range (for example between +3 % and +8 % above the open).
When those two conditions are met, you’ll see green graphics on your chart:
Green triangle markers under the candle.
Optionally, small green PB labels such as “PB 5.2 %” showing the exact percentage from open when the setup occurs.
A green highlight in the sub‑window or line plot if you left the “Change from Open %” plot active.
These are your visual cues that a pullback has formed — a stock that previously ran and is now pulling back while holding strength.
How it works
The script continuously monitors:
• High % from Open = (high − open) / open × 100
• Current % from Open = (close − open) / open × 100
A “Pullback” condition triggers only if:
the high % is greater than or equal to your minimum run threshold, and
the current % sits between your minimum and maximum pullback percentages.
When both are true, the indicator plots the green triangle and optional label.
Default parameters
Min Run % = 10
Min Current % = 3
Max Current % = 8
Session Start = 09:30 – 16:00 US Eastern
All can be changed to fit different volatility levels.
Lower values catch smaller moves; higher values restrict signals to explosive runners.
Using it in real time
During live trading, Pullback Finder Auto updates with each candle.
When a bar first enters the target zone, a green triangle and PB label will appear immediately under that candle.
These are dynamic: if price moves out of the valid zone on the same bar, the marker may disappear.
You can create an alert on “Pullback Finder Auto – Pullback Candidate” to be notified whenever new triangles appear across your active symbols.
This works on any timeframe:
use shorter timeframes such as 1‑minute or 5‑minute charts for fast, intraday detection,
use longer timeframes for a broader view of the day’s market structure.
Using it on past data (scanning backwards)
When you scroll back through history, past green triangles remain visible at every bar where the condition was true at that time.
The PB labels next to those candles show exactly how far above the open the stock was trading during the historical setup.
Use this for visual back‑testing: study how price reacted after these pullback points, adjust the thresholds, and refine your criteria for different markets.
The grey or teal line under the chart (if enabled) shows the percent‑from‑open curve so you can see the full run‑and‑cool pattern leading into each triangle signal.
If you convert the indicator into a strategy, the same condition becomes historical entry points you can test with the Strategy Tester.
Summary
1. Pullback Finder Auto paints green triangles and PB labels whenever an intraday pullback fits your criteria.
2. It runs dynamically in real‑time and also preserves markers for historical review.
3. Adjust the thresholds to match volatility or timeframe.
4. Ideal for visual scanning, watchlist alerts, or integration into a lightweight screening strategy.
Blue Dot Red DotInspired by Dr Wish
This script is a confluence indicator designed to identify potential trend reversals or "mean reversion" trade setups. It plots buy (blue) and sell (red) dots directly on your price chart.
The core strategy is to find moments where price is overextended (using Bollinger Bands) and momentum is simultaneously reversing (using the Stochastic Oscillator). A signal is only generated when both of these conditions are met.
Core Components
The script combines two classic technical indicators:
Bollinger Bands (BB):
These create a "channel" around the price based on a simple moving average (the basis) and a standard deviation (dev).
Upper Band: Basis + (2.0 * StdDev)
Lower Band: Basis - (2.0 * StdDev)
In this script, the bands are used to identify when the price has moved significantly far from its recent average, suggesting it's "overbought" (at the upper band) or "oversold" (at the lower band) and may be due for a pullback.
Stochastic Oscillator:
This is a momentum oscillator that compares a closing price to its price range over a certain period.
It consists of two lines: %K (the main, faster line) and %D (a moving average of %K, the slower signal line).
It's used to identify overbought and oversold momentum conditions and, more importantly, momentum shifts, which are signaled by the %K and %D lines crossing.
Signal Logic: How the Dots Are Generated
This script's "secret sauce" is that it demands three specific conditions to be true at the same time before plotting a dot.
🔵 Blue Dot (Buy Signal)
A blue dot will appear below a price bar if all three of these conditions are met:
Stochastic Crossover: The faster %K line crosses above the slower %D line (ta.crossover(k, d)). This signals that short-term momentum is starting to turn bullish.
Was Oversold: On the previous bar, the %K line was below the "Oversold Threshold" (was_oversold = k < oversold). This ensures the bullish crossover is happening from an oversold (or at least bearish) momentum state.
Note: The default oversold threshold is set to 50. This is a key detail. It means the script is looking for a bullish crossover that originates from anywhere in the bottom half of the Stochastic range, not just the traditional "extreme" oversold area (like 20).
Price Extension: Within the last 3 bars (the current bar or the two before it), the price's low must have touched or gone below the lower Bollinger Band (bb_touch_lower). This confirms that the price itself is in an "oversold" or overextended area.
In plain English: A blue dot appears when the price has recently dipped to an extreme low (touching the lower BB) and its underlying momentum has just started to turn back up (Stoch cross from the lower half).
🔴 Red Dot (Sell Signal)
A red dot will appear above a price bar if all three of these conditions are met:
Stochastic Crossunder: The faster %K line crosses below the slower %D line (ta.crossunder(k, d)). This signals that short-term momentum is starting to turn bearish.
Was Overbought: On the previous bar, the %K line was above the "Overbought Threshold" (was_overbought = k > overbought). The default for this is 80, which is a traditional overbought level.
Price Extension: Within the last 3 bars (the current bar or the two before it), the price's high must have touched or gone above the upper Bollinger Band (bb_touch_upper). This confirms that the price itself is in an "overbought" or overextended area.
A red dot appears when the price has recently spiked to an extreme high (touching the upper BB) and its underlying momentum has just started to roll over and turn back down (Stoch cross from the overbought zone).
Nifty 50 Weighted Volume IndicatorThis takes the volume of the cash market as per the composite weighted average of the Nifty 50 Components.
You can use this at your discretion to take calls on Index trades.






















