Giter VIP home page Giter VIP logo

Comments (10)

mikeejazmines avatar mikeejazmines commented on June 15, 2024

Please give more details on the issue/ask

from fastquant.

YASHGUPTA2611 avatar YASHGUPTA2611 commented on June 15, 2024

I have read the two dataframe using get_crpto_data.
Capture22
Capture21
Now i want to backtest both dataframe at once.
So, how will i do it??

from fastquant.

YASHGUPTA2611 avatar YASHGUPTA2611 commented on June 15, 2024

Capture2
and it is giving me this error

from fastquant.

mikeejazmines avatar mikeejazmines commented on June 15, 2024

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.

YASHGUPTA2611 avatar YASHGUPTA2611 commented on June 15, 2024

Hi @mikeejazmines
Capture12
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.

YASHGUPTA2611 avatar YASHGUPTA2611 commented on June 15, 2024

Or do you have any alternative?, means how do i convert my string of dataframe that will pass on the backtest function.

from fastquant.

mikeejazmines avatar mikeejazmines commented on June 15, 2024

you can store the dataframes in an array and loop through that array and pass each element into the backtest function

from fastquant.

YASHGUPTA2611 avatar YASHGUPTA2611 commented on June 15, 2024

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.

mikeejazmines avatar mikeejazmines commented on June 15, 2024

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.

YASHGUPTA2611 avatar YASHGUPTA2611 commented on June 15, 2024

Okay understood, Thank you for the reply.

from fastquant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.