gym-gopherfx
A gym environment for reinforcement training on forex historical data.
Historical data is no way a predictor of future behaviour in forex, but can be used as challenging science experiment :).
How to run
Clone the repo
docker-compose up -d
Access http://127.0.0.1:8050/ to access the dashboard.
To start a random agent and see live evolutions:
python random_agent.py
About the environment
Gopherfx-v0
Observation: A tuple of the current datetime and rate
The available actions are:
- 0 - wait
- 1 - buy
- 2 - sell
Reward:
- 0 - for waiting/first buy/first sell
- trade_result - for closing an open position
- -1 - when depleting the budget
The episodes ends when the trading day is over or the budget is depleted.
Gopherfx-v1
Observation:
- A tuple of Candle rate data representing the market state at the step moment
- The value for the current open position
- The action required to close the current open position
Raw example:
{
"volume": 45,
"time": "2018-06-01T00:00:00.000000000Z",
"bid": {
"o": "1.16916",
"h": "1.16929",
"l": "1.16908",
"c": "1.16915"
},
"ask": {
"o": "1.16933",
"h": "1.16946",
"l": "1.16924",
"c": "1.16930"
}
}
The available actions are:
- 0 - wait
- 1 - buy
- 2 - sell
Reward:
- 0 - for waiting/first buy/first sell
- trade_result - for closing an open position
- -1 - when depleting the budget
The episode ends when the trading day is over or the budget is depleted.
Metadata
Release files for gym-gopherfx 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gym_gopherfx-0.3.1.tar.gz | 4.0 kB | Details |
Release files / gym_gopherfx-0.3.1.tar.gz
| Download URL | gym_gopherfx-0.3.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcca1fdde7ae8fa4f5bdbc0e9ac649f967758e5dea3d250ba091d041a107a5fb
|
|
BLAKE2b-256 checksum How to use checksums |
ddca966a0717be50081288ce2a0184e7f15ed56933dec1400f786deb3fe9d86a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.3
|