Comments (10)
Please give more details on the issue/ask
from fastquant.
I have read the two dataframe using get_crpto_data.
Now i want to backtest both dataframe at once.
So, how will i do it??
from fastquant.
and it is giving me this error
from fastquant.
Hi! I don't think your all_dataframe is a list of dataframes. It looks to be a list of string. If you see your screenshot it says ['dataframe_BTCUSDT', 'dataframe_ETHUSDT']
which suggests its a string.
from fastquant.
Hi @mikeejazmines
That i know, but in the above fig. it is also saying that if it is a string it will treat as a path. and i have saved the dataframe as csv file. But it is still showing me error
from fastquant.
Or do you have any alternative?, means how do i convert my string of dataframe that will pass on the backtest function.
from fastquant.
you can store the dataframes in an array and loop through that array and pass each element into the backtest function
from fastquant.
But as far as i know, backtrader only read OHLC form of data.
And also i have tried to combine many dataframes in one array, but it is showing me some error.
So, it will be very helpful if you please provide the code for the same.
from fastquant.
Yes, that is why i said store the dataframes in an array and loop through that array and pass each element into the backtest function
dataframes = []
for tick in tickers:
dataframes.append(get_crypto(tick, .....))
results = []
for df in dataframes:
result = backtest(df, ...)
results.append(result)
This is also not a backtrader or fastquant specific question. Please do limit the issues to fastquant related issues.
from fastquant.
Okay understood, Thank you for the reply.
from fastquant.
Related Issues (20)
- get_stock_data() error HOT 1
- New Strategies
- Not able to optimize the stop loss and other floating parameters. HOT 6
- How to give flags or limit our buy and sell signal for the backtesting?? HOT 8
- Not able to import strategy class from another python file HOT 3
- Backtest function not working while deploying flask application HOT 1
- How to get previous and current row while implementing the strategy HOT 2
- [BUG] Issue with imports HOT 3
- [FEATURE]Would you like to support the library to add extended plotting capabilities -- backtrader_plotting ? HOT 1
- [BUG] HOT 2
- [Indicator import from Pandas-ta ] HOT 1
- Testing with machine learning model and a data frame with pre-generated signals
- Error when get stock data from Thai stock
- new
- [BUG] Error when install packgage HOT 2
- [BUG] json_normalize issue HOT 1
- [BUG] pypi.org hosted fastquant 0.1.8.1 breaks due to json_normalize (fix already in master) HOT 2
- Still problem "cannot import name 'json_normalize' from 'pandas.io.json'" HOT 1
- AttributeError: 'DataFrame' object has no attribute 'append' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastquant.