Artificial intelligence programming for buy and sell signals in the market