Pin Bar Detector Indicator for MT4 & MT5 – Automated Price Action Pin Bar Identification

12/05/2022

The Pin Bar Detector Indicator for MT4 & MT5 is a specialized price action tool designed to automatically detect Pin Bar candlestick patterns on MetaTrader charts. Pin Bars—also known as Pinbar or Pin-bar patterns—are widely used by traders to identify potential market reversals and strong rejection zones.

Unlike many indicators, the Pin Bar Detector does not rely on traditional technical indicators such as RSI, MACD, or moving averages. Instead, it analyzes pure price structure and candle geometry to identify valid bullish and bearish Pin Bars.

Once detected, the indicator marks:

  • Bullish Pin Bars with a smiling face symbol below the candle
  • Bearish Pin Bars with a smiling face symbol above the candle

The indicator is fully compatible with both MetaTrader 4 (MT4) and MetaTrader 5 (MT5) platforms and can issue alerts in real time.

Key Features

  • Automatic detection of bullish and bearish Pin Bar patterns
  • Pure price action logic (no standard indicators used)
  • Visual markers directly on the chart
  • Customizable Pin Bar detection rules
  • Platform alerts, email alerts, and push notifications
  • Works on all instruments and timeframes
  • Available for both MT4 and MT5

Alert System
The Pin Bar Detector can notify traders immediately when a new Pin Bar is detected:

  • Platform Alerts – popup alerts with sound
  • Email Alerts – sent via MetaTrader email settings
  • Push Notifications – sent to mobile devices via MetaQuotes ID

This makes the indicator ideal for traders who do not want to monitor charts constantly.

Input Parameters Explained
General Settings

  • CountBars (default = 0)
    Maximum number of historical bars to scan for Pin Bars.
    0 = scan all available bars.
  • DisplayDistance (default = 5)
    Distance between the candle and the smiling face symbol.
  • UseAlerts (default = true)
    Enables platform popup alerts with sound.
  • UseEmailAlerts (default = false)
    Enables email alerts (requires MetaTrader email configuration).
  • UseNotificationAlerts (default = false)
    Enables push notifications (requires MetaQuotes ID setup).

Custom Pin Bar Detection Settings

  • UseCustomSettings (default = false)
    Enables advanced, user-defined Pin Bar detection rules.
  • CustomMaxNoseBodySize (default = 0.33)
    Maximum allowed body-to-length ratio of the Nose bar.
  • CustomNoseBodyPosition (default = 0.4)
    Defines where the Nose body must be positioned within the bar.
  • CustomLeftEyeOppositeDirection (default = true)
    Requires the Left Eye candle to be opposite in direction to the Pin Bar.
  • CustomNoseSameDirection (default = true)
    Requires the Nose candle to match the Pin Bar direction.
  • CustomNoseBodyInsideLeftEyeBody (default = false)
    Requires the Nose body to be inside the Left Eye body.
  • CustomLeftEyeMinBodySize (default = 0.1)
    Minimum size of the Left Eye body relative to the bar length.
  • CustomNoseProtruding (default = 0.5)
    Minimum Nose protrusion relative to the bar length.
  • CustomNoseBodyToLeftEyeBody (default = 1)
    Maximum Nose body size compared to the Left Eye body.
  • CustomNoseLengthToLeftEyeLength (default = 0)
    Minimum Nose length relative to the Left Eye length.
  • CustomLeftEyeDepth (default = 0.2)
    Minimum depth of the Left Eye candle behind the Nose.
  • CustomMinimumNoseLength (default = 1)
    Minimum Nose candle length in points.

These settings allow traders to fine-tune detection logic based on their own definition of a “perfect” Pin Bar.

Trading Notes and Best Practices
The Pin Bar Detector is a pattern recognition tool, not a complete trading system. Like the Pin Bar pattern itself, detection is never perfect and should always be combined with:

  • Support and resistance levels
  • Market structure analysis
  • Trend direction
  • Risk management rules

For best results, it is recommended to use this indicator on higher timeframes, such as H1, H4, D1, or W1, and apply it across multiple instruments. Alerts will notify you whenever a potential trading opportunity appears.

Conclusion
The Pin Bar Detector Indicator for MT4 & MT5 is an excellent tool for traders who rely on price action strategies. With customizable detection logic, real-time alerts, and clean chart visualization, it helps traders identify high-quality Pin Bar setups efficiently while maintaining full control over trade decisions.

Pin Bar Detector | MT4
Pin Bar Detector | MT5

Password:forexsignalpro.net