Indicator ROC
ROC - Rate of change : ((price/prevPrice)-1)*100
Unsure of codebase for custom indicators, however
ROC = (((data.bar.close/data.last_bar.close)-1)*100)
or something along those lines