@@ -139,52 +139,66 @@ For example if you run the [moving average example trading bot](./examples/cross
139
139
you will get the following backtesting report:
140
140
141
141
``` bash
142
- ====================Backtest report===============================
143
- * Start date: 2023-08-24 00:00:00
144
- * End date: 2023-12-02 00:00:00
145
- * Number of days: 100
146
- * Number of runs: 1201
147
- ====================Portfolio overview============================
148
- * Number of orders: 10
149
- * Initial balance: 400.0000 EUR
150
- * Final balance: 431.8837 EUR
151
- * Total net gain: 28.4171 EUR
152
- * Total net gain percentage: 7.1043%
153
- * Growth rate: 7.9709%
154
- * Growth 31.8837 EUR
155
- ====================Positions overview========================
142
+
143
+ /& # #&( Backtest report
144
+ &&&&&&&&&&& # &&&&&&&&&&&& ---------------------------
145
+ &&&&&&&&&&&&&&&& (&&&&&&&&&&&&&&& Start date: 2023-08-24 00:00:00
146
+ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& End date: 2023-12-02 00:00:00
147
+ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Number of days: 100
148
+ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Number of runs: 1201
149
+ . &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Number of orders: 10
150
+ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& . Initial balance: 400.0
151
+ &&&&&&& # /((( &&&&&&&&&&&&*((( .&&&&&&&. Final balance: 431.1499
152
+ &&&&&&&&&&&&&&&&&&& (( (( &&&&&&&& (((( &&&&&&&&&&&&&&&&&&& Total net gain: 28 .5542 7 .139 %
153
+ (((&&&&&&&& (((( &&&&&& (((( &&&&&&&&&(( Growth: 31 .1499 7 .787 %
154
+ /((((((((((&&&&&&&&&& (((, &&&&&& (((**&&&&&&&&&((((((((((( Number of trades closed: 4
155
+ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Number of trades open(end of backtest): 2
156
+ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Percentage positive trades: 60 .0 %
157
+ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Percentage negative trades: 20 .0 %
158
+ ((((( &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&( Average trade size: 98 .9886 EUR
159
+ ((((( &&&&&&&&&&&&&&&&&&&&&&&&, Average trade duration: 184 .0 hours
160
+ ((((( &&&&&&&&&&&&&#
161
+ ((((( #&&&&&&&&&&###
162
+ ((((( &&&&&&&&&&&###.
163
+ .((((( &&&&&&&&&&&&&&###(
164
+ ((((( &&&&&&&&&&&&&&&&#(((/
165
+ ((((( &&&&&&&&&&&&&&&&&&&@((((
166
+ ((((( &&&&&&&&&&&&&&&&&&&&&&((((
167
+ ((((( &&&&&&&&&&&&&&&&&&&&&&&&((((,
168
+ .((((( &&&&&&&&&&&&&&&&&&&&&&&&&&((((
169
+ ((((( &&&&&&&&&&&&&&&&&&&&&&&&&&&&((((
170
+ ((((( &&&&&&&&&&&&&&&&&&&&&&&&&&&&&((((
171
+ ((((( &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&((((
172
+ ((((( &&&&&&&&&&&&&&&&&&&&&&&&&&&&&#((((
173
+ (((((((((((((((((((#########&&&&&&&&&&&&&&&&&&&&&&&&&&&&(((((
174
+ (((((((((((((((((((((######&&&&&&&&&&&&&&&&&&&&&&&&&&&&((((
175
+
176
+ Positions overview
156
177
╭────────────┬──────────┬──────────────────────┬───────────────────────┬──────────────┬───────────────┬───────────────────────────┬────────────────┬───────────────╮
157
178
│ Position │ Amount │ Pending buy amount │ Pending sell amount │ Cost (EUR) │ Value (EUR) │ Percentage of portfolio │ Growth (EUR) │ Growth_rate │
158
179
├────────────┼──────────┼──────────────────────┼───────────────────────┼──────────────┼───────────────┼───────────────────────────┼────────────────┼───────────────┤
159
- │ EUR │ 214.219 │ 0 │ 0 │ 214.219 │ 214.219 │ 49.6010 % │ 0 │ 0.0000% │
180
+ │ EUR │ 217 . 044 │ 0 │ 0 │ 217 . 044 │ 217 . 044 │ 50 . 3407 % │ 0 │ 0 .0000 % │
160
181
├────────────┼──────────┼──────────────────────┼───────────────────────┼──────────────┼───────────────┼───────────────────────────┼────────────────┼───────────────┤
161
- │ BTC │ 0.0031 │ 0 │ 0 │ 107.095 │ 110.401 │ 25.5627 % │ 3.3066 │ 3.0875 % │
182
+ │ BTC │ 0 .003 │ 0 │ 0 │ 104 . 372 │ 106 . 84 │ 24 . 7802 % │ 2 . 4678 │ 2 . 3644 % │
162
183
├────────────┼──────────┼──────────────────────┼───────────────────────┼──────────────┼───────────────┼───────────────────────────┼────────────────┼───────────────┤
163
- │ DOT │ 21.3291 │ 0 │ 0 │ 107.104 │ 107.264 │ 24.8363 % │ 0.16 │ 0.1494 % │
184
+ │ DOT │ 21 .3295 │ 0 │ 0 │ 107 .138 │ 107 .266 │ 24 .8791 % │ 0 .128 │ 0 .1195 % │
164
185
╰────────────┴──────────┴──────────────────────┴───────────────────────┴──────────────┴───────────────┴───────────────────────────┴────────────────┴───────────────╯
165
- ====================Trades overview===========================
166
- * Number of trades closed: 4
167
- * Number of trades open: 2
168
- * Percentage of positive trades: 60.0%
169
- * Percentage of negative trades: 20.0%
170
- * Average trade size: 98.8728 EUR
171
- * Average trade duration: 183.5 hours
186
+ Trades overview
172
187
╭─────────┬─────────────────────┬─────────────────────┬────────────────────┬──────────────┬──────────────────┬───────────────────────┬────────────────────┬─────────────────────╮
173
188
│ Pair │ Open date │ Close date │ Duration (hours) │ Size (EUR) │ Net gain (EUR) │ Net gain percentage │ Open price (EUR) │ Close price (EUR) │
174
189
├─────────┼─────────────────────┼─────────────────────┼────────────────────┼──────────────┼──────────────────┼───────────────────────┼────────────────────┼─────────────────────┤
175
- │ DOT-EUR │ 2023-11-30 20 :00:00 │ │ 2976.65 │ 107.104 │ 0 │ 0.0000% │ 5.0215 │ │
190
+ │ DOT-EUR │ 2023 -11 -30 18 :00 :00 │ │ 3207 . 26 │ 107 .138 │ 0 │ 0 .0000 % │ 5 .023 │ │
176
191
├─────────┼─────────────────────┼─────────────────────┼────────────────────┼──────────────┼──────────────────┼───────────────────────┼────────────────────┼─────────────────────┤
177
- │ BTC-EUR │ 2023-11-29 14 :00:00 │ │ 3006.65 │ 107.095 │ 0 │ 0.0000% │ 34546.6 │ │
192
+ │ BTC-EUR │ 2023 -11 -29 12 :00 :00 │ │ 3237 . 26 │ 104 . 372 │ 0 │ 0 .0000 % │ 34790 . 7 │ │
178
193
├─────────┼─────────────────────┼─────────────────────┼────────────────────┼──────────────┼──────────────────┼───────────────────────┼────────────────────┼─────────────────────┤
179
- │ BTC-EUR │ 2023-11-08 00 :00:00 │ 2023-11-14 16 :00:00 │ 160 │ 99.2265 │ 1.3352 │ 1.3456 % │ 33075.5 │ 33520.6 │
194
+ │ BTC-EUR │ 2023 -11 -07 22 :00 :00 │ 2023 -11 -14 14 :00 :00 │ 160 │ 99 .2337 │ 2 . 5395 │ 2 . 5591 % │ 33077 . 9 │ 33924 . 4 │
180
195
├─────────┼─────────────────────┼─────────────────────┼────────────────────┼──────────────┼──────────────────┼───────────────────────┼────────────────────┼─────────────────────┤
181
- │ BTC-EUR │ 2023-11-06 16 :00:00 │ 2023-11-06 20 :00:00 │ 4 │ 97.8607 │ -0.0026 │ -0.0026 % │ 32620.2 │ 32619.4 │
196
+ │ BTC-EUR │ 2023 -11 -06 14 :00 :00 │ 2023 -11 -06 18 :00 :00 │ 4 │ 98 . 2854 │ -0 .4248 │ -0 .4322 % │ 32761 . 8 │ 32620 . 2 │
182
197
├─────────┼─────────────────────┼─────────────────────┼────────────────────┼──────────────┼──────────────────┼───────────────────────┼────────────────────┼─────────────────────┤
183
- │ DOT-EUR │ 2023-10-30 06 :00:00 │ 2023-11-14 00:00:00 │ 354 │ 100.551 │ 24.8794 │ 24.7430 % │ 4.0375 │ 5.0365 │
198
+ │ DOT-EUR │ 2023 -10 -30 04 :00 :00 │ 2023 -11 -14 00 :00 :00 │ 356 │ 100 .537 │ 24 .2886 │ 24 .1588 % │ 4 .0565 │ 5 .0365 │
184
199
├─────────┼─────────────────────┼─────────────────────┼────────────────────┼──────────────┼──────────────────┼───────────────────────┼────────────────────┼─────────────────────┤
185
- │ BTC-EUR │ 2023-09-13 16 :00:00 │ 2023-09-22 16 :00:00 │ 216 │ 97.8529 │ 2.2051 │ 2.2534 % │ 24463.2 │ 25014.5 │
200
+ │ BTC-EUR │ 2023 -09 -13 14 :00 :00 │ 2023 -09 -22 14 :00 :00 │ 216 │ 97 .8976 │ 2 .1508 │ 2 .1970 % │ 24474 . 4 │ 25012 . 1 │
186
201
╰─────────┴─────────────────────┴─────────────────────┴────────────────────┴──────────────┴──────────────────┴───────────────────────┴────────────────────┴─────────────────────╯
187
- ==================================================================
188
202
```
189
203
190
204
### Backtest experiments
0 commit comments