Andy Cheng
98bd6ca1d2
strategy/pivotshort: make strategy controller work
2022-09-11 14:09:46 +08:00
c9s
4890d19ebf
binance: parse listenKeyExpired event
2022-09-11 14:06:55 +08:00
Andy Cheng
f132666738
strategy/pivotshort: fix trendema
2022-09-11 13:56:36 +08:00
Yo-An Lin
42a358fd34
Merge pull request #928 from c9s/refactor/iteract-filter
...
refactor: refactor interact strategy filter functions
2022-09-11 12:20:38 +08:00
Fredrik
e02840e08d
Feature: draw pnl
2022-09-11 01:19:23 +02:00
c9s
7b58460d00
bbgo/interact: move strategy filter functions to the bottom
2022-09-11 03:15:11 +08:00
c9s
8961c940b2
bbgo: add two test cases for reflect
2022-09-11 03:13:10 +08:00
Yo-An Lin
d45bc9e509
Merge pull request #927 from c9s/refactor/submit-order
...
refactor: simplify submit order
2022-09-11 02:58:47 +08:00
c9s
278aa026f2
bbgo/interact: refactor strategy filter functions
2022-09-11 02:55:58 +08:00
c9s
442ca9287d
bbgo: implement position reset
2022-09-11 02:46:58 +08:00
c9s
3be801ab6b
bbgo/interact: add /resetposition command
2022-09-11 02:41:59 +08:00
c9s
9474c2779c
bbgo: call notify when opening new position
2022-09-11 02:36:45 +08:00
c9s
5c18bc4d41
bbgo: notify closing position
2022-09-11 02:33:32 +08:00
c9s
6c22c3799e
bbgo: Add ClosePosition doc comment
2022-09-11 02:01:48 +08:00
Yo-An Lin
e0228f80f4
Merge pull request #926 from c9s/feature/open-position
...
fix: handle created orders before we retry
2022-09-10 13:37:16 +08:00
c9s
c484c1f176
reformat code
2022-09-10 13:31:31 +08:00
c9s
29105eb57f
all: simplify underlying exchange submitOrder method
...
- Replace SubmitOrders with SubmitOrder
- Accept only one submit order and return one created order
- Add bbgo.BatchPlaceOrders helper method and bbgo.BatchRetryPlaceOrders method
2022-09-09 18:41:06 +08: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
94780b39e6
bbgo: order executor should collect the created orders first before we retry
2022-09-09 17:55:51 +08:00
c9s
5f2254e2cb
bbgo: add description to the open position options
2022-09-09 17:50:21 +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
c9s
90f3727d68
pivotshort: log submit order error
2022-09-08 23:19:14 +08:00
c9s
edc8c132d5
pivotshort: print stopEMA protection
2022-09-08 23:17:35 +08:00
Yo-An Lin
1c7b40a0be
Merge pull request #922 from c9s/fix/trade-stats-for-live
...
fix: types/tradeStats: use last order id to identity consecutive win and loss
2022-09-08 17:30:48 +08:00
c9s
3aebb58091
types/tradeStats: use tester
2022-09-08 16:37:47 +08:00
c9s
3b208ee4ef
types/tradeStats: expose Recalculate trade stats method
2022-09-08 16:29:48 +08:00
c9s
950e998ed1
types/tradeStats: call updates when marshalling
2022-09-08 16:10:18 +08:00
c9s
d12df59c1b
types/tradeStats: use last order id to identity consecutive win and loss
2022-09-08 15:49:23 +08:00
Yo-An Lin
3e07f1fa86
Merge pull request #921 from andycheng123/improve/supertrend-strategy-profit-report
...
strategy/supertrend: use ma by day instead of by trade
2022-09-08 12:15:50 +08:00
Andy Cheng
6ca1a80cf9
strategy/supertrend: use ma by day instead of by trade
2022-09-07 18:27:11 +08:00
Zenix
afad9cca47
Merge pull request #910 from zenixls2/feature/ewo_renew
...
SerialMarketDataStore, elliottwave renewal
2022-09-07 18:54:01 +09:00
Yo-An Lin
d24b816518
Merge pull request #919 from c9s/fix/trade-stats-for-live
...
feature: add fixedpoint.Reducer, Counter and add update stats method on TradeStats
2022-09-07 17:36:49 +08:00
austin362667
8b97e4c4e8
audacity: finalize strategy
2022-09-07 16:05:51 +08:00
austin362667
713ead669e
audacity: stddev outlier func & all order change to maker
2022-09-07 16:05:51 +08:00
austin362667
43a3e21a7b
audacitymaker: rename perTrade
2022-09-07 16:05:51 +08:00
austin362667
132f700377
builtib: update strategy registery
2022-09-07 16:05:51 +08:00
austin362667
73a8f3586f
builtib: update strategy list
...
builtib: update strategy list
2022-09-07 16:05:51 +08:00
austin362667
1d727345ee
strategy: redesign to audacitymaker
2022-09-07 16:05:51 +08:00
austin362667
833d30ce64
ktrade: add second try
2022-09-07 16:05:51 +08:00
austin362667
6a119bfca0
ktrade: remove ticker
2022-09-07 16:05:51 +08:00
austin362667
a18a06819e
ktrade: error handling
...
ktrade: remove error handling
ktrade: remove error handling
ktrade: remove error handling
ktrade: error handling
2022-09-07 16:05:51 +08:00
austin362667
49f7c3de46
ktrade: rounding instead of ceil/floor
2022-09-07 16:05:51 +08:00
austin362667
42d7117464
strategy: add ktrade
2022-09-07 16:05:51 +08:00
c9s
56c53958cd
fixedpoint: positive tester and negative tester
2022-09-07 15:11:07 +08:00
c9s
c62330b2c1
fixedpoint: add counter func
2022-09-07 14:05:44 +08:00
c9s
e28921879d
types: implement stats update method for live trading
2022-09-07 14:02:57 +08:00
zenix
e7a5669018
fix: lowestPrice in elliottwave, add more logs
2022-09-07 15:02:38 +09:00
c9s
668180f8aa
fixedpoint: add reducer and its tests
2022-09-07 14:00:26 +08:00
c9s
e161f4ec1a
fixedpoint: add sort interface support on fixedpoint
2022-09-07 12:35:09 +08:00
c9s
e0e279f756
fixedpoint: add reducer
2022-09-07 12:28:13 +08:00
c9s
6b4661783d
types: group profits by order id
2022-09-07 11:59:08 +08:00
c9s
4c3334c482
types: assign orderID to profit object
2022-09-07 11:57:09 +08:00
c9s
889318ddcb
cmd/order: add market order support
2022-09-07 02:17:56 +08:00
c9s
90b633158a
cmd/order: add margin-side-effect option
2022-09-07 02:01:38 +08:00
c9s
33fdcefba3
bbgo: add notification tag
2022-09-07 01:05:43 +08:00
c9s
c2eec1e72b
bbgo: move fixedpoint one const to consts.go
2022-09-07 00:50:54 +08:00
c9s
62fb09c8d9
bbgo: protective stop should send notification when it's activated
2022-09-07 00:50:16 +08:00
c9s
9bbd69c030
bump version to v1.40.2
2022-09-07 00:40:01 +08:00
c9s
f62eb301e3
fix: fix pivothigh indicator use high instead of low
2022-09-06 23:39:13 +08:00
zenix
66c8a3bb0d
fix: rename getSource to sourceGetter
2022-09-06 19:15:13 +09:00
zenix
36a5579660
fix: SourceSelector json marshal/unmarshal without Init from strategy. smartCancel check on order status
2022-09-06 19:08:05 +09:00
c9s
8f363677bc
move bootstrap functions
2022-09-06 16:50:45 +08:00
zenix
67e57b49eb
fix: move sourceselector to bbgo folder
2022-09-06 14:43:05 +09:00
zenix
b35bce1afd
fix: remove non-code file
2022-09-06 14:36:55 +09:00
zenix
1d0893b699
fix: enable interval parsing for non-whitelisted time spans
2022-09-06 14:26:17 +09:00
c9s
ed975de2cd
cmd: write config json file into the backtest report dir
2022-09-06 13:20:37 +08:00
c9s
8ed39f7565
cmd: add session name to the symbol report json file
2022-09-06 13:18:35 +08:00
Raphanus Lo
7416f1074a
Merge pull request #915 from COLDTURNIP/feature/observer_filters
...
feature: add G-H filter and Kalman filter
2022-09-05 20:29:41 +08:00
zenix
6c8902dd9c
fix: export kline query limit as a variable for preload decisions from strategy
2022-09-05 20:36:41 +09:00
zenix
28802dd107
feature: re-implement heikinashi for elliottwave
2022-09-05 19:32:35 +09:00
zenix
4a878b5596
fix: rename generalorderexecutor.cancel to gracefulcancelorder
2022-09-05 19:32:35 +09:00
zenix
ff7fd38372
feature: ewo add draw function
2022-09-05 19:32:35 +09:00
zenix
81084ddea6
feature: SerialMarketDataStore from session
2022-09-05 19:32:35 +09:00
zenix
fad9dedd1f
fix: active order book cancel message
2022-09-05 19:32:35 +09:00
zenix
938dc3c497
feature: add serialmarketdatastore, add elliottwave strategy to replace ewoDgtrd, add active cancel on general order executor, add pca
2022-09-05 19:32:35 +09:00
c9s
925df19ee0
bump version to v1.40.1
2022-09-05 18:19:03 +08:00
c9s
28027518f6
fix utils/generate-version-file.sh
2022-09-05 18:18:45 +08:00
c9s
bf4eade604
backtest: fix backtest fee mode when fee currency is not base or quote
2022-09-05 17:41:12 +08:00
Raphanus Lo
65cd17dbbb
bbgo: add G-H & Kalman filters to the standard indicator set
2022-09-05 17:13:50 +08:00
Raphanus Lo
425d9e0475
indicator: GH & Kalman filters: remove deprecated method implementation
2022-09-05 16:51:30 +08:00
Raphanus Lo
9c684c124c
feature: add G-H filter and Kalman filter
...
- implement G-H (alpha beta) filter and Kalman filter
- compare the predict accurateness with other indicator
2022-09-04 21:48:05 +08:00
Larry Lu
269529afa4
Fix typo
2022-09-04 13:35:01 +08:00
Yo-An Lin
55474b4bf9
Merge pull request #913 from COLDTURNIP/fix/fixedpoint_support_inf_string_unmarshal
...
fix: fixedpoint UnarshalJson on inf
2022-09-02 15:14:34 +08:00
Raphanus Lo
338c4ea170
fix: fixedpoint UnarshalJson on inf for decimal support
2022-09-02 15:02:46 +08:00
c9s
3a225fe7c7
backtest: fix tests for fee
2022-09-02 14:31:04 +08:00
Raphanus Lo
750bdc82b5
fix: fixedpoint UnarshalJson on inf
2022-09-02 14:17:51 +08:00
c9s
db622fbb55
types: add CsvHeaders and CsvRecords methods to TradeStats
2022-09-02 14:16:16 +08:00
c9s
5c8d2a019a
backtest: rename BackTest to Backtest
2022-09-02 14:16:16 +08:00
c9s
30742bcf0b
backtest: set default fee mode to quote mode
2022-09-02 14:16:16 +08:00
c9s
2e9487e9f4
backtest: fix fee calculator
2022-09-02 14:16:16 +08:00
c9s
d2f9a352a2
backtest,accounting: add position info to the average cost pnl report
2022-09-02 14:16:16 +08:00
c9s
45fb87f2b8
backtest: add fee mode function tests
2022-09-02 14:16:16 +08:00
c9s
10ed706ed6
backtest: move fee mode functions to fee.go
2022-09-02 14:16:16 +08:00
c9s
8cd646668a
bbgo: use enumer to generate enumer parser
2022-09-02 14:16:16 +08:00
c9s
3d32faff46
backtest: add fee mode config
2022-09-02 14:16:15 +08:00
zenix
acd057cf3e
fix: set exchangeDataSource to pointer in backtest to prevent pass by copy in for loop
2022-09-02 12:32:38 +09:00
Zenix
57d283726a
Merge pull request #900 from zenixls2/fix/backtest
...
fix: backtest
2022-09-01 11:57:05 +09:00
Yo-An Lin
58487aca4b
Merge pull request #908 from c9s/strategy/pivotshort-failed-break-high
...
strategy/pivotshort: failed break high improvements
2022-08-31 13:56:59 +08:00
c9s
149b1e1444
pivotshort: add BreakInterval config
2022-08-31 13:00:32 +08:00