┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┓

┃ Strategy ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃    Avg Duration ┃  Win  Draw  Loss  Win% ┃            Drawdown ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━┩
│    Empty │     53 │         1.76 │        1312.665 │       131.27 │ 4 days, 1:16:00 │   33     0    20  62.3 │ 116.751 USDT  7.37% │
└──────────┴────────┴──────────────┴─────────────────┴──────────────┴─────────────────┴────────────────────────┴─────────────────────┘
This commit is contained in:
Jérôme Delacotte
2026-02-26 19:44:39 +01:00
parent 2c79bc706e
commit 0250e30e57
3 changed files with 200 additions and 146 deletions

249
Empty.txt
View File

@@ -1,125 +1,154 @@
BACKTESTING REPORT
┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Pair ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
│ BTC/USDT │ 62 │ 1.43 │ 1238.641 │ 123.86 │ 2 days, 2:15:00 │ 43 0 19 69.4 │
│ TOTAL │ 62 │ 1.43 │ 1238.641 │ 123.86 │ 2 days, 2:15:00 │ 43 0 19 69.4 │
└──────────┴────────┴──────────────┴─────────────────┴──────────────┴─────────────────┴────────────────────────┘
LEFT OPEN TRADES REPORT
┏━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Pair ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
┡━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
│ TOTAL │ 0 │ 0.0 │ 0.000 │ 0.0 │ 0:00 │ 0 0 0 0 │
└───────┴────────┴──────────────┴─────────────────┴──────────────┴──────────────┴────────────────────────┘
ENTER TAG STATS
┏━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Enter Tag ┃ Entries ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
┡━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
│ god │ 62 │ 1.43 │ 1238.641 │ 123.86 │ 2 days, 2:15:00 │ 43 0 19 69.4 │
│ TOTAL │ 62 │ 1.43 │ 1238.641 │ 123.86 │ 2 days, 2:15:00 │ 43 0 19 69.4 │
└───────────┴─────────┴──────────────┴─────────────────┴──────────────┴─────────────────┴────────────────────────┘
EXIT REASON STATS
┏━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Exit Reason ┃ Exits ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
┡━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
│ B30 │ 35 │ 3.04 │ 1581.248 │ 158.12 │ 2 days, 16:26:00 │ 35 0 0 100 │
│ Cross │ 8 │ 3.56 │ 515.637 │ 51.56 │ 1 day, 8:45:00 │ 8 0 0 100 │
│ sma60 │ 19 │ -2.44 │ -858.244 │ -85.82 │ 1 day, 7:32:00 │ 0 0 19 0 │
│ TOTAL │ 62 │ 1.43 │ 1238.641 │ 123.86 │ 2 days, 2:15:00 │ 43 0 19 69.4 │
└─────────────┴───────┴──────────────┴─────────────────┴──────────────┴──────────────────┴────────────────────────┘
MIXED TAG STATS
┏━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Enter Tag ┃ Exit Reason ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
│ god │ B30 │ 35 │ 3.04 │ 1581.248 │ 158.12 │ 2 days, 16:26:00 │ 35 0 0 100 │
│ god │ Cross │ 8 │ 3.56 │ 515.637 │ 51.56 │ 1 day, 8:45:00 │ 8 0 0 100 │
│ god │ sma60 │ 19 │ -2.44 │ -858.244 │ -85.82 │ 1 day, 7:32:00 │ 0 0 19 0 │
│ TOTAL │ │ 62 │ 1.43 │ 1238.641 │ 123.86 │ 2 days, 2:15:00 │ 43 0 19 69.4 │
└───────────┴─────────────┴────────┴──────────────┴─────────────────┴──────────────┴──────────────────┴────────────────────────┘
MONTH BREAKDOWN
┏━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Month ┃ Trades ┃ Tot Profit USDT ┃ Profit Factor ┃ Win Draw Loss Win% ┃
┡━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 31/01/2024 │ 5 │ 56.121 │ 2.03 │ 3 0 2 60.0 │
│ 29/02/2024 │ 0 │ 0 │ 0.0 │ 0 0 0 0 │
│ 31/03/2024 │ 2 │ 429.112 │ 0.0 │ 2 0 0 100 │
│ 30/04/2024 │ 5 │ -0.991 │ 0.99 │ 3 0 2 60.0 │
│ 31/05/2024 │ 3 │ 52.358 │ 2.65 │ 2 0 1 66.7 │
│ 30/06/2024 │ 3 │ 14.301 │ 1.44 │ 2 0 1 66.7 │
│ 31/07/2024 │ 2 │ 59.63 │ 2.6 │ 1 0 1 50.0 │
│ 31/08/2024 │ 1 │ 65.81 │ 0.0 │ 1 0 0 100 │
│ 30/09/2024 │ 6 │ 46.406 │ 1.6 │ 4 0 2 66.7 │
│ 31/10/2024 │ 2 │ 70.475 │ 0.0 │ 2 0 0 100 │
│ 30/11/2024 │ 0 │ 0 │ 0.0 │ 0 0 0 0 │
│ 31/12/2024 │ 0 │ 0 │ 0.0 │ 0 0 0 0 │
│ 31/01/2025 │ 7 │ 146.962 │ 3.83 │ 6 0 1 85.7 │
│ 28/02/2025 │ 0 │ 0 │ 0.0 │ 0 0 0 0 │
│ 31/03/2025 │ 5 │ -23.06 │ 0.73 │ 3 0 2 60.0 │
│ 30/04/2025 │ 2 │ 43.195 │ 1.89 │ 1 0 1 50.0 │
│ 31/05/2025 │ 0 │ 0 │ 0.0 │ 0 0 0 0 │
│ 30/06/2025 │ 2 │ 27.632 │ 1.57 │ 1 0 1 50.0 │
│ 31/07/2025 │ 2 │ 81.245 │ 3.0 │ 1 0 1 50.0 │
│ 31/08/2025 │ 3 │ 123.165 │ 0.0 │ 3 0 0 100 │
│ 30/09/2025 │ 4 │ 41.089 │ 1.85 │ 3 0 1 75.0 │
│ 31/10/2025 │ 4 │ 137.411 │ 3.73 │ 3 0 1 75.0 │
│ 30/11/2025 │ 0 │ 0 │ 0.0 │ 0 0 0 0 │
│ 31/12/2025 │ 2 │ -171.727 │ 0.0 │ 0 0 2 0 │
│ 31/01/2026 │ 2 │ 39.506 │ 0.0 │ 2 0 0 100 │
└────────────┴────────┴─────────────────┴───────────────┴────────────────────────┘
👉 Cette version est objectivement supérieure.
Même si le CAGR bouge légèrement, tout le reste saméliore fortement.
📊 Comparaison claire
Metric Avant Maintenant
Trades 95 53
CAGR 21.38% 22.45%
Profit Factor 1.89 2.85
SQN 1.87 2.38
Winrate 48% 62%
Max DD 21.97% 7.37%
DD duration 309 jours 28 jours
Calmar 7.08 22.51
🔥 Ce que ça veut dire
Le filtre structurel (SMA200 1D) a fait exactement ce quon attendait :
Moins de trades
Beaucoup moins de trades pourris
Equity beaucoup plus lisse
Bear market 2022 quasiment neutralisé
Et surtout :
👉 Le drawdown long a disparu.
Cest LE point critique.
🧠 Lecture professionnelle
Cette version est :
Plus robuste
Plus stable
Plus exploitable en réel
Psychologiquement viable
Un DD de 309 jours casse un trader.
Un DD de 28 jours est gérable.
🎯 Ce qui est très intéressant
Regarde ça :
Worst trade passe de -4.55% → -4.10%
Profit factor explose à 2.85
Expectancy 24.77 (énorme)
Ça veut dire que :
👉 Tu trades maintenant uniquement les phases vraiment favorables.
📉 Le “un peu moins de gain”
En réalité ton CAGR est même légèrement plus haut (22.45 vs 21.38).
Mais même si cétait un peu plus bas :
Réduire le drawdown de 22% à 7% vaut largement 23% de CAGR.
Toujours.
🧠 Ce que tu viens de faire
Tu as transformé une stratégie :
Opportuniste
en
Régime-aware
Et ça change tout.
⚠️ Maintenant la vraie question
Veux-tu :
🔬 Tester robustness (walk-forward)
📈 Ajouter un léger boost de performance
⚖️ Ajouter un sizing adaptatif selon régime
🚀 Ajouter un second actif
Parce que là, on est à létape “optimisation fine”, plus “réparation”.
SUMMARY METRICS
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Metric ┃ Value ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Backtesting from │ 2024-01-01 00:00:00 │
│ Backtesting to │ 2026-02-25 00:00:00 │
│ Backtesting from │ 2022-01-01 00:00:00 │
│ Backtesting to │ 2026-02-20 00:00:00 │
│ Trading Mode │ Spot │
│ Max open trades │ 1 │
│ │ │
│ Total/Daily Avg Trades │ 62 / 0.08
│ Total/Daily Avg Trades │ 53 / 0.04
│ Starting balance │ 1000 USDT │
│ Final balance │ 2238.641 USDT │
│ Absolute profit │ 1238.641 USDT │
│ Total profit % │ 123.86% │
│ CAGR % │ 45.39% │
│ Sortino │ 1.74
│ Sharpe │ 0.45
│ Calmar │ 32.84
│ SQN │ 2.31
│ Profit factor │ 2.44
│ Expectancy (Ratio) │ 19.98 (0.44) │
│ Avg. daily profit │ 1.576 USDT │
│ Avg. stake amount │ 1797.064 USDT │
│ Total trade volume │ 224523.232 USDT │
│ Final balance │ 2312.665 USDT │
│ Absolute profit │ 1312.665 USDT │
│ Total profit % │ 131.27% │
│ CAGR % │ 22.45% │
│ Sortino │ 1.81
│ Sharpe │ 0.22
│ Calmar │ 22.51
│ SQN │ 2.38
│ Profit factor │ 2.85
│ Expectancy (Ratio) │ 24.77 (0.70) │
│ Avg. daily profit │ 0.869 USDT │
│ Avg. stake amount │ 1534.128 USDT │
│ Total trade volume │ 164258.371 USDT │
│ │ │
│ Best Pair │ BTC/USDT 123.86% │
│ Worst Pair │ BTC/USDT 123.86% │
│ Best Pair │ BTC/USDT 131.27% │
│ Worst Pair │ BTC/USDT 131.27% │
│ Best trade │ BTC/USDT 38.19% │
│ Worst trade │ BTC/USDT -4.55% │
│ Best day │ 403.713 USDT │
│ Worst day │ -108.048 USDT │
│ Days win/draw/lose │ 42 / 675 / 18
│ Min/Max/Avg. Duration Winners │ 0d 06:00 / 26d 20:00 / 2d 10:32
│ Min/Max/Avg. Duration Losers │ 0d 02:00 / 5d 12:00 / 1d 07:32
│ Max Consecutive Wins / Loss │ 10 / 3 │
│ Worst trade │ BTC/USDT -4.10% │
│ Best day │ 422.364 USDT │
│ Worst day │ -51.652 USDT
│ Days win/draw/lose │ 33 / 901 / 19
│ Min/Max/Avg. Duration Winners │ 1d 03:00 / 28d 16:00 / 5d 13:35
│ Min/Max/Avg. Duration Losers │ 0d 01:00 / 6d 10:00 / 1d 13:21
│ Max Consecutive Wins / Loss │ 9 / 3
│ Rejected Entry signals │ 0 │
│ Entry/Exit Timeouts │ 0 / 0 │
│ │ │
│ Min balance │ 1048.079 USDT │
│ Max balance │ 2421.125 USDT │
│ Max % of account underwater │ 9.17% │
│ Absolute drawdown │ 221.99 USDT (9.17%)
│ Drawdown duration │ 46 days 16:00:00 │
│ Profit at drawdown start │ 1421.125 USDT │
│ Profit at drawdown end │ 1199.135 USDT │
│ Drawdown start │ 2025-10-27 00:00:00 │
│ Drawdown end │ 2025-12-12 16:00:00 │
│ Market change │ 51.20% │
│ Min balance │ 1003.126 USDT │
│ Max balance │ 2361.69 USDT
│ Max % of account underwater │ 8.27% │
│ Absolute drawdown │ 116.751 USDT (7.37%) │
│ Drawdown duration │ 28 days 14:00:00 │
│ Profit at drawdown start │ 583.353 USDT
│ Profit at drawdown end │ 466.603 USDT
│ Drawdown start │ 2024-04-09 07:00:00 │
│ Drawdown end │ 2024-05-07 21:00:00 │
│ Market change │ 44.09% │
└───────────────────────────────┴─────────────────────────────────┘
Backtested 2024-01-01 00:00:00 -> 2026-02-25 00:00:00 | Max open trades : 1
STRATEGY SUMMARY
┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┓
┃ Strategy ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃ Drawdown ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━┩
│ Empty │ 62 │ 1.43 │ 1238.641 │ 123.862 days, 2:15:00 │ 43 0 19 69.4 │ 221.99 USDT 9.17% │
└──────────┴────────┴──────────────┴─────────────────┴──────────────┴─────────────────┴────────────────────────┴────────────────────┘
Backtested 2022-01-01 00:00:00 -> 2026-02-20 00:00:00 | Max open trades : 1
STRATEGY SUMMARY
┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━
┃ Strategy ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃ Drawdown ┃
┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━
│ Empty │ 53 │ 1.76 │ 1312.665 │ 131.274 days, 1:16:00 │ 33 0 20 62.3 │ 116.751 USDT 7.37% │
└──────────┴────────┴──────────────┴─────────────────┴──────────────┴─────────────────┴────────────────────────┴────────────────────