Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -140,10 +140,10 @@ def init_db():
|
|
| 140 |
cursor.execute("SELECT COUNT(*) FROM agent_logic")
|
| 141 |
if cursor.fetchone()[0] == 0:
|
| 142 |
# ⚡ NOUVEAU: Defaults ultra-agressifs pour le Scalping
|
| 143 |
-
defaults = [('ALL', '1m', 1.0, 0.8, 0, 0, 0.
|
| 144 |
-
('ALL', '5m', 1.2, 0.9, 0, 0, 0.
|
| 145 |
-
('ALL', '15m', 1.5, 1.0, 0, 0, 0.
|
| 146 |
-
('ALL', '1h', 2.0, 1.5, 0, 0, 0.
|
| 147 |
('ALL', '4h', 3.0, 2.0, 0, 0, 0.50, 0.008)]
|
| 148 |
conn.executemany("INSERT INTO agent_logic VALUES (?, ?, ?, ?, ?, ?, ?, ?)", defaults)
|
| 149 |
print("✅ Base de données Scalping (MT5 Exness) opérationnelle.")
|
|
|
|
| 140 |
cursor.execute("SELECT COUNT(*) FROM agent_logic")
|
| 141 |
if cursor.fetchone()[0] == 0:
|
| 142 |
# ⚡ NOUVEAU: Defaults ultra-agressifs pour le Scalping
|
| 143 |
+
defaults = [('ALL', '1m', 1.0, 0.8, 0, 0, 0.60, 0.001),
|
| 144 |
+
('ALL', '5m', 1.2, 0.9, 0, 0, 0.57, 0.002),
|
| 145 |
+
('ALL', '15m', 1.5, 1.0, 0, 0, 0.55, 0.003),
|
| 146 |
+
('ALL', '1h', 2.0, 1.5, 0, 0, 0.53, 0.005),
|
| 147 |
('ALL', '4h', 3.0, 2.0, 0, 0, 0.50, 0.008)]
|
| 148 |
conn.executemany("INSERT INTO agent_logic VALUES (?, ?, ?, ?, ?, ?, ?, ?)", defaults)
|
| 149 |
print("✅ Base de données Scalping (MT5 Exness) opérationnelle.")
|