gym-anytrading icon indicating copy to clipboard operation
gym-anytrading copied to clipboard

[QUESTION] StocksEnv not giving any reward when trading with crypto or index data

Open Olwar opened this issue 2 years ago • 2 comments

Hi,

I was battling with this a long time because I couldn't figure our why the env didn't give any reward even after 1 000 000 runs. But apparently StocksEnv doesn't give any reward if you're using data from cryptos or indices (at least S&P 500). Would you say that ForexEnv is the best choice for indices and crypto?

Br, Olwar

Olwar avatar Jul 27 '22 06:07 Olwar

Also another question now that I got the env to give reward. It seems to give exactly the same reward after the first episode as you can see in my notebook: https://github.com/Olwar/eth-reinforcement/blob/master/eth_reinforcement.ipynb

Is this normal behaviour?

Sorry if these questions are dumb, I'm very new to reinforcement learning.

E: I tested with 100 000 timesteps again and it gives the same reward in every episode.

Olwar avatar Jul 27 '22 07:07 Olwar

  1. Yes, because Crypto is designed similar to Forex pairs. For example in Bitcoin, you can trade with BTC/USD or BTC/ETH pairs.
  2. I'm not sure if it is normal, but the loss value is decreasing. Does it happen with the default dataframes?

AminHP avatar Jul 30 '22 18:07 AminHP