ClosedBar.IsLong

Determines if the latest closed bar is Long.

Returns: Series<Boolean>

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

1
function ClosedBar.IsLong(): ClosedBar.Body() >= 1.3 * ClosedBar.AverageBody()