ClosedBar.IsDoji

Determines if the latest closed bar is Doji.

Returns: Series<Boolean>

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

1
function ClosedBar.IsDoji(): (ClosedBar.Body() / ClosedBar.AverageBody() if ClosedBar.AverageBody() != 0 else 0) <= 0.0005