Update backtesting documentation
This commit is contained in:
+244
-203
@@ -160,117 +160,144 @@ The most important in the backtesting is to understand the result.
|
|||||||
A backtesting result will look like that:
|
A backtesting result will look like that:
|
||||||
|
|
||||||
```
|
```
|
||||||
================================================ BACKTESTING REPORT =================================================
|
BACKTESTING REPORT
|
||||||
| Pair | Trades | Avg Profit % | Tot Profit BTC | Tot Profit % | Avg Duration | Wins Draws Loss Win% |
|
┏━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|----------+--------+----------------+------------------+----------------+--------------+--------------------------|
|
┃ Pair ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
|
||||||
| ADA/BTC | 35 | -0.11 | -0.00019428 | -1.94 | 4:35:00 | 14 0 21 40.0 |
|
┡━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
| ARK/BTC | 11 | -0.41 | -0.00022647 | -2.26 | 2:03:00 | 3 0 8 27.3 |
|
│ DOGE/USDT:USDT │ 406 │ 3.58 │ 1453.700 │ 72.68 │ 1 day, 19:30:00 │ 176 0 230 43.3 │
|
||||||
| BTS/BTC | 32 | 0.31 | 0.00048938 | 4.89 | 5:05:00 | 18 0 14 56.2 |
|
│ ADA/USDT:USDT │ 480 │ 2.17 │ 1041.450 │ 52.07 │ 1 day, 13:14:00 │ 201 0 279 41.9 │
|
||||||
| DASH/BTC | 13 | -0.08 | -0.00005343 | -0.53 | 4:39:00 | 6 0 7 46.2 |
|
│ SOL/USDT:USDT │ 403 │ 2.17 │ 871.360 │ 43.57 │ 1 day, 18:56:00 │ 177 0 226 43.9 │
|
||||||
| ENG/BTC | 18 | 1.36 | 0.00122807 | 12.27 | 2:50:00 | 8 0 10 44.4 |
|
│ XRP/USDT:USDT │ 465 │ 1.84 │ 857.098 │ 42.85 │ 1 day, 18:52:00 │ 190 0 275 40.9 │
|
||||||
| EOS/BTC | 36 | 0.08 | 0.00015304 | 1.53 | 3:34:00 | 16 0 20 44.4 |
|
│ AVAX/USDT:USDT │ 406 │ 2.27 │ 849.555 │ 42.48 │ 1 day, 16:17:00 │ 181 0 225 44.6 │
|
||||||
| ETC/BTC | 26 | 0.37 | 0.00047576 | 4.75 | 6:14:00 | 11 0 15 42.3 |
|
│ XLM/USDT:USDT │ 508 │ 1.61 │ 817.847 │ 40.89 │ 1 day, 14:51:00 │ 206 0 302 40.6 │
|
||||||
| ETH/BTC | 33 | 0.30 | 0.00049856 | 4.98 | 7:31:00 | 16 0 17 48.5 |
|
│ ETC/USDT:USDT │ 490 │ 1.51 │ 737.908 │ 36.9 │ 1 day, 13:18:00 │ 201 0 289 41.0 │
|
||||||
| IOTA/BTC | 32 | 0.03 | 0.00005444 | 0.54 | 3:12:00 | 14 0 18 43.8 |
|
│ ETH/USDT:USDT │ 468 │ 1.58 │ 734.632 │ 36.73 │ 1 day, 19:18:00 │ 202 0 266 43.2 │
|
||||||
| LSK/BTC | 15 | 1.75 | 0.00131413 | 13.13 | 2:58:00 | 6 0 9 40.0 |
|
│ DOT/USDT:USDT │ 415 │ 1.61 │ 665.423 │ 33.27 │ 1 day, 16:29:00 │ 182 0 233 43.9 │
|
||||||
| LTC/BTC | 32 | -0.04 | -0.00006886 | -0.69 | 4:49:00 | 11 0 21 34.4 |
|
│ FIL/USDT:USDT │ 375 │ 1.63 │ 597.045 │ 29.85 │ 1 day, 17:06:00 │ 152 0 223 40.5 │
|
||||||
| NANO/BTC | 17 | 1.26 | 0.00107058 | 10.70 | 1:55:00 | 10 0 7 58.5 |
|
│ BCH/USDT:USDT │ 494 │ 1.05 │ 517.877 │ 25.89 │ 1 day, 17:26:00 │ 190 0 304 38.5 │
|
||||||
| NEO/BTC | 23 | 0.82 | 0.00094936 | 9.48 | 2:59:00 | 10 0 13 43.5 |
|
│ BTC/USDT:USDT │ 247 │ 1.78 │ 418.177 │ 20.91 │ 2 days, 6:16:00 │ 120 0 127 48.6 │
|
||||||
| REQ/BTC | 9 | 1.17 | 0.00052734 | 5.27 | 3:47:00 | 4 0 5 44.4 |
|
│ UNI/USDT:USDT │ 417 │ 0.99 │ 405.739 │ 20.29 │ 1 day, 16:22:00 │ 170 0 247 40.8 │
|
||||||
| XLM/BTC | 16 | 1.22 | 0.00097800 | 9.77 | 3:15:00 | 7 0 9 43.8 |
|
│ CRV/USDT:USDT │ 444 │ 0.91 │ 402.472 │ 20.12 │ 1 day, 11:32:00 │ 155 0 289 34.9 │
|
||||||
| XMR/BTC | 23 | -0.18 | -0.00020696 | -2.07 | 5:30:00 | 12 0 11 52.2 |
|
│ AAVE/USDT:USDT │ 408 │ 0.99 │ 384.711 │ 19.24 │ 1 day, 16:20:00 │ 173 0 235 42.4 │
|
||||||
| XRP/BTC | 35 | 0.66 | 0.00114897 | 11.48 | 3:49:00 | 12 0 23 34.3 |
|
│ NEAR/USDT:USDT │ 400 │ 0.74 │ 291.283 │ 14.56 │ 1 day, 16:15:00 │ 177 0 223 44.2 │
|
||||||
| ZEC/BTC | 22 | -0.46 | -0.00050971 | -5.09 | 2:22:00 | 7 0 15 31.8 |
|
│ ATOM/USDT:USDT │ 476 │ 0.57 │ 271.570 │ 13.58 │ 1 day, 14:54:00 │ 211 0 265 44.3 │
|
||||||
| TOTAL | 429 | 0.36 | 0.00762792 | 76.20 | 4:12:00 | 186 0 243 43.4 |
|
│ LINK/USDT:USDT │ 489 │ 0.5 │ 246.783 │ 12.34 │ 1 day, 15:39:00 │ 218 0 271 44.6 │
|
||||||
============================================= LEFT OPEN TRADES REPORT =============================================
|
│ LTC/USDT:USDT │ 490 │ 0.42 │ 204.725 │ 10.24 │ 1 day, 15:15:00 │ 191 0 299 39.0 │
|
||||||
| Pair | Trades | Avg Profit % | Tot Profit BTC | Tot Profit % | Avg Duration | Win Draw Loss Win% |
|
│ ALGO/USDT:USDT │ 492 │ 0.24 │ 116.689 │ 5.83 │ 1 day, 11:29:00 │ 184 0 308 37.4 │
|
||||||
|----------+---------+----------------+------------------+----------------+----------------+---------------------|
|
│ TOTAL │ 8773 │ 1.37 │ 11886.045 │ 594.3 │ 1 day, 16:16:00 │ 3657 0 5116 41.7 │
|
||||||
| ADA/BTC | 1 | 0.89 | 0.00004434 | 0.44 | 6:00:00 | 1 0 0 100 |
|
└────────────────┴────────┴──────────────┴─────────────────┴──────────────┴─────────────────┴────────────────────────┘
|
||||||
| LTC/BTC | 1 | 0.68 | 0.00003421 | 0.34 | 2:00:00 | 1 0 0 100 |
|
LEFT OPEN TRADES REPORT
|
||||||
| TOTAL | 2 | 0.78 | 0.00007855 | 0.78 | 4:00:00 | 2 0 0 100 |
|
┏━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
==================== EXIT REASON STATS ====================
|
┃ Pair ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
|
||||||
| Exit Reason | Exits | Wins | Draws | Losses |
|
┡━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|--------------------+---------+-------+--------+---------|
|
│ CRV/USDT:USDT │ 1 │ -2.02 │ -2.017 │ -0.1 │ 1 day, 0:00:00 │ 0 0 1 0 │
|
||||||
| trailing_stop_loss | 205 | 150 | 0 | 55 |
|
│ ETH/USDT:USDT │ 1 │ -2.09 │ -2.023 │ -0.1 │ 12:00:00 │ 0 0 1 0 │
|
||||||
| stop_loss | 166 | 0 | 0 | 166 |
|
│ BCH/USDT:USDT │ 1 │ -2.74 │ -2.736 │ -0.14 │ 16:00:00 │ 0 0 1 0 │
|
||||||
| exit_signal | 56 | 36 | 0 | 20 |
|
│ TOTAL │ 3 │ -2.28 │ -6.776 │ -0.34 │ 17:20:00 │ 0 0 3 0 │
|
||||||
| force_exit | 2 | 0 | 0 | 2 |
|
└───────────────┴────────┴──────────────┴─────────────────┴──────────────┴────────────────┴────────────────────────┘
|
||||||
|
ENTER TAG STATS
|
||||||
================== SUMMARY METRICS ==================
|
┏━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
| Metric | Value |
|
┃ Enter Tag ┃ Entries ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
|
||||||
|-----------------------------+---------------------|
|
┡━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
| Backtesting from | 2019-01-01 00:00:00 |
|
│ enter_long │ 4608 │ 1.79 │ 8174.064 │ 408.7 │ 1 day, 22:03:00 │ 1909 0 2699 41.4 │
|
||||||
| Backtesting to | 2019-05-01 00:00:00 |
|
│ enter_short │ 4165 │ 0.91 │ 3711.981 │ 185.6 │ 1 day, 9:52:00 │ 1748 0 2417 42.0 │
|
||||||
| Trading Mode | Spot |
|
│ TOTAL │ 8773 │ 1.37 │ 11886.045 │ 594.3 │ 1 day, 16:16:00 │ 3657 0 5116 41.7 │
|
||||||
| Max open trades | 3 |
|
└─────────────┴─────────┴──────────────┴─────────────────┴──────────────┴─────────────────┴────────────────────────┘
|
||||||
| | |
|
EXIT REASON STATS
|
||||||
| Total/Daily Avg Trades | 429 / 3.575 |
|
┏━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
| Starting balance | 0.01000000 BTC |
|
┃ Exit Reason ┃ Exits ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
|
||||||
| Final balance | 0.01762792 BTC |
|
┡━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
| Absolute profit | 0.00762792 BTC |
|
│ exit_signal │ 8229 │ 0.99 │ 8003.737 │ 400.19 │ 1 day, 15:48:00 │ 3354 0 4875 40.8 │
|
||||||
| Total profit % | 76.2% |
|
│ roi │ 303 │ 23.77 │ 7097.760 │ 354.89 │ 2 days, 16:48:00 │ 303 0 0 100 │
|
||||||
| CAGR % | 460.87% |
|
│ force_exit │ 3 │ -2.28 │ -6.776 │ -0.34 │ 17:20:00 │ 0 0 3 0 │
|
||||||
| Sortino | 1.88 |
|
│ stop_loss │ 238 │ -13.74 │ -3208.676 │ -160.43 │ 1 day, 1:14:00 │ 0 0 238 0 │
|
||||||
| Sharpe | 2.97 |
|
│ TOTAL │ 8773 │ 1.37 │ 11886.045 │ 594.3 │ 1 day, 16:16:00 │ 3657 0 5116 41.7 │
|
||||||
| Calmar | 6.29 |
|
└─────────────┴───────┴──────────────┴─────────────────┴──────────────┴──────────────────┴────────────────────────┘
|
||||||
| SQN | 2.45 |
|
MIXED TAG STATS
|
||||||
| Profit factor | 1.11 |
|
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
| Expectancy (Ratio) | -0.15 (-0.05) |
|
┃ Enter Tag ┃ Exit Reason ┃ Trades ┃ Avg Profit % ┃ Tot Profit USDT ┃ Tot Profit % ┃ Avg Duration ┃ Win Draw Loss Win% ┃
|
||||||
| Avg. stake amount | 0.001 BTC |
|
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
| Total trade volume | 0.429 BTC |
|
│ enter_long │ exit_signal │ 4570 │ 2.01 │ 9083.885 │ 454.19 │ 1 day, 22:07:00 │ 1909 0 2661 41.8 │
|
||||||
| | |
|
│ enter_short │ roi │ 303 │ 23.77 │ 7097.760 │ 354.89 │ 2 days, 16:48:00 │ 303 0 0 100 │
|
||||||
| Long / Short | 352 / 77 |
|
│ enter_long │ force_exit │ 3 │ -2.28 │ -6.776 │ -0.34 │ 17:20:00 │ 0 0 3 0 │
|
||||||
| Total profit Long % | 1250.58% |
|
│ enter_long │ stop_loss │ 35 │ -26.37 │ -903.045 │ -45.15 │ 1 day, 15:53:00 │ 0 0 35 0 │
|
||||||
| Total profit Short % | -15.02% |
|
│ enter_short │ exit_signal │ 3659 │ -0.3 │ -1080.148 │ -54.01 │ 1 day, 7:56:00 │ 1445 0 2214 39.5 │
|
||||||
| Absolute profit Long | 0.00838792 BTC |
|
│ enter_short │ stop_loss │ 203 │ -11.56 │ -2305.631 │ -115.28 │ 22:42:00 │ 0 0 203 0 │
|
||||||
| Absolute profit Short | -0.00076 BTC |
|
│ TOTAL │ │ 8773 │ 1.37 │ 11886.045 │ 594.3 │ 1 day, 16:16:00 │ 3657 0 5116 41.7 │
|
||||||
| | |
|
└─────────────┴─────────────┴────────┴──────────────┴─────────────────┴──────────────┴──────────────────┴────────────────────────┘
|
||||||
| Best Pair | LSK/BTC 26.26% |
|
SUMMARY METRICS
|
||||||
| Worst Pair | ZEC/BTC -10.18% |
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
| Best Trade | LSK/BTC 4.25% |
|
┃ Metric ┃ Value ┃
|
||||||
| Worst Trade | ZEC/BTC -10.25% |
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
| Best day | 0.00076 BTC |
|
│ Backtesting from │ 2020-01-01 00:00:00 │
|
||||||
| Worst day | -0.00036 BTC |
|
│ Backtesting to │ 2025-07-31 16:00:00 │
|
||||||
| Days win/draw/lose | 12 / 82 / 25 |
|
│ Trading Mode │ Isolated Futures │
|
||||||
| Avg. Duration Winners | 4:23:00 |
|
│ Max open trades │ 20 │
|
||||||
| Avg. Duration Loser | 6:55:00 |
|
│ │ │
|
||||||
| Max Consecutive Wins / Loss | 3 / 4 |
|
│ Total/Daily Avg Trades │ 8773 / 4.3 │
|
||||||
| Rejected Entry signals | 3089 |
|
│ Starting balance │ 2000 USDT │
|
||||||
| Entry/Exit Timeouts | 0 / 0 |
|
│ Final balance │ 13886.045 USDT │
|
||||||
| Canceled Trade Entries | 34 |
|
│ Absolute profit │ 11886.045 USDT │
|
||||||
| Canceled Entry Orders | 123 |
|
│ Total profit % │ 594.30% │
|
||||||
| Replaced Entry Orders | 89 |
|
│ CAGR % │ 41.49% │
|
||||||
| | |
|
│ Sortino │ 28.95 │
|
||||||
| Min balance | 0.00945123 BTC |
|
│ Sharpe │ 7.21 │
|
||||||
| Max balance | 0.01846651 BTC |
|
│ Calmar │ 92.50 │
|
||||||
| Max % of account underwater | 25.19% |
|
│ SQN │ 8.21 │
|
||||||
| Absolute Drawdown (Account) | 13.33% |
|
│ Profit factor │ 1.68 │
|
||||||
| Drawdown | 0.0015 BTC |
|
│ Expectancy (Ratio) │ 1.35 (0.40) │
|
||||||
| Drawdown high | 0.0013 BTC |
|
│ Avg. daily profit │ 5.832 USDT │
|
||||||
| Drawdown low | -0.0002 BTC |
|
│ Avg. stake amount │ 98.376 USDT │
|
||||||
| Drawdown Start | 2019-02-15 14:10:00 |
|
│ Total trade volume │ 2090483.493 USDT │
|
||||||
| Drawdown End | 2019-04-11 18:15:00 |
|
│ │ │
|
||||||
| Market change | -5.88% |
|
│ Long / Short trades │ 4608 / 4165 │
|
||||||
=====================================================
|
│ Long / Short profit % │ 408.70% / 185.60% │
|
||||||
|
│ Long / Short profit USDT │ 8174.064 / 3711.981 │
|
||||||
|
│ │ │
|
||||||
|
│ Best Pair │ DOGE/USDT:USDT 72.68% │
|
||||||
|
│ Worst Pair │ ALGO/USDT:USDT 5.83% │
|
||||||
|
│ Best trade │ DOGE/USDT:USDT 724.62% │
|
||||||
|
│ Worst trade │ UNI/USDT:USDT -34.76% │
|
||||||
|
│ Best day │ 782.575 USDT │
|
||||||
|
│ Worst day │ -285.862 USDT │
|
||||||
|
│ Days win/draw/lose │ 767 / 270 / 1000 │
|
||||||
|
│ Min/Max/Avg. Duration Winners │ 0d 00:00 / 23d 16:00 / 2d 14:13 │
|
||||||
|
│ Min/Max/Avg. Duration Losers │ 0d 00:00 / 12d 16:00 / 1d 00:35 │
|
||||||
|
│ Max Consecutive Wins / Loss │ 27 / 37 │
|
||||||
|
│ Rejected Entry signals │ 0 │
|
||||||
|
│ Entry/Exit Timeouts │ 0 / 0 │
|
||||||
|
│ │ │
|
||||||
|
│ Min balance │ 1993.526 USDT │
|
||||||
|
│ Max balance │ 13941.454 USDT │
|
||||||
|
│ Max % of account underwater │ 10.17% │
|
||||||
|
│ Absolute drawdown │ 516.716 USDT (6.02%) │
|
||||||
|
│ Drawdown duration │ 40 days 20:00:00 │
|
||||||
|
│ Profit at drawdown start │ 6579.085 USDT │
|
||||||
|
│ Profit at drawdown end │ 6062.369 USDT │
|
||||||
|
│ Drawdown start │ 2022-08-09 08:00:00 │
|
||||||
|
│ Drawdown end │ 2022-09-19 04:00:00 │
|
||||||
|
│ Market change │ 1011.30% │
|
||||||
|
└───────────────────────────────┴─────────────────────────────────┘
|
||||||
```
|
```
|
||||||
|
|
||||||
### Backtesting report table
|
### Backtesting report table
|
||||||
|
|
||||||
The 1st table contains all trades the bot made, including "left open trades".
|
The first table contains all trades the bot made, including "left open trades".
|
||||||
|
|
||||||
The last line will give you the overall performance of your strategy,
|
The last line will give you the overall performance of your strategy,
|
||||||
here:
|
here:
|
||||||
|
|
||||||
```
|
```
|
||||||
| TOTAL | 429 | 0.36 | 152.41 | 0.00762792 | 76.20 | 4:12:00 | 186 0 243 43.4 |
|
│ TOTAL │ 8773 │ 1.37 │ 11886.045 │ 594.3 │ 1 day, 16:16:00 │ 3657 0 5116 41.7 │
|
||||||
```
|
```
|
||||||
|
|
||||||
The bot has made `429` trades for an average duration of `4:12:00`, with a performance of `76.20%` (profit), that means it has
|
The bot has made `8773` trades for an average duration of `1 day, 16:16:00`, with a performance of `594.3%` (profit), that means it has
|
||||||
earned a total of `0.00762792 BTC` starting with a capital of 0.01 BTC.
|
earned a total of `11886.045 USDT` starting with a capital of 2000 USDT.
|
||||||
|
|
||||||
The column `Avg Profit %` shows the average profit for all trades made.
|
The column `Avg Profit %` shows the average profit for all trades made.
|
||||||
The column `Tot Profit %` shows instead the total profit % in relation to the starting balance.
|
The column `Tot Profit %` shows instead the total profit % in relation to the starting balance.
|
||||||
In the above results, we have a starting balance of 0.01 BTC and an absolute profit of 0.00762792 BTC - so the `Tot Profit %` will be `(0.00762792 / 0.01) * 100 ~= 76.2%`.
|
|
||||||
|
In the above results, we have a starting balance of 2000 USDT and an absolute profit of 11886.045 USDT - so the `Tot Profit %` will be `(11886.045 / 2000) * 100 ~= 594.3%`.
|
||||||
|
|
||||||
Your strategy performance is influenced by your entry strategy, your exit strategy, and also by the `minimal_roi` and `stop_loss` you have set.
|
Your strategy performance is influenced by your entry strategy, your exit strategy, and also by the `minimal_roi` and `stop_loss` you have set.
|
||||||
|
|
||||||
@@ -286,86 +313,87 @@ On the other hand, if you set a too high `minimal_roi` like `"0": 0.55`
|
|||||||
(55%), there is almost no chance that the bot will ever reach this profit.
|
(55%), there is almost no chance that the bot will ever reach this profit.
|
||||||
Hence, keep in mind that your performance is an integral mix of all different elements of the strategy, your configuration, and the crypto-currency pairs you have set up.
|
Hence, keep in mind that your performance is an integral mix of all different elements of the strategy, your configuration, and the crypto-currency pairs you have set up.
|
||||||
|
|
||||||
### Exit reasons table
|
|
||||||
|
|
||||||
The 2nd table contains a recap of exit reasons.
|
|
||||||
This table can tell you which area needs some additional work (e.g. all or many of the `exit_signal` trades are losses, so you should work on improving the exit signal, or consider disabling it).
|
|
||||||
|
|
||||||
### Left open trades table
|
### Left open trades table
|
||||||
|
|
||||||
The 3rd table contains all trades the bot had to `force_exit` at the end of the backtesting period to present you the full picture.
|
The second table contains all trades the bot had to `force_exit` at the end of the backtesting period to present you the full picture.
|
||||||
This is necessary to simulate realistic behavior, since the backtest period has to end at some point, while realistically, you could leave the bot running forever.
|
This is necessary to simulate realistic behavior, since the backtest period has to end at some point, while realistically, you could leave the bot running forever.
|
||||||
These trades are also included in the first table, but are also shown separately in this table for clarity.
|
These trades are also included in the first table, but are also shown separately in this table for clarity.
|
||||||
|
|
||||||
|
### Enter tag stats table
|
||||||
|
|
||||||
|
The third table provides a breakdown of trades by their entry tags (e.g., `enter_long`, `enter_short`), showing the number of entries, average profit percentage, total profit in the stake currency, total profit percentage, average duration, and the number of wins, draws, and losses for each tag.
|
||||||
|
|
||||||
|
### Exit reason stats table
|
||||||
|
|
||||||
|
The fourth table contains a recap of exit reasons (e.g., `exit_signal`, `roi`, `stop_loss`, `force_exit`). This table can tell you which area needs additional work (e.g., if many `exit_signal` trades are losses, you should work on improving the exit signal or consider disabling it).
|
||||||
|
|
||||||
|
### Mixed tag stats table
|
||||||
|
|
||||||
|
The fifth table combines entry tags and exit reasons, providing a detailed view of how different entry tags performed with specific exit reasons. This can help identify which combinations of entry and exit strategies are most effective.
|
||||||
|
|
||||||
### Summary metrics
|
### Summary metrics
|
||||||
|
|
||||||
The last element of the backtest report is the summary metrics table.
|
The last element of the backtest report is the summary metrics table.
|
||||||
It contains some useful key metrics about performance of your strategy on backtesting data.
|
It contains key metrics about the performance of your strategy on backtesting data.
|
||||||
|
|
||||||
```
|
```
|
||||||
================== SUMMARY METRICS ==================
|
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
| Metric | Value |
|
┃ Metric ┃ Value ┃
|
||||||
|-----------------------------+---------------------|
|
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
| Backtesting from | 2019-01-01 00:00:00 |
|
│ Backtesting from │ 2020-01-01 00:00:00 │
|
||||||
| Backtesting to | 2019-05-01 00:00:00 |
|
│ Backtesting to │ 2025-07-31 16:00:00 │
|
||||||
| Trading Mode | Spot |
|
│ Trading Mode │ Isolated Futures │
|
||||||
| Max open trades | 3 |
|
│ Max open trades │ 20 │
|
||||||
| | |
|
│ │ │
|
||||||
| Total/Daily Avg Trades | 429 / 3.575 |
|
│ Total/Daily Avg Trades │ 8773 / 4.3 │
|
||||||
| Starting balance | 0.01000000 BTC |
|
│ Starting balance │ 2000 USDT │
|
||||||
| Final balance | 0.01762792 BTC |
|
│ Final balance │ 13886.045 USDT │
|
||||||
| Absolute profit | 0.00762792 BTC |
|
│ Absolute profit │ 11886.045 USDT │
|
||||||
| Total profit % | 76.2% |
|
│ Total profit % │ 594.30% │
|
||||||
| CAGR % | 460.87% |
|
│ CAGR % │ 41.49% │
|
||||||
| Sortino | 1.88 |
|
│ Sortino │ 28.95 │
|
||||||
| Sharpe | 2.97 |
|
│ Sharpe │ 7.21 │
|
||||||
| Calmar | 6.29 |
|
│ Calmar │ 92.50 │
|
||||||
| SQN | 2.45 |
|
│ SQN │ 8.21 │
|
||||||
| Profit factor | 1.11 |
|
│ Profit factor │ 1.68 │
|
||||||
| Expectancy (Ratio) | -0.15 (-0.05) |
|
│ Expectancy (Ratio) │ 1.35 (0.40) │
|
||||||
| Avg. daily profit | 0.0001 BTC |
|
│ Avg. daily profit │ 5.832 USDT │
|
||||||
| Avg. stake amount | 0.001 BTC |
|
│ Avg. stake amount │ 98.376 USDT │
|
||||||
| Total trade volume | 0.429 BTC |
|
│ Total trade volume │ 2090483.493 USDT │
|
||||||
| | |
|
│ │ │
|
||||||
| Long / Short | 352 / 77 |
|
│ Long / Short trades │ 4608 / 4165 │
|
||||||
| Total profit Long % | 1250.58% |
|
│ Long / Short profit % │ 408.70% / 185.60% │
|
||||||
| Total profit Short % | -15.02% |
|
│ Long / Short profit USDT │ 8174.064 / 3711.981 │
|
||||||
| Absolute profit Long | 0.00838792 BTC |
|
│ │ │
|
||||||
| Absolute profit Short | -0.00076 BTC |
|
│ Best Pair │ DOGE/USDT:USDT 72.68% │
|
||||||
| | |
|
│ Worst Pair │ ALGO/USDT:USDT 5.83% │
|
||||||
| Best Pair | LSK/BTC 26.26% |
|
│ Best trade │ DOGE/USDT:USDT 724.62% │
|
||||||
| Worst Pair | ZEC/BTC -10.18% |
|
│ Worst trade │ UNI/USDT:USDT -34.76% │
|
||||||
| Best Trade | LSK/BTC 4.25% |
|
│ Best day │ 782.575 USDT │
|
||||||
| Worst Trade | ZEC/BTC -10.25% |
|
│ Worst day │ -285.862 USDT │
|
||||||
| Best day | 0.00076 BTC |
|
│ Days win/draw/lose │ 767 / 270 / 1000 │
|
||||||
| Worst day | -0.00036 BTC |
|
│ Min/Max/Avg. Duration Winners │ 0d 00:00 / 23d 16:00 / 2d 14:13 │
|
||||||
| Days win/draw/lose | 12 / 82 / 25 |
|
│ Min/Max/Avg. Duration Losers │ 0d 00:00 / 12d 16:00 / 1d 00:35 │
|
||||||
| Avg. Duration Winners | 4:23:00 |
|
│ Max Consecutive Wins / Loss │ 27 / 37 │
|
||||||
| Avg. Duration Loser | 6:55:00 |
|
│ Rejected Entry signals │ 0 │
|
||||||
| Max Consecutive Wins / Loss | 3 / 4 |
|
│ Entry/Exit Timeouts │ 0 / 0 │
|
||||||
| Rejected Entry signals | 3089 |
|
│ │ │
|
||||||
| Entry/Exit Timeouts | 0 / 0 |
|
│ Min balance │ 1993.526 USDT │
|
||||||
| Canceled Trade Entries | 34 |
|
│ Max balance │ 13941.454 USDT │
|
||||||
| Canceled Entry Orders | 123 |
|
│ Max % of account underwater │ 10.17% │
|
||||||
| Replaced Entry Orders | 89 |
|
│ Absolute drawdown │ 516.716 USDT (6.02%) │
|
||||||
| | |
|
│ Drawdown duration │ 40 days 20:00:00 │
|
||||||
| Min balance | 0.00945123 BTC |
|
│ Profit at drawdown start │ 6579.085 USDT │
|
||||||
| Max balance | 0.01846651 BTC |
|
│ Profit at drawdown end │ 6062.369 USDT │
|
||||||
| Max % of account underwater | 25.19% |
|
│ Drawdown start │ 2022-08-09 08:00:00 │
|
||||||
| Absolute Drawdown (Account) | 13.33% |
|
│ Drawdown end │ 2022-09-19 04:00:00 │
|
||||||
| Drawdown | 0.0015 BTC |
|
│ Market change │ 1011.30% │
|
||||||
| Drawdown high | 0.0013 BTC |
|
└───────────────────────────────┴─────────────────────────────────┘
|
||||||
| Drawdown low | -0.0002 BTC |
|
|
||||||
| Drawdown Start | 2019-02-15 14:10:00 |
|
|
||||||
| Drawdown End | 2019-04-11 18:15:00 |
|
|
||||||
| Market change | -5.88% |
|
|
||||||
=====================================================
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- `Backtesting from` / `Backtesting to`: Backtesting range (usually defined with the `--timerange` option).
|
- `Backtesting from` / `Backtesting to`: Backtesting range (usually defined with the `--timerange` option).
|
||||||
- `Max open trades`: Setting of `max_open_trades` (or `--max-open-trades`) - or number of pairs in the pairlist (whatever is lower).
|
|
||||||
- `Trading Mode`: Spot or Futures trading.
|
- `Trading Mode`: Spot or Futures trading.
|
||||||
|
- `Max open trades`: Setting of `max_open_trades` (or `--max-open-trades`) - or number of pairs in the pairlist (whatever is lower).
|
||||||
- `Total/Daily Avg Trades`: Identical to the total trades of the backtest output table / Total trades divided by the backtesting duration in days (this will give you information about how many trades to expect from the strategy).
|
- `Total/Daily Avg Trades`: Identical to the total trades of the backtest output table / Total trades divided by the backtesting duration in days (this will give you information about how many trades to expect from the strategy).
|
||||||
- `Starting balance`: Start balance - as given by dry-run-wallet (config or command line).
|
- `Starting balance`: Start balance - as given by dry-run-wallet (config or command line).
|
||||||
- `Final balance`: Final balance - starting balance + absolute profit.
|
- `Final balance`: Final balance - starting balance + absolute profit.
|
||||||
@@ -376,58 +404,71 @@ It contains some useful key metrics about performance of your strategy on backte
|
|||||||
- `Sharpe`: Annualized Sharpe ratio.
|
- `Sharpe`: Annualized Sharpe ratio.
|
||||||
- `Calmar`: Annualized Calmar ratio.
|
- `Calmar`: Annualized Calmar ratio.
|
||||||
- `SQN`: System Quality Number (SQN) - by Van Tharp.
|
- `SQN`: System Quality Number (SQN) - by Van Tharp.
|
||||||
- `Profit factor`: profit / loss.
|
- `Profit factor`: Sum of the profits of all winning trades divided by the sum of the losses of all losing trades.
|
||||||
- `Expectancy (Ratio)`: Expectancy ratio, which is the average profit or loss per trade. A negative expectancy ratio means that your strategy is not profitable.
|
- `Expectancy (Ratio)`: Expectancy ratio, which is the average profit or loss per trade. A negative expectancy ratio means that your strategy is not profitable.
|
||||||
- `Avg. daily profit`: Average profit per day, calculated as `(Total Profit / Backtest Days)`.
|
- `Avg. daily profit`: Average profit per day, calculated as `(Total Profit / Backtest Days)`.
|
||||||
- `Avg. stake amount`: Average stake amount, either `stake_amount` or the average when using dynamic stake amount.
|
- `Avg. stake amount`: Average stake amount, either `stake_amount` or the average when using dynamic stake amount.
|
||||||
- `Total trade volume`: Volume generated on the exchange to reach the above profit.
|
- `Total trade volume`: Volume generated on the exchange to reach the above profit.
|
||||||
- `Best Pair` / `Worst Pair`: Best and worst performing pair (based on absolute profit), and it's corresponding `Tot Profit %`.
|
- `Long / Short trades`: Split long/short trade counts (only shown when short trades were made).
|
||||||
- `Best Trade` / `Worst Trade`: Biggest single winning trade and biggest single losing trade.
|
- `Long / Short profit %`: Profit percentage for long and short trades (only shown when short trades were made).
|
||||||
|
- `Long / Short profit USDT`: Profit in stake currency for long and short trades (only shown when short trades were made).
|
||||||
|
- `Best Pair` / `Worst Pair`: Best and worst performing pair (based on total profit percentage), and its corresponding `Tot Profit %`.
|
||||||
|
- `Best trade` / `Worst trade`: Biggest single winning trade and biggest single losing trade.
|
||||||
- `Best day` / `Worst day`: Best and worst day based on daily profit.
|
- `Best day` / `Worst day`: Best and worst day based on daily profit.
|
||||||
- `Days win/draw/lose`: Winning / Losing days (draws are usually days without closed trade).
|
- `Days win/draw/lose`: Winning / Losing days (draws are usually days without closed trades).
|
||||||
- `Avg. Duration Winners` / `Avg. Duration Loser`: Average durations for winning and losing trades.
|
- `Min/Max/Avg. Duration Winners`: Minimum, maximum, and average durations for winning trades.
|
||||||
|
- `Min/Max/Avg. Duration Losers`: Minimum, maximum, and average durations for losing trades.
|
||||||
- `Max Consecutive Wins / Loss`: Maximum consecutive wins/losses in a row.
|
- `Max Consecutive Wins / Loss`: Maximum consecutive wins/losses in a row.
|
||||||
- `Rejected Entry signals`: Trade entry signals that could not be acted upon due to `max_open_trades` being reached.
|
- `Rejected Entry signals`: Trade entry signals that could not be acted upon due to `max_open_trades` being reached.
|
||||||
- `Entry/Exit Timeouts`: Entry/exit orders which did not fill (only applicable if custom pricing is used).
|
- `Entry/Exit Timeouts`: Entry/exit orders which did not fill (only applicable if custom pricing is used).
|
||||||
- `Canceled Trade Entries`: Number of trades that have been canceled by user request via `adjust_entry_price`.
|
|
||||||
- `Canceled Entry Orders`: Number of entry orders that have been canceled by user request via `adjust_entry_price`.
|
|
||||||
- `Replaced Entry Orders`: Number of entry orders that have been replaced by user request via `adjust_entry_price`.
|
|
||||||
- `Min balance` / `Max balance`: Lowest and Highest Wallet balance during the backtest period.
|
- `Min balance` / `Max balance`: Lowest and Highest Wallet balance during the backtest period.
|
||||||
- `Max % of account underwater`: Maximum percentage your account has decreased from the top since the simulation started.
|
- `Max % of account underwater`: Maximum percentage your account has decreased from the top since the simulation started. Calculated as the maximum of `(Max Balance - Current Balance) / (Max Balance)`.
|
||||||
Calculated as the maximum of `(Max Balance - Current Balance) / (Max Balance)`.
|
- `Absolute drawdown`: Maximum absolute drawdown experienced, including percentage relative to the account calculated as `(Absolute Drawdown) / (DrawdownHigh + startingBalance)`..
|
||||||
- `Absolute Drawdown (Account)`: Maximum Account Drawdown experienced. Calculated as `(Absolute Drawdown) / (DrawdownHigh + startingBalance)`.
|
- `Drawdown duration`: Duration of the largest drawdown period.
|
||||||
- `Drawdown`: Maximum, absolute drawdown experienced. Difference between Drawdown High and Subsequent Low point.
|
- `Profit at drawdown start` / `Profit at drawdown end`: Profit at the beginning and end of the largest drawdown period.
|
||||||
- `Drawdown high` / `Drawdown low`: Profit at the beginning and end of the largest drawdown period. A negative low value means initial capital lost.
|
- `Drawdown start` / `Drawdown end`: Start and end datetime for the largest drawdown (can also be visualized via the `plot-dataframe` sub-command).
|
||||||
- `Drawdown Start` / `Drawdown End`: Start and end datetime for this largest drawdown (can also be visualized via the `plot-dataframe` sub-command).
|
- `Market change`: Change of the market during the backtest period. Calculated as the average of all pairs' changes from the first to the last candle using the "close" column.
|
||||||
- `Market change`: Change of the market during the backtest period. Calculated as average of all pairs changes from the first to the last candle using the "close" column.
|
|
||||||
- `Long / Short`: Split long/short values (Only shown when short trades were made).
|
|
||||||
- `Total profit Long %` / `Absolute profit Long`: Profit long trades only (Only shown when short trades were made).
|
|
||||||
- `Total profit Short %` / `Absolute profit Short`: Profit short trades only (Only shown when short trades were made).
|
|
||||||
|
|
||||||
### Daily / Weekly / Monthly breakdown
|
### Daily / Weekly / Monthly / Yearly breakdown
|
||||||
|
|
||||||
You can get an overview over daily / weekly or monthly results by using the `--breakdown <>` switch.
|
You can get an overview over daily, weekly, monthly, or yearly results by using the `--breakdown <>` switch.
|
||||||
|
|
||||||
To visualize daily and weekly breakdowns, you can use the following:
|
To visualize monthly and yearly breakdowns, you can use the following:
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
freqtrade backtesting --strategy MyAwesomeStrategy --breakdown day week
|
freqtrade backtesting --strategy MyAwesomeStrategy --breakdown month year
|
||||||
```
|
```
|
||||||
|
|
||||||
``` output
|
``` output
|
||||||
======================== DAY BREAKDOWN =========================
|
MONTH BREAKDOWN
|
||||||
| Day | Tot Profit USDT | Wins | Draws | Losses |
|
┏━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|------------+-------------------+--------+---------+----------|
|
┃ Month ┃ Trades ┃ Tot Profit USDT ┃ Profit Factor ┃ Win Draw Loss Win% ┃
|
||||||
| 03/07/2021 | 200.0 | 2 | 0 | 0 |
|
┡━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
| 04/07/2021 | -50.31 | 0 | 0 | 2 |
|
│ 31/01/2020 │ 12 │ 44.451 │ 7.28 │ 10 0 2 83.3 │
|
||||||
| 05/07/2021 | 220.611 | 3 | 2 | 0 |
|
│ 29/02/2020 │ 30 │ 45.41 │ 2.36 │ 17 0 13 56.7 │
|
||||||
| 06/07/2021 | 150.974 | 3 | 0 | 2 |
|
│ 31/03/2020 │ 35 │ 142.024 │ 2.42 │ 14 0 21 40.0 │
|
||||||
| 07/07/2021 | -70.193 | 1 | 0 | 2 |
|
│ 30/04/2020 │ 67 │ -23.692 │ 0.81 │ 24 0 43 35.8 │
|
||||||
| 08/07/2021 | 212.413 | 2 | 0 | 3 |
|
...
|
||||||
|
...
|
||||||
|
│ 30/04/2025 │ 203 │ -63.43 │ 0.81 │ 73 0 130 36.0 │
|
||||||
|
│ 31/05/2025 │ 142 │ 104.675 │ 1.28 │ 59 0 83 41.5 │
|
||||||
|
│ 30/06/2025 │ 177 │ -1.014 │ 1.0 │ 85 0 92 48.0 │
|
||||||
|
│ 31/07/2025 │ 155 │ 232.762 │ 1.6 │ 63 0 92 40.6 │
|
||||||
|
└────────────┴────────┴─────────────────┴───────────────┴────────────────────────┘
|
||||||
|
YEAR BREAKDOWN
|
||||||
|
┏━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓
|
||||||
|
┃ Year ┃ Trades ┃ Tot Profit USDT ┃ Profit Factor ┃ Win Draw Loss Win% ┃
|
||||||
|
┡━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩
|
||||||
|
│ 31/12/2020 │ 896 │ 868.889 │ 1.46 │ 351 0 545 39.2 │
|
||||||
|
│ 31/12/2021 │ 1778 │ 4487.163 │ 1.93 │ 745 0 1033 41.9 │
|
||||||
|
│ 31/12/2022 │ 1736 │ 938.27 │ 1.27 │ 698 0 1038 40.2 │
|
||||||
|
│ 31/12/2023 │ 1712 │ 1677.126 │ 1.68 │ 670 0 1042 39.1 │
|
||||||
|
│ 31/12/2024 │ 1609 │ 3198.424 │ 2.22 │ 773 0 836 48.0 │
|
||||||
|
│ 31/12/2025 │ 1042 │ 716.174 │ 1.33 │ 420 0 622 40.3 │
|
||||||
|
└────────────┴────────┴─────────────────┴───────────────┴────────────────────────┘
|
||||||
```
|
```
|
||||||
|
|
||||||
The output will show a table containing the realized absolute Profit (in stake currency) for the given timeperiod, as well as wins, draws and losses that materialized (closed) on this day. Below that there will be a second table for the summarized values of weeks indicated by the date of the closing Sunday. The same would apply to a monthly breakdown indicated by the last day of the month.
|
The output will display tables containing the realized absolute profit (in stake currency) for the selected period, along with additional statistics such as number of trades, profit factor, and distribution of wins, draws, and losses that materialized (closed) on this period.
|
||||||
|
|
||||||
### Backtest result caching
|
### Backtest result caching
|
||||||
|
|
||||||
@@ -451,10 +492,10 @@ For this mode - `--notes "<notes>"` can be used to add notes to the backtest res
|
|||||||
The output file freqtrade produces is a zip file containing the following files:
|
The output file freqtrade produces is a zip file containing the following files:
|
||||||
|
|
||||||
- The backtest report in json format
|
- The backtest report in json format
|
||||||
- the market change data in feather format
|
- The market change data in feather format
|
||||||
- a copy of the strategy file
|
- A copy of the strategy file
|
||||||
- a copy of the strategy parameters (if a parameter file was used)
|
- A copy of the strategy parameters (if a parameter file was used)
|
||||||
- a sanitized copy of the config file
|
- A sanitized copy of the config file
|
||||||
|
|
||||||
This will ensure results are reproducible - under the assumption that the same data is available.
|
This will ensure results are reproducible - under the assumption that the same data is available.
|
||||||
|
|
||||||
@@ -472,7 +513,7 @@ Since backtesting lacks some detailed information about what happens within a ca
|
|||||||
- Exit-signal is favored over Stoploss, because exit-signals are assumed to trigger on candle's open
|
- Exit-signal is favored over Stoploss, because exit-signals are assumed to trigger on candle's open
|
||||||
- ROI
|
- ROI
|
||||||
- Exits are compared to high - but the ROI value is used (e.g. ROI = 2%, high=5% - so the exit will be at 2%)
|
- Exits are compared to high - but the ROI value is used (e.g. ROI = 2%, high=5% - so the exit will be at 2%)
|
||||||
- Exits are never "below the candle", so a ROI of 2% may result in a exit at 2.4% if low was at 2.4% profit
|
- Exits are never "below the candle", so a ROI of 2% may result in an exit at 2.4% if low was at 2.4% profit
|
||||||
- ROI entries which came into effect on the triggering candle (e.g. `120: 0.02` for 1h candles, from `60: 0.05`) will use the candle's open as exit rate
|
- ROI entries which came into effect on the triggering candle (e.g. `120: 0.02` for 1h candles, from `60: 0.05`) will use the candle's open as exit rate
|
||||||
- Force-exits caused by `<N>=-1` ROI entries use low as exit value, unless N falls on the candle open (e.g. `120: -1` for 1h candles)
|
- Force-exits caused by `<N>=-1` ROI entries use low as exit value, unless N falls on the candle open (e.g. `120: -1` for 1h candles)
|
||||||
- Stoploss exits happen exactly at stoploss price, even if low was lower, but the loss will be `2 * fees` higher than the stoploss price
|
- Stoploss exits happen exactly at stoploss price, even if low was lower, but the loss will be `2 * fees` higher than the stoploss price
|
||||||
@@ -538,7 +579,7 @@ freqtrade backtesting --strategy AwesomeStrategy --timeframe 1h --timeframe-deta
|
|||||||
|
|
||||||
This will load 1h data (the main timeframe) as well as 5m data (detail timeframe) for the selected timerange.
|
This will load 1h data (the main timeframe) as well as 5m data (detail timeframe) for the selected timerange.
|
||||||
The strategy will be analyzed with the 1h timeframe.
|
The strategy will be analyzed with the 1h timeframe.
|
||||||
Candles where activity may take place (there's an active signal, the pair is in a trade) are evaluated at the 5m timeframe.
|
Candles where activity may take place (there's an active signal, the pair is in a trade) are evaluated at the 5m timeframe.
|
||||||
This will allow for a more accurate simulation of intra-candle movements - and can lead to different results, especially on higher timeframes.
|
This will allow for a more accurate simulation of intra-candle movements - and can lead to different results, especially on higher timeframes.
|
||||||
|
|
||||||
Entries will generally still happen at the main candle's open, however freed trade slots may be freed earlier (if the exit signal is triggered on the 5m candle), which can then be used for a new trade of a different pair.
|
Entries will generally still happen at the main candle's open, however freed trade slots may be freed earlier (if the exit signal is triggered on the 5m candle), which can then be used for a new trade of a different pair.
|
||||||
@@ -601,5 +642,5 @@ Detailed output for all strategies one after the other will be available, so mak
|
|||||||
|
|
||||||
## Next step
|
## Next step
|
||||||
|
|
||||||
Great, your strategy is profitable. What if the bot can give your the optimal parameters to use for your strategy?
|
Great, your strategy is profitable. What if the bot can give you the optimal parameters to use for your strategy?
|
||||||
Your next step is to learn [how to find optimal parameters with Hyperopt](hyperopt.md)
|
Your next step is to learn [how to find optimal parameters with Hyperopt](hyperopt.md)
|
||||||
|
|||||||
Reference in New Issue
Block a user