Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Find Pin Bar - MetaTrader 5 Script | Forex Indicators Download - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

Find Pin Bars - indicator for MetaTrader 5

Pin Bars are candlesticks with smaller real bodies and longer shadows that often indicate a possible price reversal.

The indicator searches the chart for price action Pin Bar patterns and places an icon with the found pattern on the bar:

Find Pin Bars - indicator for MetaTrader 5

To eliminate overdrawing the signal, we look for patterns on past bars. If a Pin Bar is found, a signal arrow is placed on the current bar - at the opening price of the current bar. This indicator only searches for Pin Bars based on their formation rules. Therefore, some other indicators need to be used for filtering and confirmation, such as critical and important level indicators.

It has four adjustable parameters:


Principles for searching and displaying patterns in the indicator code:

Parameter setting suggestions:

Buffer number for reading from another program:


To get signals from Expert Advisor, use buffers 2 and 3 for buy and sell signals respectively. The values ​​in these buffers appear on the current bar and contain its opening price. Meanwhile, the previous column contains the description of the found pattern. If there is a non-empty value in Buffer 0, it is a Buy Pin Bar, and if the value in Buffer 1 is a Sell Pin Bar.

Adjust the parameters according to your requirements for signal quality and frequency so that the indicator matches your trading strategy as closely as possible.

Modifications of standard indicator fractals

A simple information indicator showing the remaining time before the bar closes, as well as the elapsed time since the bar opened and the current time.

This script removes all automated trading icons from the current chart

A service of MetaTrader 5 that creates a synthetic custom trading symbol "USDX.synthetic" that reflects the U.S. Dollar Index (DXY) in real time.


Attachment download

📎 iPinBars.mq5 (17.27 KB)

Source: MQL5 #63672

Verification code Refresh