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
|
2a3118a086
|
indicator: clean up and update calculator method names
|
2022-07-14 09:18:42 +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 |
|
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 |
|
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 |
|
c9s
|
193703a9a0
|
all: use tradeStats constructor
|
2022-07-05 11:14:50 +08:00 |
|
c9s
|
3a37154737
|
pivotshort: fix supportTakeProfit binding
|
2022-07-04 02:20:15 +08:00 |
|
c9s
|
81f9639c85
|
pivotshort: bind supportTakeProfit method
|
2022-07-03 17:22:29 +08:00 |
|
c9s
|
278fbb7b51
|
pivotshort: fix support take profit method
|
2022-07-03 17:13:01 +08:00 |
|
c9s
|
74cac6e977
|
pivotshort: adjust layer price calculation
|
2022-07-03 15:44:37 +08:00 |
|
c9s
|
a408b20eda
|
fix resistance price calculation
|
2022-07-03 15:26:05 +08:00 |
|
c9s
|
1e8ac0d08a
|
pivotshort: improve price grouping
|
2022-07-02 18:51:17 +08:00 |
|
c9s
|
f940bb8e0a
|
implement SupportTakeProfit method
|
2022-07-02 13:21:27 +08:00 |
|
c9s
|
004e6b0e0b
|
pivotshort: fix findNextResistancePriceAndPlaceOrders
|
2022-07-02 00:28:41 +08:00 |
|
c9s
|
f1867b02c3
|
pivotshort: fix message
|
2022-07-01 18:10:39 +08:00 |
|
c9s
|
9a11fd59ed
|
pivotshort: fix open close price compare
|
2022-07-01 17:43:51 +08:00 |
|
c9s
|
04df515aea
|
pivotshort: clean up and force kline direction
|
2022-07-01 17:26:45 +08:00 |
|
c9s
|
9374125712
|
pivotshort: pull out break low logics
Signed-off-by: c9s <yoanlin93@gmail.com>
|
2022-07-01 17:22:09 +08:00 |
|
c9s
|
7f5e92d1b5
|
cancel order when shutdown
|
2022-07-01 16:29:03 +08:00 |
|
c9s
|
c792da2164
|
pivotshort: improve balance check for margin
|
2022-07-01 15:41:50 +08:00 |
|
c9s
|
09ba2d31c3
|
pivortshort: run placeResistanceOrders with margin borrow buy
|
2022-07-01 15:34:21 +08:00 |
|
c9s
|
1af18a5fac
|
pivotshort: fix breakLow handle event
|
2022-07-01 15:30:06 +08:00 |
|
c9s
|
503d851c9d
|
pivotshort: move resistance short to a single file
|
2022-07-01 01:24:34 +08:00 |
|
c9s
|
454036b166
|
use types.KLineWith to wrap callbacks
|
2022-07-01 01:06:10 +08:00 |
|
c9s
|
a4af4776d2
|
pivotshort: use active orderbook to maintain the resistance orders
|
2022-07-01 00:57:19 +08:00 |
|
c9s
|
3e6b975c2c
|
pivotshort: refactor ResistanceShort entry method
|
2022-06-30 18:29:02 +08:00 |
|
c9s
|
b15e8d0ce4
|
all: refactor exit method set and fix dynamic call/merge
Signed-off-by: c9s <yoanlin93@gmail.com>
|
2022-06-30 15:49:18 +08:00 |
|
c9s
|
527070d13d
|
all: rewrite and clean up graceful shutdown api
|
2022-06-30 15:49:18 +08:00 |
|
c9s
|
7d5474e3dd
|
pivotshort: call MergeStructValues to update the field value
|
2022-06-30 15:49:18 +08:00 |
|
c9s
|
ab3341d5ae
|
pivotshort: make preload pivot as a pure function
|
2022-06-30 15:49:17 +08:00 |
|
c9s
|
9733eec280
|
pivotshort: move pure funcs to the bottom
|
2022-06-30 15:49:17 +08:00 |
|
c9s
|
38767cd2df
|
move private methods to the bottom
|
2022-06-30 15:49:17 +08:00 |
|
c9s
|
ee45f154a1
|
pivotshort: rename bounce short to resistance short
|
2022-06-30 15:49:17 +08:00 |
|
c9s
|
4bb2e4a25f
|
fix stopEMA range check
|
2022-06-29 16:59:50 +08:00 |
|
c9s
|
cb1c5634a2
|
pivotshort: remove redundant notification
|
2022-06-29 15:14:24 +08:00 |
|
c9s
|
38920dfc7a
|
pivotshort: fix kline history loading
|
2022-06-29 11:23:05 +08:00 |
|
c9s
|
16f2a06b1f
|
all: move exit methods to the bbgo core
Signed-off-by: c9s <yoanlin93@gmail.com>
|
2022-06-29 01:58:15 +08:00 |
|