Commit Graph

462 Commits

Author SHA1 Message Date
Yo-An Lin
dc195e824b
Merge pull request #920 from austin362667/austin362667/factorzoo
strategy: add trend trader
2022-09-14 15:00:08 +08:00
c9s
424a1dec3f
bbgo: add lightweight mode 2022-09-12 14:24:18 +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
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
Zenix
afad9cca47
Merge pull request #910 from zenixls2/feature/ewo_renew
SerialMarketDataStore, elliottwave renewal
2022-09-07 18:54:01 +09:00
austin362667
46b3fabfe3 strategy: add trend trader
strategy: add trend treader

strategy: add trend treader
2022-09-07 16:11:31 +08:00
austin362667
73a8f3586f builtib: update strategy list
builtib: update strategy list
2022-09-07 16:05:51 +08:00
austin362667
42d7117464 strategy: add ktrade 2022-09-07 16:05:51 +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
8f363677bc
move bootstrap functions 2022-09-06 16:50:45 +08: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
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
5c8d2a019a
backtest: rename BackTest to Backtest 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
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
zenix
c2d5a5961f fix: legacy fixedpoint inf handling, refactor backtest kline consuming 2022-08-30 21:02:21 +09:00
zenix
ecc959835a fix: cache params and kline until next kline 1m appears 2022-08-29 19:46:58 +09:00
zenix
1eb03c3dba fix: taker price, matching engine kline emit order and process order, nan in sortino and sharpe 2022-08-29 14:11:02 +09:00
c9s
179a9b1ddb
fix: ensure that orders.tsv are rendered in local timezone 2022-08-26 19:09:11 +08:00
Raphanus Lo
de4f3721a2 backtest: avoid inifite float64 JSON serializing issue 2022-08-25 15:45:08 +08:00
Raphanus Lo
ad1b9a53a1 backtest: calculate realized Sharpe & Sortino ratios 2022-08-25 15:45:08 +08:00
zenix
6b6a24a655 feature: add gma, add wdrift, export drift filter, fix: LastPrice truncation 2022-08-23 17:22:45 +09:00
Raphanus Lo
b4e32a9ba7 hoptimizer: manually early stop
User is now able to stop trials by sending system signal (SIGINT & SIGTERM) and see the report earlier at any time.
2022-08-16 14:55:39 +08:00
c9s
e735362efd
cmd/kline: show klines from restful api 2022-08-11 00:08:48 +08:00
c9s
4e4ffe83e5
cmd: fix cpu profile starter 2022-08-09 11:37:30 +08:00
c9s
f9fe5d7790
cmd: move package import paths 2022-08-09 11:36:02 +08:00
Raphanus Lo
68af2d0ff8 optimizer: rename optimizeex to hoptimize 2022-08-02 12:44:42 +08:00
Raphanus Lo
bad0aa31b7 optimizer: print best result in the same parameter order defined in config 2022-07-30 23:43:40 +08:00
Raphanus Lo
67f8b1c32c optimizeex: hyperparameter optimization tool
Currently support the following search algorithms:
- Tree-structured Parzen Estimators (tpe, default)
- Covariance Matrix Adaptation Evolution Strategy (cmaes)
- Quasi-monte carlo sampling based on Sobol sequence (sobol)
- random search (random)

And the following objective function:
- profit
- volume
- equity
2022-07-29 17:09:54 +08:00
zenix
0ae6b6736c feature: use drift indicator to create basic strategy for study 2022-07-26 18:00:05 +09:00
Raphanus Lo
4985c760be optimizer: prepare database before executing backtests 2022-07-13 15:28:11 +08:00
c9s
a51f26e3a7
backtest: add gross profit and gross loss fields 2022-07-12 19:50:28 +08:00
c9s
7d232f86b8
remove duplicated dumper close 2022-07-12 19:34:07 +08:00
c9s
7b7d0690c7
optimizer: support --tsv option and render tsv output 2022-07-07 02:11:52 +08:00
Yo-An Lin
0b4044bbb6
Merge pull request #796 from c9s/strategy/pivotshort
strategy/pivotshort: add supportTakeProfit method
2022-07-04 12:26:32 +08:00
c9s
82f9fc139c
backtest: refactor exchange field, clean up startTime and endTime deps 2022-07-04 02:34:46 +08:00
c9s
a31f61736a
backtest: pull out userDataStream to backtestEx.BindUserData 2022-07-04 02:27:29 +08:00
c9s
ecd4df86f9
backtest: assign user data stream to backtest.Exchange before we call EmitStart 2022-07-04 02:21:14 +08:00
LarryLuTW
a0e8359d23
add market for calculator 2022-07-02 17:45:24 +08:00
c9s
527070d13d
all: rewrite and clean up graceful shutdown api 2022-06-30 15:49:18 +08:00
c9s
8c850c71a2
cmd/pnl: add --sync option 2022-06-22 18:24:34 +08:00
c9s
fa7177426f
cmd/pnl: fix trade table query 2022-06-22 18:19:11 +08:00
c9s
9574a04cce
types: add time alias string to ParseLooseFormatTime 2022-06-22 17:20:10 +08:00
Yo-An Lin
612df45c5e
Merge pull request #750 from c9s/refactor/persistence-singleton
refactor: persistence singleton and improve backtest cancel performance
2022-06-21 14:01:14 +08:00
c9s
9b82de596b
refine optimizer executor config structure 2022-06-21 12:31:42 +08:00
c9s
19d8013f49
bbgo: optimize order cancel for back-testing 2022-06-21 01:12:16 +08:00