ok u can create a simple encoder decoder type model feed input date and the historical data to ur lstm model first, pass it down few cells after that u get a encoded output feed that ouput to ur random forset but u need to modify as random forset doesnt work well with numbers use regression forset or somthing like that