Two robust long short-term memory frameworks for trading stocks