Candlestick analysis
JST Clock + 4H Countdown (Flexible Broker Offset)【Samurai's Time Management Tool】
JST Clock + 4H Candle Countdown (Flexible Broker Offset) Displays current Japan Standard Time (JST) and countdown to the next 4-hour candle close (broker server time). Adjustable for your broker's UTC offset (default UTC+3 for OANDA)
Essential for timing entries in 4H strategies — I use it every day to stay in rhythm with the market. This indicator is Protected (source code not public). Detailed usage in my note reports.
Note: Educational/reference purposes only. Not investment advice. Possible bugs. Use at your own risk.
【侍の時間管理ツール】
日本時間時計+4H足カウントダウン(ブローカーオフセット対応) 日本時間(JST)とブローカー基準の次4H足確定までのカウントダウンを表示。 ブローカーUTCオフセット調整可能(OANDAデフォルトUTC+3)
4H足トレードのリズムを刻む必須ツール——私が毎日愛用しています。 このインジケーターはProtected(コード非公開)です。実戦ツールをそのままお届けするためです。
活用法はnoteレポートで深掘り予定です。
注意:教育・参考目的です。投資助言ではなく、誤動作の可能性があります。使用は自己責任でお願いします。
SMC Ultra-Fast: ALL-IN & Auto-Signal [Fixed]Designed to help traders who know absolutely nothing about the market.
And for those whose signals don't disappear, once it goes up, it stays up. 90 percent chance of beating the market.
Kapish trend catcher indicator 2This Pine Script v5 indicator is a straightforward, high-conviction multi-timeframe trend-following tool designed exclusively around Weekly and Daily alignment. It helps traders (especially swing or intraday) stay strictly in the direction of the stronger medium-term trend while timing entries on lower timeframes.
Kapish trend catcher indicatorThis Pine Script v5 indicator is a clean, fully fixed (no user settings) multi-timeframe trend-following system designed to help traders catch strong trends only when the highest timeframes agree. It focuses exclusively on Monthly and Weekly timeframes for trend direction and filtering, while using the current chart's timeframe for precise entry timing.
EMA Cross ToolThis indicator is designed to visually plan structured, rule-based trades using a 15-minute 21 EMA cross during the overnight session (8:00 PM – 4:00 AM EST).
It automatically draws entry, stop-loss, and take-profit levels based on the candle that confirms the EMA cross, allowing traders to execute consistently without emotional decision-making.
Feel free to make changes in the settings if needed. Enjoy!
EMA Cross Tool
This indicator is designed to visually plan structured, rule-based trades using a 15-minute timeframe & 21 EMA cross during the overnight session (8:00 PM – 4:00 AM EST).
It automatically draws entry, stop-loss, and take-profit levels based on the candle that confirms the EMA cross, allowing traders to execute consistently without emotional decision-making.
Decoy Long / Decoy ShortThis indicator plots a decoy bar. A Decoy bar can be a 'decoy long' or a 'decoy short' bar. A 'decoy long' is a bar that creates a higher high and higher low but ends up as a red bar. A 'decoy short' is a bar that creates a lower high and lower low but still ends up as a green bar.
Esmeralda.AiHow to read the new visuals:
Labels: When a signal appears, the label now calculates the exact price for your Stop Loss (SL) and Take Profit (TP).
Lines: You will see short horizontal lines appear at the signal bar.
Green Line: This is your target.
Red Line: This is where you exit if the trade goes against you.
The 90% Rule: To keep the win rate as high as possible, you can manually move your TP to the Yellow Mean Line if the market looks like it is losing steam.
Enhanced Divergence Scanner═══════════════════════════════════════════════════════════════════
TRADINGVIEW COMPLIANT POST - FOLLOWS ALL HOUSE RULES
═══════════════════════════════════════════════════════════════════
📌 TITLE:
Multi-Oscillator Divergence Detector with Pivot Validation
───────────────────────────────────────────────────────────────────
📝 COMPLIANT DESCRIPTION (addresses all moderator requirements):
───────────────────────────────────────────────────────────────────
**Multi-Oscillator Divergence Detector with Pivot Validation**
This indicator identifies regular divergences by comparing price pivot points against oscillator pivot points across three momentum indicators simultaneously.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**HOW THE SCRIPT WORKS (Technical Methodology):**
The script uses a multi-step validation process:
1. **Pivot Detection**: The script identifies swing highs and lows on both price and oscillators using the `ta.pivothigh()` and `ta.pivotlow()` functions with configurable left/right lookback periods.
2. **Divergence Validation**: When a new pivot is detected, the script scans historical pivots to find potential divergence pairs where:
- For Bullish: Price makes a lower low while the oscillator makes a higher low
- For Bearish: Price makes a higher high while the oscillator makes a lower high
3. **Line Integrity Check**: Before confirming a divergence, the script draws a temporary test line between the two pivot points and checks if any intermediate price/oscillator values pierce through this line. Only non-pierced divergences are displayed.
4. **Multi-Oscillator Confirmation**: The divergence is checked against RSI, CCI, and MFI independently. The label shows how many oscillators confirmed the same divergence (1, 2, or 3).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**WHY COMBINE THESE THREE OSCILLATORS:**
Each oscillator measures momentum differently, providing complementary confirmation:
- **RSI (Relative Strength Index)**: Measures the speed and magnitude of recent price changes. Calculated as: RSI = 100 - (100 / (1 + RS)), where RS = Average Gain / Average Loss over the period.
- **CCI (Commodity Channel Index)**: Measures price deviation from the statistical mean. Calculated as: CCI = (Typical Price - SMA) / (0.015 × Mean Deviation). Effective for identifying cyclical turning points.
- **MFI (Money Flow Index)**: A volume-weighted RSI that incorporates buying/selling pressure. Calculated using typical price × volume to create money flow, then applying RSI formula. Adds volume confirmation to momentum analysis.
When multiple oscillators show divergence simultaneously, it suggests stronger conviction in the potential reversal signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**WHAT MAKES THIS SCRIPT UNIQUE:**
1. **Pivot-Based Validation**: Unlike simple divergence indicators that compare consecutive values, this script validates divergences between actual swing points, reducing false signals.
2. **Line Piercing Filter**: The script ensures no intermediate price action invalidates the divergence by checking if prices cross the divergence line.
3. **Triple Confirmation System**: Shows signal strength (1-3) based on how many oscillators agree on the divergence.
4. **Visual Confirmation Status**: Dotted lines indicate unconfirmed (recent) divergences; solid lines indicate confirmed divergences after the lookback period passes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**HOW TO USE THIS INDICATOR:**
1. **Signal Identification**:
- Green lines with up arrow (▲) = Bullish divergence (potential buy zone)
- Red lines with down arrow (▼) = Bearish divergence (potential sell zone)
2. **Signal Strength**: The number next to the arrow (1, 2, or 3) indicates how many oscillators confirmed the divergence. Higher numbers suggest stronger signals.
3. **Confirmation Status**:
- Dotted line = Divergence is still forming (may be invalidated)
- Solid line = Divergence is confirmed
4. **Best Practices**:
- Use on higher timeframes (4H, Daily) for more reliable signals
- Combine with support/resistance levels for entry timing
- Wait for price action confirmation before entering trades
- Signals with 2-3 oscillator confirmations are generally more reliable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**SETTINGS EXPLAINED:**
| Setting | Default | Purpose |
|---------|---------|---------|
| Pivot Lookback Left | 3 | Bars to the left required to confirm a pivot |
| Pivot Lookback Right | 1 | Bars to the right required to confirm a pivot |
| Max Historical Bars | 750 | How far back to search for divergence pairs |
| RSI/CCI/MFI Length | 14 | Period for each oscillator calculation |
| Line Width | 2 | Visual thickness of divergence lines |
| Show Labels | On | Toggle signal labels on/off |
**Adjusting for Trading Style:**
- Shorter pivot lookback = More signals, faster detection, more noise
- Longer pivot lookback = Fewer signals, slower detection, higher quality
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**LIMITATIONS AND RISK DISCLAIMER:**
- Divergences are NOT direct buy/sell signals - they indicate potential reversals
- In strong trends, divergences may fail multiple times before working
- Past divergence patterns do not guarantee future price movement
- Always use proper position sizing and stop-loss orders
- This indicator should be used as part of a complete trading strategy
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**OPEN SOURCE:**
This script is published open-source. You can view the complete code logic and modify it for your own use according to TradingView's guidelines.
───────────────────────────────────────────────────────────────────
🏷️ TAGS (safe tags without trademark issues):
divergence, oscillator, pivot, momentum, reversal, swing-trading, technical-analysis, multi-timeframe, price-action, trend-reversal
───────────────────────────────────────────────────────────────────
✅ COMPLIANCE CHECKLIST (based on moderator feedback):
Originality & Usefulness:
- Explained WHY these oscillators work together
- Described the unique pivot validation method
- Not just a simple mashup
Description Quality:
- Detailed explanation of underlying logic
- Step-by-step methodology explained
- How to use the indicator
- Settings explained with purpose
Vendor Requirements:
- Publishing as OPEN SOURCE (not invite-only)
- No trademark symbols (™, ®) used
- Clear value proposition explained
No House Rule Violations:
- Original description text
- Educational content included
- Proper risk disclaimer
- No misleading claims
═══════════════════════════════════════════════════════════════════
Marubozu Detector**Marubozu Detector (v6)**
This indicator identifies **Marubozu candles** — powerful candlestick patterns indicating strong directional momentum with minimal or no shadows (wicks).
A **Bullish Marubozu** (green) shows buyers dominated the session: open ≈ low, close ≈ high.
A **Bearish Marubozu** (red) shows sellers in control: open ≈ high, close ≈ low.
Unlike strict detectors, this version allows customizable tolerance for tiny shadows, making it practical for real markets where perfect Marubozu are rare.
**Key Features**
- **Adjustable tolerance**: Max shadow % of candle range (default 5%).
- **Minimum body size**: Requires body ≥ % of range (default 90%) to filter small candles.
- **Clear labels**: "BULL MARU" below bullish, "BEAR MARU" above bearish.
- **Alerts**: Built-in conditions for Bullish/Bearish Marubozu on any timeframe.
- **Pine Script v6**: Fully compatible with the latest version for optimal performance.
**How to Use**
1. Add to chart via Indicators > Community Scripts.
2. Customize inputs: Lower tolerance for stricter detection, higher for more signals.
3. Combine with trend tools (e.g., EMA, support/resistance) for better entries/exits.
- Bullish Marubozu in uptrend → potential continuation long.
- Bearish Marubozu in downtrend → potential short.
**Why Marubozu?**
These candles signal strong conviction and often precede continuations or reversals. This detector helps spot them quickly without manual scanning.
Open-source under Mozilla Public License 2.0. Feel free to modify!
If you find it useful, please like/boost/favorite! Feedback welcome.
© toppermost
Flexible Marubozu Detector**Flexible Marubozu Detector (v6)**
This indicator identifies **Marubozu candles** — powerful candlestick patterns indicating strong directional momentum with minimal or no shadows (wicks).
A **Bullish Marubozu** (green) shows buyers dominated the session: open ≈ low, close ≈ high.
A **Bearish Marubozu** (red) shows sellers in control: open ≈ high, close ≈ low.
Unlike strict detectors, this version allows customizable tolerance for tiny shadows, making it practical for real markets where perfect Marubozu are rare.
**Key Features**
- **Adjustable tolerance**: Max shadow % of candle range (default 5%).
- **Minimum body size**: Requires body ≥ % of range (default 90%) to filter small candles.
- **Clear labels**: "BULL MARU" below bullish, "BEAR MARU" above bearish.
- **Alerts**: Built-in conditions for Bullish/Bearish Marubozu on any timeframe.
- **Pine Script v6**: Fully compatible with the latest version for optimal performance.
**How to Use**
1. Add to chart via Indicators > Community Scripts.
2. Customize inputs: Lower tolerance for stricter detection, higher for more signals.
3. Combine with trend tools (e.g., EMA, support/resistance) for better entries/exits.
- Bullish Marubozu in uptrend → potential continuation long.
- Bearish Marubozu in downtrend → potential short.
**Why Marubozu?**
These candles signal strong conviction and often precede continuations or reversals. This detector helps spot them quickly without manual scanning.
NOTE: I use this indicator along with "Swing high low support & resistance" by Pattersmart to trade reversals. I long trade a bearish Marubozu reversal, when the Marubozu breaks through a swing low identified on the "Swing high low support & resistance" indicator.
Open-source under Mozilla Public License 2.0. Feel free to modify!
If you find it useful, please like/boost/favorite! Feedback welcome.
© @toppermost
Risk Managemet ToolThis indicator is fore better Risk Management and Better Execution .
More in depth this indicator provides with the required quantity that must be bought in
order for the risk of the position to be the one that the trader has set .
The value in the Stop Loss input is simply , so that the program could calculate the amount of the Tokens that must be bought and the risk that your position has with the token quantity of 1,without the final amount of tokens needed so that you would risk x amount .
As you have understood so on the Risk Amount input you type the amount that you want to risk and based on the two factors above Stop Loss and Risk Amount the Final Quantity can be calculated .
The rest of the data are simply for the boxed features , color etc . (Please note that i am still working on this project and some features may not be operative yet)
REASON FOR THE CREATION
The reason that i have built this type of indicator is because many traders and especially scalpers like myself , find more usefull to do thier trading in a single tab . Me perosnally i was getting frustrated that i needed to adjust always the quantity and then needing to hover my mouse over the SL order to se how much i risk and not being writen or view live my risk , while price develops.
Also i was not able to remain on the same tab with my exchange due to indicators output difference . By that i simply mean that RSI output is different from the Exchange RSI output because I have adjust the options from my trading and so far i think that it would better to change RSI options and make them same , simply because the exchange does not support such an option.
So simply put i created a indicator that at least it can calculate the amount of Tokens required for a scalper to risk what it has set to and still be able to review , overview it and adjust on the same tab , on the same chart on the same exchange .
Here on trading view .
I hope this simple tool helps somehow to improve scalpers and other type of traders performance .
1 minute ago
Release Notes
This indicator is fore better Risk Management and Better Execution .
More in depth this indicator provides with the required quantity that must be bought in
order for the risk of the position to be the one that the trader has set .
The value in the Stop Loss input is simply , so that the program could calculate the amount of the Tokens that must be bought and the risk that your position has with the token quantity of 1,without the final amount of tokens needed so that you would risk x amount .
As you have understood so on the Risk Amount input you type the amount that you want to risk and based on the two factors above Stop Loss and Risk Amount the Final Quantity can be calculated .
The rest of the data are simply for the boxed features , color etc . (Please note that i am still working on this project and some features may not be operative yet)
REASON FOR THE CREATION
The reason that i have built this type of indicator is because many traders and especially scalpers like myself , find more usefull to do thier trading in a single tab . Me perosnally i was getting frustrated that i needed to adjust always the quantity and then needing to hover my mouse over the SL order to se how much i risk and not being writen or view live my risk , while price develops.
Also i was not able to remain on the same tab with my exchange due to indicators output difference . By that i simply mean that RSI output is different from the Exchange RSI output because I have adjust the options from my trading and so far i think that it would better to change RSI options and make them same , simply because the exchange does not support such an option.
So simply put i created a indicator that at least it can calculate the amount of Tokens required for a scalper to risk what it has set to and still be able to review , overview it and adjust on the same tab , on the same chart on the same exchange .
Here on trading view .
I hope this simple tool helps somehow to improve scalpers and other type of traders performance.
(Note that this project is still on work so , some features may not be operative)
iCC | ConceptsThis indicator will help train you to understand how iCC works. where to put the structure boxes. what swing points are important and how to identify a trend.
made famous by SCi
4H & Daily Previous Candle + Fibonacci + OTE# Multi-Timeframe OTE & Fibonacci Indicator (4H & Daily)
This Pine Script v5 indicator is designed for traders who utilize **Optimal Trade Entry (OTE)** zones and **Fibonacci retracements** based on higher timeframe market structures. It automatically identifies and plots key levels from the previous 4-hour and Daily candles to help find high-probability reversal zones.
## Key Features
### 1. Dual Timeframe OTE Zones
- **4H OTE Zone**: Automatically calculates and shades the Optimal Trade Entry area (default 61.8% - 78.6%) based on the previous 4-hour candle's range.
- **Daily OTE Zone**: Plots a secondary OTE zone based on the previous Daily candle, allowing for multi-timeframe confluence analysis.
- **Dynamic Adaptation**: The zones automatically flip based on whether the previous candle was bullish or bearish, ensuring you are always looking at the correct retracement levels.
### 2. Automated Market Structure
- **High/Low Tracking**: Plots clear horizontal lines for the previous 4H and Daily Highs and Lows.
- **Visual Distinction**: Daily levels are highlighted with thicker lines to distinguish them from 4H levels.
- **Price Labels**: Displays real-time price labels for all structural levels for quick reference.
### 3. Customizable Fibonacci Retracements
- **4H Fibonacci Levels**: Plots standard retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) for the 4H timeframe.
- **Fully Adjustable**: Users can input custom Fibonacci levels via the settings menu.
### 4. Real-Time Information Dashboard
- **Range Summary**: A clean table in the top-right corner displays the total pip/point range for both the previous 4H and Daily candles.
- **Clean UI**: All visual elements (colors, line widths, labels) can be toggled or customized to fit any chart theme.
## How to Use
This indicator is ideal for "Smart Money" or "ICT" style trading. Look for **confluence** where the 4H OTE zone overlaps with the Daily OTE zone or other key structural levels to identify high-precision entry points.
Top 10 Bullish Wedge ScannerThe script does a check of all stocks and gives the top 10 list of stocks with bullish wedge formed on daily timeframe.
4H Previous Candle + FibonacciIndicator Description: 4H Previous Candle + Fibonacci
This Pine Script (v5) indicator is a technical analysis tool designed for traders using the
TradingView platform. It allows for the visualization of key levels from the previous 4-
hour candle directly on any lower time frame.
1. Primary Objective
The indicator aims to provide a Higher Time Frame (HTF) perspective automatically.
By plotting the high, low, and Fibonacci retracement levels of the last closed 4H
candle, it helps identify institutional support and resistance zones without the need to
constantly switch time frames.
2. Key Features
Feature Description
Automatic 4H Levels
Automatically plots horizontal lines for the High and Low of the
previous 4H candle.
Dynamic Adaptation
Line colors and styles adapt based on whether the candle was
bullish (green) or bearish (red).
Fibonacci
Retracements
Calculates and displays customizable Fibonacci levels (e.g., 23.6%,
38.2%, 50%, 61.8%, 78.6%).
Dashboard (HUD)
A summary table in the top-right corner displays exact values and
the candle type.
3. Technical Functionality
Data Retrieval (Multi-Timeframe)
The script uses the request.security function to extract data from the 4-hour time
frame (“240”). Using the index ensures the indicator is based on a closed candle,
eliminating any risk of “repainting” (levels changing during formation).
Fibonacci Calculation Logic
The calculation of Fibonacci levels is intelligent and directional:
Bullish Candle: The retracement is calculated from bottom to top (0% is at the
bottom).
Bearish Candle: The retracement is calculated from top to bottom (0% is at the
top).
4. Configuration Parameters
Users can customize the indicator via the settings menu:
Visual Settings: Toggle lines, adjust thickness, price labels, and decimal
precision.
Fibonacci Settings: Enable levels, choose colors, line thickness, and enter
custom retracement percentages.
5. Trading Use Cases
Bounce Zones: The 50% and 61.8% levels of the previous 4H candle are often
considered “Premium” or “Discount” zones where price tends to react.
Confluence: Use these levels alongside other indicators (RSI, moving averages)
to confirm entry points.
Risk Management: Place Stop Losses just beyond the previous 4H High or Low.
Document generated for the analysis of the “4H Previous Candle + Fibonacci” Pine
Script.
LockPoint TrackerLockPoint Tracker is a simple yet powerful tool for visually tracking price movement from a locked reference point.
Key Features:
• Lock any bar’s closing price with a single click.
• Reference line drawn at the locked price for clear visual context.
• “L” label marks the locked bar.
• Live percentage change label shows how far the current price has moved from the locked level.
• Green above the bar for gains, red below for losses.
• Automatically disappears on the next bar — always shows only the live value.
• Configurable label padding for optimal visibility on any chart or timeframe.
LockPoint Tracker is perfect for traders who want to monitor key levels, measure intrabar moves, or visually track performance from specific price points without cluttering the chart.
<Elite> Auto Harmonic Patterns [Trader-Alex]📘 User Manual: Auto HP
Product Overview
Auto Harmonic Patterns is a sophisticated technical analysis tool designed by Trader-Alex to identify "Harmonic Patterns" in the market.
Unlike traditional indicators that scan only a single period, this system employs "Dynamic Global Scanning" technology. It is capable of simultaneously detecting patterns within short-term fluctuations and long-term trends on a single chart. Not only does it mark historical patterns for backtesting, but it also predicts potential patterns forming in real-time, automatically plotting the Potential Reversal Zone (PRZ) along with Take Profit (TP) and Stop Loss (SL) recommendations.
Note: PRZ, TP, and SL are not investment advice. This technical indicator is intended for academic study and research purposes only.
Pattern Structure Lines (XABCD Structure)
In this indicator, the color of the XABCD connecting lines depends on the "Pattern Name." Whether the pattern is bullish or bearish, the same pattern type will display the same color, allowing you to instantly identify the structure type:
🦇 Bat: Blue
🦇 Alt Bat: Indigo
🦋 Gartley: Green
🦋 Butterfly: Orange
🦀 Crab: Purple
🦀 Deep Crab: Red
🦈 Shark: Aqua / Cyan
🔊 Cypher: Pink
How to distinguish between Bull/Bear? Please check the label text next to Point D, which explicitly marks or . The background color of the label will match the pattern colors listed above.
Trading Plan Lines (Entry, TP/SL Lines)
📈 Bullish Setup - Long Position
Entry Line: White (Default)
Take Profit (TP1 / TP2): Green
Stop Loss (SL): Red
📉 Bearish Setup - Short Position
Entry Line: White (Default)
Take Profit (TP1 / TP2): Cyan
Stop Loss (SL): Magenta
Note: It is recommended to set the Entry color to Black in Light Mode and White (default) in Dark Mode.
Potential Reversal Zone (PRZ)
When a Potential Pattern (not yet completed) is scanned, the extended rectangular block takes the same color as the representative color of that pattern.
Example: If a potential Butterfly is detected, the PRZ block will be Orange.
Example: If a potential Bat is detected, the PRZ block will be Blue.
Settings Guide
You can adjust the operation of the indicator via the settings panel. To keep the interface clean, parameters are categorized into the following groups:
⚙️ Scan Period Settings
Controls how the system "searches" for patterns. This indicator features automatic scanning, eliminating the need to manually specify a single length.
Real-time Sensitivity: When enabled, the system includes scanning for very short-term micro-fluctuations, significantly increasing the sensitivity of PRZ detection.
Start Length (Lower Limit): Sets the minimum structure size for scanning (lower values detect more subtle patterns). Minimum value is 5.
End Length (Upper Limit): Sets the maximum structure size (higher values detect larger patterns, usually representing major trends). Maximum value is 500.
Suggestion: Keep the default range to cover the majority of market volatility.
👁️ Pattern Visibility & Colors
Checkbox: You can individually toggle specific patterns on or off (e.g., only view Gartley or Bat).
Color: Customize the display color for each pattern to suit your visual preference.
🎯 Style & TP/SL Settings
Bullish/Bearish Entry/TP/SL Colors: Customize the colors for entry, take profit, and stop loss lines.
Line Length Multiplier: Adjusts how far the TP/SL lines extend to the right on the chart.
History TP/SL/Entry Lines Count:
If set to 0: Only displays lines for the current potential pattern.
If set to 1: Displays lines for the most recently completed historical pattern.
Maximum value is 50.
Show Potential Patterns: Toggles the display of predictive patterns currently forming.
Max Potential Count: Limits the number of potential patterns displayed simultaneously to avoid chart clutter.
PRZ Extra Padding %: Adjusts the width of the Potential Reversal Zone (PRZ). Increasing this value widens the reversal zone, offering higher tolerance but potentially lower precision.
Suggestion: Keep at 0% to maintain precision unless you wish to expand the capture range.
📊 Statistics Table Settings
Controls the performance statistics panel located at the bottom right (or custom position).
Show Statistics Table: Toggle the panel On/Off.
Table Position: Set the panel's position to one of the four corners of the chart.
Text Size: Adjust the text size within the table.
🧠 Core Logic (Advanced)
Tolerance %: Sets the strictness of pattern recognition.
Lower values: Patterns are more standard and precise, but fewer are detected.
Higher values: Detects more variations but may include signals with less standard ratios.
Note: The size of the error (tolerance) is not necessarily positively correlated with pattern profitability.
3~10%.
Statistics Dashboard
The panel located in the chart corner provides historical backtesting data for the asset on the current timeframe:
Pattern: Pattern Name.
Total: Total number of detections in history.
TP1 %: The probability of price reaching the first Take Profit point after triggering Entry, without hitting Stop Loss. (Close 50-60% of position here).
TP2 %: The probability of price reaching the second Take Profit point after triggering Entry, without hitting Stop Loss. (Close 25-50% of position here).
SL %: The probability of triggering Stop Loss.
Note 1: TP1% + SL% = 100%. Reaching TP1 is considered achieving the minimum profit target. Note 2: *Shark patterns must be closed 100% at TP1 to maintain a positive expected value in the long run.
💡 Pro Tip: Look for patterns in the table where TP1% exceeds 60%. This indicates that for the current asset, that specific pattern has high reliability. A small number of patterns may trigger the PRZ and reach TP1 or higher without hitting SL, but due to Point D deviating excessively, they are not counted in the win rate. Therefore, a win rate above 60% is actionable.
Alerts
This indicator has a built-in real-time alert function, triggered when a Potential Pattern detects price entering the PRZ.
Setup Steps:
Click the "Alert" button on the TradingView toolbar.
In the Symbol dropdown, set alerts for 15-minute and 1-hour timeframes respectively for your entire watchlist.
In the "Condition" menu, select Auto HP .
Select "Any alert() function call".
Set your notification method (App Notification, Email, or Popup).
Click "Create".
When a new trading opportunity arises, you will receive a notification containing the Pattern Name, Direction (Bull/Bear), and specific Entry/TP/SL prices.
Trading Advice & Disclaimer
Trading Advice & Practical Details
Wait for Confirmation: Although the indicator shows "Potential Patterns" and "Suggested Entry Points," it is strongly recommended to wait for a Reversal Signal (e.g., Engulfing Candle, Long Wick) within the PRZ before entering.
For 4H patterns, look for 1H reversal candles.
For 1H patterns, look for 15M reversal candles, and so on.
Multi-Timeframe Confluence: When a large timeframe (e.g., 4 Hours) and a small timeframe (e.g., 15 Minutes) show harmonic patterns in the same direction within the same zone, the win rate is typically extremely high.
Pattern Confluence: When Point D of a completed pattern (currently holding a position) overlaps with Point C of a new potential pattern (moving towards a new PRZ Entry), consider using the new potential Point D (PRZ Entry) as TP3 for your original order.
Reference Statistics: Different assets (e.g., Gold vs. Bitcoin) and timeframes suit different harmonic patterns. Please adjust your strategy based on the dashboard data.
Disclaimer
This indicator serves solely as an auxiliary analysis tool. The provided Entry, Take Profit, and Stop Loss levels are based on mathematical geometric ratio calculations and are for academic research and discussion purposes. They do not constitute a guarantee of future price movements. Financial trading involves high risk; please strictly implement money management and assume full responsibility for your trading results.
-------------------------------------------------------------------------------------------------
📘 使用手冊: 全自動諧波型態識別系統
產品概述
Auto Harmonic Patterns 是一款高階的技術分析工具,專為識別市場中的「諧波型態 (Harmonic Patterns)」,由Trader-Alex設計。
不同於傳統指標僅掃描單一週期,本系統採用**「動態全域掃描」技術**,能自動在單一圖表上同時偵測短線波動與長線趨勢中的型態。它不僅能標記歷史型態以供回測,更能即時預測正在形成的潛在型態,並自動繪製潛在反轉區 (PRZ) 與止盈止損建議。
註: PRZ、TP、SL都並非投資建議,本技術指標僅供學術學習研究使用。
型態結構線 (XABCD Structure)
在這份指標中,XABCD 連線的顏色取決於「型態名稱」,無論是看漲還是看跌,同一種型態都會顯示相同的顏色,方便您一眼識別結構類型:
🦇 Bat (蝙蝠): 藍色
🦇 Alt Bat (變形蝙蝠):靛色
🦋 Gartley (加特利):綠色
🦋 Butterfly (蝴蝶):橘色
🦀 Crab (螃蟹):紫色
🦀 Deep Crab (深海螃蟹):紅色
🦈 Shark (鯊魚):青亮色
🔊 Cypher (賽福):粉紅色
如何分辨多空? 請查看 D 點旁邊的標籤文字,會明確標示 (看漲) 或 (看跌),標籤背景色會跟隨上述型態顏色。
交易計畫線 (Entry、TP/SL Lines)
📈 看漲交易 (Bullish Setup) - 做多
進場線 (Entry): 白色(默認)
止盈線 (TP1 / TP2): 綠色
止損線 (SL): 紅色
📉 看跌交易 (Bearish Setup) - 做空
進場線 (Entry): 白色(默認)
止盈線 (TP1 / TP2): 青藍色
止損線 (SL): 紫紅色
註: Entry顏色建議於亮色模式下設定黑色,並且於暗色模式下設定白色(默認)。
潛在反轉區 (Potential Reversal Zone)
當掃描到潛在型態(尚未完成)時,延伸出的矩形色塊顏色與該型態的代表色相同。
例如:偵測到潛在 Butterfly,PRZ 色塊就是 橘色。
例如:偵測到潛在 Bat,PRZ 色塊就是 藍色。
參數設定說明 (Settings Guide)
您可以透過指標設定面板調整運作方式。為了保持介面簡潔,參數分為以下群組:
⚙️ Scan Period Settings (掃描週期設定)
控制系統如何「尋找」型態。本指標具備自動掃描功能,無需手動指定單一長度。
Real-time Sensitivity (K線即時靈敏度): 開啟後,系統會包含極短線的微小波動掃描,對於PRZ抓取靈敏度大幅度提升。
Start Length (掃描週期下限): 設定掃描的最小結構大小(數值越小,抓到的型態越細微),最小數值為5。
End Length (掃描週期上限): 設定掃描的最大結構大小(數值越大,抓到的型態越大,通常代表大趨勢),最大數值為500。
建議:保持預設範圍即可覆蓋大部份市場波動。
👁️ Pattern Visibility & Colors (型態開關與顏色)
開關 (Checkbox): 您可以單獨開啟或關閉特定的型態(例如只看 Gartley 或 Bat)。
顏色 (Color): 自定義每種型態在圖表上顯示的顏色,方便視覺區分。
🎯 Style & TP/SL Settings (樣式與訂單設定)
Bullish/Bearish Entry/TP/SL Colors: 自定義進場、止盈、止損線的顏色。
Line Length Multiplier(線條長度倍數): 調整 TP/SL 線在圖表向右延伸的長度。
History TP/SL/Entry Lines Count (顯示止盈/止損/進場線數量):如果填寫0,僅會顯示當前潛在型態止盈/止損/進場線;如果填寫1,則會顯示最近一次完成歷史型態的止盈/止損/進場線,最大數值為50。
Show Potential Patterns(顯示潛在型態): 是否顯示正在形成中的預測型態。
Max Potential Count(最大顯示預測數量): 限制圖表上同時顯示的潛在型態數量,避免畫面過於雜亂。
PRZ Extra Padding %(額外填充擴張): 調整潛在反轉區 (PRZ) 的寬度。增加此數值會讓反轉區範圍變大,容錯率更高,但也可能降低精確度。建議保持 0% 以維持精確度,除非您希望擴大捕捉範圍。
📊 Statistics Table Settings (統計表格設定)
控制右下角(或自訂位置)的績效統計面板。
Show Statistics Table(顯示統計表): 開啟/關閉統計面板。
Table Position(表格位置): 設定面板在圖表四個角落的位置。
Text Size(文字大小): 調整表格文字大小。
🧠 Core Logic (核心邏輯 - 進階)
Tolerance % (容錯率): 設定型態識別的嚴格程度。
容錯率數值越小:型態越標準、精確,但數量較少。
容錯率數值越大:能偵測到更多變形型態,但可能包含數值型態比例較不標準的訊號。
注意: 誤差大小與型態止盈不見得呈正向關係。
3~10%。
統計儀表板解讀 (Statistics Dashboard)
位於圖表角落的面板提供了該商品在當前時間級別的歷史回測數據:
Pattern: 型態名稱。
Total: 歷史上偵測到的總次數。
TP1 %: 價格觸發進場後,在碰到止損前,成功到達第一止盈點的機率。此位置需平倉50~60%倉位。
TP2 %: 價格觸發進場後,在碰到止損前,成功到達第二止盈點的機率。此位置需平倉25~50%倉位。
SL %: 觸發止損的機率。
註1: TP1 %+SL % = 100%,TP1即算完成最低盈利目標。
註2: ***鯊魚型態必須於TP1平倉100%,長期為正期望值。
💡 使用技巧: 觀察表格中 TP1% 超過 60% 的型態,這代表在當前市場商品中,該特定型態的可靠度較高。少數型態會在觸發PRZ後,因為並未SL且達成TP1以上,但D點過份偏移,而無法計入勝率,因此60%以上勝率即可操作。
警報設定 (Alerts)
本指標內建即時警報功能,當潛在型態 (Potential Pattern) 偵測到價格進入反轉區 (PRZ) 時會觸發。
設定步驟:
點擊 TradingView 工具列的「警報 (Alert)」按鈕。
在商品(Symbols)下拉選單,根據整個觀察清單分別設置15分K以及1H提醒通知
在「條件 (Condition)」選單中,選擇 Auto HP 。
選擇 "Any alert() function call"。
設定通知方式(App 推播、Email 或彈出視窗)。
點擊「建立」。
當新的交易機會出現時,您將會收到包含型態名稱、方向 (Bull/Bear) 以及具體 Entry/TP/SL 價格的通知。
交易建議與免責聲明
等待確認: 雖然指標顯示了「潛在型態」與「建議進場點」,但強烈建議等待 K 棒在 PRZ 區域內出現反轉訊號(如吞噬形態、長影線)後再進場。
4H型態看1H反轉K,1H型態看15M反轉K,依此類推。
多週期共振: 當大週期(如 4小時)與小週期(如 15分鐘)在同一區域出現相同方向的諧波型態時,勝率通常極高。
型態共振: 當一個已完成型態的 D 點(持倉中),與新潛在型態的 C 點(正在往新 PRZ 的 Entry 方向邁進)重合時,可以考慮透過新潛在型態的 D 點(PRZ 的 Entry)作為原訂單的 TP3。
參考統計: 不同商品(如黃金 vs. 比特幣)以及時間週期適合的諧波型態不同,請參考面板數據調整策略。
免責聲明
本指標僅作為輔助分析工具,所提供的進場、止盈與止損點位皆基於數學幾何比例計算,作為學術研究討論,不代表對未來價格波動的保證。金融交易具有高度風險,請務必嚴格執行資金管理,並自行承擔交易結果。
Relative VolumeSimple relative volume indicator.
Relative Volume (RVOL) on is a technical indicator that compares an asset's current trading volume to its historical average for that specific time of day, helping traders spot unusual activity, confirm trends, or find potential reversals by showing if volume is significantly higher (green/buzzing) or lower (red/flat) than normal. It's popular for intraday analysis, identifying "in-play" tickers, and gauging market conviction.
Malaysian SNR Levels + FVGThis indicator combines the precision of Malaysian SnR levels with Fair Value Gap (FVG) detection, filtering levels to only appear within active FVG zones. This unique combination helps traders focus on the most relevant support and resistance levels where institutional order flow is likely present.
█ WHAT ARE FAIR VALUE GAPS (FVGs)?
A Fair Value Gap is a three-candle pattern where price moves so aggressively that it leaves an unfilled gap between the first and third candle:
Bullish FVG: Occurs when the low of candle 3 is higher than the high of candle 1, creating a gap to the upside.
Bearish FVG: Occurs when the high of candle 3 is lower than the low of candle 1, creating a gap to the downside.
These gaps represent areas of imbalance where price moved too quickly, often due to institutional activity. Price tends to return to these zones to "fill" or "mitigate" the gap before continuing its move.
█ WHAT ARE MALAYSIAN SNR LEVELS?
Malaysian SnR identifies support and resistance not as zones but as precise horizontal levels derived from a line chart perspective:
A-Level: Located at peaks of the line chart (shaped like the letter A)
V-Level: Located at valleys of the line chart (shaped like the letter V)
Gap Level: Located at the Close/Open gap between two consecutive candles of the same color
Levels can be Fresh (solid line) or Unfresh (dashed line):
A level is fresh if it hasn't been tested by a wick
Fresh levels have higher probability of price reaction
A level becomes fresh again if crossed by a candle body
█ THE COMBINATION: SNR LEVELS INSIDE FVGs
This indicator only displays SNR levels that fall within an active (non-invalidated) FVG zone. This filtering mechanism provides several advantages:
Reduced Noise: Instead of showing all nearby levels, only those within institutional imbalance zones are displayed
Higher Confluence: When a precise SNR level sits inside an FVG, it creates a high-probability reaction zone
Dynamic Updates: As FVGs get invalidated, the associated levels disappear, keeping your chart clean
█ FVG INVALIDATION LOGIC
An FVG remains active until price invalidates it:
Bullish FVG: Invalidated when price moves below the bottom of the gap
Bearish FVG: Invalidated when price moves above the top of the gap
You can choose the invalidation method:
Body Close (default): FVG is only invalidated when a candle body closes beyond the zone
Wick: FVG is invalidated as soon as a wick touches beyond the zone
█ MULTI-TIMEFRAME SUPPORT
Both FVGs and SNR levels are calculated on the selected timeframe, allowing you to:
Display Daily FVGs with SNR levels on a 1H chart
Identify higher timeframe institutional zones while trading on lower timeframes
Combine multiple instances for multi-timeframe confluence
█ PARAMETERS
SNR Settings:
Line Color / Width: Appearance of SNR levels
Display gap levels: Show/hide gap-based levels
Display opening gaps: Show the gap box between candle close and next open
Display fresh levels only: Hide unfresh/tested levels
Display number of level breaks: Show how many times a level was broken
Evaluate current bar: Include the current (incomplete) bar in freshness calculation
Bars Lookback: Number of bars to scan for levels
Level Regions: Filter levels relative to current price or current bar's High/Low
Levels Above/Below: Maximum number of levels to display in each direction
Max Level Breaks: Hide levels that have been broken more than this number
FVG Settings:
Bullish/Bearish FVG Color: Colors for the FVG boxes
FVG Border Width: Border thickness of FVG boxes
Show FVG Boxes: Toggle FVG box visibility
FVG Invalidation Method: Choose between Body Close or Wick invalidation
Timeframe:
Timeframe: The timeframe for calculating both FVGs and SNR levels
█ HOW TO TRADE WITH THIS INDICATOR
Identify Active FVGs: Look for FVG boxes on your chosen timeframe - these represent institutional imbalance zones
Watch for SNR Levels: When an SNR level appears inside an FVG, this creates a high-confluence zone
Wait for Price to Approach: As price returns to fill the FVG and reaches the SNR level, watch for reaction
Confirm on Lower Timeframe: Switch to a lower timeframe to look for entry signals (rejection wicks, engulfing patterns, break of structure)
Trade the Reaction: At a Bullish FVG with SNR support look for long entries - at a Bearish FVG with SNR resistance look for short entries
The combination of FVG (institutional footprint) with precise SNR levels (exact reaction points) provides a powerful framework for identifying high-probability trade setups.
LTF Distribution Analyzer█ OVERVIEW
LTF Distribution Analyzer reveals the hidden price distribution and order flow within each candle by sampling lower timeframe data. It visualizes where prices concentrated, how volume was distributed between buyers and sellers, and identifies divergences between price action and actual market participation.
Unlike traditional candlesticks showing only OHLC, this indicator exposes the statistical structure of price movement using quartile-based visualization combined with delta analysis.
█ CONCEPTS
The indicator is built on two core concepts:
1 — Statistical Price Distribution
Each candle contains many lower timeframe bars. By analyzing these bars, we calculate:
• Q1 (25th percentile) - 25% of prices traded below this level
• Q3 (75th percentile) - 75% of prices traded below this level
• Median - The middle price value
• IQR (Interquartile Range) - The Q3-Q1 spread containing 50% of all prices
2 — Volume Delta Analysis
Delta measures buying vs selling pressure:
• Delta = Buy Volume − Sell Volume
• Positive delta = More aggressive buying
• Negative delta = More aggressive selling
• Delta Ratio normalizes this as a percentage
█ HOW IT WORKS
The indicator fetches lower timeframe data using request.security_lower_tf() and processes it to create a statistical summary:
Step 1: Timeframe Calculation
• Auto mode: Chart timeframe ÷ Auto Divisor = LTF
• Example: 1H chart ÷ 1000 = ~3.6 second sampling
• Manual mode: User-specified timeframe
Step 2: Data Collection
• Collects all close prices from LTF bars within current candle
• Aggregates volume by candle direction (bullish/bearish)
Step 3: Statistical Analysis
• Calculates quartiles (Q1, Q3), median, and boundaries
• Identifies outliers using 1.5× and 3× IQR fences
• Finds Volume POC (price with highest volume)
Step 4: Delta Calculation
• Sums buy volume (from bullish LTF bars)
• Sums sell volume (from bearish LTF bars)
• Computes delta ratio for color determination
█ VISUAL ELEMENTS
┌─────────────────────────────────────────┐
│ ▲ Extreme outlier (3× IQR) │
│ △ Mild outlier (1.5× IQR) │
│ ─ Upper whisker cap │
│ ┊ Whisker line (dashed) │
│ ▄ IQR Box (Q1 to Q3 range) │
│ ━ Volume POC (highest volume) │
│ ● Median (green=bull, red=bear) │
│ ┊ Whisker line (dashed) │
│ ─ Lower whisker cap │
│ ▽ Mild outlier │
│ ▼ Extreme outlier │
└─────────────────────────────────────────┘
█ COLOR SYSTEM
Colors indicate the relationship between candle direction and order flow:
🟢 TEAL (Positive Flow)
Bullish candle + Positive delta
→ Strong buying confirmation
→ Trend continuation signal
🔴 RED (Negative Flow)
Bearish candle + Negative delta
→ Strong selling confirmation
→ Trend continuation signal
🟠 ORANGE (Mixed Signal A)
Bullish candle + Negative delta
→ Price up but sellers dominated
→ Potential weakness/reversal warning
🔵 BLUE (Mixed Signal B)
Bearish candle + Positive delta
→ Price down but buyers dominated
→ Potential accumulation/reversal signal
█ SETTINGS
Timeframe Settings
• LTF Mode — Auto or Manual selection
• Manual Timeframe — Specific LTF when in Manual mode
• Auto Divisor — Higher = finer granularity (default: 1000)
• Allow Sub-Minute — Requires Premium subscription
Visual Style
• Positive/Negative Flow colors — Customize the 4 flow colors
• Box Transparency — Opacity of the quartile box (0-100%)
Statistics Display
• Show Statistics Panel — Toggle on-chart stats table
• Show Timeframe Badge — Toggle LTF indicator badge
• Panel Position — Choose corner placement
• Panel Size — Text size selection
█ HOW TO USE
1. Divergence Detection
Look for color mismatches:
• Orange bars in uptrend = weakness, potential reversal
• Blue bars in downtrend = strength, potential reversal
• Multiple consecutive divergent bars strengthen signal
• Wait for confirmation before entry
2. Volume POC Trading
• POC marks where most volume traded
• POC clusters at similar levels = strong S/R zone
• Price often returns to POC before continuing
• Use POC for entry/exit targeting
3. Trend Confirmation
• Consecutive teal = strong uptrend
• Consecutive red = strong downtrend
• Median position shows intrabar momentum
• Wide boxes indicate high volatility
4. Outlier Analysis
• Extreme markers (▲▼) often mark stop hunts
• Consider fading extremes at key levels
• Mild markers (△▽) = areas to watch
█ RECOMMENDED SETTINGS
For different chart timeframes:
│ Chart TF │ Auto Divisor │ Resulting LTF │
├──────────┼──────────────┼───────────────┤
│ 15M │ 1500 │ ~1M │
│ 1H │ 1000 │ ~3-4s │
│ 4H │ 600 │ ~24s │
│ Daily │ 500 │ ~2-3M │
Tip: Check the TF badge to confirm active sampling timeframe.
█ BEST PRACTICES
Do:
✓ Use "Bars" chart style for cleanest display
✓ Combine with support/resistance analysis
✓ Wait for confirmation bars
✓ Note POC clusters across multiple bars
✓ Adjust divisor based on your timeframe
Avoid:
✗ Trading single bar signals alone
✗ Using during low volume periods
✗ Trading immediately after news releases
✗ Ignoring overall market context
█ LIMITATIONS
• Requires adequate market liquidity for reliable signals
• Sub-minute timeframes need Premium subscription
• Historical data depth depends on TradingView's data availability
• Delta calculation assumes volume direction matches candle direction
█ NOTES
This indicator works best on liquid markets (forex majors, major indices, popular stocks/crypto) where volume data is meaningful.
The gray dotted vertical line marks where LTF data becomes available - bars before this line won't display the indicator.
For questions or suggestions, leave a comment below.






















