modified rating stock algo