Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Is there a roadmap for using cryptocurrency trading data? #25

Closed
djoffrey opened this issue Dec 20, 2017 · 10 comments
Closed

Is there a roadmap for using cryptocurrency trading data? #25

djoffrey opened this issue Dec 20, 2017 · 10 comments

Comments

@djoffrey
Copy link

No description provided.

@Kismuz
Copy link
Owner

Kismuz commented Dec 20, 2017

@djoffrey,
Short:

  • not yet

Expanded:

@joaosalvado10
Copy link

joaosalvado10 commented Dec 20, 2017

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?

@Kismuz
Copy link
Owner

Kismuz commented Dec 20, 2017

@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.

@joaosalvado10
Copy link

joaosalvado10 commented Dec 20, 2017

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.

@kazi308
Copy link

kazi308 commented Dec 20, 2017

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!

@Kismuz
Copy link
Owner

Kismuz commented Dec 21, 2017

@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.

@djoffrey
Copy link
Author

@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.

@Kismuz
Copy link
Owner

Kismuz commented Jan 11, 2018

@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.

@djoffrey
Copy link
Author

@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.

@aaron8tang
Copy link

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!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

5 participants