added technicalindex functions and test