ClosedBar.InvertedHammer

Calculates the Inverted Hammer candle pattern.

Returns: Series<Boolean>

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

1234567
function ClosedBar.InvertedHammer(): (
Downtrend() and
ClosedBar.IsShort() and
ClosedBar.LowerShadow() == 0 and
ClosedBar.UpperShadow() >= 2.5 * ClosedBar.Body() and
not ClosedBar.IsDoji()
)