Compare commits
13 Commits
module.CNN
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
fdde2ff587 | ||
|
690c61f230 | ||
|
0148964409 | ||
|
3e924b32ac | ||
|
8dafb6d310 | ||
|
621a2505bd | ||
|
08b8da7c8f | ||
|
e884f0c9e6 | ||
|
cfddc996d7 | ||
|
6f78703ba1 | ||
|
715261a3f9 | ||
|
2b1f00cbfc | ||
|
643bc154a2 |
23
.gitignore
vendored
23
.gitignore
vendored
@ -32,6 +32,27 @@ crypto/sol/.vs/*
|
|||||||
crypto/brian/models/best/*
|
crypto/brian/models/best/*
|
||||||
crypto/brian/models/last/*
|
crypto/brian/models/last/*
|
||||||
crypto/brian/live_chart.html
|
crypto/brian/live_chart.html
|
||||||
crypto/gogo2/models/*
|
|
||||||
crypto/gogo2/trading_bot.log
|
crypto/gogo2/trading_bot.log
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
|
crypto/gogo2/checkpoints/trading_agent_episode_*.pt
|
||||||
|
*trading_agent_continuous_*.pt
|
||||||
|
*trading_agent_episode_*.pt
|
||||||
|
crypto/gogo2/models/trading_agent_continuous_150.pt
|
||||||
|
crypto/gogo2/checkpoints/trading_agent_episode_0.pt
|
||||||
|
crypto/gogo2/checkpoints/trading_agent_episode_10.pt
|
||||||
|
crypto/gogo2/checkpoints/trading_agent_episode_20.pt
|
||||||
|
crypto/gogo2/checkpoints/trading_agent_episode_40.pt
|
||||||
|
crypto/gogo2/models/trading_agent_best_pnl.pt
|
||||||
|
crypto/gogo2/models/trading_agent_best_reward.pt
|
||||||
|
crypto/gogo2/models/trading_agent_best_winrate.pt
|
||||||
|
crypto/gogo2/models/trading_agent_continuous_0.pt
|
||||||
|
crypto/gogo2/models/trading_agent_continuous_50.pt
|
||||||
|
crypto/gogo2/models/trading_agent_continuous_100.pt
|
||||||
|
crypto/gogo2/models/trading_agent_continuous_150.pt
|
||||||
|
crypto/gogo2/models/trading_agent_emergency.pt
|
||||||
|
crypto/gogo2/models/trading_agent_episode_0.pt
|
||||||
|
crypto/gogo2/models/trading_agent_episode_10.pt
|
||||||
|
crypto/gogo2/models/trading_agent_episode_20.pt
|
||||||
|
crypto/gogo2/models/trading_agent_episode_30.pt
|
||||||
|
crypto/gogo2/models/trading_agent_final.pt
|
||||||
|
1
crypto/gogo2/.gitattributes
vendored
Normal file
1
crypto/gogo2/.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.pt filter=lfs diff=lfs merge=lfs -text
|
1
crypto/gogo2/.gitignore
vendored
Normal file
1
crypto/gogo2/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.pt
|
11
crypto/gogo2/.vscode/launch.json
vendored
11
crypto/gogo2/.vscode/launch.json
vendored
@ -6,7 +6,7 @@
|
|||||||
"type": "python",
|
"type": "python",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "main.py",
|
"program": "main.py",
|
||||||
"args": ["--mode", "train", "--episodes", "1000"],
|
"args": ["--mode", "train", "--episodes", "100"],
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"justMyCode": true
|
"justMyCode": true
|
||||||
},
|
},
|
||||||
@ -36,6 +36,15 @@
|
|||||||
"args": ["--mode", "live"],
|
"args": ["--mode", "live"],
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"justMyCode": true
|
"justMyCode": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Continuous Training",
|
||||||
|
"type": "python",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "main.py",
|
||||||
|
"args": ["--mode", "continuous", "--refresh-data"],
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"justMyCode": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -17,3 +17,8 @@ C:\Users\popov\miniforge3\Lib\site-packages\torch\amp\grad_scaler.py:132: UserWa
|
|||||||
2025-03-10 12:11:30,928 - ERROR - Training failed: 'TradingEnvironment' object has no attribute 'initialize_price_predictor'
|
2025-03-10 12:11:30,928 - ERROR - Training failed: 'TradingEnvironment' object has no attribute 'initialize_price_predictor'
|
||||||
2025-03-10 12:11:30,928 - INFO - Exchange connection closed
|
2025-03-10 12:11:30,928 - INFO - Exchange connection closed
|
||||||
Backend tkagg is interactive backend. Turning interactive mode on.
|
Backend tkagg is interactive backend. Turning interactive mode on.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2025-03-10 12:35:14,489 - INFO - Episode 34: Reward=232.41, Balance=$98.47, Win Rate=70.6%, Trades=17, Episode PnL=$-1.33, Total PnL=$-559.78, Max Drawdown=7.0%, Pred Accuracy=99.9%
|
1
crypto/gogo2/checkpoints/best_metrics.json
Normal file
1
crypto/gogo2/checkpoints/best_metrics.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"best_reward": 202.7441047517104, "best_pnl": 9.268344827764809, "best_win_rate": 73.33333333333333, "last_episode": 30, "timestamp": "2025-03-10T17:57:19.913481"}
|
4
crypto/gogo2/cuda.py
Normal file
4
crypto/gogo2/cuda.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import torch
|
||||||
|
print(f"PyTorch version: {torch.__version__}")
|
||||||
|
print(f"CUDA available: {torch.cuda.is_available()}")
|
||||||
|
print(f"CUDA version: {torch.version.cuda if torch.cuda.is_available() else 'Not available'}")
|
1218
crypto/gogo2/main.py
1218
crypto/gogo2/main.py
File diff suppressed because it is too large
Load Diff
@ -46,6 +46,12 @@ pip install -r requirements.txt
|
|||||||
```bash
|
```bash
|
||||||
MEXC_API_KEY=your_api_key
|
MEXC_API_KEY=your_api_key
|
||||||
MEXC_API_SECRET=your_api_secret
|
MEXC_API_SECRET=your_api_secret
|
||||||
|
|
||||||
|
|
||||||
|
cuda support
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
||||||
```
|
```
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -7,3 +7,4 @@ ccxt>=2.0.0
|
|||||||
websockets>=10.0
|
websockets>=10.0
|
||||||
tensorboard>=2.6.0
|
tensorboard>=2.6.0
|
||||||
scikit-learn
|
scikit-learn
|
||||||
|
mplfinance
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
192666
crypto/gogo2/trading_bot.log
192666
crypto/gogo2/trading_bot.log
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 170 KiB |
BIN
crypto/gogo2/visualizations/training_episode_30.png
Normal file
BIN
crypto/gogo2/visualizations/training_episode_30.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
Loading…
x
Reference in New Issue
Block a user