ClosedBar.IsOpeningMarubozu

Determines if the latest closed bar is Opening Marubozu.

Returns: Series<Boolean>

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

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