FinRL icon indicating copy to clipboard operation
FinRL copied to clipboard

Environment

Open CoderM8n opened this issue 1 year ago • 2 comments

I refer to the following environment class class StockTradingEnv(gym.Env): def init( self, config, initial_account=1e6, gamma=0.99, turbulence_thresh=99, min_stock_rate=0.1, max_stock=1e2, initial_capital=1e6, buy_cost_pct=1e-3, sell_cost_pct=1e-3, reward_scaling=2**-11, initial_stocks=None, ): price_ary = config["price_array"] tech_ary = config["tech_array"] turbulence_ary = config["turbulence_array"]

where is this config file located? it seems that data is passed into this file and broken down onto price array, tech array and turbulence array before running through the rest of the environment. i would like to understand the procedure for this breakdown.

CoderM8n avatar Jan 10 '24 12:01 CoderM8n

image

in the parameter Config, it is not a config File it is a dict conteing env_config = { "price_array": price_array, "tech_array": tech_array, "turbulence_array": turbulence_array, "if_train": True, }

which is used later in enviroment. if you want to use this enviroment than you have to pass config with the same details

krishdotn1 avatar Jan 15 '24 10:01 krishdotn1

cool thanks man

CoderM8n avatar Jan 19 '24 07:01 CoderM8n