Added time frame window for calculating mean price