Closed enoris75 closed 3 years ago
I'm noticing some discrepancies with Ichimoku too, but they are vastly lower (minor discrepancies can indeed occur for the latest price will be the one 1 period before the end of the interval):
ichimoku | Period | initial | Jan | Feb | Mar | Apr | Mai | Jun | Jul | Aug | Sep |
---|---|---|---|---|---|---|---|---|---|---|---|
buy and hold | 005m | 100 | 129.9068 | 91.84205 | 74.61094 | 135.9998 | 108.074 | 96.73515 | 124.2088 | 102.2401 | 92.07667 |
buy and hold | 015m | 100 | 130.3836 | 91.84205 | 74.61094 | 135.9998 | 108.074 | 96.73515 | 124.2088 | 102.2401 | 92.07667 |
buy and hold | 030m | 100 | 130.7528 | 91.84205 | 74.61094 | 135.9998 | 108.074 | 96.73515 | 124.2088 | 102.2401 | 92.07667 |
buy and hold | 060m | 100 | 130.4044 | 91.84205 | 74.61094 | 135.9998 | 108.074 | 96.73515 | 124.2088 | 102.2401 | 92.07667 |
buy and hold | 120m | 100 | 126.5859 | 92.33231 | 75.59087 | 135.9998 | 108.074 | 96.73515 | 124.5092 | 102.2401 | 92.07667 |
Bollinger | Period | initial | Jan | Feb | Mar | Apr | Mai | Jun |
---|---|---|---|---|---|---|---|---|
buy and hold | 005m | 100 | 130.370 | 91.800 | 74.708 | 137.538 | 109.763 | 96.232 |
buy and hold | 015m | 100 | 130.591 | 92.043 | 74.815 | 139.634 | 108.197 | 95.668 |
buy and hold | 030m | 100 | 129.790 | 92.529 | 75.996 | 140.556 | 107.050 | 96.293 |
buy and hold | 060m | 100 | 131.153 | 93.167 | 76.172 | 134.370 | 106.409 | 94.728 |
buy and hold | 120m | 100 | 134.898 | 90.789 | 73.559 | 128.757 | 105.544 | 93.832 |
I dug a little deeper and it seem like the initial value which is used to calculate buy and hold is not the value at the beginning of the testing period but rather the one corresponding to the first signal emitted by Bollinger.
Note: I quickly added the initial and final value of B&H to the end of simulation report for easier debugging (the from, to part).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
System information
node .\zenbot.js sim binance.BTC-USDT --strategy bollinger --period=15m --start 202004010000 --end 202005010000
andnode .\zenbot.js sim binance.BTC-USDT --strategy bollinger --period=2h --start 202004010000 --end 202005010000
Describe the problem
Disclaimer: total n00b here.
I've been running some simulation on the Bollinger strategy and I'm seeing rather important differences in the buy & hold return when I change the period of the simulation.
I don't understand why this is the case for in the case of b&h only the first and last price should matter. As an example with:
a period of 15m gives a buy & hold return of 39.63% while a period of 2h gives only 28.85%
Does anyone else also noticed similar discrepancies? Am I missing something here. Thank you in advance
Source code / Error logs
hereby the command lines:
node .\zenbot.js sim binance.BTC-USDT --strategy bollinger --period=15m --start 202004010000 --end 202005010000
andnode .\zenbot.js sim binance.BTC-USDT --strategy bollinger --period=2h --start 202004010000 --end 202005010000
Period 15m:
Period 2h: