CrossesDownwards

Function that checks if one series used to be higher than another, but is now lower, thereby crossing it downwards. It accepts the following parameters:

Parameter NameTypeDefault ValueNotes
valueSeries<Number>--
crossesSeries<Number>--

Returns: Series<Boolean>

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

1 function CrossesDownwards(value, crosses):
2 value < crosses and value[1] > crosses[1]