c9s
|
7fce6a0fca
|
bollmaker: call persistence.Sync when position is changed
|
2022-06-03 02:44:00 +08:00 |
|
c9s
|
50d7d235a4
|
bollmaker: pull out functions
|
2022-06-03 02:44:00 +08:00 |
|
c9s
|
1a85299204
|
bollmaker: make detectPriceTrend simple function
|
2022-06-03 02:44:00 +08:00 |
|
c9s
|
5277098f70
|
add api .UnrealizedProfit and .IsDust method on Position
|
2022-06-02 18:05:35 +08:00 |
|
c9s
|
6a25f30b39
|
add IsLong and IsShort method on Position
|
2022-06-02 17:58:18 +08:00 |
|
c9s
|
e2f339e641
|
bollmaker: fix short position order
|
2022-06-02 17:55:14 +08:00 |
|
Yo-An Lin
|
424c235b43
|
Merge pull request #617 from andycheng123/improve/bollmaker-dynamic-spread
feature: bollmaker dynamic spread
|
2022-05-27 16:55:20 +08:00 |
|
Andy Cheng
|
98b794f265
|
strategy: DynamicSpreadSettings struct to make it more clean
|
2022-05-27 16:24:50 +08:00 |
|
Andy Cheng
|
944856eb72
|
strategy: fix typo
|
2022-05-23 12:58:45 +08:00 |
|
Andy Cheng
|
bb4d6e61b0
|
strategy: fix typo
|
2022-05-23 12:06:24 +08:00 |
|
Andy Cheng
|
64b1ec3780
|
strategy: update calculation of dynamic spread
|
2022-05-23 11:37:57 +08:00 |
|
c9s
|
13bf5d69a3
|
use types.Interval instead of string
|
2022-05-19 10:04:03 +08:00 |
|
Andy Cheng
|
b41cef4bd7
|
strategy: use scale for dynamic spread
|
2022-05-18 14:31:59 +08:00 |
|
Andy Cheng
|
7d3181f3fd
|
strategy: update dynamic spread after kline being filtered
|
2022-05-17 19:00:02 +08:00 |
|
Andy Cheng
|
db62352e6e
|
strategy: temp vars for faster calculation
|
2022-05-17 10:43:18 +08:00 |
|
Andy Cheng
|
3c094a195b
|
strategy: check min/max spread settings
|
2022-05-16 12:57:00 +08:00 |
|
c9s
|
d326494d57
|
set exchange fee to position
|
2022-05-13 22:30:04 +08:00 |
|
Andy Cheng
|
64a760cf32
|
strategy: dynamic spread for bollmaker
|
2022-05-13 17:58:46 +08:00 |
|
c9s
|
b11c4c7337
|
turn off UseTickerPrice when in the back-testing environment
|
2022-05-09 19:42:39 +08:00 |
|
Andy Cheng
|
c9ba81fcbb
|
strategy: Update bollmaker to support new strategy controller
|
2022-05-06 16:52:00 +08:00 |
|
c9s
|
82c7c024ce
|
bbgo: add persistence Sync api
|
2022-05-05 18:18:38 +08:00 |
|
c9s
|
10a7928580
|
extract NewProfitStats method
|
2022-05-05 14:48:50 +08:00 |
|
c9s
|
c3db85443e
|
bollmaker: add Deprecated note
|
2022-05-05 14:47:06 +08:00 |
|
c9s
|
3140b7e2ef
|
bollmaker: remove unnecessary log
|
2022-05-05 14:41:11 +08:00 |
|
c9s
|
019e6a2a88
|
improve legacy state handling and move fnv
|
2022-05-05 14:39:29 +08:00 |
|
c9s
|
21f81dec29
|
implement reflect-based persistence restore and load
|
2022-05-05 12:53:48 +08:00 |
|
c9s
|
58e8da914e
|
bollmaker: migrating state.position to strategy.position
|
2022-05-05 09:54:50 +08:00 |
|
c9s
|
18da434e92
|
all: use thread-safe GetAccount method to get account
|
2022-04-23 15:43:11 +08:00 |
|
Andy Cheng
|
07c30f82af
|
strategy: add StrategyController to bollmaker
|
2022-04-15 15:38:40 +08:00 |
|
c9s
|
f91132f35c
|
bollmaker: avoid using time in force in maker order
|
2022-04-15 11:40:43 +08:00 |
|
austin362667
|
a8484046d3
|
bollmaker: add TimeInForce for futures limit order support
|
2022-03-28 21:12:45 +08:00 |
|
c9s
|
4b89f4a48b
|
bollmaker: fix profit stats notification
|
2022-03-14 21:21:58 +08:00 |
|
c9s
|
5db4e11167
|
rewrite trade profit handling
|
2022-03-14 21:21:58 +08:00 |
|
c9s
|
6fec30d79c
|
call record position on trade
|
2022-03-14 21:21:58 +08:00 |
|
c9s
|
d67b800e7e
|
use RecordPosition
|
2022-03-14 21:21:58 +08:00 |
|
c9s
|
b1559bcbe3
|
fix persistence injection
|
2022-03-14 21:21:43 +08:00 |
|
c9s
|
25f3aeef58
|
bollmaker: call RecordProfit
|
2022-03-06 15:39:20 +08:00 |
|
c9s
|
8fa0e6702c
|
bollmaker: assign strategy id and instance id
|
2022-03-06 15:38:58 +08:00 |
|
c9s
|
a9f9fa8fed
|
bollmaker: add Environment field and Market field for injection
|
2022-03-05 12:40:56 +08:00 |
|
c9s
|
5fe0b69927
|
bollmaker: use the new profit generator method
|
2022-03-05 01:41:23 +08:00 |
|
c9s
|
197d750cb4
|
all: update profit struct fields
|
2022-03-05 01:39:53 +08:00 |
|
c9s
|
9e0df77a36
|
move profit struct into the types package
|
2022-03-04 16:39:48 +08:00 |
|
zenix
|
8648528435
|
fix go fmt, fix convert.go (the legacy fixedpoint implementation) in all tests
|
2022-02-15 14:55:19 +09:00 |
|
zenix
|
abc1d535d8
|
fix bollmaker, fix pnl issues
|
2022-02-15 12:01:39 +09:00 |
|
c9s
|
bf8558e9ad
|
bollmaker: add BuyBelowNeutralSMA option
|
2022-02-01 01:40:51 +08:00 |
|
c9s
|
11bbdb16a0
|
bollmaker: clean up empty files
|
2022-01-31 01:31:31 +08:00 |
|
c9s
|
0e7f88e3bf
|
move SmartStops into the bbgo package
|
2022-01-31 01:27:47 +08:00 |
|
c9s
|
eb5064ccfe
|
bollmaker: separate bidSpread and askSpread
|
2022-01-31 01:11:30 +08:00 |
|
c9s
|
2e7621ca55
|
add BidSpread and AskSpread
|
2022-01-31 01:08:33 +08:00 |
|
c9s
|
701e80d0d8
|
bollmaker: pull out trailing stop order logics into SmartStops struct
|
2022-01-31 01:07:00 +08:00 |
|