A new fuzzy logic controller for trading on the stock market