Machine learning for FOREX and stock analysis