Comments (7)
this is python fundamental knowledge problem, it has nothing to do with the library, try to study the pandas module
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html
from finrl.
Thanks for those recourses, I think it is still somewhat relevant because in the way I would like to know that kind of format for the data the library can recognize (e.g. is that the library can only take in OHLC format?)
from finrl.
there are many formats; to my knowledge there is no single way to make them usable. Everyone has to create their own translation macro based on the data they want to work on.
Basically any trading library works on a dataframe in which the price refers to a certain time, nothing more than an ordered list.
from finrl.
Noted with thanks
from finrl.
however keep in mind that the standard ohlc format is necessary if it should be useful to work with indicator libraries such as Ta-lib
from finrl.
for example if you want to use slowk indicator from talib it's necessari that 'high', 'low', 'open' colum are present in your dataframe
otherwise it will fail
slowk, slowd = STOCH(input_arrays, 5, 3, 0, 3, 0, prices=['high', 'low', 'open'])
but if you only want work whit SMA you only need one price reference
from talib.abstract import *
output = SMA(input_arrays, timeperiod=25) # calculate on close prices by default
output = SMA(input_arrays, timeperiod=25, price='open') # calculate on opens
from finrl.
Thanks for the supplementary info!
from finrl.
Related Issues (20)
- FinRL_PaperTrading_Demo 出現Bug
- Error HOT 1
- Improvements I want make in [finrl]->[agent]->[rllib]->[models.py] HOT 1
- TypeError Traceback (most recent call last) <ipython-input-42-492cb8c60799> in <cell line: 1>() ----> 1 model.learn(total_timesteps = 500000, 2 eval_env = env_trade, 3 eval_freq = 250, 4 log_interval = 1, 5 tb_log_name = '1_18_lastrun', TypeError: PPO.learn() got an unexpected keyword argument 'eval_env'如何解決
- TypeError: DRLAgent.DRL_prediction() missing 1 required positional argument: 'env_args' HOT 2
- see #1154 HOT 6
- need help for crypto trading HOT 1
- Seeking Solutions for Mutual Fund Portfolio Optimization with Trade Processing Delays
- I got an error with DRLEnsembleAgent.run_ensemble_strategy(). It misses timesteps_dict but it is in the code HOT 3
- Error with installing finrl library HOT 4
- Where does gymnasium is even mentionned? HOT 1
- Support the data_source="akshare"
- TypeError: DRLEnsembleAgent.run_ensemble_strategy() HOT 1
- Rolling Window HOT 1
- Reward shaping in RL algorithms using benchmark returns HOT 1
- exit code 139 (interrupted by signal 11:SIGSEGV)
- Please help! AssertionError : assert state.shape == (args.state_dim,) HOT 4
- New feature request - support customs indicators and strategies
- Wrong reward at terminal date when training with SB3
- MVO performing better than Porfolio allocation
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 finrl.