Commit Graph

3592 Commits

Author SHA1 Message Date
c9s
94efa8890b
rename inf.go to interface.go 2022-07-26 18:07:43 +08:00
c9s
82673e501b
indicator: fix test cases 2022-07-26 18:07:43 +08:00
c9s
16c62eab2b
indicator/pivotlow: drop the legacy CalculateAndUpdate 2022-07-26 17:33:09 +08:00
c9s
0df321c880
indicator: drop the legacy CalculateAndUpdate for standard indicators 2022-07-26 17:30:41 +08:00
c9s
8bf9b280fc
add low indicator 2022-07-26 17:27:38 +08:00
c9s
eeab328648
indicator: rewrite pivotlow indicator 2022-07-26 17:00:17 +08:00
zenix
85f8b9510d fix: gofmt 2022-07-26 18:00:05 +09:00
zenix
4dd4c5823f fix: unlock lock to get latest price 2022-07-26 18:00:05 +09:00
zenix
2ceb24ad09 fix: panic on image drawing, reduce fee by smoothing the drift curve 2022-07-26 18:00:05 +09:00
zenix
553a55811c fix: buyPrice/sellPrice calculation on one order multiple trades 2022-07-26 18:00:05 +09:00
zenix
d2dee44647 fix: ewma copy 2022-07-26 18:00:05 +09:00
zenix
a8fe20ae3a fix: drift exit condition, trade_stats serialization in redis 2022-07-26 18:00:05 +09:00
zenix
a5039de6aa feature: add omega ratio, print sharpe/omega/interval profit from trade_stats, use stdev for high/low diff for drift to estimate the variance and improve profit, add yaml marshal for dnum fixedpoint 2022-07-26 18:00:05 +09:00
zenix
b6fb5e958d feature: deduct fee from entry, move StopLoss orders cleanup to the begin of close position function 2022-07-26 18:00:05 +09:00
zenix
ac5c7f5773 feature: add pnl / cummulative pnl graph, add continuous graph 2022-07-26 18:00:05 +09:00
zenix
62aac8ecc4 fix: indicator limits 2022-07-26 18:00:05 +09:00
zenix
0d65fe1b8a feature: trailing stop, print mean and modify normalization function of output graph 2022-07-26 18:00:05 +09:00
zenix
c6563aa9bd feature: add stoploss from stopPrice 2022-07-26 18:00:05 +09:00
zenix
9c73aa4adb fix: fine tune drift config. fix atr updating issue 2022-07-26 18:00:05 +09:00
zenix
b52208d7b6 fix: bug in wrong channel subscription in drift 2022-07-26 18:00:05 +09:00
zenix
7368069c7a fix: add persistence to drift 2022-07-26 18:00:05 +09:00
zenix
f2d37650a5 fix: drift bias on long entry position condition, make cancel faster 2022-07-26 18:00:05 +09:00
zenix
55704fdd21 fix: Reverse length, alma comment 2022-07-26 18:00:05 +09:00
zenix
e097421b7b feature: export canvas path for drift strategy. fix exit/entry order and fix missing columns from json parsing 2022-07-26 18:00:05 +09:00
zenix
586f1ff269 fix: clone on sma 2022-07-26 18:00:05 +09:00
zenix
83f8b7a84e fix: logistic regression test case 2022-07-26 18:00:05 +09:00
zenix
7310feb0de fix: highest price normalization in drift strategy 2022-07-26 18:00:05 +09:00
zenix
c51a99400d feature: add plot for series. add autocorrelation. add clone for indicators/series 2022-07-26 18:00:05 +09:00
zenix
69b45e90e9 add drift exit condition 2022-07-26 18:00:05 +09:00
zenix
6a9e00ebd4 fix: update drift strategy 2022-07-26 18:00:05 +09:00
zenix
0ae6b6736c feature: use drift indicator to create basic strategy for study 2022-07-26 18:00:05 +09:00
c9s
44c3e5a6f7
indicator: split pivot low indicator 2022-07-26 16:50:45 +08:00
c9s
5bb1722007
binance: remove ineffected DEBUG_BINANCE_STREAM 2022-07-26 16:26:40 +08:00
c9s
e1e725878e
binance: refactor server time offset setter 2022-07-26 16:25:08 +08:00
c9s
ff61235e70
binance: rename to timeSetterOnce 2022-07-26 16:22:57 +08:00
c9s
cf5e81c848
binance: refactor set server time go routine 2022-07-26 16:22:29 +08:00
zenix
2568a81dfe fix: binance time sync, exchange interval query interface, yaml for fixedpoint 2022-07-26 16:42:34 +09:00
Yo-An Lin
9bf48e9de4
Merge pull request #822 from c9s/fix/api-upgrade
refactor: ewoDgtrd: upgrade order executor api
2022-07-26 14:33:06 +08:00
c9s
8986eeb3a4
bollmaker: apply kline filter closure 2022-07-26 12:08:47 +08:00
c9s
c252a7dcf9
bollmaker: fix log format issue 2022-07-26 12:08:47 +08:00
c9s
d26dd2f1da
bollmaker: remove status change setter 2022-07-26 12:08:47 +08:00
c9s
83c8bc819a
all: drop the legacy smart stops 2022-07-26 12:08:47 +08:00
c9s
c3b6cb80c3
bollmaker: upgrade bollmaker exits methods 2022-07-26 12:08:47 +08:00
c9s
6ae0620730
bollmaker: integrate exits method to bollmaker 2022-07-26 12:08:47 +08:00
c9s
06d71aab4a
types: add doc comment 2022-07-26 11:53:22 +08:00
c9s
ee4fb1a677
add 24hours guard to AddProfit 2022-07-26 11:51:58 +08:00
c9s
9c944d4aba
types: fix profit stats titles 2022-07-26 11:51:24 +08:00
c9s
549e28079b
autoborrow: call Debt() for repay 2022-07-26 11:49:04 +08:00
c9s
bdfb5d08aa
risk: pull out max quantity variable 2022-07-26 11:47:07 +08:00
c9s
9787b867ac
types: call debt() 2022-07-26 11:44:57 +08:00
c9s
79fe49f66f
types: for net() always return total sub debt 2022-07-26 11:44:34 +08:00
c9s
e482a164cf
types: repay debt when closing position 2022-07-25 22:10:02 +08:00
Yo-An Lin
2e7ed9f583
Merge pull request #840 from andycheng123/fix/supertrend-strategy
strategy/supertrend: fix exit methods problem
2022-07-25 15:14:22 +08:00
c9s
0d5d92b26d
pivotshort: fix tail function 2022-07-25 15:02:59 +08:00
Andy Cheng
07959c8862 strategy/supertrend: fix exit methods problem 2022-07-25 14:11:55 +08:00
Yo-An Lin
bfb7dd51d6
Merge pull request #838 from c9s/improve/backtest-json-format
improve: use marshal instead of marshal indent
2022-07-23 12:33:27 +08:00
c9s
4345cef8d7
util: use marshal instead of marshal indent 2022-07-23 12:16:06 +08:00
c9s
a609c0606a
risk: fix margin level prec assertion 2022-07-22 15:06:10 +08:00
c9s
4b7126ce41
risk: add doc comment for MarginLevel method 2022-07-22 14:54:25 +08:00
c9s
a9f9fc4e5e
risk: add margin level calculator 2022-07-22 14:53:17 +08:00
c9s
b53da177c2
risk: add test case for account calculator 2022-07-22 14:42:30 +08:00
c9s
3cf5175baa
risk: make calculateAccountNetValue public 2022-07-22 13:36:03 +08:00
c9s
a1387bb4dd
risk: move spot condition to the top 2022-07-22 12:04:43 +08:00
c9s
36cfaa924d
risk: move leverage quantity calculation to the risk package 2022-07-22 11:55:24 +08:00
c9s
54affd2f99
pivotshort: quantity calculation -- sub debt 2022-07-22 11:47:48 +08:00
c9s
76def2fe9d
pull out AccountValueCalculator 2022-07-21 19:46:58 +08:00
c9s
15879adf3b
pivotshort: fix trade loss ratio 2022-07-21 13:17:46 +08:00
c9s
88c0f31e87
pivotshort: add trade loss to the quantity calculating 2022-07-21 13:05:46 +08:00
c9s
756fcb4807
pivotshort: fix min leverage protection 2022-07-21 13:04:19 +08:00
c9s
763ae1f62f
bbgo: fix missing var 2022-07-21 12:36:26 +08:00
c9s
1079757833
bbgo: bind market data store to market data stream when allocating new instance 2022-07-21 12:35:38 +08:00
c9s
de62d9dd67
bbgo: fix injection 2022-07-21 12:33:29 +08:00
c9s
c78ba6a539
bbgo: fix strategy struct field injection phase 2022-07-21 12:18:09 +08:00
c9s
b6d0482517
pivotshort: add more logs and check 2022-07-21 12:05:05 +08:00
c9s
ea08a61e28
indicator/stoch: simplify CalculateAndUpdate 2022-07-21 01:35:27 +08:00
c9s
86c1619e50
indicator/stoch: move emitUpdate 2022-07-21 01:35:03 +08:00
c9s
9c89359a5f
indicator/stoch: move endTime check to pushK 2022-07-21 01:34:35 +08:00
c9s
6e043ba129
indicator/till: fix e1 check 2022-07-21 01:33:30 +08:00
c9s
946fb96b03
bbgo: reformat 2022-07-21 01:32:09 +08:00
c9s
02c978b812
bbgo: remove volatility from the standard indicator set 2022-07-21 01:31:42 +08:00
c9s
a821641dcf
indicator/atr: implement LoadK and BindK 2022-07-21 01:27:38 +08:00
c9s
0b9d6939f3
indicator/till: add zero time check 2022-07-21 01:22:28 +08:00
c9s
2523c2261b
indicator/till: refactor CalculateAndUpdate 2022-07-21 01:21:29 +08:00
c9s
9f937f529e
bbgo: refactor standard indicator 2022-07-21 01:05:08 +08:00
c9s
4300e00580
indicator/rma: move endTime update to PushK 2022-07-21 01:05:08 +08:00
Yo-An Lin
ed91fdc915
Merge pull request #831 from c9s/feature/defaulter
feature: api: add strategy defaulter interface
2022-07-19 17:55:24 +08:00
c9s
ea4efccd89
schedule: use general order executor and fix notification message format 2022-07-19 17:38:32 +08:00
c9s
ab83805b34
bbgo: add StrategyShutdown interface 2022-07-19 17:13:35 +08:00
c9s
8af2f2f83f
add defaulter interface 2022-07-19 16:59:56 +08:00
c9s
808ba2fc02
bbgo: make slack-app-token optional 2022-07-19 11:41:49 +08:00
c9s
f72cf9bfff
pivotshort: fix quantity check 2022-07-19 11:25:27 +08:00
c9s
9302474d51
add 1m subscribe to RoiTakeProfit 2022-07-19 11:00:45 +08:00
c9s
a6fc03efe5
bump version to v1.37.0 2022-07-19 09:48:21 +08:00
c9s
29fc58cb18
autoborrow: fix repay amount 2022-07-18 19:14:31 +08:00
Raphanus Lo
13455e4ee1 backtest: resolve data race on index.json 2022-07-17 15:46:55 +08:00
c9s
6e4c28ed1b
disable marketTrade stop 2022-07-17 00:59:35 +08:00
c9s
2d0fbe4b99
fix ProtectiveStopLoss subscribe 2022-07-16 14:45:02 +08:00
Raphanus Lo
620381f64b optimizer: eliminate limitation of number of grid point 2022-07-15 23:01:56 +08:00
c9s
44f3793db8
max: emit debt event and ad ratio event 2022-07-15 13:25:02 +08:00
c9s
26f5f36f7e
backtest: for types.OrderTypeStopMarket, use stop price to simulate the actual price for balance locking 2022-07-14 19:26:04 +08:00