Open demirelo opened 5 years ago
Good catch. I think there is some room for improvement on picking the position size.
Yes, I also meet a similar issue: Bought: -9.094947017729282e-13 also during optimization on trial have the results seems overflow: Best trial: 1014384906207232.0
We may have a least trade unit like a hand in stock, if our Net worth is less than that, it should stop trading.
Is the bet size determined by the amount variable or the 12 discrete action spaces? I am having a hard time understanding how the bet size is calculated, and why 12 was chosen as the size of the discrete action space.
Great catch @xeroquark. I will gladly accept a PR fixing this issue.
@ktattan 12 discrete options allows the agent to buy using 25% increments of its balance, sell in 25% increments of its currently held BTC, or hold. There is definitely room for improvement in this action space strategy, perhaps a simple buy all/sell all/hold would perform better.
Currently, agents buy and sell using unrealistic USD and BTC balances. For instance, during a debugging session I saw one agent executing this kind of trades:
It doesn't look like there is a logical lower bound on the USD and BTC that can be used in a trade. In real life one wouldn't try to (and couldn't) buy BTC with $0.0016.
Also, using correct number of decimals (i.e., 8 for BTC) is important for precision. That might be another bug actually.