Institutional Candle Price Engulfing Scan All Pair
- 지표
- 버전: 1.0
- 활성화: 5
Institutional Candle Price Engulfing Scan All Pair Timeframe
Engulfing Scanner Dashboard is a technical analysis utility and multi-symbol, multi-timeframe candlestick pattern scanner for MetaTrader 4. It detects Bullish Engulfing and Bearish Engulfing setups across multiple currency pairs and timeframes simultaneously, displaying active signals in an interactive on-chart table alongside ATR-based Stop Loss and Take Profit reference levels.
1. Overview and Technical Purpose
- Product Category: Technical Indicator and Multi-Timeframe Dashboard Scanner for MT4.
- Primary Function: Automated detection, classification, filtering, and visual mapping of Engulfing candlestick patterns across custom symbol lists or the Market Watch window.
- Dual Pattern Classification: Separates standard Engulfing formations (Retail mode) from high-momentum outside candlestick formations (Institutional mode) using body proportion, range expansion, and volume criteria.
- Integrated Confirmation Engine: Includes a modular 15-filter technical framework allowing traders to validate candlestick signals against trend, momentum, volatility, and structural price levels.
- Automated Risk Reference Levels: Calculates Entry, Stop Loss (SL), Take Profit 1 (TP1), and Take Profit 2 (TP2) reference levels using Average True Range (ATR) volatility measurements and customizable Risk-to-Reward (RR) ratios.
2. Operating Principle and Signal Methodology
- Bar Calculation and Non-Repainting Behavior: Pattern detection and filter evaluations execute exclusively on closed historical candlesticks starting from Bar 1 backward to the lookback limit. Because active Bar 0 data is never used, confirmed signals do not repaint, shift, or disappear once plotted.
- Bullish Engulfing Conditions: Triggered when a bearish candle is followed by a bullish candle whose real body completely engulfs the prior candle body, preceded by a defined sequence of bearish trend context bars when trend filtering is enabled.
- Bearish Engulfing Conditions: Triggered when a bullish candle is followed by a bearish candle whose real body completely engulfs the prior candle body, preceded by a defined sequence of bullish trend context bars when trend filtering is enabled.
- Dual Signal Classification Logic:
* Institutional Mode (INST): Evaluates minimum body expansion relative to the engulfed bar, full high-to-low outside bar coverage, tick or real volume expansion over the prior bar, and closing price concentration near the extreme high (Bullish) or extreme low (Bearish) of the candle range.
* Retail Mode (RET): Evaluates classical candlestick body engulfing geometry combined with configurable prior directional candle counts as a standard baseline or fallback when Institutional criteria are not met.
- Multi-Filter Confluence Verification: When technical filters are active, candidate Engulfing patterns must pass every enabled filter condition on the corresponding symbol and timeframe before appearing on the dashboard or triggering alerts.
3. Key Software Features
- Multi-Pair and Multi-Timeframe Scanning Engine: Scans up to 15 symbols across multiple timeframes (M1, M5, M15, M30, H1, H4, D1, W1, MN1) on a configurable timer interval.
- Interactive Draggable GUI Panel: Movable on-chart table with minimize/maximize toggle, manual refresh button, object cleanup button, and responsive DPI scaling from 70% to 180%.
- Multi-Column Dynamic Sorting: One-click ascending or descending sorting from table headers by Pair name, Timeframe rank, Signal Type (INST/RET), Direction (BUY/SELL), and Signal Timestamp.
- One-Click Chart Switching and Visualization: Clicking OPEN on any row switches the active chart to that symbol and timeframe while plotting directional signal arrows and horizontal lines for Entry, SL, TP1, and TP2.
- 15-Module Technical Filter Suite: Optional filters covering RSI Cross, ADX Trend, Single MA, Ichimoku Senkou Span B, RSI 75, Double MA, Awesome Oscillator, Parabolic SAR, Heiken Ashi, CCI Trend, CCI OB/OS, RVI Trend/Signal, MACD Histogram/Zero, Support/Resistance, Fibonacci Retracement, and Supertrend.
- Multi-Channel Alert System: Supports terminal pop-ups, custom WAV audio alerts, MetaQuotes ID push notifications, and SMTP email alerts with duplicate-alert suppression.
4. Interface Legend and Visual Elements
- Header Status Bar: Shows scanned pair count, timeframe count, valid signals found, active filter tags, and last scan server time.
- TYPE Column: Amber tag (INST) indicates an Institutional Engulfing setup; Cyan tag (RET) indicates a standard Retail Engulfing setup.
- DIR Column: Green text (BUY) denotes a bullish setup; Red text (SELL) denotes a bearish setup.
- Chart Price Lines: Blue dotted line marks Entry; Red dashed line marks ATR Stop Loss; Green dashed lines mark TP1 and TP2 targets.
- AGE Column: Displays elapsed time since signal candle close in seconds (s), minutes (m), hours (h), or days (d).
5. Operational Recommendations and Performance Notes
- Supported Instruments: Compatible with Forex pairs, metals (XAUUSD), indices, and CFDs in Market Watch with loaded historical bar data.
- Recommended Timeframes: Suitable for intraday trading (M15, M30, H1) and swing analysis (H4, D1). M1 and M5 are supported with higher signal frequency.
- Historical Data Requirement: Each symbol and timeframe requires at least 100 historical bars to initialize filter buffers accurately.
- CPU and Memory Optimization: Scanning many symbols on low timeframes increases terminal load. Adjust InpMaxSymbols, InpScanSec, and InpBarsCopy to match hardware specifications, and avoid running multiple dashboard instances simultaneously.
6. Input Parameters Documentation
[Scanner Settings]
- InpSecScanner (Default: "===== SCANNER SETTINGS =====") -> Section separator header.
- InpSymbols (Default: "EURUSD,GBPUSD,USDJPY,AUDUSD,USDCAD,USDCHF,NZDUSD,EURJPY,GBPJPY,XAUUSD") -> Comma-separated symbol list scanned when Market Watch mode is disabled.
- InpTimeframes (Default: "M5,M15,M30,H1,H4") -> Comma-separated timeframes included in each scan cycle.
- InpUseWatch (Default: true) -> Loads visible symbols automatically from MT4 Market Watch instead of InpSymbols.
- InpMaxSymbols (Default: 15) -> Maximum symbols processed per scan cycle to manage CPU load.
- InpScanSec (Default: 7) -> Timer interval in seconds between automatic scan updates (minimum 3 seconds).
- InpBarsCopy (Default: 150) -> Historical bars copied per symbol/timeframe for calculation (minimum 100 bars).
- InpLookback (Default: 80) -> Maximum closed bars backward from Bar 1 searched for the latest valid signal.
- InpDirection (Default: 0) -> Directional filter: 0 = Buy and Sell, 1 = Buy only, 2 = Sell only.
[Signal Selection]
- InpSecSigSelect (Default: "===== SIGNAL SELECTION =====") -> Section separator header.
- InpEnableRetail (Default: true) -> Enables detection of standard Retail Engulfing patterns.
- InpEnableInstitutional (Default: true) -> Enables detection of Institutional Engulfing patterns.
[Retail Logic Settings]
- InpSecRetail (Default: "===== RETAIL LOGIC (Standard) =====") -> Section separator header.
- InpRetailRequireTrend (Default: true) -> Requires preceding opposite-direction candles before a Retail signal.
- InpRetailTrendBars (Default: 2) -> Minimum preceding opposite-colored candles required for Retail mode.
[Institutional Logic Settings]
- InpSecInst (Default: "===== INSTITUTIONAL LOGIC (Advanced) =====") -> Section separator header.
- InpBodyMultiplier (Default: 1.5) -> Minimum ratio of engulfing candle body vs engulfed candle body.
- InpRequireHigherVolume (Default: true) -> Requires engulfing candle volume to exceed prior candle volume.
- InpMinClosePosition (Default: 0.70) -> Minimum closing price percentile within total High-Low range (0.70 = top/bottom 30%).
- InpRequireFullOutside (Default: true) -> Requires engulfing candle High > prior High and Low < prior Low.
- InpInstRequireTrend (Default: true) -> Requires preceding opposite-direction candles before an Institutional signal.
- InpInstTrendBars (Default: 3) -> Minimum preceding opposite-colored candles required for Institutional mode.
[ATR SL and TP Settings]
- InpSecATR (Default: "===== ATR SL & TP SETTINGS =====") -> Section separator header.
- InpATRPeriod (Default: 14) -> Lookback period in bars for ATR calculation on the signal bar.
- InpATRMultSL (Default: 1.5) -> Multiplier applied to ATR to calculate Stop Loss distance.
- InpTP1_RR (Default: 1.0) -> Risk-to-Reward multiplier for Take Profit 1 (1.0 = 1:1 RR).
- InpTP2_RR (Default: 2.0) -> Risk-to-Reward multiplier for Take Profit 2 (2.0 = 2:1 RR).
[Alerts Settings]
- InpSecAlerts (Default: "===== ALERTS =====") -> Section separator header.
- InpAlertPopup (Default: false) -> Enables MT4 pop-up alert windows on new signals.
- InpAlertSound (Default: false) -> Enables WAV audio playback on new signals.
- InpSoundBuy (Default: "alert.wav") -> Sound filename in terminal Sounds folder for Buy signals.
- InpSoundSell (Default: "alert2.wav") -> Sound filename in terminal Sounds folder for Sell signals.
- InpAlertPush (Default: false) -> Sends mobile push notifications via MetaQuotes ID.
- InpAlertEmail (Default: false) -> Sends email alerts via terminal SMTP settings.
- InpEmailSubject (Default: "Engulfing Dashboard Signal") -> Subject line prefix for outgoing emails.
- InpAlertOnlyNew (Default: false) -> Restricts alerts strictly to timestamps newer than the last alerted signal per slot.
[Display and GUI Settings]
- InpSecGUI (Default: "===== DISPLAY / GUI =====") -> Section separator header.
- InpX (Default: 12) -> Initial horizontal X-coordinate in pixels from upper-left corner.
- InpY (Default: 28) -> Initial vertical Y-coordinate in pixels from upper-left corner.
- InpScale (Default: 100) -> Global UI scaling percentage (clamped 70% to 180%).
- InpRowH (Default: 18) -> Signal row height in pixels before scaling.
- InpFont (Default: 8) -> Base font size in points for dashboard text.
- InpPadX (Default: 8) -> Internal horizontal padding in pixels inside the panel.
- InpWPair (Default: 68) -> Width in pixels of PAIR column.
- InpWTF (Default: 34) -> Width in pixels of TF column.
- InpWType (Default: 46) -> Width in pixels of TYPE column (INST/RET).
- InpWArah (Default: 44) -> Width in pixels of DIR column (BUY/SELL).
- InpWTime (Default: 94) -> Width in pixels of TIME column.
- InpWEntry (Default: 62) -> Width in pixels of ENTRY column.
- InpWSL (Default: 62) -> Width in pixels of SL column.
- InpWTP1 (Default: 62) -> Width in pixels of TP1 column.
- InpWTP2 (Default: 62) -> Width in pixels of TP2 column.
- InpWUmur (Default: 40) -> Width in pixels of AGE column.
- InpWOpen (Default: 44) -> Width in pixels of OPEN button column.
- InpShowEmpty (Default: false) -> Displays symbol-timeframe rows with dashes when no valid signal exists.
- InpMaxRows (Default: 18) -> Maximum visible signal rows rendered in the table.
[Sorting Settings]
- InpSecSort (Default: "===== SORTING =====") -> Section separator header.
- InpSortBy (Default: SORT_TIME) -> Default sort column (SORT_TIME, SORT_PAIR, SORT_TF, SORT_TYPE, SORT_DIR).
- InpSortNewest (Default: true) -> Sets default sort order to descending (newest or highest rank first).
[Draw on Active Chart Settings]
- InpSecDraw (Default: "===== DRAW ON ACTIVE CHART =====") -> Section separator header.
- InpDrawOnChart (Default: true) -> Plots the active chart latest valid signal and price levels.
- InpShowArrow (Default: true) -> Toggles directional Buy/Sell signal arrows on the active chart.
- InpShowLevels (Default: true) -> Toggles horizontal Entry, SL, TP1, and TP2 lines and labels.
- InpExtendBars (Default: 25) -> Number of bars to the right that Entry, SL, and TP lines extend.
- InpArrowCodeBuy (Default: 233) -> Wingdings character code for bullish arrows.
- InpArrowCodeSell (Default: 234) -> Wingdings character code for bearish arrows.
- InpArrowSize (Default: 2) -> Base thickness for signal arrows (Institutional signals render 1 size thicker).
- InpArrowDistance (Default: 15) -> Vertical offset in points between candle price and arrow.
[Color Settings]
- InpSecColors (Default: "===== COLORS =====") -> Section separator header.
- InpColBg (Default: C'18,22,28') -> Main panel background color.
- InpColHead (Default: C'32,38,48') -> Header bar and button background color.
- InpColRow (Default: C'24,28,36') -> Primary alternating row background color.
- InpColRow2 (Default: C'28,33,42') -> Secondary alternating row background color.
- InpColText (Default: C'220,225,230') -> Standard cell text color.
- InpColBull (Default: C'0,200,83') -> Color for BUY labels and bullish arrows.
- InpColBear (Default: C'255,82,82') -> Color for SELL labels and bearish arrows.
- InpColInst (Default: C'255,193,7') -> Highlight color for INST signal tags.
- InpColRetail (Default: C'0,188,212') -> Highlight color for RET signal tags.
- InpColMute (Default: C'120,128,140') -> Muted gray color for status text, hints, and inactive cells.
- InpColAccent (Default: C'41,98,255') -> Accent color for title, sortable headers, and OPEN buttons.
- InpColEntry (Default: C'41,98,255') -> Color of on-chart Entry line and label.
- InpColSL (Default: C'255,82,82') -> Color of SL values and Stop Loss line.
- InpColTP1 (Default: C'0,200,83') -> Color of TP1 values and Take Profit 1 line.
- InpColTP2 (Default: C'0,230,118') -> Color of TP2 values and Take Profit 2 line.
[Filter 1: RSI Cross Filter]
- InpFilter1 (Default: "=== 1. RSI CROSS FILTER ===") -> Section separator.
- Use_RSI_Cross_Filter (Default: false) -> Requires RSI to cross above Oversold for Buy or below Overbought for Sell.
- RSI_Length (Default: 14) -> Averaging period in bars for RSI calculation.
- RSI_Price_Source (Default: PRICE_CLOSE) -> Applied price source for RSI.
- RSI_Oversold (Default: 30.0) -> Lower RSI threshold for bullish crossovers.
- RSI_Overbought (Default: 70.0) -> Upper RSI threshold for bearish crossovers.
[Filter 2: ADX Trend Strength Filter]
- InpFilter2 (Default: "=== 2. ADX FILTER ===") -> Section separator.
- Use_ADX_Filter (Default: false) -> Requires main ADX line to meet or exceed minimum trend strength.
- ADX_Period (Default: 10) -> Averaging period in bars for ADX.
- ADX_Min_Level (Default: 20.0) -> Minimum ADX value required to validate momentum.
[Filter 3: Single Moving Average Filter]
- InpFilter3 (Default: "=== 3. SINGLE MA FILTER ===") -> Section separator.
- Use_MA_Filter (Default: false) -> Requires signal close above MA for Buy or below MA for Sell.
- MA_Period (Default: 50) -> Averaging period in bars for baseline Moving Average.
- MA_Method (Default: MODE_SMA) -> Smoothing method (SMA, EMA, SMMA, LWMA).
- MA_Shift (Default: 0) -> Horizontal bar shift for Moving Average.
[Filter 4: Ichimoku Senkou Span B Filter]
- InpFilter4 (Default: "=== 4. ICHIMOKU SENKOU SPAN B FILTER ===") -> Section separator.
- Use_Ichimoku_Filter (Default: false) -> Requires signal close above Senkou Span B for Buy or below for Sell.
- Ichimoku_Tenkan (Default: 9) -> Tenkan-sen period in bars.
- Ichimoku_Kijun (Default: 26) -> Kijun-sen period in bars.
- Ichimoku_SenkouB (Default: 52) -> Senkou Span B period in bars.
[Filter 5: RSI 75 Trend Filter]
- InpFilter5 (Default: "=== 5. RSI 75 FILTER ===") -> Section separator.
- Use_RSI75_Filter (Default: false) -> Requires long-period RSI above 50.0 for Buy or below 50.0 for Sell.
- RSI_Filter_Period (Default: 75) -> Lookback period in bars for macro trend RSI.
[Filter 6: Double Moving Average Filter]
- InpFilter6 (Default: "=== 6. DOUBLE MA FILTER ===") -> Section separator.
- Use_DoubleMA_Filter (Default: false) -> Requires Fast MA (MA_A) above Slow MA (MA_B) for Buy or below for Sell.
- MA_A_Period (Default: 30) -> Averaging period in bars for Fast MA.
- MA_A_Method (Default: MODE_EMA) -> Smoothing method for Fast MA.
- MA_A_Applied (Default: PRICE_CLOSE) -> Applied price source for Fast MA.
- MA_A_Shift (Default: 0) -> Horizontal bar shift for Fast MA.
- MA_B_Period (Default: 140) -> Averaging period in bars for Slow MA.
- MA_B_Method (Default: MODE_EMA) -> Smoothing method for Slow MA.
- MA_B_Applied (Default: PRICE_CLOSE) -> Applied price source for Slow MA.
- MA_B_Shift (Default: 0) -> Horizontal bar shift for Slow MA.
[Filter 7: Awesome Oscillator Filter]
- InpFilter7 (Default: "=== 7. AWESOME OSCILLATOR FILTER ===") -> Section separator.
- Use_AO_Filter (Default: false) -> Master switch for Awesome Oscillator rules.
- Use_AO_Volume_Filter (Default: false) -> Requires AO above AO_Buy_Min for Buy or below AO_Sell_Max for Sell.
- AO_Buy_Min (Default: 4.0) -> Minimum positive AO threshold for Buy signals.
- AO_Sell_Max (Default: -4.0) -> Maximum negative AO threshold for Sell signals.
- Use_AO_Color_Filter (Default: false) -> Requires AO histogram to rise vs prior bar for Buy or decline for Sell.
- Use_AO_Zero_Filter (Default: false) -> Requires AO to be rising and positive for Buy, or declining and negative for Sell.
[Filter 8: Parabolic SAR Filter]
- InpFilter8 (Default: "=== 8. PARABOLIC SAR FILTER ===") -> Section separator.
- Use_SAR_Filter (Default: false) -> Requires signal close above Parabolic SAR for Buy or below for Sell.
- SAR_Step (Default: 0.02) -> Acceleration step increment for Parabolic SAR.
- SAR_Maximum (Default: 0.2) -> Maximum acceleration limit for Parabolic SAR.
[Filter 9: Heiken Ashi Filter]
- InpFilter9 (Default: "=== 9. HEIKEN ASHI FILTER ===") -> Section separator.
- Use_HeikenAshi_Filter (Default: false) -> Requires smoothed Heiken Ashi candle to close bullish for Buy or bearish for Sell.
[Filter 10: CCI Trend Filter]
- InpFilter10 (Default: "=== 10. CCI TREND FILTER ===") -> Section separator.
- Use_CCI_Filter (Default: false) -> Requires CCI above 0.0 for Buy or below 0.0 for Sell.
- CCI_Period (Default: 50) -> Averaging period in bars for CCI trend filter.
- CCI_Applied (Default: PRICE_CLOSE) -> Applied price source for CCI trend calculation.
[Filter 11: CCI Overbought and Oversold Filter]
- InpFilter11 (Default: "=== 11. CCI OB & OS FILTER ===") -> Section separator.
- Use_CCI_OBOS_Filter (Default: false) -> Enables CCI extreme threshold filtering.
- CCI_OBOS_Period (Default: 14) -> Averaging period in bars for CCI OB/OS filter.
- CCI_OBOS_Applied (Default: PRICE_CLOSE) -> Applied price source for CCI OB/OS calculation.
- CCI_Overbought (Default: 100.0) -> Upper CCI threshold level.
- CCI_Oversold (Default: -100.0) -> Lower CCI threshold level.
[Filter 12: RVI Trend and Signal Filter]
- InpFilter12 (Default: "=== 12. RVI FILTERS ===") -> Section separator.
- Use_RVI_Filter (Default: false) -> Requires RVI main line above 0.0 for Buy or below 0.0 for Sell.
- RVI_Period (Default: 75) -> Averaging period in bars for RVI zero-line trend filter.
- Use_RVI_Signal_Filter (Default: false) -> Requires RVI main line above signal line for Buy or below for Sell.
- RVI_Signal_Period (Default: 20) -> Averaging period in bars for RVI crossover filter.
[Filter 13: MACD Histogram and Zero-Line Filter]
- InpFilter13 (Default: "=== 13. MACD FILTERS ===") -> Section separator.
- Use_MACD_Filter (Default: false) -> Requires MACD histogram (Main minus Signal) positive for Buy or negative for Sell.
- MACD_FastEMA (Default: 12) -> Fast EMA period in bars for MACD.
- MACD_SlowEMA (Default: 26) -> Slow EMA period in bars for MACD.
- MACD_SignalSMA (Default: 9) -> Signal SMA period in bars for MACD.
- MACD_Applied (Default: PRICE_CLOSE) -> Applied price source for MACD.
- Use_MACD_Zero_Filter (Default: false) -> Requires MACD main line above 0.0 for Buy or below 0.0 for Sell.
[Filter 14: Support/Resistance and Fibonacci Filters]
- InpFilter14 (Default: "=== 14. SR & FIBONACCI FILTERS ===") -> Section separator.
- Use_SR_Filter (Default: false) -> Requires signal candle to test a recent Support zone for Buy or Resistance zone for Sell.
- SR_Period (Default: 50) -> Lookback window in bars for swing Support and Resistance levels.
- SR_Zone_Points (Default: 80) -> Proximity tolerance buffer in points around Support/Resistance levels.
- Use_Fib_Filter (Default: false) -> Requires signal candle to touch the Fibonacci retracement zone between Fib_Level_1 and Fib_Level_2.
- Fib_Level_1 (Default: 0.382) -> First Fibonacci retracement ratio boundary.
- Fib_Level_2 (Default: 0.618) -> Second Fibonacci retracement ratio boundary.
- ZigZag_Depth (Default: 12) -> Minimum bar depth for detecting swing highs and lows.
- ZigZag_Deviation (Default: 5) -> Minimum price deviation in points between swing extremes.
- ZigZag_Backstep (Default: 3) -> Minimum bar separation between consecutive swing points.
[Filter 15: Supertrend Filter]
- InpFilter15 (Default: "=== 15. SUPERTREND FILTER ===") -> Section separator.
- Use_Supertrend_Filter (Default: false) -> Requires internal Supertrend direction bullish for Buy or bearish for Sell.
- ST_AtrPeriod (Default: 10) -> ATR lookback length in bars for Supertrend volatility bands.
- ST_Factor (Default: 3.0) -> Volatility multiplier applied to ATR for Supertrend band width.
7. Risk Disclaimer
Trading foreign exchange, commodities, indices, and other financial instruments involves significant risk and may not be suitable for all investors. Past performance or historical pattern occurrences do not guarantee future results. This software is a technical analysis utility designed solely to assist traders in identifying candlestick formations and managing analytical workflows; it does not constitute financial advice or guarantee trading profits. Always test the indicator thoroughly on a demo account to understand its operational behavior before applying it in live market conditions.
