ClosedBar.IsRed

Determines if the latest closed bar is Red.

Returns: Series<Boolean>

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

1
function ClosedBar.IsRed(): ClosedBar.open > close