Harmonic Pattern Auto Scanner All Pair Timeframe
- 지표
- 버전: 1.13
- 업데이트됨: 12 9월 2026
- 활성화: 20
1. OVERVIEW
Harmonic Dashboard is a specialized multi-symbol and multi-timeframe analytical indicator designed for MetaTrader 5 (MT5). The software systematically scans financial instruments across multiple timeframes to identify six classical harmonic chart patterns: Gartley, Bat, Butterfly, Crab, Cypher, and Shark.
The application consolidates multi-asset scanner results, trend filter validation metrics, price level projections, and interactive chart navigation controls into a single graphical panel rendered on the active chart. This architecture enables technical traders to monitor entire asset watchlists from a single workstation interface without opening dozens of individual chart windows.
Harmonic Dashboard functions purely as a technical analysis dashboard and signal scanning tool. It does not execute automated trades, manage live orders, or replace risk management decisions.
2. TECHNICAL OPERATING PRINCIPLE & ALGORITHMIC ARCHITECTURE
2.1. Swing Extraction Logic & Pivot Determination
Harmonic Dashboard identifies structural market swings using a pivot detection algorithm operating on localized high and low price extrema. A price bar is confirmed as a Pivot High if its high price is strictly higher than the high prices of 'InpPivotLength' bars preceding it and 'InpPivotLength' bars succeeding it. Conversely, a price bar is confirmed as a Pivot Low if its low price is strictly lower than the low prices of 'InpPivotLength' bars preceding and succeeding it.
The system maintains up to 80 consecutive swing points in a dynamic structure array. Alternating High-Low swing integrity is maintained by consolidating consecutive highs or lows into single extrema points, ensuring accurate geometric leg measurements.
2.2. Harmonic Ratio Calculation & Pattern Classification
When five consecutive valid swing points (designated as X, A, B, C, D) are extracted, the indicator evaluates the relative Fibonacci relationships across all structural legs. The following mathematical formulas define the leg ratios:
- XAB Ratio = Abs(Price_B - Price_A) / Abs(Price_A - Price_X)
- ABC Ratio = Abs(Price_C - Price_B) / Abs(Price_B - Price_A)
- BCD Ratio = Abs(Price_D - Price_C) / Abs(Price_C - Price_B)
- XAD Ratio = Abs(Price_D - Price_A) / Abs(Price_A - Price_X)
- XCD Ratio = Abs(Price_D - Price_C) / Abs(Price_C - Price_X)
- XAC Ratio = Abs(Price_C - Price_A) / Abs(Price_A - Price_X)
A harmonic pattern is validated if the computed ratios satisfy specified geometric criteria within the user-defined percentage tolerance coefficient ('InpTol'):
- Gartley Pattern:
* Structure condition: Point D location is an internal retracement relative to Point X (dBeyondX = false)
* XAB Ratio: Near 0.618
* ABC Ratio: Range [0.382, 0.886]
* BCD Ratio: Range [1.130, 1.618]
* XAD Ratio: Near 0.786
- Bat Pattern:
* Structure condition: Point D location is an internal retracement relative to Point X (dBeyondX = false)
* XAB Ratio: Range [0.382, 0.500]
* ABC Ratio: Range [0.382, 0.886]
* BCD Ratio: Range [1.618, 2.618]
* XAD Ratio: Near 0.886
- Butterfly Pattern:
* Structure condition: Point D location extends beyond Point X (dBeyondX = true)
* XAB Ratio: Near 0.786
* ABC Ratio: Range [0.382, 0.886]
* BCD Ratio: Range [1.618, 2.240]
* XAD Ratio: Range [1.272, 1.618]
- Crab Pattern:
* Structure condition: Point D location extends beyond Point X (dBeyondX = true)
* XAB Ratio: Range [0.382, 0.618]
* ABC Ratio: Range [0.382, 0.886]
* BCD Ratio: Range [2.240, 3.618]
* XAD Ratio: Near 1.618
- Cypher Pattern:
* Structure condition: Point D location is an internal retracement relative to Point X (dBeyondX = false)
* XAB Ratio: Range [0.382, 0.618]
* XAC Ratio: Range [1.130, 1.414]
* XCD Ratio: Near 0.786
- Shark Pattern:
* Structure condition: Evaluated for standard and extension configurations
* XAB Ratio: Range [1.130, 1.618]
* ABC Ratio: Range [1.130, 1.618]
* XAD Ratio: Range [0.886, 1.130]
2.3. Signal Characteristics, Repainting Status & Closed Bar Evaluation
- Closed Bar Processing: All indicator calculations and trend filter validations are evaluated exclusively on closed price bars (bar index shift 1). Open active bars (bar index shift 0) are excluded from signal confirmation to prevent indicator flickering.
- Repainting Transparency: Non-repainting on confirmed closed bars. Because pivot confirmation requires 'InpPivotLength' bars after Point D, once Point D is identified and validated on closed historical bars, its coordinates, ratios, and price levels remain permanently fixed on both chart objects and dashboard table rows.
2.4. Entry, Stop Loss, and Take Profit Calculation Rules
- Bullish Pattern Signals: Generated when Point D completes a swing low structure and active filters evaluate to true.
* Entry Level = Price at Point D
* Stop Loss (Standard Patterns) = Price_X - (Abs(Price_A - Price_X) * InpSlBuf)
* Stop Loss (Extension Patterns: Butterfly, Crab, Shark) = Price_D - (Abs(Price_A - Price_X) * InpSlBuf)
* Take Profit 1 = Price_D + (Abs(Price_A - Price_D) * 0.382)
* Take Profit 2 = Price_D + (Abs(Price_A - Price_D) * 0.618)
* Take Profit 3 = Price_D + (Abs(Price_A - Price_D) * 1.000)
- Bearish Pattern Signals: Generated when Point D completes a swing high structure and active filters evaluate to true.
* Entry Level = Price at Point D
* Stop Loss (Standard Patterns) = Price_X + (Abs(Price_A - Price_X) * InpSlBuf)
* Stop Loss (Extension Patterns: Butterfly, Crab, Shark) = Price_D + (Abs(Price_A - Price_X) * InpSlBuf)
* Take Profit 1 = Price_D - (Abs(Price_A - Price_D) * 0.382)
* Take Profit 2 = Price_D - (Abs(Price_A - Price_D) * 0.618)
* Take Profit 3 = Price_D - (Abs(Price_A - Price_D) * 1.000)
2.5. Trend Filtering System Architecture
Harmonic Dashboard integrates four independent trend filtering modules. When filters are enabled, a detected harmonic pattern must satisfy ALL active filter conditions simultaneously (Logical AND) on closed bar index 1. If any active filter condition fails, the pattern is filtered out and removed from the dashboard display.
- Single Moving Average Filter:
* Bullish Rule: Closed Price (shift 1) > Single MA Value (shift 1)
* Bearish Rule: Closed Price (shift 1) < Single MA Value (shift 1)
- RSI 75 Filter:
* Bullish Rule: RSI 75 Value (shift 1) > 50.0
* Bearish Rule: RSI 75 Value (shift 1) < 50.0
- Double Moving Average Filter:
* Bullish Rule: Fast MA Value (shift 1) > Slow MA Value (shift 1)
* Bearish Rule: Fast MA Value (shift 1) < Slow MA Value (shift 1)
- Relative Vigor Index (RVI) Filter:
* Bullish Rule: Main RVI Line Value (shift 1) > 0.0
* Bearish Rule: Main RVI Line Value (shift 1) < 0.0
3. KEY TECHNICAL FEATURES
- Multi-Symbol and Multi-Timeframe Background Scanner: Continuously scans user-configured financial instruments and timeframes via timer loops without slowing down terminal interactivity.
- Quad-Module Trend Filter Engine: Provides optional trend verification using Single Moving Average, Double Moving Average Crossover, RSI 75, and Relative Vigor Index (RVI).
- Interactive Chart Object Plotter: Automatically renders structure lines (XA, AB, BC, CD), secondary ratio lines (XB, AC, XD), ratio labels, projection target lines (Entry, SL, TP1, TP2, TP3), direction arrows, Fibonacci grids, and bounding highlight boxes.
- Real-Time Graphical Dashboard Table: On-chart panel presenting Symbol, Timeframe, Pattern Name, Signal Direction, Signal Date/Time, Entry Price, Stop Loss, TP1, TP2, TP3, Signal Age, and interactive OPEN chart buttons.
- Single-Click Column Sorting: Sorts dashboard entries dynamically by Signal Time, Symbol Name, Timeframe, or Direction.
- One-Click Chart Switching: Clicking the 'OPEN' button on any table row automatically switches the active chart symbol and timeframe, displaying the corresponding harmonic structure instantly.
- Comprehensive Alert Options: Supports terminal pop-up alerts, local audio file playback (alert.wav), and mobile Push notifications via MetaQuotes ID.
- Memory and Resource Management: Utilizes configurable bar analysis limits ('InpBarsCopy') and indicator handle management to maintain efficient CPU and memory usage during multi-chart scanning operations.
4. OPERATION & SETUP RECOMMENDATIONS
- Supported Instruments: Compatible with liquid Forex currency pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, USDCHF, NZDUSD, EURJPY, GBPJPY), spot metals (XAUUSD), equity indices, and commodities. Universal scanner design allows deployment across any symbol active in MetaTrader Market Watch.
- Supported Timeframes: M1, M5, M15, M30, H1, H4, D1, W1, MN. M15, H1, H4, and D1 timeframes are recommended for swing and day trading strategies.
- Account Compatibility: Fully operational on Hedging and Netting MetaTrader 5 trading accounts across Standard, Raw Spread, and Low-Latency ECN environments.
- Performance Tuning: For optimal CPU and memory usage, particularly on lower-specification VPS or trading terminals, limit 'InpMaxSymbols' to 10-15 active symbols and maintain 'InpBarsCopy' between 150 and 200 bars.
5. COMPLETE INPUT PARAMETERS DOCUMENTATION
5.1. Scanner Settings
- InpSymbols (Default: "EURUSD,GBPUSD,USDJPY,AUDUSD,USDCAD,USDCHF,NZDUSD,EURJPY,GBPJPY,XAUUSD"): Comma-separated list of symbols to scan when Market Watch scanning is disabled.
- InpTimeframes (Default: "M1,M5,M15,M30,H1,H4,D1"): Comma-separated list of timeframes to scan.
- InpUseWatch (Default: true): Primary toggle to scan all active symbols listed in the MetaTrader Market Watch window.
- InpMaxSymbols (Default: 10): Maximum total number of symbols processed concurrently by the scanner.
- InpScanSec (Default: 5): Background scanning timer execution interval specified in seconds.
- InpBarsCopy (Default: 150): Number of historical price bars copied and analyzed per symbol and timeframe.
5.2. ZigZag and Pattern Detection Settings
- InpPivotLength (Default: 2): Bar count depth required on both left and right sides to confirm a pivot high or pivot low.
- InpGartley (Default: true): Enables or disables detection of Gartley harmonic pattern structures.
- InpBat (Default: true): Enables or disables detection of Bat harmonic pattern structures.
- InpButterfly (Default: true): Enables or disables detection of Butterfly harmonic pattern structures.
- InpCrab (Default: true): Enables or disables detection of Crab harmonic pattern structures.
- InpCypher (Default: true): Enables or disables detection of Cypher harmonic pattern structures.
- InpShark (Default: true): Enables or disables detection of Shark harmonic pattern structures.
- InpTol (Default: 0.15): Ratio tolerance threshold fraction (0.15 represents a 15% ratio variation tolerance).
- InpDirection (Default: 0): Directional filter setting (0 = Both Bullish and Bearish, 1 = Bullish patterns only, 2 = Bearish patterns only).
- InpSlBuf (Default: 0.15): Stop Loss buffer multiplier relative to the vertical length of the XA leg.
5.3. Trend Filter Settings
- Mode_Group (Default: "=== FILTER MODE ==="): Group header label divider in the MetaTrader inputs tab.
- MA_Group (Default: "=== SINGLE MA FILTER ==="): Visual group label divider for Single Moving Average inputs.
- Use_MA_Filter (Default: false): Enables or disables the Single Moving Average trend filter.
- MA_Period (Default: 50): Calculation bar period for the Single Moving Average trend filter.
- MA_Method (Default: MODE_SMA): Averaging calculation method applied to the Single Moving Average (MODE_SMA, MODE_EMA, MODE_SMMA, MODE_LWMA).
- MA_Applied (Default: PRICE_CLOSE): Price type applied in the Single Moving Average calculation.
- MA_Shift (Default: 0): Bar shift index offset for the Single Moving Average filter.
- RSI75_Group (Default: "=== RSI 75 FILTER ==="): Visual group label divider for RSI inputs.
- Use_RSI75_Filter (Default: false): Enables or disables the RSI 75 trend filter.
- RSI_Filter_Period (Default: 75): Calculation bar period for the Relative Strength Index trend filter.
- RSI_Price_Source (Default: PRICE_CLOSE): Price type applied in the RSI calculation.
- DoubleMA_Group (Default: "=== DOUBLE MA FILTER ==="): Visual group label divider for Double Moving Average inputs.
- Use_DoubleMA_Filter (Default: false): Enables or disables the Fast/Slow Moving Average crossover trend filter.
- MA_A_Period (Default: 30): Calculation bar period for the Fast Moving Average (MA A).
- MA_A_Method (Default: MODE_EMA): Averaging calculation method applied to the Fast Moving Average (MA A).
- MA_A_Applied (Default: PRICE_CLOSE): Price type applied in the Fast Moving Average (MA A) calculation.
- MA_A_Shift (Default: 0): Bar shift index offset for the Fast Moving Average (MA A).
- MA_B_Period (Default: 140): Calculation bar period for the Slow Moving Average (MA B).
- MA_B_Method (Default: MODE_EMA): Averaging calculation method applied to the Slow Moving Average (MA B).
- MA_B_Applied (Default: PRICE_CLOSE): Price type applied in the Slow Moving Average (MA B) calculation.
- MA_B_Shift (Default: 0): Bar shift index offset for the Slow Moving Average (MA B).
- RVI_Group (Default: "=== RVI TREND FILTER ==="): Visual group label divider for RVI inputs.
- Use_RVI_Filter (Default: false): Enables or disables the Relative Vigor Index trend filter.
- RVI_Period (Default: 75): Calculation bar period for the Relative Vigor Index trend filter.
5.4. Notification Settings
- InpAlertPopup (Default: true): Enables pop-up alert dialog boxes in the MetaTrader terminal.
- InpAlertSound (Default: true): Enables audio notification sound playback (alert.wav).
- InpAlertPush (Default: false): Enables push notifications sent to mobile MetaTrader terminals via MetaQuotes ID.
- InpAlertOnlyNew (Default: false): Restricts alert triggers exclusively to newly formed pattern Point D timestamps.
5.5. Display and User Interface Settings
- InpX (Default: 12): Horizontal X-axis pixel coordinate offset for the dashboard panel.
- InpY (Default: 28): Vertical Y-axis pixel coordinate offset for the dashboard panel.
- InpScale (Default: 110): Overall scaling percentage for the panel graphical user interface (supported range: 70 to 180 percent).
- InpRowH (Default: 18): Height of individual table rows measured in pixels.
- InpFont (Default: 7): Point size of text font used across table headers and data cells.
- InpPadX (Default: 7): Left side inner padding distance in pixels.
- InpWPair (Default: 55): Width of the PAIR column in pixels.
- InpWTF (Default: 30): Width of the TF column in pixels.
- InpWPola (Default: 60): Width of the PATTERN column in pixels.
- InpWArah (Default: 48): Width of the DIR column in pixels.
- InpWTime (Default: 108): Width of the D TIME column in pixels.
- InpWEntry (Default: 55): Width of the ENTRY column in pixels.
- InpWSL (Default: 55): Width of the SL column in pixels.
- InpWTP1 (Default: 55): Width of the TP1 column in pixels.
- InpWTP2 (Default: 55): Width of the TP2 column in pixels.
- InpWTP3 (Default: 55): Width of the TP3 column in pixels.
- InpWUmur (Default: 55): Width of the AGE column in pixels.
- InpWOpen (Default: 46): Width of the OPEN chart button in pixels.
- InpShowEmpty (Default: false): Toggles whether symbol and timeframe combinations without active signals are shown on the table.
- InpMaxRows (Default: 17): Maximum number of visible table rows rendered on the dashboard.
5.6. Sorting Settings
- InpSortBy (Default: SORT_TIME): Primary column sorting criterion (0 = Time, 1 = Pair, 2 = Timeframe, 3 = Direction).
- InpSortNewest (Default: true): Sorting order direction (true = newest/descending order, false = ascending order).
5.7. On-Chart Visual Display Settings
- InpDrawOnChart (Default: true): Primary toggle to render harmonic pattern graphical visual objects on the active chart.
- InpShowZigZag (Default: false): Displays or hides structural swing lines connecting points X, A, B, C, D.
- InpShowBox (Default: false): Displays or hides the shaded background bounding box surrounding pattern coordinates.
- InpShowLevels (Default: true): Displays or hides horizontal projection lines for Entry, SL, TP1, TP2, and TP3.
- InpShowFibo (Default: true): Displays or hides the Fibonacci extension tool object and ratio level lines.
- InpShowArrow (Default: true): Displays or hides signal direction arrows at Point D candle coordinates.
- InpShowRatios (Default: true): Displays or hides calculated ratio labels on structural pattern legs (XAB, ABC, BCD, XD).
- InpExtendBars (Default: 25): Extension distance in future bars for projected level horizontal lines.
- InpArrowCodeBuy (Default: 233): Wingdings character code used for Bullish signal arrows.
- InpArrowCodeSell (Default: 234): Wingdings character code used for Bearish signal arrows.
- InpArrowSize (Default: 2): Graphic size thickness for signal arrow objects (range: 1 to 5).
- InpArrowShiftPts (Default: 20): Vertical distance offset in points for positioning signal arrows above or below price candles.
- InpBoxAlpha (Default: 28): Transparency alpha value for the bounding box background fill (range: 0 to 255).
5.8. Color Settings
- InpColBg (Default: C'18,22,28'): Background fill color of the main dashboard panel.
- InpColHead (Default: C'32,38,48'): Background color for the dashboard header title bar and buttons.
- InpColRow (Default: C'24,28,36'): Primary background color for even table rows.
- InpColRow2 (Default: C'28,33,42'): Secondary background color for odd table rows.
- InpColText (Default: C'220,225,230'): Font color for default text labels.
- InpColBull (Default: C'0,200,83'): Color applied to Bullish pattern labels, arrows, and structure legs.
- InpColBear (Default: C'255,82,82'): Color applied to Bearish pattern labels, arrows, and structure legs.
- InpColMute (Default: C'120,128,140'): Font color for secondary info text and inactive labels.
- InpColAccent (Default: C'41,98,255'): Highlight color for active buttons and panel title text.
- InpColTP (Default: C'0,188,212'): Font color for Take Profit values in the dashboard table.
- InpColArrowBuy (Default: C'0,230,118'): Visual color for Bullish entry arrow objects on the chart.
- InpColArrowSell (Default: C'255,82,82'): Visual color for Bearish entry arrow objects on the chart.
- InpColEntry (Default: C'41,98,255'): Color applied to the Entry level horizontal line.
- InpColEN1 (Default: C'255,235,59'): Color applied to the Fibonacci Entry 1 (61.8%) line.
- InpColEN2 (Default: C'255,193,7'): Color applied to the Fibonacci Entry 2 (38.2%) line.
- InpColFibo (Default: C'158,158,158'): Color applied to the main Fibonacci grid tool lines.
- InpColSL (Default: C'255,109,0'): Color applied to the Stop Loss level horizontal line.
- InpColTP1 (Default: C'0,191,165'): Color applied to the Take Profit 1 horizontal line.
- InpColTP2 (Default: C'0,172,193'): Color applied to the Take Profit 2 horizontal line.
- InpColTP3 (Default: C'124,77,255'): Color applied to the Take Profit 3 horizontal line.
6. RISK DISCLAIMER
Trading foreign exchange, spot metals, equities, commodities, and other financial derivative instruments carries a high degree of risk and may not be suitable for all investors. Financial leverage can work against you as well as for you, potentially leading to substantial loss of capital.
Past performance, historical simulation, or backtesting results do not constitute a guarantee of future outcomes. Harmonic Dashboard is an analytical technical software utility designed to assist traders in identifying chart geometric structures and monitoring price action conditions. It does not provide financial advice, automated order execution, or financial return guarantees.
Users should thoroughly evaluate the functionality, parameters, and behavior of the indicator software on a demonstration account (Demo Account) prior to deploying it in live market environments.

