Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
Hi,
I need an indicator that gives a signal when the following requirements are met (see the attached chart):
BUY
Bar 1 closes
Bar 2 closes higher than Bar 1's high
Bar 3's low touches Bar 2's open and Bar 3 closes higher than Bar 2's close.
All three bars must be bull bars
If these requirements are met, buy signal is generated when Bar 3 closes.
Sell
Bar 1 closes
Bar 2 closes lower than Bar 1's low
Bar 3's high touches Bar 2's open and Bar 3 closes lower than Bar 2's close
All three bars must be bear bars
If these requirements are met, sell signal is generated when bar 3 closes.
Indicator settings
1 Candles Minimum Size in points (If 0 false)
The size is calculated from candle open to candle close
This is used to filter signals generated by small body candles
If I set it to 0 the filter is off, if I set for example 15 points, every candle's body must be at least 15 points big
2 Consider Bar 2's High/Low (True/False)
In the case of a Buy signal, Bar 3 must close higher than Bar 2's close.
If I set this to true, Bar 3 must close higher than Bar 2's high.
In the case of a Sell signal, Bar 3 must close lower than Bar 2's low.
3 Show Arrow (True/False)
Show an arrow on the cart when the signal is generated
4 Alert (True/False)
Pop up alert when the signal is generated