ClosedBar.PiercingLine

Calculates the Piercing Line candle pattern.

Returns: Series<Boolean>

ClosedBar.PiercingLine is a built-in function - you can use it directly. Below is an example implementation:

12345678910
function ClosedBar.PiercingLine(): (
Downtrend()
and ClosedBar.IsRed()[1]
and ClosedBar.IsLong()[1]
and ClosedBar.IsGreen()
and ClosedBar.IsLong()
and close >= ClosedBar.MiddlePoint()[1]
and close < ClosedBar.open[1]
and low[1] > ClosedBar.open
)