Implementation of a stock trading system using fuzzy logic