I am trying to make an application which tries to find the trending stocks in the last 6 months. The application checks for two conditions namely: