Engulfing Pinbar Scanner Dash Institutional Retail
- Indicatori
- Versione: 1.0
- Attivazioni: 5
Overview The Engulfing Scanner Dashboard is an advanced analytical indicator and graphical utility designed to monitor multiple currency pairs and timeframes simultaneously from a single chart. Its primary objective is to detect, filter, and display two specific variations of the Engulfing candlestick pattern: standard Retail Engulfing and advanced Institutional Engulfing. Rather than acting as a standalone automated trading system, this software functions as a comprehensive technical scanner that alerts traders to potential market reversals based on strict price action calculations. It incorporates 17 built-in optional technical filters to validate price patterns and features an interactive Graphical User Interface (GUI) that allows users to sort signals, open specific charts directly from the panel, and visualize dynamically calculated Stop Loss and Take Profit levels derived from Average True Range (ATR) metrics.
Operating Principle and Algorithm The foundation of this software relies on comparative price action mathematics utilizing the Open, High, Low, and Close (OHLC) data of historical candlesticks. The algorithm scans market data dynamically but strictly evaluates and confirms signals exclusively on closed bars (Bar index 1 and older). Because the core engulfing conditions are evaluated on fully formed candles, the primary engulfing signals are strictly non-repainting; once a signal is registered on a closed candle, it will not disappear or shift. The software divides its pattern recognition into two distinct algorithmic logic sets:
-
Retail Engulfing Logic: A standard validation where the body of the current closed candle completely engulfs the body of the previous closed candle. For a Bullish setup, the Open of Bar 1 must be less than or equal to the Close of Bar 2, and the Close of Bar 1 must be greater than or equal to the Open of Bar 2. A directional trend validation is applied by requiring a user-defined sequence of preceding opposite-colored bars.
-
Institutional Engulfing Logic: A much stricter mathematical model designed to detect high-momentum reversals. For a Bullish Institutional setup, five absolute conditions must be met: (A) Body Engulfment, identical to the retail logic. (B) Full Outside Bar validation, where the High of Bar 1 must exceed the High of Bar 2, and the Low of Bar 1 must be lower than the Low of Bar 2. (C) Body Multiplier, where the absolute pip size of Bar 1's body must be greater than Bar 2's body multiplied by a predefined ratio. (D) Volume Surge, requiring Bar 1's tick or real volume to strictly exceed Bar 2's volume. (E) Minimum Close Position, calculated as the distance from the Close to the Low divided by the total High-to-Low range; the close must occur within the extreme top percentile of the candle's total range. Bearish logic reverses these mathematical thresholds.
Filter Logic Validation To prevent unconfirmed signals, the software runs 17 optional technical filters. If enabled, a Buy or Sell signal is strictly suppressed unless the following conditions on Bar 1 are satisfied:
-
RSI Cross: Bullish requires previous RSI to be at or below the Oversold threshold and current RSI to cross above it. Bearish requires the opposite at the Overbought threshold.
-
ADX: The ADX main line must be greater than or equal to the defined minimum level, confirming trend strength regardless of direction.
-
Moving Average (Single & Double): Bullish requires the Close price to be strictly above the MA line (or Fast MA above Slow MA). Bearish requires the Close below the MA (or Fast MA below Slow MA).
-
Ichimoku: The Close price must break and hold above the Senkou Span B line for a Bullish signal, and below it for a Bearish signal.
-
RSI 75: Evaluates long-term momentum; Bullish requires RSI > 50, Bearish requires RSI < 50.
-
Awesome Oscillator (AO): Requires precise zero-line crosses, specific histogram color changes (momentum acceleration), and absolute value thresholds (Volume filter) depending on user selection.
-
Parabolic SAR: Bullish signals require the Close price to be above the SAR coordinate; Bearish requires the Close below the SAR coordinate.
-
Heiken Ashi: Synthesizes HA Open and Close values mathematically. Bullish requires HA Close > HA Open. Bearish requires HA Close < HA Open.
-
CCI (Trend & OB/OS): Trend logic demands CCI > 0 for Buy and < 0 for Sell. OB/OS logic demands CCI > Overbought threshold for Buy and < Oversold threshold for Sell.
-
RVI (Trend & Signal): Trend requires the main RVI line > 0 for Buy. Signal logic requires the main RVI line to be strictly above the RVI signal line for Buy.
-
MACD (Signal & Zero): Signal logic calculates the MACD histogram (Main - Signal) to be > 0 for Buy. Zero logic requires the main MACD line to be > 0 for Buy.
-
Support & Resistance (SR): Calculates localized extremes over a defined period. Bullish signals are only valid if the Low price touches the calculated Support zone (inclusive of point-based tolerance). Bearish requires touching the Resistance zone.
-
Fibonacci Zone: Utilizes a standard ZigZag algorithm to map the most recent swing high and swing low points. It then calculates mathematical retracement boundaries. Signals are valid only if the candle touches the predefined Fibonacci zone. Note: While the core engulfing is non-repainting, the ZigZag algorithm used exclusively to plot the extreme points for this specific filter is dynamic and repaints its most recent leg on Bar 0. However, because the engulfing signal validation executes strictly on closed bars, the historical signal lock remains intact.
Key Features
-
Dynamic Scanner Grid: Continuously updates market data across multiple symbol and timeframe combinations defined by the user.
-
Interactive Dashboard Interface: The GUI is designed for efficiency. Clicking column headers sorts the data array dynamically (by Pair, TF, Type, Direction, or Age). The panel can be dragged across the chart, minimized to save visual space, or cleared completely.
-
Resource Optimization: Includes limiting variables such as 'Max Bars to Analyze' and 'Maximum Symbols' to prevent terminal memory exhaustion and CPU overloading during multi-timeframe arrays.
-
Direct Chart Navigation: The "OPEN" button allows the user to instantly switch the active chart to the specific symbol and timeframe of a generated signal.
-
Dynamic Risk Management Calculation: Once a pattern is confirmed, the software computes an ATR-based Stop Loss. Take Profit 1 and Take Profit 2 are then extrapolated using mathematical Risk-to-Reward multipliers applied to the SL distance.
-
Alert Output: Comprehensive notification system pushing structured data arrays via terminal pop-ups, custom sound files, mobile push notifications, and SMTP email.
Operation / Setup Recommendations
-
Supported Instruments: Capable of calculating across any highly liquid Forex pairs, indices, or commodities provided by the broker data feed.
-
Recommended Timeframes: Suitable for M15, M30, H1, H4, and D1. Lower timeframes (M1, M5) may produce excessive background noise and require stricter filter activations.
-
Account Specifications: Hedge or Netting compatible. ECN or Raw Spread accounts are recommended to minimize entry slippage during tight Stop Loss calculations.
-
Hardware Considerations: Scanning numerous pairs on multiple timeframes requires CPU processing. If terminal slowdown is experienced, reduce the number of symbols in the input string or decrease the 'Bars Analyzed per TF' value.
-
GUI Legend: The text color on the dashboard dictates signal parameters. Amber denotes an Institutional Engulfing pattern. Cyan denotes a Retail Engulfing pattern. Green text indicates a Bullish setup, while Red text indicates a Bearish setup. Gray or muted text signifies inactive or historical data elements.
Input Parameters List ===== SCANNER SETTINGS ===== InpSymbols (Default: "EURUSD,GBPUSD,USDJPY...") -> Comma-separated list of exact symbol names to scan. Leave empty if using Market Watch. InpTimeframes (Default: "M5,M15,M30,H1,H4") -> Comma-separated list of timeframes to scan continuously. InpUseWatch (Default: true) -> If enabled, the scanner ignores the symbol list and fetches all symbols currently visible in the Market Watch window. InpMaxSymbols (Default: 15) -> Hard limit on the maximum number of symbols to process to protect CPU usage. InpScanSec (Default: 7) -> Frequency of the scanning loop in seconds. Lower values increase CPU load. InpBarsCopy (Default: 120) -> Amount of historical bars copied into memory per timeframe for indicator calculation. InpLookback (Default: 80) -> The maximum number of closed bars into the past to search for the most recent valid pattern. InpDirection (Default: 0) -> Directional filter: 0 = Scan Both, 1 = Buy signals only, 2 = Sell signals only.
===== SIGNAL SELECTION ===== InpEnableRetail (Default: true) -> Activates the calculation logic for standard Retail Engulfing candlestick patterns. InpEnableInstitutional (Default: true) -> Activates the strict calculation logic for high-momentum Institutional Engulfing patterns.
===== RETAIL SETTINGS (Standard) ===== InpRetailRequireTrend (Default: true) -> Enforces a localized trend check before validating a standard engulfing setup. InpRetailTrendBars (Default: 2) -> Minimum consecutive opposite-direction candles required before the engulfing candle.
===== INSTITUTIONAL SETTINGS (Advanced) ===== InpBodyMultiplier (Default: 1.5) -> Institutional criteria: The body of the engulfing candle must be at least this multiplier larger than the previous candle's body. InpRequireHigherVolume (Default: true) -> Institutional criteria: The engulfing candle must register higher tick/real volume than the preceding candle. InpMinClosePosition (Default: 0.70) -> Institutional criteria: The candle must close within the top (Buy) or bottom (Sell) percentage fraction of its total High-Low range. InpRequireFullOutside (Default: true) -> Institutional criteria: Forces the engulfing candle to completely eclipse the high and low extremes of the previous candle. InpInstRequireTrend (Default: true) -> Enforces a localized trend context check prior to the institutional setup. InpInstTrendBars (Default: 3) -> Minimum consecutive opposite-direction candles required for institutional setups.
===== ATR SL & TP SETTINGS ===== InpATRPeriod (Default: 14) -> Period configuration for the Average True Range indicator used for volatility calculations. InpATRMultSL (Default: 1.5) -> Multiplier applied to the ATR value to calculate the final Stop Loss point distance. InpTP1_RR (Default: 1.0) -> Risk-to-Reward ratio used to calculate Take Profit 1 relative to the Stop Loss distance. InpTP2_RR (Default: 2.0) -> Risk-to-Reward ratio used to calculate Take Profit 2 relative to the Stop Loss distance.
===== RSI CROSS FILTER ===== Use_RSI_Cross_Filter (Default: false) -> Enables the Relative Strength Index barrier crossing filter. RSI_Length (Default: 14) -> Number of bars evaluated for the RSI calculation. RSI_Price_Source (Default: PRICE_CLOSE) -> The specific candlestick data point applied to the RSI formula. Oversold (Default: 30.0) -> The lower threshold boundary value for identifying bullish cross momentum. Overbought (Default: 70.0) -> The upper threshold boundary value for identifying bearish cross momentum.
===== ADX FILTER ===== Use_ADX_Filter (Default: false) -> Enables the Average Directional Movement Index to validate overall trend strength. ADX_Period (Default: 10) -> The length of bars evaluated for the ADX calculation line. ADX_Min_Level (Default: 20.0) -> The absolute minimum value the ADX line must reach to permit signal generation.
===== SINGLE MA FILTER ===== Use_MA_Filter (Default: false) -> Enables the baseline Moving Average crossover/positional filter. MA_Period (Default: 50) -> Number of periods calculated for the moving average. MA_Method (Default: MODE_SMA) -> The smoothing algorithm applied (Simple, Exponential, Smoothed, Linear Weighted). MA_Applied (Default: PRICE_CLOSE) -> The applied price point for the MA calculation formula. MA_Shift (Default: 0) -> The lateral bar shift applied to the moving average line.
===== ICHIMOKU SENKOU SPAN B FILTER ===== Use_Ichimoku_Filter (Default: false) -> Enables the Ichimoku Kinko Hyo cloud baseline validation. Ichimoku_SenkouB (Default: 52) -> Period parameter for the Senkou Span B component calculation. Ichimoku_Kijun (Default: 26) -> Period parameter for the Kijun-sen component calculation.
===== RSI 75 FILTER ===== Use_RSI75_Filter (Default: false) -> Enables a secondary, long-term Relative Strength Index positional filter. RSI_Filter_Period (Default: 75) -> Number of bars calculated for this specific long-term RSI. RSI_Filter_Price (Default: PRICE_CLOSE) -> The applied price reference for the long-term RSI.
===== DOUBLE MA FILTER ===== Use_DoubleMA_Filter (Default: false) -> Enables dual Moving Average alignment filtering (Fast vs Slow). MA_A_Period (Default: 30) -> Period length for the Fast Moving Average line. MA_A_Method (Default: MODE_EMA) -> Smoothing method for the Fast Moving Average. MA_A_Applied (Default: PRICE_CLOSE) -> Applied price for the Fast Moving Average. MA_A_Shift (Default: 0) -> Lateral offset for the Fast Moving Average. MA_B_Period (Default: 140) -> Period length for the Slow Moving Average line. MA_B_Method (Default: MODE_EMA) -> Smoothing method for the Slow Moving Average. MA_B_Applied (Default: PRICE_CLOSE) -> Applied price for the Slow Moving Average. MA_B_Shift (Default: 0) -> Lateral offset for the Slow Moving Average.
===== AWESOME OSCILLATOR FILTER ===== Use_AO_Filter (Default: false) -> Master switch to enable Awesome Oscillator histogram logic. Use_AO_Volume_Filter (Default: false) -> Enables absolute value requirements on the AO histogram. AO_Buy_Min (Default: 4.0) -> The minimum absolute positive value the AO must reach for Buy signals. AO_Sell_Max (Default: -4.0) -> The maximum absolute negative value the AO must reach for Sell signals. Use_AO_Color_Filter (Default: false) -> Forces the AO histogram to show increasing momentum (green for buy, red for sell) based on current vs previous bar values. Use_AO_Zero_Filter (Default: false) -> Forces the signal to only validate if the AO histogram is strictly above zero for Buy and strictly below zero for Sell.
===== PARABOLIC SAR FILTER ===== Use_SAR_Filter (Default: false) -> Enables trend validation using the Parabolic Stop and Reverse indicator. SAR_Step (Default: 0.02) -> The acceleration factor increment applied to the SAR points. SAR_Maximum (Default: 0.2) -> The absolute maximum acceleration boundary for the SAR calculation.
===== HEIKEN ASHI FILTER ===== Use_HeikenAshi_Filter (Default: false) -> Evaluates the underlying trend direction using synthetic Heiken Ashi candlestick math.
===== CCI TREND FILTER ===== Use_CCI_Filter (Default: false) -> Enables zero-line crossing logic utilizing the Commodity Channel Index. CCI_Period (Default: 50) -> Period length applied to the CCI trend calculation. CCI_Applied (Default: PRICE_CLOSE) -> Applied price array for the CCI trend formula.
===== CCI OB & OS FILTER ===== Use_CCI_OBOS_Filter (Default: false) -> Enables extreme boundary threshold logic utilizing the Commodity Channel Index. CCI_OBOS_Period (Default: 14) -> Period length applied to the CCI Overbought/Oversold calculation. CCI_OBOS_Applied (Default: PRICE_CLOSE) -> Applied price array for the CCI extreme formula. CCI_Overbought (Default: 100.0) -> Upper threshold level defining overbought territory. CCI_Oversold (Default: -100.0) -> Lower threshold level defining oversold territory.
===== RVI TREND FILTER ===== Use_RVI_Filter (Default: false) -> Enables zero-line trend validation utilizing the Relative Vigor Index. RVI_Period (Default: 75) -> Number of bars calculated to map the RVI trend line.
===== RVI SIGNAL FILTER ===== Use_RVI_Signal_Filter (Default: false) -> Enables crossover logic between the Main RVI line and the Signal RVI line. RVI_Signal_Period (Default: 20) -> Number of bars calculated to extract the crossover momentum index.
===== MACD SIGNAL FILTER ===== Use_MACD_Filter (Default: false) -> Enables momentum histogram validation based on the Moving Average Convergence Divergence. MACD_FastEMA (Default: 12) -> Period length for the fast exponential component of the MACD. MACD_SlowEMA (Default: 26) -> Period length for the slow exponential component of the MACD. MACD_SignalSMA (Default: 9) -> Period length for the signal line smoothing applied to the MACD base. MACD_Applied (Default: PRICE_CLOSE) -> Applied price array used for the MACD formula.
===== MACD LEV 0 FILTER ===== Use_MACD_Zero_Filter (Default: false) -> Enforces validation based on the absolute position of the MACD main line relative to the zero axis.
===== SUPPORT & RESISTANCE FILTER ===== Use_SR_Filter (Default: false) -> Enables mathematical evaluation of historical price extremes to validate entries near structural zones. SR_Period (Default: 50) -> Total number of historical bars scanned backward to locate the absolute high and low extremes. SR_Zone_Points (Default: 80.0) -> Tolerance radius in points. The signal is valid if the candlestick low/high penetrates within this mathematical radius of the SR line.
===== FIBONACCI FILTER ===== Use_Fib_Filter (Default: true) -> Enables retracement level validation based on ZigZag swing points. Fib_Level_1 (Default: 0.382) -> The primary fractional retracement coordinate level. Fib_Level_2 (Default: 0.618) -> The secondary fractional retracement coordinate level. ZigZag_Depth (Default: 12) -> The minimal number of bars required where no secondary high/low deviation occurs to establish a leg. ZigZag_Deviation (Default: 5) -> The minimum point threshold required to validate a new swing sequence. ZigZag_Backstep (Default: 3) -> The minimal amount of bars required between consecutive swing highs or lows.
===== ALERTS ===== InpAlertPopup (Default: false) -> Enables standard MetaTrader terminal dialogue box pop-up messages. InpAlertSound (Default: false) -> Enables the execution of .wav audio files upon signal generation. InpSoundBuy (Default: "alert.wav") -> Filename of the audio alert triggered on Bullish patterns. InpSoundSell (Default: "alert2.wav") -> Filename of the audio alert triggered on Bearish patterns. InpAlertPush (Default: false) -> Routes notification data arrays to connected mobile devices via MetaQuotes ID. InpAlertEmail (Default: false) -> Routes notification data arrays to the defined SMTP server configuration. InpEmailSubject (Default: "Engulfing Dashboard Signal") -> The text string used as the header subject for SMTP dispatches. InpAlertOnlyNew (Default: false) -> If true, prevents the system from triggering alerts for historical signals found during initial terminal boot-up.
===== DISPLAY / GUI ===== InpX (Default: 12) -> The absolute horizontal pixel coordinate anchoring the dashboard to the chart window. InpY (Default: 28) -> The absolute vertical pixel coordinate anchoring the dashboard to the chart window. InpScale (Default: 100) -> Master scaling percentage constraint for the entire GUI panel (acceptable range 80 to 160). InpRowH (Default: 18) -> Vertical height specification in pixels for each individual data row within the table. InpFont (Default: 8) -> Typographical size specification applied to the standard text elements inside the GUI. InpPadX (Default: 8) -> Horizontal internal padding distance applied from the edge of the GUI bounding box. InpWPair to InpWOpen -> Defines specific pixel widths for individual columns (Pair, TF, Type, Direction, Time, Entry, SL, TP1, TP2, Age, and Open button). InpShowEmpty (Default: false) -> If true, forces the graphical rendering of rows that have no active signal present. InpMaxRows (Default: 18) -> Absolute integer limit on how many graphical rows the terminal is allowed to render simultaneously.
===== SORTING ===== InpSortBy (Default: SORT_TIME) -> Specifies the initial column categorization to sort the array memory struct. InpSortNewest (Default: true) -> Determines if the sorting algorithm arrays data in descending (newest) or ascending order.
===== DRAW ON ACTIVE CHART ===== InpDrawOnChart (Default: true) -> Allows the software to render graphical objects (Arrows and Trendlines) onto the active chart when the 'OPEN' button is depressed. InpShowArrow (Default: true) -> Commands the execution of graphical arrows pinpointing the engulfing signal execution bar. InpShowLevels (Default: true) -> Commands the rendering of horizontal dashed trendlines denoting mathematical Entry, SL, and TP coordinates. InpExtendBars (Default: 25) -> The longitudinal distance, measured in bars, that the horizontal level trendlines will extend forward. InpArrowCodeBuy (Default: 233) -> Wingdings character code mapping for the Bullish graphical pointer. InpArrowCodeSell (Default: 234) -> Wingdings character code mapping for the Bearish graphical pointer. InpArrowSize (Default: 2) -> Integer multiplier governing the visual footprint of the graphical arrows. InpArrowDistance (Default: 15) -> Offset spatial gap, measured in points, spacing the arrow away from the candle extreme.
===== COLORS ===== InpColBg (Default: C'18,22,28') to InpColTP2 (Default: C'0,230,118') -> Defines the hexadecimal RGB values assigned to the graphical panel backgrounds, headers, row striping, text bodies, bullish elements, bearish elements, institutional tags, retail tags, muted inactive states, and risk management level markers.
Risk Disclaimer: Trading foreign exchange, commodities, and other financial instruments on margin involves significant risk and may not be suitable for all investors. Past performance, including analytical pattern recognition sequences and historical backtest data, does not guarantee future results. This software is strictly an analytical and operational visual utility designed to assist traders in interpreting technical market data; it is not a standalone automated trading machine and it does not provide direct financial investment advice or guarantee financial profit. Algorithms and pattern recognitions are subject to mathematical limitations and extreme market volatility. Always thoroughly test the product on a simulated demo account environment to understand its operational behavior, filtering mechanics, and interface functions completely before considering any deployment in live trading environments with real capital. User discretion and proper money management protocols are mandatory at all times.
