-
Notifications
You must be signed in to change notification settings - Fork 749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ForwardTest class #44
Comments
possible related to this comment |
Yes, I am having the same problem. I was able to modify the Backtest class to get new data, but tflearn will not accept the new history for training. Any help would be appreciated. |
In backtesting there are two options to test model online or offline. Online : Takes data from poloniex and updates database Backtesting module using rollingtrainer's datamatrix and it takes all datas from database at the begginning of the backtest. But I couldn't find a way to get new data and process it . |
A simple(while not elegant) method is to append new data to the global_data (Panel in the memory) and modify all the related indexes. |
I am doing this for real time data ;
|
Thank you for the hints @ZhengyaoJiang and @redzhepdx, will give it another go now! |
Hi, thank you for your excellent work, this is very interesting stuff.
I am eager to test this on the live market, but having trouble moving from backtesting to forwardtesting. Any chance that an update with a ForwardTest class is on the way, or that you could advise on how to implement it? I understand it roughly, i.e. the generate_history_matrix( ) function needs to update the datamatrix with the newest market data (with "online" = True in the config file), and return that. And the trade_by_strategy( ) clearly needs a slight rewriting compared to BackTest as we don't know the future price. Any help on how to correctly return the newest market data would be appreciated.
The text was updated successfully, but these errors were encountered: