Pinbar Candle Scanner Dashboard All Pair Timeframe
- Göstergeler
- Sürüm: 1.11
- Güncellendi: 27 Ekim 2026
- Etkinleştirmeler: 5
Overview
The Candle Pattern Scanner Dashboard is a comprehensive technical analysis indicator and utility dashboard designed for MetaTrader 5. Its primary objective is to simultaneously scan multiple financial instruments and timeframes to identify specific price action candlestick formations, namely Rejection, Marubozu, and PinBar patterns. To enhance signal validity, the dashboard integrates a universal 14-filter framework (MultiFilterSuite) that allows traders to cross-reference candlestick patterns with trend, momentum, and volume indicators. Additionally, the utility calculates dynamic Stop Loss (SL) and Take Profit (TP) levels based on the Average True Range (ATR) algorithm, presenting all data in a graphical user interface (GUI) panel.
Operating Principle
The system relies on mathematical price action analysis combined with strict algorithmic conditions. The core engine extracts Open, High, Low, and Close (OHLC) data points to measure body size, upper wick length, and lower wick length ratios.
Signal Validity & Repaint Behavior: By default, all candlestick pattern calculations and standard technical filters are executed exclusively on strictly closed bars (Bar 1 and beyond). Therefore, under standard conditions, the signals are non-repainting; once a candle closes and a pattern is confirmed, it will not shift or disappear. However, if the user activates the Fibonacci Retracement Filter (Filter 14), which relies on ZigZag depth and deviation algorithms to identify structural swing highs and swing lows, the reference points for the Fibonacci zones may adjust dynamically as new highs or lows are formed. Thus, if the Fibonacci filter is active, the tool cannot be classified as strictly non-repainting.
Buy/Sell Entry Logic:
- Rejection Pattern: A BUY signal is generated when a candle has a bearish or bullish body within a specified maximum percentage of the total range, accompanied by a long lower wick that exceeds a defined ratio compared to the body, and a minimal upper wick. A SELL signal requires the opposite: a long upper wick and a minimal lower wick.
- Marubozu Pattern: A BUY signal is identified when a bullish candle's body constitutes nearly the entirety of its high-to-low range (e.g., 98%). A SELL signal is identified on a bearish candle meeting the same criteria.
- PinBar Pattern: A BUY signal occurs when the lower tail is significantly larger than the upper wick and body, signifying structural rejection at lower prices. A SELL signal triggers when the upper tail dominates the body and lower wick.
If multiple entry methods are enabled via the dropdown, the engine validates the first matching mathematical condition. The signal is then passed through the enabled MultiFilterSuite constraints.
Filter Logic & Technical Implementation
1. RSI Cross: Validates momentum. BUY requires the RSI to cross above the oversold threshold from below. SELL requires crossing below the overbought threshold from above.
2. ADX Trend: Confirms trend strength. The signal is valid only if the ADX line is above the defined minimum level.
3. Single MA: Trend direction filter. BUY requires the close price to be above the Moving Average. SELL requires the close price to be below it.
4. Ichimoku Senkou Span B: Cloud filter. BUY signals are valid only if the price is above the Senkou Span B line; SELL signals require the price to be below it.
5. RSI 75: Midline filter. BUY requires RSI to be above the 50 level; SELL requires it to be below 50.
6. Double MA: Crossover logic. BUY requires the Fast MA to be strictly above the Slow MA. SELL requires the Fast MA to be strictly below the Slow MA.
7. Awesome Oscillator (AO): Momentum validation. Can require the AO histogram to meet specific minimum/maximum volume thresholds, color changes (rising/falling), or zero-line crossovers.
8. Parabolic SAR: BUY requires the price to be above the SAR dots. SELL requires the price to be below the SAR dots.
9. Heiken Ashi: BUY requires the current Heiken Ashi close to be greater than the Heiken Ashi open. SELL requires the HA close to be lower than the HA open.
10. CCI Trend: BUY requires CCI to be above the zero line; SELL requires it to be below zero.
11. CCI OB & OS: Reversal filter. BUY requires CCI to bounce from the oversold level. SELL requires CCI to drop from the overbought level.
12. RVI Trend & Signal: BUY requires the RVI main line to be above zero or above its signal line. SELL requires the RVI main line to be below zero or below its signal line.
13. MACD: BUY requires the MACD histogram to be above zero or the main line to be above zero. SELL requires the MACD histogram or main line to be below zero.
14. Support/Resistance & Fibonacci: BUY requires the current low to touch a calculated support zone or a Fibonacci retracement level defined by recent ZigZag swing points. SELL requires the current high to test a resistance zone or Fibonacci level.
Key Features
- Multi-Symbol & Multi-Timeframe Matrix: Concurrently tracks up to a user-defined limit of instruments across selected periods.
- Universal 14-Filter Integration: Enables deep cross-referencing between price action and momentum oscillators without requiring multiple chart attachments.
- Dynamic ATR Risk Management: Automatically calculates potential Stop Loss and Risk:Reward-based Take Profit levels in actual price coordinates.
- Graphical User Interface: Features a fully interactive, sortable dashboard panel that can be minimized, dragged, and dynamically scaled. Clicking the 'OPEN' button on any signal row immediately switches the active chart to the specific symbol and timeframe of the detected pattern.
- CPU & Memory Efficiency: Utilizes a hard-coded maximum bars copied parameter to prevent terminal freezing and high memory consumption when scanning multiple heavy timeframes.
- Alert Mechanisms: Supports terminal pop-up alerts, sound file playback, push notifications to the MetaTrader mobile application, and SMTP email signal dispatch.
Operation / Setup Recommendations
- Supported Instruments: Applicable to major forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD), commodities (XAUUSD), and indices. Users are advised to test specific pairs for spread volatility.
- Recommended Timeframes: H1, H4, and D1 are highly recommended for optimal price action structure. Lower timeframes (M5, M15) can be utilized for short-term day trading but may yield higher frequency signals subject to intraday noise.
- Account Requirements: Compatible with both Hedging and Netting account types. A low spread ECN environment is recommended if executing signals derived from lower timeframes.
- Execution Environment: If the dashboard is configured to scan more than 10 symbols across 5 timeframes simultaneously, a VPS environment with stable latency and adequate CPU allocation is strongly recommended to ensure smooth GUI rendering and uninterrupted timer events.
Input Parameters List
=== 1. ENTRY METHOD & PATTERNS ===
- InpEntryMethod (Default: METHOD_ALL) -> Selects the candlestick pattern strategy to scan (Rejection, Marubozu, PinBar, or all combined). [dropdown]
- WickToBodyRatio (Default: 2.5) -> The minimum length of the rejection wick relative to the candle body size. [ratio]
- MaxOppositeWick (Default: 0.4) -> The maximum allowed length of the opposite wick relative to the body size. [ratio]
- MaxBodyPercent (Default: 0.30) -> The maximum allowable body size as a percentage of the total high-to-low candle range. [percentage]
- RequireBullishBody (Default: true) -> If true, a BUY rejection pattern strictly requires a bullish closing body. [boolean]
- RequireBearishBody (Default: true) -> If true, a SELL rejection pattern strictly requires a bearish closing body. [boolean]
- MarubozuMinBodyRatio (Default: 0.98) -> The minimum body size versus the total candle range required to qualify as a Marubozu. [ratio]
- PinBarRatio (Default: 2.0) -> The minimum ratio between the PinBar rejection tail and the opposite short wick. [ratio]
- BodyRatio (Default: 1.0) -> The minimum ratio between the PinBar rejection tail and the candle body. [ratio]
=== 2. FILTER SUITE (UNIVERSAL 14-FILTER FRAMEWORK) ===
- Use_RSI_Cross_Filter (Default: false) -> Enables momentum crossover filtering. [boolean]
- RSI_Length (Default: 14) -> Calculation period for the RSI filter. [bars]
- RSI_Price_Source (Default: PRICE_CLOSE) -> Applied price data for RSI calculation. [enum]
- RSI_Oversold (Default: 30.0) -> Lower threshold boundary for RSI. [value]
- RSI_Overbought (Default: 70.0) -> Upper threshold boundary for RSI. [value]
- Use_ADX_Filter (Default: false) -> Enables ADX trend strength filtering. [boolean]
- ADX_Period (Default: 10) -> Calculation period for the ADX filter. [bars]
- ADX_Min_Level (Default: 20.0) -> The minimum ADX value required to validate a trend. [value]
- Use_MA_Filter (Default: false) -> Enables Single Moving Average trend filtering. [boolean]
- MA_Period (Default: 50) -> Calculation period for the Single MA. [bars]
- MA_Method (Default: MODE_SMA) -> Smoothing method applied to the Single MA. [enum]
- MA_Shift (Default: 0) -> Horizontal shift offset for the Single MA. [bars]
- Use_Ichimoku_Filter (Default: false) -> Enables Ichimoku Cloud Senkou Span B filtering. [boolean]
- Ichimoku_Tenkan (Default: 9) -> Calculation period for the Tenkan-sen line. [bars]
- Ichimoku_Kijun (Default: 26) -> Calculation period for the Kijun-sen line. [bars]
- Ichimoku_SenkouB (Default: 52) -> Calculation period for the Senkou Span B line. [bars]
- Use_RSI75_Filter (Default: false) -> Enables the 75-period long-term RSI midline filter. [boolean]
- RSI_Filter_Period (Default: 75) -> Calculation period for the long-term RSI filter. [bars]
- Use_DoubleMA_Filter (Default: false) -> Enables Dual Moving Average crossover filtering. [boolean]
- MA_A_Period (Default: 30) -> Calculation period for the Fast Moving Average. [bars]
- MA_A_Method (Default: MODE_EMA) -> Smoothing method applied to the Fast MA. [enum]
- MA_A_Applied (Default: PRICE_CLOSE) -> Applied price data for the Fast MA. [enum]
- MA_A_Shift (Default: 0) -> Horizontal shift offset for the Fast MA. [bars]
- MA_B_Period (Default: 140) -> Calculation period for the Slow Moving Average. [bars]
- MA_B_Method (Default: MODE_EMA) -> Smoothing method applied to the Slow MA. [enum]
- MA_B_Applied (Default: PRICE_CLOSE) -> Applied price data for the Slow MA. [enum]
- MA_B_Shift (Default: 0) -> Horizontal shift offset for the Slow MA. [bars]
- Use_AO_Filter (Default: false) -> Enables the Awesome Oscillator filter. [boolean]
- Use_AO_Volume_Filter (Default: false) -> Enforces strict minimum/maximum volume levels on the AO histogram. [boolean]
- AO_Buy_Min (Default: 4.0) -> Minimum positive AO histogram value required for a BUY. [value]
- AO_Sell_Max (Default: -4.0) -> Maximum negative AO histogram value required for a SELL. [value]
- Use_AO_Color_Filter (Default: false) -> Requires the AO histogram to be currently rising for BUY and falling for SELL. [boolean]
- Use_AO_Zero_Filter (Default: false) -> Requires the AO histogram to have crossed the zero line in the direction of the signal. [boolean]
- Use_SAR_Filter (Default: false) -> Enables the Parabolic SAR trend filter. [boolean]
- SAR_Step (Default: 0.02) -> Incremental acceleration factor for the Parabolic SAR. [value]
- SAR_Maximum (Default: 0.2) -> Maximum limit for the Parabolic SAR acceleration factor. [value]
- Use_HeikenAshi_Filter (Default: false) -> Enables Heiken Ashi price action direction filtering. [boolean]
- Use_CCI_Filter (Default: false) -> Enables Commodity Channel Index trend filtering against the zero line. [boolean]
- CCI_Period (Default: 50) -> Calculation period for the CCI filter. [bars]
- CCI_Applied (Default: PRICE_CLOSE) -> Applied price data for the CCI calculation. [enum]
- Use_CCI_OBOS_Filter (Default: false) -> Enables CCI overbought and oversold reversal filtering. [boolean]
- CCI_OBOS_Period (Default: 14) -> Calculation period for the OB/OS CCI filter. [bars]
- CCI_OBOS_Applied (Default: PRICE_CLOSE) -> Applied price data for the OB/OS CCI. [enum]
- CCI_Overbought (Default: 100.0) -> Upper boundary threshold for the CCI OB/OS filter. [value]
- CCI_Oversold (Default: -100.0) -> Lower boundary threshold for the CCI OB/OS filter. [value]
- Use_RVI_Filter (Default: false) -> Enables Relative Vigor Index trend filtering against the zero line. [boolean]
- RVI_Period (Default: 75) -> Calculation period for the RVI filter. [bars]
- Use_RVI_Signal_Filter (Default: false) -> Enables filtering based on the RVI Main line crossing the RVI Signal line. [boolean]
- RVI_Signal_Period (Default: 20) -> Calculation period for the RVI Signal crossover filter. [bars]
- Use_MACD_Filter (Default: false) -> Enables MACD histogram vs signal line filtering. [boolean]
- MACD_FastEMA (Default: 12) -> Calculation period for the MACD Fast Exponential Moving Average. [bars]
- MACD_SlowEMA (Default: 26) -> Calculation period for the MACD Slow Exponential Moving Average. [bars]
- MACD_SignalSMA (Default: 9) -> Calculation period for the MACD Signal Simple Moving Average. [bars]
- MACD_Applied (Default: PRICE_CLOSE) -> Applied price data for the MACD calculation. [enum]
- Use_MACD_Zero_Filter (Default: false) -> Enables MACD main line filtering strictly against the zero line. [boolean]
- Use_SR_Filter (Default: false) -> Enables dynamic Support and Resistance zone filtering based on historical high/lows. [boolean]
- SR_Period (Default: 50) -> The historical lookback period used to define the Support and Resistance extremes. [bars]
- SR_Zone_Points (Default: 80) -> The proximity tolerance zone (in points) around the support or resistance level to validate a touch. [points]
- Use_Fib_Filter (Default: false) -> Enables Fibonacci Retracement zone filtering derived from dynamic ZigZag swing points. [boolean]
- Fib_Level_1 (Default: 0.382) -> The first defined internal Fibonacci retracement level. [ratio]
- Fib_Level_2 (Default: 0.618) -> The second defined internal Fibonacci retracement level. [ratio]
- ZigZag_Depth (Default: 12) -> The minimum number of bars without a second maximum or minimum deviation for ZigZag calculation. [bars]
- ZigZag_Deviation (Default: 5) -> The minimum price distance required to form a new ZigZag swing leg. [points]
- ZigZag_Backstep (Default: 3) -> The minimum number of bars between ZigZag swing highs and lows. [bars]
=== 3. SCANNER SETTINGS ===
- InpSymbols (Default: "EURUSD,GBPUSD,USDJPY...") -> Comma-separated list of instrument symbols to scan. Leave empty to use Market Watch. [string]
- InpTimeframes (Default: "M5,M15,M30,H1,H4") -> Comma-separated list of timeframes to scan. [string]
- InpUseWatch (Default: true) -> If true, automatically imports all visible symbols from the terminal Market Watch window. [boolean]
- InpMaxSymbols (Default: 10) -> The absolute maximum number of instruments the dashboard will process to prevent CPU overload. [integer]
- InpScanSec (Default: 7) -> The time interval between full market scans executed by the timer event. [seconds]
- InpBarsCopy (Default: 100) -> The total number of historical bars loaded into memory per symbol and timeframe during each scan cycle. [bars]
- InpLookback (Default: 100) -> The maximum depth of historical bars searched to find the most recent valid pattern signal. [bars]
- InpDirection (Default: 0) -> Filters output direction: 0 displays Both, 1 displays Buy only, 2 displays Sell only. [integer]
=== 4. ATR SL & TP SETTINGS ===
- InpATRPeriod (Default: 14) -> The calculation period for the Average True Range used in risk management. [bars]
- InpATRMultSL (Default: 1.5) -> The multiplier applied to the ATR value to calculate the physical Stop Loss distance from the entry price. [multiplier]
- InpTP1_RR (Default: 1.0) -> The Risk to Reward multiplier for Take Profit 1 calculation (e.g., 1.0 represents a 1:1 ratio based on the SL distance). [multiplier]
- InpTP2_RR (Default: 2.0) -> The Risk to Reward multiplier for Take Profit 2 calculation (e.g., 2.0 represents a 1:2 ratio). [multiplier]
=== 5. ALERT SETTINGS ===
- InpAlertPopup (Default: false) -> Enables native MetaTrader pop-up dialog boxes upon new signal generation. [boolean]
- InpAlertSound (Default: false) -> Enables audio alerts. [boolean]
- InpSoundFile (Default: "alert2.wav") -> The specific audio file name located in the terminal Sounds directory to be played. [string]
- InpAlertPush (Default: false) -> Enables sending push notifications directly to the authenticated MetaQuotes mobile ID. [boolean]
- InpAlertEmail (Default: false) -> Enables sending email notifications via the terminal's configured SMTP server. [boolean]
- InpEmailSubject (Default: "Pattern Scanner Signal") -> The default subject line text used for email alert dispatches. [string]
- InpAlertOnlyNew (Default: false) -> If true, suppresses repeated alerts for historical signals and only triggers on newly formed candles. [boolean]
=== 6. DISPLAY & PANEL UI SETTINGS ===
- InpX (Default: 12) -> The initial horizontal X-axis anchor coordinate for the dashboard panel. [pixels]
- InpY (Default: 28) -> The initial vertical Y-axis anchor coordinate for the dashboard panel. [pixels]
- InpScale (Default: 100) -> The global interface scaling percentage for high DPI monitors. [percentage]
- InpRowH (Default: 19) -> The height of each individual data row inside the dashboard table. [pixels]
- InpFont (Default: 8) -> The base font size used for table text rendering. [integer]
- InpPadX (Default: 8) -> The horizontal padding applied inside the dashboard border. [pixels]
- InpWPair (Default: 68) -> The graphical width allocated to the Pair Symbol column. [pixels]
- InpWTF (Default: 34) -> The graphical width allocated to the Timeframe column. [pixels]
- InpWArah (Default: 44) -> The graphical width allocated to the Signal Direction column. [pixels]
- InpWTime (Default: 96) -> The graphical width allocated to the Signal Timestamp column. [pixels]
- InpWEntry (Default: 64) -> The graphical width allocated to the Entry Price column. [pixels]
- InpWSL (Default: 64) -> The graphical width allocated to the Stop Loss Price column. [pixels]
- InpWTP1 (Default: 64) -> The graphical width allocated to the Take Profit 1 Price column. [pixels]
- InpWTP2 (Default: 64) -> The graphical width allocated to the Take Profit 2 Price column. [pixels]
- InpWType (Default: 60) -> The graphical width allocated to the Pattern Type identification column. [pixels]
- InpWUmur (Default: 42) -> The graphical width allocated to the Signal Age progression column. [pixels]
- InpWOpen (Default: 44) -> The graphical width allocated to the interactive Chart Open button column. [pixels]
- InpShowEmpty (Default: false) -> If true, renders rows for scanned symbols even if no valid pattern is currently detected. [boolean]
- InpMaxRows (Default: 18) -> The maximum number of signal rows rendered on the dashboard to prevent screen overflow. [integer]
=== 7. SORTING SETTINGS ===
- InpSortBy (Default: SORT_TIME) -> Determines the primary column parameter used to sort the dashboard list upon initialization. [enum]
- InpSortNewest (Default: true) -> If true, orders the sorted data sequentially descending (newest signals at the top). [boolean]
=== 8. ACTIVE CHART DRAWINGS ===
- InpDrawOnChart (Default: true) -> Enables rendering of visual markers and trendlines on the active chart when opened from the dashboard. [boolean]
- InpShowArrow (Default: true) -> Enables the rendering of directional arrows above or below the signal candlestick. [boolean]
- InpShowLevels (Default: true) -> Enables the rendering of horizontal dashed lines representing the Entry, SL, TP1, and TP2 levels on the chart. [boolean]
- InpExtendBars (Default: 25) -> The length (in future bars) that the visual SL and TP trendlines will project to the right of the signal. [bars]
- InpArrowCodeBuy (Default: 233) -> The Wingdings font code character utilized for plotting the BUY direction arrow. [integer]
- InpArrowCodeSell (Default: 234) -> The Wingdings font code character utilized for plotting the SELL direction arrow. [integer]
- InpArrowSize (Default: 2) -> The graphical scaling size of the rendered directional arrows. [integer]
- InpArrowDistance (Default: 15) -> The physical distance between the tip of the arrow and the extreme high/low of the signal candle. [points]
=== 9. COLOR SCHEME ===
- InpColBg (Default: C'18,22,28') -> Primary background color of the dashboard panel. [color]
- InpColHead (Default: C'32,38,48') -> Background color of the header section and drag area. [color]
- InpColRow (Default: C'24,28,36') -> Background color for primary alternating data rows. [color]
- InpColRow2 (Default: C'28,33,42') -> Background color for secondary alternating data rows. [color]
- InpColText (Default: C'220,225,230') -> Color for standard unhighlighted text elements. [color]
- InpColBull (Default: C'0,200,83') -> Font color representing bullish momentum and BUY directions. [color]
- InpColBear (Default: C'255,82,82') -> Font color representing bearish momentum and SELL directions. [color]
- InpColMute (Default: C'120,128,140') -> Color for muted secondary text, ages, and empty placeholders. [color]
- InpColAccent (Default: C'255,152,0') -> Highlight color utilized for titles, pattern types, and interactive elements. [color]
- InpColArrowBuy (Default: C'0,230,118') -> Color of the physical BUY arrow rendered on the active chart. [color]
- InpColArrowSell (Default: C'255,82,82') -> Color of the physical SELL arrow rendered on the active chart. [color]
- InpColEntry (Default: C'255,152,0') -> Color of the Entry price reference line drawn on the chart. [color]
- InpColSL (Default: C'255,82,82') -> Color of the Stop Loss projection line drawn on the chart. [color]
- InpColTP1 (Default: C'0,200,83') -> Color of the Take Profit 1 projection line drawn on the chart. [color]
- InpColTP2 (Default: C'0,230,118') -> Color of the Take Profit 2 projection line drawn on the chart. [color]
Risk Disclaimer
Trading foreign exchange, commodities, and other financial instruments involves significant risk and may not be suitable for all investors. Past performance does not guarantee future results. This software is an analytical and operational tool designed to assist traders in technical analysis; it does not guarantee financial profit. Always thoroughly test the product on a demo account to understand its operational behavior before considering deployment in live trading environments.
