ClosedBar.IsMarubozu

Determines if the latest closed bar is Marubozu.

Returns: Series<Boolean>

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

1
function ClosedBar.IsMarubozu(): ClosedBar.IsLong() and ClosedBar.UpperShadow() == 0 and ClosedBar.LowerShadow() == 0