FinRL
FinRL copied to clipboard
Environment
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.
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
cool thanks man