c9s
|
15879adf3b
|
pivotshort: fix trade loss ratio
|
2022-07-21 13:17:46 +08:00 |
|
c9s
|
88c0f31e87
|
pivotshort: add trade loss to the quantity calculating
|
2022-07-21 13:05:46 +08:00 |
|
c9s
|
756fcb4807
|
pivotshort: fix min leverage protection
|
2022-07-21 13:04:19 +08:00 |
|
c9s
|
b6d0482517
|
pivotshort: add more logs and check
|
2022-07-21 12:05:05 +08:00 |
|
c9s
|
ea4efccd89
|
schedule: use general order executor and fix notification message format
|
2022-07-19 17:38:32 +08:00 |
|
c9s
|
f72cf9bfff
|
pivotshort: fix quantity check
|
2022-07-19 11:25:27 +08:00 |
|
c9s
|
29fc58cb18
|
autoborrow: fix repay amount
|
2022-07-18 19:14:31 +08:00 |
|
c9s
|
6e4c28ed1b
|
disable marketTrade stop
|
2022-07-17 00:59:35 +08:00 |
|
c9s
|
a370a5e489
|
pivotshort: fix on start handler
|
2022-07-14 18:36:28 +08:00 |
|
c9s
|
89ffd94d98
|
update pivotlow on start
|
2022-07-14 18:35:58 +08:00 |
|
Yo-An Lin
|
191e00adeb
|
Merge pull request #827 from c9s/strategy/pivotshort
strategy/pivotshort: improve quantity calculation for margin and futures
|
2022-07-14 18:16:48 +08:00 |
|
c9s
|
c4332fcac2
|
pivotshort: add leverage settings
|
2022-07-14 17:44:33 +08:00 |
|
c9s
|
adb96cac39
|
pivotshort: check maximum margin leverage
|
2022-07-14 17:38:11 +08:00 |
|
c9s
|
6c91af2392
|
pivotshort: improve useQuantityOrBaseBalance
|
2022-07-14 17:36:03 +08:00 |
|
c9s
|
0ba529cb45
|
pivotshort: replace orders if the active orders is empty
|
2022-07-14 16:34:03 +08:00 |
|
c9s
|
8fb216ce52
|
pivotshort: when resistance order is filled, reset the current resistance price
|
2022-07-14 16:28:30 +08:00 |
|
c9s
|
2ef8ecf3d9
|
indicator: clean up bollinger band indicator api usage
|
2022-07-14 14:26:08 +08:00 |
|
c9s
|
a5715c6aee
|
indicator: rewrite boll indicator with stddev indicator
|
2022-07-14 14:26:08 +08:00 |
|
c9s
|
cb481c660f
|
fix all indicators for KLineCalculateUpdater interface
|
2022-07-14 10:28:53 +08:00 |
|
c9s
|
2a3118a086
|
indicator: clean up and update calculator method names
|
2022-07-14 09:18:42 +08:00 |
|
c9s
|
c27f416dbc
|
indicator: canonicalize the CalculateAndUpdate method call
also fix the xmaker boll indicator preloading
|
2022-07-14 09:18:42 +08:00 |
|
c9s
|
cecb278aa1
|
autoborrow: use info logger for the margin level info
|
2022-07-13 13:34:59 +08:00 |
|
c9s
|
ee163eb441
|
pivotshort: add trendEMA protection
|
2022-07-13 11:09:57 +08:00 |
|
c9s
|
f5f6fabe07
|
pivotshort: add trendEMA and add stopEMA subscribe
|
2022-07-13 10:49:52 +08:00 |
|
Yo-An Lin
|
8119afbb44
|
Merge branch 'main' into strategy/pivotshort
|
2022-07-12 23:38:23 +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 |
|
Yo-An Lin
|
eacbd13e6b
|
Merge pull request #810 from andycheng123/fix/supertrend-strategy
|
2022-07-08 21:03:01 +08:00 |
|
c9s
|
59fcef0b6d
|
supertrend: avoid using embedded struct on DoubleDema
|
2022-07-08 17:13:12 +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 |
|
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 |
|
Andy Cheng
|
f8777752a0
|
Merge branch 'main' into improve/supertrend-strategy
|
2022-07-07 10:33:30 +08:00 |
|
c9s
|
81560746bd
|
all: reformat code
|
2022-07-07 02:26:39 +08:00 |
|
c9s
|
74593720a7
|
add ExitMethodSet.Bind method
|
2022-07-07 02:26:39 +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
|
2bc12c0522
|
add trailing stop and it's test cases with gomock
Signed-off-by: c9s <yoanlin93@gmail.com>
|
2022-07-06 03:04:01 +08:00 |
|
Andy Cheng
|
2de16ac7d1
|
strategy/supertrend: fix missing Bind() of DEMA
|
2022-07-05 17:11:58 +08:00 |
|
Andy Cheng
|
91077ce61d
|
strategy/supertrend: add ExitMethod
|
2022-07-05 16:55:48 +08:00 |
|
Andy Cheng
|
f0dc9d6147
|
strategy/supertrend: add TradeStats
|
2022-07-05 16:30:13 +08:00 |
|