Andy Cheng
|
9f8576bb38
|
improve/supertrend: different way to calculate order amount for backtesting
|
2023-04-20 18:37:48 +08:00 |
|
Andy Cheng
|
1fb6e79090
|
improve/supertrend: fix typo
|
2023-04-20 18:11:47 +08:00 |
|
Andy Cheng
|
4b8adf6ed5
|
improve/supertrend: adding opposite position amount to the order amount instead of closing opposite position
|
2023-04-20 17:53:20 +08:00 |
|
c9s
|
8a50474ad1
|
all: add context parameter to Sync()
|
2022-10-03 18:45:24 +08:00 |
|
c9s
|
59287b5116
|
all: support context isolation
|
2022-10-03 16:01:08 +08:00 |
|
Fredrik
|
386ab1f6f3
|
refactor draw on supertrend
|
2022-09-11 09:48:08 +02:00 |
|
Fredrik
|
3a188aa66a
|
rename variables
|
2022-09-11 08:44:59 +02:00 |
|
Fredrik
|
e02840e08d
|
Feature: draw pnl
|
2022-09-11 01:19:23 +02:00 |
|
Yo-An Lin
|
e86df62daf
|
Merge pull request #925 from c9s/feature/open-position
feature: order executor open position method
|
2022-09-09 17:58:12 +08:00 |
|
c9s
|
8dca24e9ee
|
all: solve cyclic import
|
2022-09-09 17:40:17 +08:00 |
|
c9s
|
2e95246687
|
bbgo: add OpenPosition method
|
2022-09-09 13:57:39 +08:00 |
|
Andy Cheng
|
6ca1a80cf9
|
strategy/supertrend: use ma by day instead of by trade
|
2022-09-07 18:27:11 +08:00 |
|
c9s
|
5953fe49d1
|
all: move float slice/map to a single package
|
2022-08-25 17:31:42 +08:00 |
|
Andy Cheng
|
6176c06002
|
strategy/supertrend: use pointer for AccumulatedProfitReport field in strategy struct
|
2022-08-24 13:58:30 +08:00 |
|
Andy Cheng
|
978db22c0a
|
strategy/supertrend: accumulated daily profit uses its own window config
|
2022-08-24 11:23:48 +08:00 |
|
Andy Cheng
|
592eae8c3c
|
strategy/supertrend: output by interval
|
2022-08-23 18:43:13 +08:00 |
|
Andy Cheng
|
2b638d1f8f
|
strategy/supertrend: use pkg/data/tsv for tsv output
|
2022-08-16 15:49:08 +08:00 |
|
Andy Cheng
|
f7feb7e0fc
|
strategy/supertrend: output acc. profit report to tsv file
|
2022-08-16 14:42:04 +08:00 |
|
Andy Cheng
|
5455ae810b
|
strategy/supertrend: only show nterval profit report in backtesting
|
2022-08-08 17:42:21 +08:00 |
|
Andy Cheng
|
c6407e92c8
|
strategy/supertrend: supertrend indicator adapted new indicator API
|
2022-08-08 13:07:59 +08:00 |
|
Andy Cheng
|
9d0eecc5bc
|
strategy/supertrend: linreg adapted new indicator API
|
2022-08-08 12:43:38 +08:00 |
|
Andy Cheng
|
737f6e99ba
|
strategy/supertrend: use CalculateQuoteQuantity() in strategy
|
2022-08-05 16:28:42 +08:00 |
|
Andy Cheng
|
b564e69f82
|
strategy/supertrend: add CalculateQuoteQuantity()
|
2022-08-05 15:59:20 +08:00 |
|
Andy Cheng
|
eb57e80119
|
strategy/supertrend: different qty calculation for spot and leveraged
|
2022-08-05 15:11:15 +08:00 |
|
Andy Cheng
|
550f2f3fd7
|
strategy/supertrend: adapt risk.AccountValueCalculator
|
2022-08-05 11:47:36 +08:00 |
|
Andy Cheng
|
9369ad3155
|
strategy/supertrend: adapt SetIntervalProfitCollector
|
2022-08-04 10:39:52 +08:00 |
|
Andy Cheng
|
5d1bfc6010
|
strategy/supertrend: add last period accumulated profit report
|
2022-08-03 15:31:20 +08:00 |
|
Andy Cheng
|
dc9ecdd6ca
|
strategy/supertrend: add accumulated profit SMA report
|
2022-08-03 14:04:30 +08:00 |
|
Andy Cheng
|
07959c8862
|
strategy/supertrend: fix exit methods problem
|
2022-07-25 14:11:55 +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 |
|
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 |
|
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 |
|
Andy Cheng
|
5b3ba03042
|
strategy/supertrend: preload indicators
|
2022-07-05 16:25:02 +08:00 |
|
Andy Cheng
|
0a0e5ac4d8
|
strategy/supertrend: config switch for stop by different signals
|
2022-07-05 15:59:35 +08:00 |
|
Andy Cheng
|
1573a9acf3
|
strategy/supertrend: add linear regression as filter
|
2022-06-30 16:35:00 +08:00 |
|
c9s
|
527070d13d
|
all: rewrite and clean up graceful shutdown api
|
2022-06-30 15:49:18 +08:00 |
|
c9s
|
6ef54bf2fb
|
call bbgo.Sync to sync persistence
|
2022-06-22 13:46:03 +08:00 |
|
Andy Cheng
|
aa9296e8d5
|
strategy/supertrend: use new order executor api
|
2022-06-20 13:39:07 +08:00 |
|