Commit Graph

3402 Commits

Author SHA1 Message Date
zenix
d1689a3b14 fix: add error message on wrong sizeof klines passed in calculateSMA 2022-07-13 12:33:57 +09:00
zenix
4e2adcf29e fix: sma calculation, length, and add test case 2022-07-13 12:28:41 +09:00
Yo-An Lin
8119afbb44
Merge branch 'main' into strategy/pivotshort 2022-07-12 23:38:23 +08:00
c9s
f91e1afe95
atrp: multiple 100 for percentage 2022-07-12 22:54:47 +08:00
c9s
a51f26e3a7
backtest: add gross profit and gross loss fields 2022-07-12 19:50:28 +08:00
c9s
7d232f86b8
remove duplicated dumper close 2022-07-12 19:34:07 +08:00
c9s
24e009f333
backtest: avoid writing same record into the file 2022-07-12 18:46:09 +08:00
c9s
6ce9f6a2b7
fix FilterSimpleArgs 2022-07-12 17:55:15 +08:00
c9s
b521a7cf70
pivotshort: fix resistance price update algo 2022-07-12 17:45:47 +08:00
c9s
da4b35bd31
pivotshort: add 1m subscribe 2022-07-12 17:45:47 +08:00
Yo-An Lin
1ef2c1d668
Merge pull request #811 from andycheng123/fix/supertrend-strategy
strategy/supertrend: fix double dema initialization problem
2022-07-12 13:13:19 +08:00
c9s
28d9aa6820
autoborrow: show margin level when check 2022-07-11 16:26:25 +08:00
c9s
3f15df4c0e
autoborrow: fix repay balance check 2022-07-11 16:22:21 +08:00
c9s
98aaa6ce43
autoborrow: fix repay mech 2022-07-11 16:20:45 +08:00
Andy Cheng
1b5dc309f0 strategy/supertrend: fix double dema initialization problem 2022-07-11 13:37:01 +08:00
c9s
2a9a34ae66
bump version to v1.36.0 2022-07-10 19:08:30 +08:00
c9s
c62aafdf2b
compile and update migration package 2022-07-10 19:08:30 +08:00
Zenix
e633cedd3c
Merge pull request #809 from zenixls2/feature/logistic_regression
feature: logistic regression
2022-07-09 17:27:20 +09:00
Yo-An Lin
eacbd13e6b
Merge pull request #810 from andycheng123/fix/supertrend-strategy 2022-07-08 21:03:01 +08:00
Yo-An Lin
e6d9a8a84a
Merge pull request #808 from c9s/fix/kline-with-filtering 2022-07-08 21:02:28 +08:00
c9s
cc8821bb66
update max order api path 2022-07-08 20:47:51 +08:00
c9s
e9faf34b5e
max: fix balance field for api 2022-07-08 17:28:07 +08:00
c9s
59fcef0b6d
supertrend: avoid using embedded struct on DoubleDema 2022-07-08 17:13:12 +08:00
Andy Cheng
d73d7b4380
Merge branch 'main' into fix/supertrend-strategy 2022-07-08 16:45:26 +08:00
c9s
5bd292d0b2
bbgo: add notify(profit) 2022-07-08 16:43:32 +08:00
Andy Cheng
574e142cf9 strategy/supertrend: use types.IntervalWindow instead of types.Interval 2022-07-08 16:42:31 +08:00
c9s
79b70d4a31
supertrend: fix interval window for exit methods 2022-07-08 16:31:28 +08:00
zenix
0e64a14d7f feature: add entropy, cross entropy, sigmoid, softmax, and logistic regression 2022-07-08 16:58:59 +09:00
c9s
46d6ecc663
fix types.TradeStats usage 2022-07-08 15:44:32 +08:00
c9s
581e4be218
supertrend: clean up and update 2022-07-08 15:41:28 +08:00
c9s
d7f83a45b3
fix: check if interval is empty string 2022-07-08 14:47:36 +08:00
Andy Cheng
f8777752a0
Merge branch 'main' into improve/supertrend-strategy 2022-07-07 10:33:30 +08:00
Yo-An Lin
e778db1f24
Merge pull request #801 from c9s/feature/optimizer-metrics-tsv-format
feature: optimizer: support --tsv option and render tsv output
2022-07-07 06:23:49 +08:00
c9s
ba74e83552
optimizer: show *exec.ExitError 2022-07-07 02:26:39 +08:00
c9s
81560746bd
all: reformat code 2022-07-07 02:26:39 +08:00
c9s
c9859c9238
add more struct field tests 2022-07-07 02:26:39 +08:00
c9s
30deaad079
dynamic: add IterateFields 2022-07-07 02:26:39 +08:00
c9s
3131786c02
bbgo: fix trailing stop binding 2022-07-07 02:26:39 +08:00
c9s
74593720a7
add ExitMethodSet.Bind method 2022-07-07 02:26:39 +08:00
c9s
d2637ce261
trailing stop: apply ClosePosition parameter 2022-07-07 02:26:39 +08:00
c9s
7b7d0690c7
optimizer: support --tsv option and render tsv output 2022-07-07 02:11:52 +08:00
c9s
81e05a3f2c
add more struct field tests 2022-07-06 22:01:35 +08:00
c9s
825022715d
dynamic: add IterateFields 2022-07-06 21:58:26 +08:00
c9s
b3e04a68da
bbgo: fix trailing stop binding 2022-07-06 21:50:38 +08:00
Andy Cheng
c43d4e0b24 strategy/supertrend: func to get order side 2022-07-06 18:11:09 +08:00
Andy Cheng
8aa5b706b6 strategy/supertrend: fix double dema missing interval 2022-07-06 17:05:38 +08:00
Andy Cheng
6c93c42ef6 strategy/supertrend: pull double dema into a single file 2022-07-06 16:45:19 +08:00
Andy Cheng
c62e7bbb58 strategy/supertrend: refactor to smaller functions 2022-07-06 16:26:30 +08:00
c9s
3d9db2786d
add trailing stop to the exit method 2022-07-06 10:56:10 +08:00
c9s
b49f12300c
add long position test for trailing stop
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-06 10:54:53 +08:00