make separate algorithms moving_median series and moving_median indicator