CrossesUpwards

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

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

Returns: Series<Boolean>

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

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