kbearXD
|
73c467a06b
|
FIX: [dca2] fix triggerNextState loop side effect
|
2024-05-16 14:44:56 +08:00 |
|
kbearXD
|
f49924caa4
|
not emit WaitToOpenPosition when kline event
|
2024-05-13 14:35:29 +08:00 |
|
kbearXD
|
6cdd2f0d71
|
REFACTOR: [dca2] refactor dca2 strategy to make it can back testing
|
2024-05-13 14:35:29 +08:00 |
|
kbearXD
|
2f3e0044c1
|
MINOR: [dca2] refactor and make open-position interval longer
|
2024-04-16 13:38:14 +08:00 |
|
kbearXD
|
63d13d5f7b
|
use existing TradeCollector's EmitPositionUpdate
|
2024-04-11 16:03:59 +08:00 |
|
kbearXD
|
0616c73a88
|
FEATURE: emit position when position updated and reset
|
2024-04-11 15:12:38 +08:00 |
|
kbearXD
|
f8d7447e8e
|
FIX: fix issue when recovering with finalizing orders
|
2024-04-08 19:54:44 +08:00 |
|
kbearXD
|
8568e15e82
|
FEATURE: [dca2] new flag EnableQuoteInvestmentReallocate to decide if reallocate quote investment
|
2024-04-01 15:52:30 +08:00 |
|
kbearXD
|
553976449d
|
FEATURE: [dca2] when all open-position orders are filled, place the take-profit order
|
2024-03-26 15:52:04 +08:00 |
|
kbearXD
|
bcc29bd056
|
dca2: add ttl for persistence and nextRoundPaused flag
|
2024-03-18 17:35:47 +08:00 |
|
kbearXD
|
a23c476ce8
|
dca2: new struct RoundCollector for testing and use flag to decide recovery
|
2024-03-15 18:41:46 +08:00 |
|
kbearXD
|
fb2a46e1c4
|
use backoff retry
|
2024-03-14 14:32:41 +08:00 |
|
kbearXD
|
91123edbd6
|
dca2: must calculate and emit profit at the end of the round
|
2024-03-14 14:32:41 +08:00 |
|
kbearXD
|
17b193b003
|
dca2: remove debug log
|
2024-03-11 15:34:12 +08:00 |
|
kbearXD
|
53b72194f9
|
MINOR: add log when there is error at calculating and emit profit
|
2024-03-08 14:11:04 +08:00 |
|
chiahung.lin
|
5936cf32c7
|
FEATURE: add metrics for dca2
add log to debug
|
2024-03-04 20:53:15 +08:00 |
|
chiahung.lin
|
1b33308450
|
fix bug and new field running to help to test
|
2024-01-18 15:39:56 +08:00 |
|
chiahung.lin
|
a363377c26
|
[dca2] new struct profit stats and its recover
|
2024-01-17 15:22:03 +08:00 |
|
chiahung.lin
|
d3bc37f45e
|
use CommonCallback and pull PersistenceTTL out
|
2024-01-09 16:01:10 +08:00 |
|
chiahung.lin
|
21e87079b5
|
FEATURE: ProfitStats for dca2
|
2024-01-08 18:25:11 +08:00 |
|
chiahung.lin
|
468b73abb6
|
bbgo.Sync profit stats
|
2024-01-08 18:25:11 +08:00 |
|
chiahung.lin
|
faaaaabce3
|
FEATURE: rename and use specific profit stats
|
2024-01-08 18:25:11 +08:00 |
|
chiahung.lin
|
0d6c6666a1
|
fix
|
2024-01-08 18:25:11 +08:00 |
|
chiahung.lin
|
b965dbe757
|
use OrderExecutor.GracefulCancel to replace cancelAllOrders
|
2024-01-08 18:25:11 +08:00 |
|
chiahung.lin
|
006256a9df
|
FEATURE: add callbacks and shutdown function
|
2024-01-08 18:25:11 +08:00 |
|
chiahung.lin
|
57282c30d2
|
FEATURE: remove Short
|
2023-12-28 23:04:09 +08:00 |
|
chiahung.lin
|
59b1bb68cb
|
use stateTransition
|
2023-12-27 11:41:29 +08:00 |
|
chiahung.lin
|
b30b023858
|
FEATURE: check every cuerrent state and next state is valid
|
2023-12-22 15:27:31 +08:00 |
|
chiahung.lin
|
bfd9c8ac64
|
FEATURE: run state machine
FEATURE: support recover
FEATURE: add order into orderStore and recover position
recover position/budget
FEATURE: support recover budget
|
2023-12-20 16:02:37 +08:00 |
|