Explanation:
1. Bullish Large Candle: The first candle is defined as bullish, where the closing price is much higher than the opening price. It also needs to have a large body (at least 60% of the total candle height).
2. Small Bearish Candle: The second candle is bearish and closes near the high of the previous bullish candle, with a relatively small body.
3. Bullish On Neck Detection: The script looks for this pattern where the bullish large candle is followed by a smaller bearish candle that closes near the first candle's high, indicating potential for a bullish breakout.
4. Plot: When the pattern is detected, the script places a green triangle above the bar to signal the bullish on neck pattern.