-
Notifications
You must be signed in to change notification settings - Fork 828
Expand file tree
/
Copy pathdocker-compose.bollinger.yml
More file actions
51 lines (44 loc) · 1.28 KB
/
Copy pathdocker-compose.bollinger.yml
File metadata and controls
51 lines (44 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
bollinger-bot:
build:
context: .
dockerfile: Dockerfile.bollinger
container_name: binance-bollinger-bot
restart: unless-stopped
environment:
# Trading Configuration
- SYMBOL=BTCUSDT
- AMOUNT=100
- INTERVAL=5m
# Strategy Parameters
- BB_PERIOD=20
- BB_STDDEV=2.0
- RSI_PERIOD=14
- RSI_OVERSOLD=30
- RSI_OVERBOUGHT=70
# Risk Management
- MIN_CONFIDENCE=50
- RISK_PER_TRADE=2.0
- STOP_LOSS_ATR=2.0
# Bot Behavior
- WAIT_TIME=10
- TEST_MODE=true # Set to false for live trading
volumes:
# Mount config file (contains API keys)
- ./app/config.py:/app/app/config.py:ro
# Mount database for persistence
- ./db:/app/db
# Mount logs for monitoring
- ./logs:/app/logs
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Usage:
# 1. Edit app/config.py with your API keys
# 2. Test mode: docker-compose -f docker-compose.bollinger.yml up
# 3. Live trading: Edit TEST_MODE=false, then docker-compose -f docker-compose.bollinger.yml up -d
# 4. View logs: docker-compose -f docker-compose.bollinger.yml logs -f
# 5. Stop: docker-compose -f docker-compose.bollinger.yml down