# Crossover

## Description

Crossover is a simple function that indicates when two input arrays crossover each other. When given two inputs, A and B, cross returns 1 for the periods that A crosses above B.

It is very commonly used by algorithmic trading formulas. An example would be generating a buy signal when a faster moving average crosses over a slower moving average. [1]

## Syntax

${\displaystyle fx=BT\_I\_CROSSOVER(Input1,Input2)}$