I need to use APA 6e referencing for Elsevier Journal, Here is the code, I don't know why I encounter errors. I'm not using \documentclass{apa6e} as I need to retain format of Elsevier article.
\documentclass[preprint,12pt,authoryear]{elsarticle}
\usepackage[natbibapa]{apacite}
\journal{Expert Systems with Applications}
\begin{document}
\title{Recurrent neural network and a hybrid model for prediction of stock returns}
\bibliographystyle{apacite}
\bibliography{myrefers}
\end{document}

APA's in-text citations require the author's last name and the year of publication. You should cite publications in the text, for example, (Smith, 2016).I have managed to produce in text references but they are in the formatSmith, (2016)whereas according to the guidelines I need them to be(Smith, 2016). Is there any way to accomplish this? – StuckInPhDNoMore Apr 22 '16 at 17:31\citepinstead of\cite, see thenatbibdocumentation. – Andrew Swann Apr 23 '16 at 12:18