Open=Low or Open=High Alert//@version=5
indicator("Open=Low or Open=High Alert", overlay=true)
// Conditions for Open=Low and Open=High
openEqualsLow = open == low
openEqualsHigh = open == high
// Combine conditions into a single alert trigger
alertConditionTrigger = openEqualsLow or openEqualsHigh
// Plot shapes on the chart when the conditions are met (optional, helps visualize)
plotshape(openEqualsLow, title="Open=Low", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(openEqualsHigh, title="Open=High", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
// Create the alert condition (this is what you select in the alert dialog)
alertcondition(alertConditionTrigger, title="Open = Low/High Alert", message="Open price equals High or Low price for {{ticker}} on the {{interval}} timeframe.")
在腳本中搜尋"chart"
Open Equal to Low Alert//@version=5
indicator("Open Equal to Low Alert", overlay=true)
// Condition: Open price equals the Low price of the current bar
open_equal_low = open == low
// Plot a small shape on the chart when the condition is met (optional, for visual confirmation)
plotshape(open_equal_low, title="Open == Low", location=location.belowbar, color=color.new(color.green, 0), style=shape.triangleup, size=size.small)
// Create an alert condition that can be selected in the Alert menu
alertcondition(open_equal_low, title="Open is Equal to Low", message="The Open price is equal to the Low price for {{ticker}} on the {{interval}} timeframe.")
GD Spread FilterAdditional chart for Gold spread, which highlights not relevant periods (clearings and night time)
PT Spread FilterAdditional chart for Platinum spread, which highlights not relevant periods (clearings and night time)
CNY Spread FilterAdditional chart for CNY spread, which highlights not relevant periods (clearings and night time)
Ale tonkis Swing failure + 5MIndicator Description: Ale Tonkis Swing Failure (SFP)
This script is an advanced Swing Failure Pattern (SFP) and Change in State of Delivery (CISD) indicator. It is designed to identify liquidity sweeps and market structure shifts across multiple timeframes simultaneously.
Key Features
Pivot Detection: Automatically identifies high and low pivot points based on a user-defined lookback period.
Liquidity Sweep Analysis: Detects when the price "sweeps" (goes beyond) a previous pivot high or low without closing significantly past it, signaling a potential reversal.
CISD (Change in State of Delivery): Tracks internal market structure shifts to confirm the SFP signal.
Multi-Timeframe (MTF) Dashboard: A real-time table in the top-right corner monitors the trend state across four different timeframes: M1, M3, M5, and M15.
Visual Alerts: The script uses dynamic bar coloring and labels (▲/▼) to signal entry points directly on the chart.
Technical Updates (M5 Integration)
The code has been specifically modified to include the 5-minute (M5) timeframe within the Multi-Timeframe logic:
Data Fetching: A new request.security call was added to retrieve the sfp_trend_state from the 5-minute interval.
Table Expansion: The display table was resized from 4 rows to 5 rows to accommodate the new data without overlapping.
UI Alignment: The M5 state is now positioned between M3 and M15, providing a smoother transition for traders analyzing mid-range scalping opportunities.
How to Read the Dashboard
LONG (Green): Indicates a bullish SFP has occurred and the trend remains positive on that timeframe.
SHORT (Red): Indicates a bearish SFP has occurred and the trend remains negative.
Empty/Black: No active SFP trend is currently detected on that specific timeframe.
SV Spread FilterAdditional chart for Silver spread, which highlights not relevant periods (clearings and night time)
Reversal Chart Patterns DetectorDescription
📋 Overview - What the indicator does
✨ Features - 11 key features
🟢 Bullish Patterns - 5 patterns dengan emoji dan penjelasan
🔴 Bearish Patterns - 5 patterns dengan emoji dan penjelasan
✅ Confirmation System - Volume & RSI confirmation details
🛡️ Risk Management - LONG only untuk Malaysian market
🎨 Visual Elements - Labels, SMAs, lines, dashboard
⚙️ Settings - 4 kategori settings dijelaskan
🔔 Alerts - 4 alert conditions
💡 Best Practices - Trading guidelines
📝 Notes - Important usage tips
MRG Session High/LowMRG Session High/Low - Indicator Description
📊 Overview
This Pine Script indicator automatically displays key levels from Asian and London trading sessions on your TradingView chart. It plots the high and low points of each completed session, allowing you to quickly identify important support and resistance zones for your trades.
🎯 Key Features
Detected Sessions (New York Timezone)
Asian Session: 18:00 - 03:00 (6pm - 3am)
London Session: 03:00 - 09:00 (3am - 9.30am)
Plotted Levels
Session High: The highest point reached during the session
Session Low: The lowest point reached during the session
Start Lines: Vertical dashed lines marking the beginning of each session (optional)
⚙️ Customizable Settings
Display Options
✅ Show/hide Asian Session
✅ Show/hide London Session
✅ Show/hide session start lines
Style Options
🎨 Asian Color: Orange by default
🎨 London Color: Blue by default
🎨 Start lines color: Red by default
📏 Line thickness: Adjustable from 1 to 5
🔍 How It Works
Automatic Detection: The indicator automatically detects when a new session begins
Level Calculation: During each session, it continuously records highs and lows
Line Plotting: At the end of each session, it draws two horizontal lines:
One line at the session high level
One line at the session low level
Extension: Lines extend to the right for easy future identification
📈 Strategic Usage
For Breakout Trading
Trade breakouts of Asian and London session highs/lows
Breakouts from these levels often signal the beginning of significant moves
For Support and Resistance
Use these levels as key support and resistance zones
Prices often come back to test these levels during the New York session
For Multi-Timeframe Analysis
Identify consolidation during Asian/London sessions
Anticipate volatility at New York open
💡 Advantages
✨ Clear and automatic visualization of session levels
⏱️ Time-saving: no need to manually draw levels
🎯 Precise levels based on actual highs/lows of each session
🔄 Automatically updates daily
📱 Compatible with all timeframes (recommended: M5, M15, H1)
🎓 Ideal For
Forex traders (especially XAUUSD, EUR/USD, GBP/USD)
Scalpers and day traders
Session breakout strategies
Trading around New York open
Liquidity zone analysis
📌 Important Note
The indicator uses New York timezone (America/New_York) to ensure session time accuracy, regardless of your local timezone.
Candle Countdown TimerCandle Countdown Timer - Real-Time Bar Close Indicator
Stay ahead of the market with this elegant countdown timer that shows exactly how much time remains until the current candle closes. Perfect for scalpers, day traders, and anyone who needs precise timing for their trading decisions.
✨ Key Features:
Universal Timeframe Support - Automatically adapts to any chart timeframe (1m, 5m, 15m, 1h, 4h, 1D, etc.)
Smart Positioning - Choose between two display modes:
Candle High/Low: Displays above bullish candles, below bearish candles
Current Price: Shows at the closing price level for easy reference
Color-Coded Display - Timer automatically matches your chart's candle colors (green for bullish, red for bearish) for instant visual clarity
Fully Customizable - Adjust font size (8-50), opacity (0-100), and placement to match your trading style and chart setup
Clean, Non-Intrusive Design - Minimal interface that provides critical information without cluttering your chart
📊 Perfect For :
Timing precise entries and exits
Scalping strategies requiring exact candle close timing
Multi-timeframe analysis
Managing time-sensitive trade setups
Avoiding last-second candle close surprises
🎯 How to Use :
Simply add the indicator to your chart and customize the settings to your preference. The countdown automatically updates in real-time, showing hours, minutes, and seconds remaining until the current bar closes.
⚙️ Settings:
Font Size: Numeric input (8-50) for precise size control
Text Opacity: Control visibility from 0 (solid) to 100 (invisible)
Placement: Choose "Candle High/Low" or "Current Price" positioning
💡 Pro Tip:
Use the "Current Price" placement mode when trading on multiple timeframes to keep the countdown at a consistent price level, making it easier to track across different chart configurations.
Open Range BreakoutOpen Range Breakout is a volatility harvesting tool designed to exploit directional expansion following major market opens. It isolates price action during initial liquidity injections to project institutional-grade zones that define a session's structural bias.
Core Methodology
The script uses a time-anchored engine to map critical supply and demand boundaries:
Anchor Identification: The algorithm captures the absolute High and Low within a user-defined window at the start of Tokyo, London, or New York sessions.
Structural Projection: It generates a Neutrality Box. A breach via candle close signals the transition from consolidation to expansion.
Mathematical Risk Modeling: Upon breakout, it calculates a 3:1 Risk-Reward framework based on fixed percentage volatility.
Session Dynamics
The system is optimized for the global liquidity cycle:
Session 1 (Asia): Maps early-day consolidation and range-bound liquidity.
Session 2 (Europe): Captures the London Move to identify the trend.
Session 3 (US): Analyzes high-volume New York opens for maximum momentum.
Key Features
Dynamic Price Mitigation: TP/SL zones stop extending the moment price touches the target or invalidation level to keep charts clean.
Volatility-Adjusted Levels: Stop Loss parameters are normalized to price percentage for consistency across Indices, Forex, or Crypto.
Minimalist Interface: Professional aesthetic with high-contrast visual cues for instant scannability.
Use Cases
Momentum Trading: Identifying the Origin of the Move post-open.
Mean Reversion: Recognizing failed breakouts when price returns inside the range.
Quantitative Backtesting: Benchmarking 3.0 RR targets across different session anchors.
eBacktesting: MultieBacktesting: Multi is an all-in-one chart toolkit built for structured day-trading study: multi-timeframe levels, “clean” movement zones, session context, bias, candle normalization, gaps, and a powerful alert system — all from one indicator.
What it can show on your chart
1) Multi-timeframe Support/Resistance (S/R) markup
- Detects and plots S/R levels from up to 8 configurable timeframes (mix HTF + LTF).
- Optional labeling styles: Simple, Type (S/R), or Directional.
- Optional price labels next to levels.
- Levels cleanup (decongestion): hides clustered levels to keep the chart readable
- Grouping: can group timeframes that share the same level into a single line.
- Level invalidation: levels can disappear after X passthroughs (with a “getting weaker” dashed style when close to invalidation).
2) Psychological levels (round numbers)
- Automatically draws round-number lines at a practical interval (with optional manual interval control).
- Has smart defaults for common markets (e.g., indices, BTC, metals).
3) Levels heatmap
- Shows level density as shaded “pressure areas”: areas where an agglomeration of S/R levels are present
- Can be simple or persisted (so you can study where price repeatedly reacts)
4) Repeated levels highlight
- Highlights “same area again” levels using a tolerance setting.
- Can require same direction (support with support / resistance with resistance) or allow any direction.
5) LTAs (Low Traffic Areas)
- Marks “air pockets” between levels where price can travel fast.
- Can be built from:
- S/R spacing (between detected levels), or
- Candle sequences (clean directional runs).
- Optional filters:
- By how “untouched” the boundary levels are (passthrough filter)
- By number of candles
- By size (points)
6) Clean zones (candle-based)
- Detects strong same-direction runs and boxes them as “clean zones” for study and backtesting practice.
7) Session Bias
- Computes a bias score from selected timeframes and shows it as a %.
- Can be weighted, inverted weight, or not weighted across timeframes (e.g. HTF candles having more weight towards bias calculation).
- Optional color coded “bias candles” overlay + option to dim weak candles so the signal is clearer.
- Alert when bias flips bullish/bearish/neutral.
8) Candles tools
- Smooth candles: removes candle gaps by drawing candles with open = previous close (useful for price action analysis).
- Ghost current candle: de-emphasizes the still-forming candle until it’s near completion (useful for not going in FOMO).
- Highlight no-wick candles: helps spot strong displacement / clean opens/closes.
- Snap candles: rounds candles to a chosen interval (ATR % or fixed), for cleaner structure reading.
- Optional candle stats: ATR & Average candle size
- Candle score: rates the last candle’s strength (body/wicks/size + context), useful for quick quality checks.
- Gaps: highlights unfilled gaps and optionally removes them once filled.
9) Sessions
- Up to 4 customizable sessions, each with its own color and optional background highlight.
- Option to hide candles outside session hours (great for focused session study).
10) Notifications
- Before session start alerts (X minutes early).
- Before session end alerts (X minutes early).
- Closing beyond detected S/R levels
- Closing beyond custom prices: type your prices (one per line)
- Proximity allowance + “advance notice” option for getting notified 30s/1m/5m before the candle closes based on your preferences
- Timer alerts (“check chart every X minutes”) with a custom message template.
eBacktesting integration (the important part)
This indicator fully integrates with the eBacktesting extension to automatically detect “important moments” during backtesting, so it can auto-pause, tag, and allow you to practice them step-by-step.
- When bias changed
- When a candle closed beyond an automatically detected S/R level
- When a candle closed beyond your custom price
- When new LTAs & clean zones are detected or invalidated
These indicator is built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
Multi SMA Indicator📊 Multi SMA Indicator - Description
This Pine Script v5 indicator is a comprehensive technical analysis system that combines multiple essential components for stock trading on Bursa Malaysia (LONG-only strategies).
✨ Key Features:
1. Multiple Simple Moving Averages (SMA)
• SMA 7 (Red) - Very short-term trend
• SMA 20 (Blue) - Short-term trend
• SMA 50 (Black) - Medium-term trend
• SMA 200 (Magenta) - Long-term trend
• All SMAs can be individually shown/hidden
2. 52-Week High/Low (Bursa Malaysia Standard)
• Uses 252 trading days
• 52W High (Green) - Yearly resistance level
• 52W Low (Red) - Yearly support level
• Detects breakouts at these critical levels
3. Bollinger Bands
• BB Length: 20 (customizable)
• Standard Deviation: 2.0
• Special candlestick coloring:
◦ Yellow: Price open & close below Lower BB (strong oversold signal)
◦ Purple: Price below Lower BB
4. Breakout Detection
• Detects breakouts with volume confirmation
• Breakout period: 20 bars (customizable)
• Volume Multiplier: 1.5x above MA20
• Candlestick coloring:
◦ Aqua 🌊: 52-week high breakout
◦ Orange 🍊: 52-week low breakdown
◦ Lime 🟢: Bullish breakout
◦ Magenta 🟣: Bearish breakout
5. Jerun Trend Signals (Trend Confirmation)
• 🦈 Jerun Buy (Aqua): Uptrend confirmation
◦ SMA7 > SMA20 > SMA50 (alignment)
◦ Price above SMA7
◦ Bullish candle with consecutive rises
• 🔥 Jerun Sell (Orange): Downtrend warning
◦ SMA7 < SMA20 < SMA50 (downtrend alignment)
◦ Price below SMA7
◦ Bearish candle with consecutive declines
6. Strong Momentum Detection
• 🚀 Signal: Strong momentum with criteria:
◦ Candle size > 1.5x ATR(14)
◦ Price increase ≥ 3% (threshold customizable)
◦ Volume spike (1.5x above MA20)
◦ Price above SMA7
7. Golden Cross & Death Cross
• 🐃 Golden Cross (Lime): Bullish signal
◦ SMA50 crosses above SMA200 (most powerful)
◦ SMA20 crosses above SMA50
• 🐻 Death Cross (Red): Bearish warning
◦ SMA50 crosses below SMA200
◦ SMA20 crosses below SMA50
📍 Visual Components:
1. Moving Average Lines - 4 SMA lines with distinct colors
2. 52W High/Low Lines - Stepline style for yearly levels
3. Bollinger Bands - 3 lines (upper, middle, lower)
4. Candlestick Colors - Dynamic coloring based on conditions
5. Signal Emojis - 🚀🦈🔥🐃🐻 for quick visual reference
6. Price Labels - Current value labels on the right side of chart
🎯 Usage:
• LONG Only: Focus on buy signals (Bursa Malaysia restriction)
• Entry Signals: Jerun Buy 🦈, Strong Momentum 🚀, Golden Cross 🐃
• Confirmation: Volume spike + Breakout + SMA alignment
• Risk Warning: Jerun Sell 🔥, Death Cross 🐻
• Oversold Opportunity: Yellow/purple candlesticks (price below BB Lower)
⚙️ Customizable Settings:
All parameters can be modified through indicator settings:
• SMA periods
• Breakout length
• Volume multiplier
• Momentum threshold
• Bollinger Bands parameters
• Toggle display for each feature
This indicator is suitable for traders who want a complete system with multiple confirmation signals for entry and risk management. 🚀📈
QUARTERS THEORY XAUUSDThe “Quarter Theory XAUUSD” indicator on TradingView is designed to automatically plot horizontal price levels in $25 increments on your chart, providing traders with a clear visual representation of key psychological and technical price points. These levels are particularly useful for instruments like XAU/USD, where price often reacts to round numbers, forming support and resistance zones that can be leveraged for both scalping and swing trading strategies. By showing all $25 increments as horizontal white lines, the indicator ensures that traders can quickly identify potential entry and exit points, without the need for manual drawing or repeated calculations.
The indicator works by calculating the nearest $25 multiple relative to the current market price and then drawing horizontal lines across the chart for all increments within a defined range. This range can be customized to suit the instrument being traded; for example, for gold (XAU/USD), a typical range might extend from 0 to 5000, covering all practical price levels that could be relevant in both high and low market conditions. By using Pine Script’s persistent variables, the indicator efficiently creates these lines only once at the start of the chart, avoiding unnecessary resource usage and preventing TradingView from slowing down, which can happen if lines are redrawn every bar.
From a trading perspective, these levels serve multiple purposes. For scalpers, the $25 increments act as micro support and resistance points, helping to determine short-term price reactions and potential breakout zones. Scalpers can use these levels to enter positions with tight stop-loss orders just beyond a level and take profits near the next $25 increment, which aligns with common price behavior patterns in highly liquid instruments. For swing traders, the same levels provide broader context, allowing them to identify areas where price might pause or reverse over several days. Swing traders can use these levels to align trades with the prevailing trend, particularly when combined with other indicators such as moving averages or trendlines.
Another key advantage of the Quarterly Levels indicator is its simplicity and visual clarity. By plotting lines in a uniform white color and extending them to the right, the chart remains clean and easy to read, allowing traders to focus on price action and market dynamics rather than cluttered technical drawings. This visual consistency also helps in backtesting and strategy development, as traders can quickly see how price interacts with each level over time. Additionally, the use of round-number increments leverages the psychological tendencies of market participants, as many traders place stop orders or entry points near these levels, making them natural zones of interest.
Overall, the Quarterly Levels indicator combines efficiency, clarity, and practical trading utility into a single tool. It streamlines chart analysis, highlights meaningful price zones, and supports both scalping and swing trading approaches, making it an essential addition to a trader’s toolkit. By understanding how to integrate these levels into trading strategies, traders can make more informed decisions, manage risk effectively, and identify high-probability trade setups across various market conditions.
EMA 9/24/50/100/200 v6This Pine Script® v6 indicator plots five distinct Exponential Moving Averages (EMAs) onto a single trading chart to help identify trend direction and momentum. By calculating the 9, 24, 50, 100, and 200-period averages, the script allows you to visualize short-term price action alongside long-term support and resistance levels. It uses a color-coded hierarchy and varying line thicknesses to make the different timeframes easy to distinguish at a glance.
Enhanced MTF Bias Table by Odegos# Enhanced MTF Bias Table - Publication Description
## Short Description (for TradingView listing)
Multi-timeframe bias indicator combining Market Structure Shifts (MSS) with EMA analysis. Displays real-time bias across 7 timeframes (5m-Weekly) with distance metrics and volatility measurements. Perfect for identifying trend alignment and potential reversal points.
---
## Full Description
### Overview
The **Enhanced MTF Bias Table** is a comprehensive multi-timeframe analysis tool designed to help traders quickly identify market bias across different time horizons. By combining Market Structure Shift (MSS) detection with Exponential Moving Average (EMA) analysis, this indicator provides a clear, color-coded view of market sentiment from short-term (5-minute) to long-term (weekly) timeframes.
### What This Indicator Does
**Core Functionality:**
- **Multi-Timeframe Analysis**: Simultaneously monitors 7 different timeframes (5m, 15m, 30m, 1h, 4h, Daily, Weekly)
- **Market Structure Detection**: Identifies when price breaks previous swing highs/lows, indicating potential trend changes
- **EMA-Based Bias**: Combines market structure with price distance from a customizable EMA to determine bias strength
- **Visual Market Structure Shifts**: Draws horizontal lines on the chart when significant market structure shifts occur
- **Real-Time Metrics**: Displays distance from EMA and ATR (volatility) for each timeframe
### How It Works
**Bias Calculation Logic:**
The indicator uses a sophisticated two-factor approach to determine market bias:
1. **Market Structure Analysis**:
- Tracks swing highs and lows using pivot points
- Identifies when price breaks above previous highs (bullish structure) or below previous lows (bearish structure)
- Uses a customizable lookback period to filter noise
2. **EMA Distance Analysis**:
- Measures how far price is from the selected EMA
- Strong bias requires BOTH structure break AND significant distance from EMA
- Neutral zone prevents false signals when price consolidates near the EMA
**Bias Categories:**
- **Strong ↑** (Dark Green): Bullish market structure + price above EMA threshold
- **Weak ↑** (Light Green): Bullish structure OR price moderately above EMA
- **Neutral** (Orange): Price within neutral zone around EMA
- **Weak ↓** (Light Red): Bearish structure OR price moderately below EMA
- **Strong ↓** (Dark Red): Bearish market structure + price below EMA threshold
### Key Features
**📊 Customizable Table Display:**
- Two table styles: Compact (minimal) or Full (detailed with labels)
- 9 position options to fit any chart layout
- Toggle distance from EMA and ATR displays
- Shows current symbol, timeframe, and date
**📈 Flexible Indicator Settings:**
- Adjustable EMA length (default: 50)
- Customizable MSS lookback period (5-50 bars)
- Breakout threshold adjustment for different instruments
- Neutral zone configuration to reduce noise
**📍 Visual Market Structure Shifts:**
- Draws horizontal lines at significant structure breaks
- Customizable colors for bullish/bearish MSS
- Optional text labels ("MSS") for easy identification
- Adjustable line width and style (solid, dashed, dotted)
**📉 EMA Overlay:**
- Optional EMA display on chart
- Full customization: color, width, line style
- Helps visualize the reference point for bias calculations
**🎨 Full Color Customization:**
- Independent color controls for all bias levels
- Customize header and table appearance
- Matches any chart theme or preference
### Best Use Cases
**1. Trend Alignment:**
Use the MTF table to identify when multiple timeframes align in the same direction. When 5-6 or more timeframes show the same bias, it indicates strong directional momentum.
**2. Divergence Detection:**
Look for disagreements between timeframes. For example, if higher timeframes (Daily/Weekly) show bearish bias while lower timeframes (5m/15m) show bullish bias, it may indicate a counter-trend bounce or potential reversal setup.
**3. Entry Timing:**
Use higher timeframe bias for direction and lower timeframe bias for entry timing. Enter trades when your trading timeframe aligns with higher timeframe bias.
**4. Risk Management:**
When lower timeframes show opposite bias to higher timeframes, it suggests trading against the major trend—requiring tighter stops and smaller positions.
**5. Market Structure Confirmation:**
The MSS lines help identify key levels where market structure changed, useful for:
- Stop loss placement (below/above MSS levels)
- Target setting (previous structure points)
- Breakout confirmation
### Recommended Settings by Instrument
**Index Futures:**
- **ES (S&P 500)**: Breakout Threshold: 0.15%, Neutral Zone: 0.15%
- **NQ (Nasdaq)**: Breakout Threshold: 0.25%, Neutral Zone: 0.20%
- **YM (Dow Jones)**: Breakout Threshold: 0.20%, Neutral Zone: 0.20%
**Forex Pairs:**
- **Major Pairs**: Breakout Threshold: 0.10%, Neutral Zone: 0.10%
- **Volatile Pairs**: Breakout Threshold: 0.20%, Neutral Zone: 0.15%
**Cryptocurrencies:**
- Breakout Threshold: 0.30-0.50%, Neutral Zone: 0.25-0.40%
- Higher volatility requires larger thresholds
### Understanding the Metrics
**Distance from EMA (%):**
- Positive values = Price above EMA (bullish territory)
- Negative values = Price below EMA (bearish territory)
- Larger absolute values = Stronger deviation from mean
- Useful for identifying overextended moves
**ATR (%):**
- Measures current volatility as percentage of price
- Higher values = More volatile conditions
- Helps adjust position sizing and stop distances
- Compare across timeframes to see where volatility concentrates
### Tips for Optimal Use
1. **Start with higher timeframes**: Check Daily and Weekly bias first to understand the bigger picture
2. **Use the 50 EMA default**: It's widely used and provides reliable support/resistance
3. **Adjust MSS lookback for your style**: Lower values (5-7) for day trading, higher values (15-25) for swing trading
4. **Watch for neutral zones**: Orange/neutral readings often precede significant moves
5. **Combine with price action**: Use MSS lines as reference points for entries and exits
6. **Don't ignore weak signals**: "Weak" bias often precedes strong moves as structure builds
### What Makes This Different
Unlike simple moving average indicators, this script:
- Combines TWO confirmation factors (structure + distance) for more reliable signals
- Provides context across multiple timeframes simultaneously
- Visually marks important market structure changes on your chart
- Offers both compact and detailed display modes
- Includes volatility measurement to gauge market conditions
### Technical Notes
- Uses `request.security()` to fetch data from multiple timeframes
- Implements `pivothigh()` and `pivotlow()` for swing detection
- All calculations use `lookahead=barmerge.lookahead_off` to prevent repainting
- MSS lines drawn in real-time as structure breaks occur
- Optimized for performance with minimal script resources
### Disclaimer
This indicator is a tool for analysis and does not provide trading signals or financial advice. Always:
- Use proper risk management
- Combine with other forms of analysis
- Test thoroughly in a demo environment
- Understand that past performance doesn't guarantee future results
- Consider market conditions and fundamental factors
---
## Tags (for TradingView)
multi-timeframe, market-structure, bias, trend, EMA, momentum, support-resistance, price-action, volatility, ATR, swing-trading, day-trading
## Category
Trend Analysis / Multi-Timeframe Analysis
---
## Quick Start Guide
**For Day Traders:**
1. Add indicator to your chart
2. Focus on 5m, 15m, 30m, and 1h timeframes
3. Look for alignment across these timeframes
4. Use MSS lines as entry/exit reference points
**For Swing Traders:**
1. Add indicator to your chart
2. Focus on 4h, Daily, and Weekly timeframes
3. Wait for 2-3 timeframe alignment
4. Use lower timeframes only for entry timing
**For Position Traders:**
1. Add indicator to your chart
2. Focus on Daily and Weekly timeframes
3. Ignore short-term noise
4. Enter when both show same strong bias
eBacktesting - Learning: RSI DivergenceseBacktesting - Learning: RSI Divergences is meant to train your eye to spot when a trend is losing momentum before price fully turns.
How to study it (step-by-step)
1. Start with the trend
- First decide if price is generally trending up or down (higher highs / higher lows vs lower highs / lower lows).
- Divergences matter most after a trend has been running for a while.
2. Look for the “mismatch”
- Bearish divergence: price prints higher highs, but RSI prints lower highs.
- This often shows up near the end of a strong bullish run, when buyers are still pushing price up but with less momentum.
- Bullish divergence: price prints lower lows, but RSI prints higher lows.
- This can show up near the end of a bearish move, when selling pressure is fading.
3. Treat divergence as a warning, not an entry
- The key lesson: divergence often signals trend weakness, not an instant reversal.
- After a divergence appears, study what happens next: stalling, ranging, a pullback, or a full reversal.
4. Add simple confirmation
- Practice waiting for something obvious after the divergence:
a break of a small support/resistance level,
a shift in swing structure,
or a clear rejection candle from a key area.
- This helps you avoid taking every divergence as a trade signal.
5. Use it inside eBacktesting (best practice)
- Replay the chart and pause on each divergence mark.
- Log:
Where it happened (after a long run or in the middle of chop?),
Whether price stalled first or reversed immediately,
What confirmation appeared (if any),
The best “invalidation” idea (what would prove you wrong?).
- Over time you’ll see which divergences are meaningful for your market and session, and which ones are noise.
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
MLSS v3 + AlertsTitle: 6-in-1 Professional Levels Suite
Description:
Overview
This comprehensive indicator is designed for price action traders who rely on key structural levels. It automatically identifies and plots six distinct types of support and resistance zones, significantly reducing chart clutter and manual work. Whether you are following the Gerchik methodology or classic S/R strategies, this tool provides the "skeleton" of the market at a glance.
Key Features & Methodology:
Limit Player Levels (LPL): Identifies precise "penny-to-penny" touches where a large limit order is holding the price. Configurable tolerance in ticks.
Historical Levels (HL): Plots major global swing points from higher timeframes (Daily/Monthly) that represent long-term trend shifts.
Mirror Levels (ML): Automatically detects classic "Role Reversal" zones where previous resistance becomes new support (and vice versa) within a specific lookback period.
Paranormal Bar Levels (PBL): Highlights the High and Low of candles with anomalous volatility (based on 2x ATR multiplier). These are high-interest zones for institutional liquidity.
Previous Day High/Low (PDH/PDL): Essential daily boundaries for intraday traders to gauge the current day's bias.
Round Numbers (RN): Psychological levels (e.g., .000, .500) that act as natural magnets for price action.
Why use this indicator?
Clean Visualization: Each level is uniquely color-coded and labeled.
Fully Customizable: Toggle any level type on/off and adjust calculation parameters (ATR multipliers, lookback depth, and tick tolerance).
Efficiency: Stops the "full-screen panic" by keeping your essential levels visible and organized.
How to use:
Look for clusters where multiple levels (e.g., a Mirror Level + a Round Number) coincide — these are high-probability reversal zones.
Use PBL levels to identify where big money "opened the curtain" during news events.
Instructions for Publishing (Маленькие советы):
eBacktesting - Learning: Cup & HandleeBacktesting - Learning: Cup & Handle
The Cup & Handle is a classic continuation pattern that often appears during strong trends. It shows a market that “cools off” (the cup), then does a smaller pullback (the handle), and may be ready for another push in the original direction.
This indicator helps you spot:
- Potential Cup & Handle formations as they develop
- When a handle forms (the final “pause” before continuation)
- The breakout moment, when price pushes above the rim level
It’s designed to support structured practice: you can replay charts and train your eyes to recognize the pattern, understand the context around it, and build consistent execution rules.
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
Inside/Outside Bars---
Inside/Outside Bars Detector
This indicator identifies and visualizes Inside Bars and Outside Bars (Engulfing Bars) on your chart, helping traders spot potential breakout and consolidation patterns.
What are Inside/Outside Bars?
• Outside Bars (Outer Bars): Candles that break BOTH the high AND low of the previous candle. These represent periods of increased volatility and potential trend continuation or reversal. Marked with red triangle arrows by default.
• Inside Bars (Inner Bars): Candles where NEITHER the high NOR low breaks the previous candle's range. These represent consolidation and often precede significant price moves. Marked with orange triangle arrows by default.
Features:
✓ Visual arrows above bars for easy identification
✓ Fixed pixel-size arrows that remain visible at any chart zoom level
✓ Statistics table showing counts of outer bars, inner bars, and total bars analyzed
✓ Fully customizable with multiple settings
Customization Options:
• Toggle outer bars and inner bars independently
• Customize arrow colors for each pattern
• Show/hide the statistics table
• Adjust calculation bars (1000 default, max 5000)
• Set to 0 to analyze all available bars up to 5000
How to Use:
Inside bars often indicate consolidation before a breakout, while outside bars suggest increased volatility and potential momentum shifts. Use these patterns in conjunction with your trading strategy to
identify entry/exit points or to confirm trend direction.
---
Pro-Vision ATR + ExhaustionThis indicator is designed to provide Real-Time Volatility Guardrails. Unlike standard ATR indicators that plot a single line at the bottom of your chart, this tool projects volatility "shells" directly onto the price action from the current candle.
It answers the most critical question in a live trade: "How far can this stock move right now before it is statistically exhausted?"
The Components
Current ATR Centerpiece: The lines originate from the most recent price action, updating live with every tick.
Target Lines (1.5x ATR - Yellow): These represent the "Normal Expected Move." In a healthy trend, price often reaches these levels without much resistance.
Exhaustion Lines (3.0x ATR - Red): These represent "Extreme Volatility." Statistically, it is rare for price to sustain a move beyond 3x its average range in a single period without a pullback or consolidation.
How to Trade It
1. Profit Taking (The "Target" Exit)
If you are in a long position and price hits the Yellow Upper Line, it has achieved its expected volatility move for that timeframe.
Strategy: Scale out 50% of your position here. This locks in gains based on math rather than emotion.
2. Reversal Trading (The "Exhaustion" Play)
When price pierces or touches the Red Exhaustion Line, the asset is "overbought" or "oversold" relative to its recent volatility.
Strategy: Look for a reversal candle (like a shooting star or hammer) touching the red line.
The Trade: Short the asset at the red line with a tight stop, or close your long position immediately. These levels often act as "invisible" ceilings.
3. Setting "Smart" Stop Losses
Standard stops are often placed at arbitrary percentages. Using this indicator, you can place your stop just outside the 1.5x ATR line.
Strategy: If you enter a trade and price moves past the opposite ATR line, the volatility has shifted against you, and the original trade thesis is likely invalid.
4. Filtering Bad Entries (The "Don't Chase" Rule)
Strategy: If you are looking to go Long, but the price is already sitting at the Yellow Line, the "meat of the move" is likely over.
Rule: Never enter a new position if the price is already 75% of the way to the Red Exhaustion line. Wait for a mean reversion back to the middle.






















