Insted of crossOver function I use this code. Is this identical to that function?
priceClose(1) < upper && priceClose(0) > upper

tmp[] series is just a line of GMACD to filter a signal.