Probably the future way to avoid overfitting using neural networks for time series:
https://arxiv.org/pdf/1511.06434v2.pdf

https://arxiv.org/pdf/1406.2661v1.pdf

Someone knows about a library for R?