Commit Graph

5128 Commits

Author SHA1 Message Date
c9s
ee45f154a1
pivotshort: rename bounce short to resistance short 2022-06-30 15:49:17 +08:00
Zenix
c9e3e5a7cb
Merge pull request #731 from zenixls2/feature/stats
add tearsheet backend api (Sharpe)
2022-06-30 09:00:23 +09:00
zenix
0141f81086 refactor: ewo use SeriesExtend 2022-06-29 22:02:50 +09:00
zenix
70f4676340 feature: extend indicators, extend seriesbase methods 2022-06-29 21:49:02 +09:00
zenix
69533c0397 feature: add sharpe function implementation 2022-06-29 20:10:20 +09:00
zenix
d8d77cec1e feature: add skew, covariance and variance 2022-06-29 20:10:20 +09:00
zenix
1e31c4fb04 feature: add correlation for series 2022-06-29 20:10:20 +09:00
zenix
36127a6332 feature: implement omega, sharp, sortino related functions 2022-06-29 20:10:20 +09:00
zenix
b26d3005a3 feature: add pct_change implementation in indicator 2022-06-29 20:10:20 +09:00
Yo-An Lin
ccfaf0e070
Merge pull request #784 from c9s/strategy/pivotshort
strategy: pivotshort: fix stopEMA
2022-06-29 17:04:24 +08:00
c9s
4bb2e4a25f
fix stopEMA range check 2022-06-29 16:59:50 +08:00
Andy Cheng
6222ceef9a
Merge pull request #785 from andycheng123/improve/optimizer-progressbar
optimizer: add progressbar
2022-06-29 16:28:03 +08:00
Andy Cheng
a029509b63 optimizer: add progressbar 2022-06-29 16:17:43 +08:00
c9s
83d6f4764c
types: fix profit factor calculation
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-29 15:37:18 +08:00
c9s
84083f56b7
bbgo: add ExchangeSession param to the subscribe method 2022-06-29 15:16:56 +08:00
c9s
cb1c5634a2
pivotshort: remove redundant notification 2022-06-29 15:14:24 +08:00
Zenix
6b6686caa8
Merge pull request #778 from zenixls2/feature/series_extend
feature: add seriesExtend
2022-06-29 12:35:48 +09:00
Yo-An Lin
f1d9f352eb
Merge pull request #783 from c9s/strategy/pivotshort
fix: pivotshort: fix kline history loading
2022-06-29 11:30:51 +08:00
c9s
38920dfc7a
pivotshort: fix kline history loading 2022-06-29 11:23:05 +08:00
zenix
0b8441f4a2 rename: ToArray -> Array, ToReverseArray -> Reverse 2022-06-29 11:13:43 +09:00
Yo-An Lin
95342d3481
Merge pull request #782 from c9s/strategy/pivotshort
refactor: moving exit methods from pivotshort to the core
2022-06-29 02:10:33 +08:00
c9s
fc3e76204a
bbgo: add todo for the reflect Subscribe call 2022-06-29 02:03:00 +08:00
c9s
95c2711b0d
bbgo: call Subscribe method dynamically 2022-06-29 02:02:23 +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
Yo-An Lin
6e9993c9eb
Merge pull request #781 from c9s/strategy/pivotshort
strategy: pivotshort: optimize and update config
2022-06-29 01:46:25 +08:00
c9s
cfc4fd1f81
add doc for CumulatedVolumeTakeProfit 2022-06-29 01:39:33 +08:00
c9s
3d4f765678
rename protectionStopLoss to protectiveStopLoss 2022-06-29 01:31:56 +08:00
c9s
44d0bbc3fa
config: optimize and update pivotshort config
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-29 01:23:01 +08:00
c9s
37413e4355 pivotshort: fix bounce ratio calculation 2022-06-28 23:47:34 +08:00
c9s
b32cfef2fd backtest: set order price for market order 2022-06-28 23:47:34 +08:00
c9s
609b6a7a50 add ref link to trade stats 2022-06-28 23:47:34 +08:00
c9s
32c76105b0 types: add total net profit field to trade states
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-28 23:47:34 +08:00
c9s
1617005114 pivotshort: fix pivotshort trigger condition 2022-06-28 23:47:34 +08:00
zenix
12757a0458 feature: add seriesExtend 2022-06-28 21:11:07 +09:00
Yo-An Lin
cb1ad3a89b
Merge pull request #775 from c9s/fix/backtest-order-cancel-test
test: backtest: add order cancel test case
2022-06-28 18:34:52 +08:00
c9s
1156e15cfe
backtest: add order cancel test case
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-28 18:25:51 +08:00
Yo-An Lin
ee59fc447d
Merge pull request #773 from c9s/fix/backtest-taker-order
fix: fix backtest taker order execution
2022-06-28 18:13:22 +08:00
c9s
c0f8bb9a2d
backtest: do not change the backtest order price
- apply the last price on the executed trade
- add more tests
2022-06-28 17:43:51 +08:00
Yo-An Lin
74d74a2d0f
Merge pull request #772 from c9s/fix/backtest-stop-order
backtest: fix stop order backtest, add more test cases and assertions
2022-06-28 15:30:19 +08:00
c9s
81ed5bff4f
backtest: refactor calculateNativeOrderFee and add test case 2022-06-28 15:29:01 +08:00
c9s
abee61cdc4
backtest: fix stop order backtest, add more test cases and assertions 2022-06-28 14:35:06 +08:00
Yo-An Lin
f2a642b165
Merge pull request #770 from c9s/fix/backtest-stop-limit 2022-06-28 04:08:28 +08:00
c9s
09e98eed82
backtest: handle stop market and add test case
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-27 20:49:55 +08:00
c9s
34900776f6
pivotshort: reformat code 2022-06-27 19:54:58 +08:00
c9s
dec02296a3
backtest-report: show order tag in the mark
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-27 19:53:43 +08:00
c9s
10d5a8a4f2
backtest: fix stop limit order matching
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-27 19:48:14 +08:00
c9s
9631a2e551
fix segment control default value
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-27 18:26:26 +08:00
c9s
11dacbc2cd
show order tag in the order list 2022-06-27 18:20:26 +08:00
c9s
2784408b8b
add submit order tag 2022-06-27 18:17:57 +08:00
c9s
2953518af9
add limit to the order table 2022-06-27 18:17:46 +08:00