Hi,

in the candle.c is more typing error ( labs / abs )

#define candle_crossover(a,b,idx) (a(idx)>b(idx) && a(-labs(idx)-1)<b(-labs(idx)-1))

...