adding functions and script for momentum indicators