FinRL-Trading icon indicating copy to clipboard operation
FinRL-Trading copied to clipboard

Question regarding the observation space in the Env

Open emjay032 opened this issue 3 years ago • 0 comments

Why is self.observation_space bounded from 0 to np.inf when the techinal indicators (e.g. MACD) can take negative values?

Should it not be:

self.observation_space = spaces.Box(low=-np.inf, high=np.inf, shape = (Obs_Dim,))

instead of

self.observation_space = spaces.Box(low=0 high=np.inf, shape = (Obs_Dim,))

with Obs_Dim = Balance+num_stock+_num_shares_holding_per_stock+num_tech_indicators*num_stocks

Thanks

emjay032 avatar Apr 30 '21 19:04 emjay032