I would like to build a script that can detect divergence and I\'ve found this question: https://quant.stackexchange.com/questions/40491/programmatically-detect-rsi-divergen