-
Notifications
You must be signed in to change notification settings - Fork 237
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
AutoData docs #69
Comments
Hi @rseverinop, There are two ways you could go about this. The first (and the simplest) way would be to use the from autotrader import AutoTrader
# Create AutoTrader instance, configure it, and run backtest
at = AutoTrader()
at.configure(verbosity=1, show_plot=False, mode="periodic")
at.add_strategy('macd')
at.backtest(start='1/1/2021', end='1/5/2021')
at.virtual_account_config(initial_balance=1000, leverage = 30)
at.add_data(data_dict={"EUR_USD": "EUdata.csv"})
at.run() Note that AutoTrader expects the data to be kept in a The second option is to use a custom data pipeline. Unfortunately, I haven't had the chance to document any examples of this approach, but you can use the source code for guidance. As a short summary to get you started:
If this option is something you are interested in, let me know and I will try to find a minimum working example. Please let me know if you have any questions about the options above. |
Hi, thank you so much for sharing this great framework and keeping it well maintained. I am actually facing a similar issue. I looked a bit into the |
**Is your feature request related to a problem? Imagine user wants to use data from other sources for AutoData() for example a data frame from MetaTrader5, how that user could integrate their strategies with auto trader?
The text was updated successfully, but these errors were encountered: