ClosedBar.IsShort

Determines if the latest closed bar is Short.

Returns: Series<Boolean>

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

1
function ClosedBar.IsShort(): ClosedBar.Body() <= 0.7 * ClosedBar.AverageBody()