Pinbar Detector — Forex Indicator for MetaTrader (2024)

Pinbar Detector is a MetaTrader indicator that tries to detect Pinbars (also known as "Pin-bar" or "Pin bar") and marks them by placing a "smiling face" symbol below the bullish Pinbars and above the bearish Pinbars. It is a pure price action indicator, which is not using any standard technical indicators in its code. The configuration of Pinbar detection can be done via the indicator's input parameters. Pinbar Detector can issue platform alerts and email alerts on detection. The indicator is available both for MT4 and MT5 versions of the trading platform.

Input parameters

  • CountBars (default = 0) — the maximum number of bars, on which to detect the pinbars. 0 = all.
  • DisplayDistance (default = 5) — the distance from the candles to the pinbar "smiling face" symbols.
  • UseAlerts (default = true) — tells the indicator to issue platform alert with sound on Pinbar detection.
  • UseEmailAlerts (default = false) — tells the indicator to issue an email alert on Pinbar detection. Email should be properly configured in MetaTrader via Tools->Options->Email.
  • UseNotificationAlerts (default = false) — tells the indicator to issue a push-notification alert on Pinbar detection. Notifications should be properly configured in MetaTrader via Tools->Options->Notifications.
  • UseCustomSettings (default = false) — tells the indicator to use custom Pinbar detection parameters described below.
  • CustomMaxNoseBodySize (default = 0.33) — maximum allowed body/length ratio for the Nose bar.
    Pinbar Detector — Forex Indicator for MetaTrader (1)
  • CustomNoseBodyPosition (default = 0.4) — Nose body should be positioned in the top (bottom for bearish pattern) part of the Nose bar.
    Pinbar Detector — Forex Indicator for MetaTrader (2)
  • CustomLeftEyeOppositeDirection (default = true) — tells the indicator that the Left Eye bar should be bearish for bullish Pinbar, and bullish for bearish Pinbar.
    Pinbar Detector — Forex Indicator for MetaTrader (3)
  • CustomNoseSameDirection (default = true) — tells the indicator that the Nose bar should be of the same direction as the pattern itself.
    Pinbar Detector — Forex Indicator for MetaTrader (4)
  • CustomNoseBodyInsideLeftEyeBody (default = false) — tells the indicator that the Nose body should be inside the Left Eye body.
    Pinbar Detector — Forex Indicator for MetaTrader (5)
  • CustomLeftEyeMinBodySize (default = 0.1) — minimum size of the Left Eye body relative to the bar length.
    Pinbar Detector — Forex Indicator for MetaTrader (6)
  • CustomNoseProtruding (default = 0.5) — minimum protrusion of the Nose bar relative to the bar length.
    Pinbar Detector — Forex Indicator for MetaTrader (7)
  • CustomNoseBodyToLeftEyeBody (default = 1) — maximum size of the Nose body relative to the Left eye body.
    Pinbar Detector — Forex Indicator for MetaTrader (8)
  • CustomNoseLengthToLeftEyeLength (default = 0) — minimum Nose length relative to the Left Eye length.
    Pinbar Detector — Forex Indicator for MetaTrader (9)
  • CustomLeftEyeDepth (default = 0.2) — minimum depth of the Left Eye relative to its length. Depth is length of the part of the bar behind the Nose.
    Pinbar Detector — Forex Indicator for MetaTrader (10)
  • CustomMinimumNoseLength (default = 1) — minimum nose candlestick length in points.

Example

Pinbar Detector — Forex Indicator for MetaTrader (11)

As you can see on the chart above, the indicator is not perfect as is the Pinbar pattern itself. It is recommended to try different detection settings to filter patterns according to your own image of a perfect Pinbar. You can use our basic strategy for trading Pinbars, or you can try developing your own, depending on the aggressiveness of your overall Forex trading style. A good idea would be to attach this indicator to long-term timeframes (from H1 to W1) on all currency pairs you are comfortable trading in. Then, alerts would let you know once the trading opportunity arises.

Discussion

Warning! If you do not know how to install this indicator, please read the MetaTrader Indicators Tutorial.

Do you have any suggestions or questions regarding this indicator? You can always discuss Pinbar Detector with the other traders and MQL programmers on the indicators forum.

Changelog

1.03 - 2022-03-19

  • Added the UseNotificationAlerts input parameter and a mobile device notification alerts option.
  • Added the CustomMinimumNoseLength input parameter to set the minimum Nose bar length in points.
  • Simplified some code structures.

1.02 - 2017-07-28

  • Added input parameter DisplayDistance to control the distance from "smiling faces" to candles.

1.01 - 2016-09-18

  • Added input parameter CountBars to limit the number of bars to detect pinbars on.

1.00 - 2011-11-07

  • First release of Pinbar Detector.
Pinbar Detector — Forex Indicator for MetaTrader (2024)

FAQs

Pinbar Detector — Forex Indicator for MetaTrader? ›

Pinbar Detector is a MetaTrader indicator that tries to detect Pinbars (also known as "Pin-bar" or "Pin bar") and marks them by placing a "smiling face" symbol below the bullish Pinbars and above the bearish Pinbars. It is a pure price action indicator, which is not using any standard technical indicators in its code.

What is the pinbar indicator in forex? ›

Introduction Pin bar is a popular price action trading strategy. It is based on quick price... The Pin Bar indicator is a pattern recognition indicator for Forex, Stocks, Indices, Futures, Commodities and Cryptos. The strategy that comes with the Pin Bar pattern is based on price action.

How to identify pin bar? ›

A pin bar pattern consists of one price bar, typically a candlestick price bar, which represents a sharp reversal and rejection of price. The pin bar reversal as it is sometimes called, is defined by a long tail, the tail is also referred to as a “shadow” or “wick”.

What is the best indicator for MT4? ›

What are the most accurate MT4 indicators? The Moving Average (MA), Relative Strength Index (RSI), Bollinger Bands and Moving Average Convergence Divergence (MACD) are among the most accurate MT4 trading indicators.

What is the best time frame for pin bar trading? ›

Pin bars work on all time frames but are especially powerful on the 1 hour, 4hour and daily chart time frames. It is possible to make consistent profits by only trading the pin bar formation, and you can learn more about it in my price action trading course.

What is the pin bar indicator in mt5? ›

Pinbar Detector is a MetaTrader indicator that tries to detect Pinbars (also known as "Pin-bar" or "Pin bar") and marks them by placing a "smiling face" symbol below the bullish Pinbars and above the bearish Pinbars. It is a pure price action indicator, which is not using any standard technical indicators in its code.

How do you use pin bar strategy? ›

An effective pin bar trading strategy would be to wait for the price to retrace about half the distance of the wick. A trader can buy near the 50% retracement of the wick, or simply wait for a breakout and place a buy stop above the pin bar's high. The stop loss would be placed just below the pin bar low.

Can a bullish pin bar be red? ›

A bullish pin bar pattern is a candlestick pattern that signals a potential bullish reversal in the market. This pattern is characterized by a single candlestick with a small body that can be either red or green, a long lower shadow, and a short upper shadow.

What is the pattern of a bullish pin bar? ›

A bullish pin bar appears at the end of the downward movement or downtrend. It opens within the body of the previous bearish candlestick and has a long lower tail and a small body. The pattern must be confirmed by the bullish candlestick that opens above the closing price of the pin bar.

Which technical indicator is the most accurate? ›

Which is one of the most accurate trading indicators? The most accurate for trading is the Relative Strength Index. It is considered one of the best momentum indicators for intraday trading. It helps investors identify the shares which are bought and sold in the market.

Where do you put stop loss on a pin bar trade? ›

The best place to set your stop loss on a pin bar trade is above or below the pin bar tail. This is true regardless of the entry strategy you utilize. For a bullish pin bar setup we would place the stop loss just below the pin bar tail.

What time frame do most forex traders use? ›

As a general rule, traders use a ratio of 1:4 or 1:6 when performing multiple timeframe analysis, where a four- or six-hour chart is used as the longer timeframe, and a one-hour chart is used as the lower timeframe.

How do day traders know when to sell? ›

To sell, they'll look for when the stock hits “resistance,” a price where more traders start selling and the price is more likely to fall. To make judgments like this, you'll want a broker that lets you see order flow.

Is Pinbar and doji the same? ›

The first main difference is that the closing price will be shifted toward the top or the bottom of the pin bar candlestick, whereas in the most commonly used doji, the long-legged doji, the body will be located in the middle. Note, however, that there are several types of doji.

Can a bullish pinbar be red? ›

A bullish pin bar pattern is a candlestick pattern that signals a potential bullish reversal in the market. This pattern is characterized by a single candlestick with a small body that can be either red or green, a long lower shadow, and a short upper shadow.

Top Articles
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 6246

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.