Pin bar (long wick) EA: no-code builder for MT4 / MT5
Candlestick patternsA pin bar is a candle with a small body and a long wick on one side. A long lower wick shows buyers stepping in (bullish); a long upper wick, the opposite.
Rules you can build with it
Works as an entry rule or an exit rule. Short rules are mirrored automatically.
- LongPrevious candle is a bullish pin bar (lower wick at least 66% of its range)ShortPrevious candle is a bearish pin bar (upper wick at least 66% of its range)
- LongPrevious candle is a bearish pin bar (upper wick at least 66% of its range)ShortPrevious candle is a bullish pin bar (lower wick at least 66% of its range)
Settings
| Settings | Default | Range |
|---|---|---|
| Min wick % of range | 66 | 50 – 90 |
| Max body % of range | 25 | 5 – 40 |
How the backtest and the EA calculate it
Judged by the previous candle's wick and body as a share of its range, with adjustable settings; the exported EA uses the same conditions.
Signals use only closed candles and are filled at the next candle's open. The exported EA checks conditions in the same order, so you get similar results in the MT5 Strategy Tester.
Example strategies
- Entry · Pin bar (long wick): Previous candle is a bullish pin bar (lower wick at least 66% of its range)
- Stop-loss 300 points, take-profit 600 points
- Entry · Pin bar (long wick): Previous candle is a bullish pin bar (lower wick at least 66% of its range)
- Entry · Moving Average (50, EMA, Close): MA rises
- Stop-loss 300 points, take-profit 600 points
Examples are just a starting point: open one to change settings or add filters, then check it with backtests and robustness tests. Backtest results don't indicate future returns.