Git Product home page Git Product logo

Comments (10)

Kismuz avatar Kismuz commented on May 28, 2024

@djoffrey,
Short:

  • not yet

Expanded:

  • actually you can use any data, it is matter of setting up csv parser and tuning up observation calc. Here is discussions somewhat related to BTC and parsing other timeframes:
    #8
    #13

from btgym.

joaosalvado10 avatar joaosalvado10 commented on May 28, 2024

Hello, @Kismuz I changed the code in order to be able to use daily data frames instead of intradaily data frames. I can see that the episode.data contains a correct sample of my daily dataframe and this one is accepted however it remains in global step 0 and always geting new random samples.
So the train never starts. Any idea how can I solve this?

from btgym.

Kismuz avatar Kismuz commented on May 28, 2024

@joaosalvado10 - any details? what script you are running? shots of terminal and tensor_board output?

Upd: I looked at the file. It may be irrelevant to this particular issue, but it should be properly sorted, while this one is not: records 1-29 are for 1970's and from 30 it goes 1800'th up.
BTgymDataFeed can not correctly sample unsorted files. Should add this to docs.

from btgym.

joaosalvado10 avatar joaosalvado10 commented on May 28, 2024

I think I solved the problem, I am trying to change the state given to the agent by including features available in the csv file.

from btgym.

kazi308 avatar kazi308 commented on May 28, 2024

Hi Kismuz,

I have found https://github.com/bartosh/backtrader/tree/ccxt which has support for a wide range of crypto exchanges. I would be interested to know if btgym supports the same exchanges as backtrader. Thank you for your work!

from btgym.

Kismuz avatar Kismuz commented on May 28, 2024

@kazi308,
basically BTGym is RL wrapper around backtrader and has been designed to inherit support for cc, live trading etc. by default , though I'm still busy developing RL framework itself and have not reached this field so far.
Another promising direction is utilising exisiting domain knowledge in form of already developed traditional trading strategies and built-in backtrader indicators as additional or primary state inputs to RL agent.

from btgym.

djoffrey avatar djoffrey commented on May 28, 2024

@Kismuz
I did a little dirty hack to datafeed to make cryptocurrency data work, and I think we need a little abstraction of data input mechanism, such as

function read_csv => function load_data would be nicer, I think.

from btgym.

Kismuz avatar Kismuz commented on May 28, 2024

@djoffrey ,

I did a little dirty hack to datafeed to make cryptocurrency data work

Can you share details of what data you use and mods have been done?

we need a little abstraction of data input mechanism

You mean adding other than csv source of input or more changing parsing approach to existing data source?
General data pipe rework is my priority at the moment, though I'm focused on enabling data hierarchy from the meta-learning point of view. General changes has been pushed and some refining is in progress, any suggestions and contributions are welcome.

from btgym.

djoffrey avatar djoffrey commented on May 28, 2024

@Kismuz

Can you share details of what data you use and mods have been done?

My dataset is a pandas.DataFrame object with datetime index, and OHLCV columns, I manually replace "data" of BTGymDataSet and related member vars etc.

You mean adding other than csv source of input or more changing parsing approach to existing data source?

Yes, I think a general data pipeline is quite important.

from btgym.

aaron8tang avatar aaron8tang commented on May 28, 2024

Hi , @joaosalvado10 ,could you please give a simple example to show how to use daily data with btgym? I cannot figure it out yet. Thanks!

from btgym.

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.