Initial commit: Oil Trading Bot (MT5, WTI)
Headless FastAPI-Backend (server.py + core/engine.py) mit Mobile-PWA (web/), Strategie-/Backtest-Suite und Doku. Secrets, DB, Logs und Laufzeit-State sind via .gitignore ausgeschlossen; Config-Vorlage: oil_widget_config.ini.example. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
# Vorlage für oil_widget_config.ini — echte Datei mit Keys ausfüllen und als
|
||||
# `oil_widget_config.ini` speichern (steht in .gitignore, wird NICHT committet).
|
||||
# Kommentare/Erläuterungen zu den [trading]-Schaltern: siehe core/config.py.
|
||||
|
||||
[openai]
|
||||
api_key = DEIN_OPENAI_KEY
|
||||
model = gpt-4o-mini-search-preview
|
||||
auto_refresh = true
|
||||
refresh_min = 15
|
||||
search_context = low
|
||||
|
||||
[news]
|
||||
enabled = true
|
||||
refresh_min = 10
|
||||
|
||||
[translation]
|
||||
enabled = true
|
||||
target_language = de
|
||||
provider = google
|
||||
show_original = false
|
||||
|
||||
[trading]
|
||||
margin_buffer_pct = 80
|
||||
risk_pct = 0
|
||||
trail_timeframe = M1
|
||||
last_symbol =
|
||||
atr_tf = H1
|
||||
wht_pct = 26.375
|
||||
tf_select = heuristic
|
||||
tf_min = M5
|
||||
tf_max = M30
|
||||
breakout_k = 0.3
|
||||
entry_room_atr = 0.6
|
||||
dead_hours =
|
||||
auto_squeeze = true
|
||||
auto_squeeze_skip_night = false
|
||||
auto_squeeze_reverse = false
|
||||
auto_emergency_loss = 0
|
||||
auto_emergency_pct = 0
|
||||
auto_emergency_margin_pct = 3.0
|
||||
auto_takeprofit = 0
|
||||
auto_sr_close = true
|
||||
sr_close_pbreak = 0.60
|
||||
export_mql5_levels = true
|
||||
sr_close_min_gain = 0
|
||||
sr_close_min_gain_pct = 3.0
|
||||
startup_close_grace_s = 60
|
||||
|
||||
[gemini]
|
||||
api_key = DEIN_GEMINI_KEY
|
||||
model = gemini-2.0-flash
|
||||
enabled = true
|
||||
|
||||
[telegram]
|
||||
enabled = true
|
||||
bot_token = DEIN_TELEGRAM_BOT_TOKEN
|
||||
chat_id = DEINE_CHAT_ID
|
||||
|
||||
[graph]
|
||||
tenant_id = DEINE_TENANT_ID
|
||||
client_id = DEINE_CLIENT_ID
|
||||
client_secret = DEIN_CLIENT_SECRET
|
||||
report_to = trading@example.com, axel@example.com
|
||||
sender = mailagent@example.com
|
||||
|
||||
[anthropic]
|
||||
api_key =
|
||||
model = claude-opus-4-8
|
||||
|
||||
[ollama]
|
||||
base_url = http://localhost:11434
|
||||
model = qwen2.5:7b
|
||||
keep_alive = 30m
|
||||
|
||||
[agent]
|
||||
enabled = true
|
||||
provider = deepseek
|
||||
model =
|
||||
refresh_min = 5
|
||||
telegram = false
|
||||
|
||||
[kimi]
|
||||
api_key = DEIN_KIMI_KEY
|
||||
base_url = https://api.moonshot.ai/v1
|
||||
model = kimi-k2.6
|
||||
|
||||
[deepseek]
|
||||
api_key = DEIN_DEEPSEEK_KEY
|
||||
base_url = https://api.deepseek.com
|
||||
model = deepseek-v4-flash
|
||||
|
||||
[zones]
|
||||
demand = 74.98, 76.75, demand
|
||||
support = 76.40, 77.00, support
|
||||
res_low = 81.24, 82.64, resistance
|
||||
fvg = 88.00, 90.00, resistance
|
||||
res_top = 94.72, 94.72, resistance
|
||||
invalid = 75.40, 75.80, invalidation
|
||||
support_low = 72.90, 72.90, support
|
||||
res_consol = 74.00, 76.00, resistance
|
||||
|
||||
[web]
|
||||
api_token = EIN_ZUFAELLIGES_TOKEN
|
||||
require_confirm = true
|
||||
require_token = false
|
||||
|
||||
[zai]
|
||||
api_key = DEIN_ZAI_KEY
|
||||
base_url = https://api.z.ai/api/paas/v4
|
||||
model = glm-4.5-flash
|
||||
Reference in New Issue
Block a user