ClosedBar.IsClosingMarubozu

Determines if the latest closed bar is Closing Marubozu.

Returns: Series<Boolean>

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

1
function ClosedBar.IsClosingMarubozu(): ClosedBar.IsLong() and (ClosedBar.IsGreen() and ClosedBar.UpperShadow() == 0 or ClosedBar.IsRed() and ClosedBar.LowerShadow() == 0)