c9s
c5e93dba00
max: replace client field type with interface
2022-08-10 23:59:25 +08:00
c9s
ae3f6001b9
maxapi/v3: add order type alias
2022-08-10 23:59:21 +08:00
c9s
2380ebb285
maxapi/v3: apply order type constant type
2022-08-10 23:59:16 +08:00
c9s
2f8020efd6
max: add v2 order api back
2022-08-10 23:59:10 +08:00
c9s
3bdc6c7f28
bollmaker: remove unused embedded struct
2022-08-10 23:46:24 +08:00
c9s
677b122964
bbgo: use types.KLineWith for roi take profit
2022-08-10 23:45:21 +08:00
Yo-An Lin
62aff676da
Revert "feature: add smart cancel to drift"
2022-08-09 16:25:36 +08:00
Yo-An Lin
55b4edc595
Merge pull request #853 from zenixls2/feature/smartcancel_drift
...
feature: add smart cancel to drift
2022-08-09 16:23:33 +08:00
Raphanus Lo
ed975b7ed9
Merge pull request #860 from COLDTURNIP/feature/exchange_order_amount_protection
...
exchange: order fee-amount protection
2022-08-09 15:01:53 +08:00
c9s
0283f2ad55
bbgo: fix doneTrades lock
2022-08-09 14:52:05 +08:00
zenix
5be6e822e9
fix: highest price and lowest price reset, condition gets crossed
2022-08-09 13:26:56 +09:00
zenix
2c4e03a102
fix: takeProfitFactor NaN
2022-08-09 13:26:56 +09:00
zenix
0e3aecb549
fix: drift pnl calculation and graph drawing, filter periods other than s.Interval and 1m
2022-08-09 13:26:56 +09:00
zenix
9704c09a09
feature: output config to telegram
2022-08-09 13:26:56 +09:00
zenix
45e819ebe7
feature: create simpleinteract and remove command in notification
2022-08-09 13:26:56 +09:00
zenix
4117a83cd1
feature: send photo through telegram, register handler dynamically in strategy, fix canvas rendering
2022-08-09 13:26:56 +09:00
zenix
214e7259ed
fix: date parsing in tradingview, feature: enforce trailingstop in drift, add rebalance prototype
2022-08-09 13:26:56 +09:00
zenix
53d4f21c30
feature: add smart cancel to drift
2022-08-09 13:26:56 +09:00
Andy Cheng
ef18791c6a
Merge pull request #865 from andycheng123/fix/protective-stoploss
...
fix: protectivestoploss not working on long position
2022-08-09 12:15:33 +08:00
Yo-An Lin
072b808a6e
Merge pull request #868 from c9s/fixes
...
fix: many minor fixes
2022-08-09 12:11:38 +08:00
c9s
9867aa9c68
bbgo: add mutex protection to tradecollector
2022-08-09 11:37:44 +08:00
c9s
2dff1e72da
types: rbtree - add panic check
2022-08-09 11:37:38 +08:00
c9s
4e4ffe83e5
cmd: fix cpu profile starter
2022-08-09 11:37:30 +08:00
c9s
ba7b6f82e2
types: add average price support in order in/out method
2022-08-09 11:37:23 +08:00
c9s
dce64871e8
types: add IsUSDFiatCurrency helper
2022-08-09 11:37:17 +08:00
c9s
99121d19c0
exchange/max: fix order trades query field name
2022-08-09 11:37:12 +08:00
c9s
b4dcdc4031
exchange/max: fix GetOrderTradesRequest order id field
2022-08-09 11:37:05 +08:00
c9s
a5a40c3a42
exchange/max: check order id field
2022-08-09 11:36:59 +08:00
c9s
cba9ffe064
exchange/max: add order trades api
2022-08-09 11:36:53 +08:00
c9s
df4ea9c1e6
types: update ExchangeOrderQueryService interface
2022-08-09 11:36:45 +08:00
c9s
babb0abc95
types: add Out() and Int() methods on SubmitOrder type
2022-08-09 11:36:39 +08:00
c9s
938e612c42
util: move emoji and pnl related functions to util
2022-08-09 11:36:24 +08:00
c9s
f191d3c091
bbgo: make position object optional for trade collector
2022-08-09 11:36:17 +08:00
c9s
cae8bc2882
bbgo: add mutli symbol support to active order book
2022-08-09 11:36:10 +08:00
c9s
f9fe5d7790
cmd: move package import paths
2022-08-09 11:36:02 +08:00
c9s
96b10caa8c
types: add callbacks to the stream order book
2022-08-09 11:35:35 +08:00
austin362667
bb4db871b2
factorzoo: add comments for strategy
...
factorzoo: add comments for strategy
2022-08-09 00:01:34 +08:00
austin362667
d282568614
factorzoo: add customized indicators
2022-08-08 23:50:42 +08:00
austin362667
bdb04a4322
strategy: factorzoo: refactor to logistic regression
...
re-format
2022-08-08 20:09:15 +08:00
Andy Cheng
6c2fc3fee0
exits/protectivestoploss: fix shouldStop()
2022-08-08 17:57:05 +08:00
Andy Cheng
5455ae810b
strategy/supertrend: only show nterval profit report in backtesting
2022-08-08 17:42:21 +08:00
Andy Cheng
b133767e47
exit/protectivestoploss: works in long position
2022-08-08 16:49:19 +08:00
Andy Cheng
1cd48177ae
Merge pull request #862 from andycheng123/improve/supertrend-strategy
...
Improve: supertrend strategy
2022-08-08 14:11:49 +08:00
Andy Cheng
c6407e92c8
strategy/supertrend: supertrend indicator adapted new indicator API
2022-08-08 13:07:59 +08:00
Andy Cheng
9d0eecc5bc
strategy/supertrend: linreg adapted new indicator API
2022-08-08 12:43:38 +08:00
Raphanus Lo
318590f41b
types: rbtree: resolve neel reusing problem
2022-08-08 00:51:37 +08:00
Andy Cheng
737f6e99ba
strategy/supertrend: use CalculateQuoteQuantity() in strategy
2022-08-05 16:28:42 +08:00
Andy Cheng
b564e69f82
strategy/supertrend: add CalculateQuoteQuantity()
2022-08-05 15:59:20 +08:00
Andy Cheng
dba1102588
strategy/supertrend: rename AvailableValue() to AvailableQuote()
2022-08-05 15:38:19 +08:00
Andy Cheng
eb57e80119
strategy/supertrend: different qty calculation for spot and leveraged
2022-08-05 15:11:15 +08:00
Andy Cheng
550f2f3fd7
strategy/supertrend: adapt risk.AccountValueCalculator
2022-08-05 11:47:36 +08:00
Andy Cheng
9369ad3155
strategy/supertrend: adapt SetIntervalProfitCollector
2022-08-04 10:39:52 +08:00
Andy Cheng
0d82f32769
Merge pull request #852 from andycheng123/position-updater
...
feature: PositionModifier
2022-08-03 16:45:02 +08:00
Andy Cheng
e60aae40eb
positionModifier: combine callbacks into one
2022-08-03 16:27:05 +08:00
Andy Cheng
5d1bfc6010
strategy/supertrend: add last period accumulated profit report
2022-08-03 15:31:20 +08:00
Andy Cheng
dc9ecdd6ca
strategy/supertrend: add accumulated profit SMA report
2022-08-03 14:04:30 +08:00
Yo-An Lin
1b177044fb
Merge pull request #855 from COLDTURNIP/feature/optimizer_hyperparam
...
optimizeex: hyperparameter optimization tool
2022-08-02 17:38:38 +08:00
Raphanus Lo
d76245cb43
exchange: adjust tests for order fee-amount protection
2022-08-02 15:12:14 +08:00
Raphanus Lo
ed7df4ddbe
exchange: order fee-amount protection
...
Reduce the order amount to prevent submit rejection because of balance exceeding.
submit_amount = original_amount / (1 + fee_rate)
Currently supported only by FTX Pro.
2022-08-02 13:35:24 +08:00
Raphanus Lo
68af2d0ff8
optimizer: rename optimizeex to hoptimize
2022-08-02 12:44:42 +08:00
Yo-An Lin
609508288c
Merge pull request #856 from COLDTURNIP/fix/ftx_default_fee
...
exchange: FTX default fee
2022-07-31 13:16:01 +08:00
Raphanus Lo
5ef34a3b61
optimizer: calculate equity diff from whole assets instead of first symbol
2022-07-31 12:52:21 +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
09940ed3cd
optimizer: optimizeEx supports discrete parameters
2022-07-30 20:34:28 +08:00
c9s
55a128ea90
pivotshort: use bbgo notify instead of just info log
2022-07-30 18:14:53 +08:00
c9s
8873101752
pivotshort: move trendEMA log
2022-07-30 18:02:28 +08:00
c9s
adb8a2a713
remove ping / pong debug
2022-07-30 16:27:43 +08:00
c9s
efaf8e9559
pivotshort: add more logs
2022-07-30 13:14:29 +08:00
Raphanus Lo
76d908e2bc
optimizer: workaround for data race in TPE optimization
2022-07-30 09:57:15 +08:00
Raphanus Lo
ae3eaaaeb3
optimizer: testing: param config
2022-07-30 00:19:12 +08:00
Raphanus Lo
f5d4fa098d
optimizer: refactor selector config types
2022-07-29 23:39:56 +08:00
Raphanus Lo
4e14df443a
optimizer: fix typo
2022-07-29 23:33:51 +08:00
Raphanus Lo
23dc8a9ce3
exchange: FTX default fee
2022-07-29 21:49:04 +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
c9s
bd754e1714
pivotshort: use infof log
2022-07-29 16:13:57 +08:00
Fredrik
b324149db2
added SideEffectTypeAutoRepay to supportTakeProfit
2022-07-29 09:41:35 +02:00
c9s
a132e789da
bump version to v1.38.0
2022-07-29 14:42:03 +08:00
Andy Cheng
4bc70820c4
positionmodifier: move functions into types.Position
2022-07-29 14:40:54 +08:00
Andy Cheng
9588a6f6bd
positionupdater: update command flow
2022-07-29 13:45:33 +08:00
Andy Cheng
2724949678
positionupdater: update avaerage cost
2022-07-29 12:05:39 +08:00
Andy Cheng
32b91b67dd
positionupdater: update quote position
2022-07-29 12:00:11 +08:00
Andy Cheng
8c53c7e575
positionupdater: update base position
2022-07-29 11:52:20 +08:00
Yo-An Lin
ae6c6c90a7
Merge pull request #849 from COLDTURNIP/feature/optimizer_output_asset_diff
...
optimizer: print equity diff in final report
2022-07-28 18:56:41 +08:00
Yo-An Lin
a32ef8ca9a
Merge pull request #850 from COLDTURNIP/feature/optimizer_predict_grid_number
...
optimizer: calculate total number of grids before testing
2022-07-28 18:54:21 +08:00
zenix
d46267aff9
feature: use ma for tp coefficient, rewrite trailing stop for drift, export all window param to yaml
2022-07-28 19:34:12 +09:00
Raphanus Lo
16814138a1
optimizer: calculate total number of grids before testing
2022-07-28 12:36:44 +08:00
Raphanus Lo
3c0d5727e6
optimizer: print equity diff in final report
2022-07-28 12:31:17 +08:00
c9s
30978ecbd4
pivotshort: check TrendEMA pointer
2022-07-28 11:29:27 +08:00
c9s
d61047cd26
pivotshort: add maxGradient config to trendEMA
2022-07-28 10:27:16 +08:00
c9s
93593ffa06
bbgo: add close position tag log
2022-07-28 10:27:04 +08:00
c9s
a791b455b8
types: fix average profit/loss overflow issue
2022-07-28 10:26:48 +08:00
c9s
5fa2606357
pivotshort: rename kLineClosedStop to fakeBreakStop
2022-07-28 09:29:10 +08:00
c9s
abd99a1d93
types: fix IntervalProfits struct tag
2022-07-27 19:26:16 +08:00
c9s
03541ca746
types: record the position open time
2022-07-27 19:25:30 +08:00
c9s
56bfa22dbe
types: add position openedAt time field
2022-07-27 19:25:30 +08:00
c9s
9f06be14aa
types: calculate MaximumConsecutiveLosses and MaximumConsecutiveProfits
2022-07-27 19:25:29 +08:00
c9s
151d907457
use debug log for trendEMA
2022-07-27 19:22:56 +08:00
c9s
c65456e44b
pivotshort: refactor and add trendEMA to resistance short
2022-07-27 19:22:56 +08:00
c9s
2719c86400
pivotshort: drop unused tail function
2022-07-27 19:22:56 +08:00
c9s
5821dd02cb
pivotshort: fix log format
2022-07-27 19:22:56 +08:00
c9s
9b35c789ee
pivotshort: add total quantity to the notification
2022-07-27 19:22:55 +08:00
c9s
b067c02cf0
pivotshort: fix resistance order quantity calculation
2022-07-27 19:22:55 +08:00
c9s
a9eef3fb93
pivotshort: fix pivot low usage
2022-07-27 19:22:55 +08:00
Yo-An Lin
3aeb6912c9
Merge pull request #846 from c9s/strategy/pivotshort
...
strategy/pivotshort: refactor breaklow + add fake break stop
2022-07-27 12:18:50 +08:00
c9s
4c6fe11796
pivotshort: rename ClosedKLineStop to fake break stop
2022-07-27 12:04:54 +08:00
c9s
7438798390
bbgo: add ClosedKLineStop trigger
2022-07-27 11:47:12 +08:00
c9s
f323e91a56
pivotshort: fix resistance short
2022-07-27 11:30:32 +08:00
Yo-An Lin
4fd571d712
Merge pull request #813 from zenixls2/feature/drift_study
...
feature: drift study
2022-07-27 11:29:48 +08:00
zenix
84c7c0596d
fix: fix drift naming style, fix kline Copy -> Set
2022-07-27 12:17:33 +09:00
zenix
3f33111182
fix: rename kline Copy to Set
2022-07-27 10:55:15 +09:00
c9s
3fbc634d81
bbgo: narrow down indicator interface type
2022-07-27 02:21:25 +08:00
c9s
feef912930
indicator: pivot low reformat
2022-07-27 01:58:05 +08:00
c9s
ac496e8488
pivotshort: refactor pivot low collector
2022-07-27 01:57:28 +08:00
c9s
b746f801f7
pivotshort: get the correct pivot low value
2022-07-27 01:56:18 +08:00
c9s
854af6b4bd
pivotshort: use new config struct stopEMA and trendEMA
2022-07-27 01:53:53 +08:00
c9s
6f64b6d08e
pivotshort: introduce new config struct
2022-07-27 01:51:47 +08:00
c9s
4fd318701d
indicator: fix slice
2022-07-27 01:43:36 +08:00
c9s
0e18aa68f7
indicator: fix length slice calculation
2022-07-27 01:32:37 +08:00
c9s
5dd14feb42
indicator: fix pivot low indicator
2022-07-27 01:30:43 +08:00
c9s
076f196621
risk: return quantity directly if it's not zero
2022-07-27 01:29:53 +08:00
c9s
578e4b2801
indicator: fix pivot low indicator
2022-07-27 00:58:05 +08:00
zenix
da51bf44c8
fix: rebase error
2022-07-26 20:14:23 +09:00
c9s
2822e39e7b
pivotshort: remove the legacy preloadPivot
2022-07-26 19:00:09 +08:00
c9s
f460a7901d
indicator: refactor macd indicator
2022-07-26 19:00:09 +08:00
c9s
3959e288fd
all: refactor standard indicator helper and fix tests
2022-07-26 18:35:50 +08:00
c9s
0456cdc7a9
bbgo: add hull to the standard indicator
2022-07-26 18:27:22 +08:00
c9s
2459dbd384
indicator: refactor hull indicator
2022-07-26 18:26:52 +08:00
c9s
808d742efc
bbgo: add CCI helper
2022-07-26 18:07:43 +08:00
c9s
f5e64e8e70
bbgo: add ATR, ATRP, EMV to the standard indicator set
2022-07-26 18:07:43 +08:00
c9s
1d6b1de8ba
bbgo: rename standard indicator receiver name
2022-07-26 18:07:43 +08:00
c9s
46afc54559
bbgo: refactor standard indicator set
2022-07-26 18:07:43 +08:00
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
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
0284d090d8
all: move getExchangeAttributes
2022-07-14 17:36:16 +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
dd3bd6a325
indicator: rewrite VWMA calculator
2022-07-14 15:57:17 +08:00
c9s
2ef8ecf3d9
indicator: clean up bollinger band indicator api usage
2022-07-14 14:26:08 +08:00
c9s
a5715c6aee
indicator: rewrite boll indicator with stddev indicator
2022-07-14 14:26:08 +08:00
c9s
975d0d6995
indicator: pull out emit update
2022-07-14 11:36:34 +08:00
c9s
bbf01275cc
indicator/sma: clean CalculateAndUpdate and make cache field private
2022-07-14 11:34:53 +08:00
c9s
7696c9f21e
indicator: improve rma preload
2022-07-14 10:54:46 +08:00
c9s
da4dbf4800
indicator: macd: add link for macd https://school.stockcharts.com/doku.php?id=technical_indicators:macd-histogram
2022-07-14 10:45:22 +08:00
c9s
0b07fb5a83
indicator/macd: drop the legacy func calculateMACD
2022-07-14 10:36:16 +08:00
c9s
a7b7ed6610
rename to KLineClosedEmitter
2022-07-14 10:33:10 +08:00
c9s
77264342ce
indicator: add KLineLoader interface
2022-07-14 10:31:38 +08:00
c9s
cb481c660f
fix all indicators for KLineCalculateUpdater interface
2022-07-14 10:28:53 +08:00
c9s
e6c634690b
indicator: clean up ewma's CalculateAndUpdate
2022-07-14 09:29:54 +08:00
c9s
8d8d9a7c59
indicator/rsi: make update callback field private
2022-07-14 09:18:43 +08:00
c9s
b2538b6960
indicator: make callback field private
2022-07-14 09:18:43 +08:00
c9s
2a3118a086
indicator: clean up and update calculator method names
2022-07-14 09:18:42 +08:00
c9s
c27f416dbc
indicator: canonicalize the CalculateAndUpdate method call
...
also fix the xmaker boll indicator preloading
2022-07-14 09:18:42 +08:00
c9s
1152fae346
ewoDgtrd: upgrade order executor api
2022-07-14 01:36:02 +08:00
c9s
5bbccacc89
risk: rename func
2022-07-14 00:07:49 +08:00
c9s
c7424479bb
risk: add tests
2022-07-14 00:03:47 +08:00
c9s
8985a7a635
risk: add risk function tests
2022-07-13 23:56:22 +08:00
c9s
7932688aa7
add risk calculator functions
2022-07-13 23:45:47 +08:00
Yo-An Lin
affe46655f
Merge pull request #818 from COLDTURNIP/fix/backtest_correct_final_asset
...
backtest: correct final asset calculation
2022-07-13 23:02:19 +08:00
Yo-An Lin
01d50496a1
Merge pull request #817 from COLDTURNIP/fix/optimizer_initial_storage
...
optimizer: prepare database before executing backtests
2022-07-13 23:01:59 +08:00
Raphanus Lo
36bdacf3a3
backtest: correct final asset calculation
2022-07-13 17:20:48 +08:00
Raphanus Lo
4985c760be
optimizer: prepare database before executing backtests
2022-07-13 15:28:11 +08:00
Yo-An Lin
b9729b0c4f
Merge pull request #816 from c9s/refactor/backtest-report
...
strategy/pivotshort: add trendEMA
2022-07-13 13:45:15 +08:00
Yo-An Lin
647182e575
Merge pull request #815 from COLDTURNIP/fix/optimizer_progress_bar_counter
...
optimizer: correct progress bar counter & ETA calculation
2022-07-13 13:35:34 +08:00
c9s
cecb278aa1
autoborrow: use info logger for the margin level info
2022-07-13 13:34:59 +08:00
Raphanus Lo
363c7b6ef6
optimizer: correct progress bar counter & ETA calculation
2022-07-13 11:44:04 +08:00
zenix
d1689a3b14
fix: add error message on wrong sizeof klines passed in calculateSMA
2022-07-13 12:33:57 +09:00
zenix
4e2adcf29e
fix: sma calculation, length, and add test case
2022-07-13 12:28:41 +09: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
f91e1afe95
atrp: multiple 100 for percentage
2022-07-12 22:54:47 +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
24e009f333
backtest: avoid writing same record into the file
2022-07-12 18:46:09 +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
Yo-An Lin
1ef2c1d668
Merge pull request #811 from andycheng123/fix/supertrend-strategy
...
strategy/supertrend: fix double dema initialization problem
2022-07-12 13:13:19 +08:00
c9s
28d9aa6820
autoborrow: show margin level when check
2022-07-11 16:26:25 +08:00
c9s
3f15df4c0e
autoborrow: fix repay balance check
2022-07-11 16:22:21 +08:00
c9s
98aaa6ce43
autoborrow: fix repay mech
2022-07-11 16:20:45 +08:00
Andy Cheng
1b5dc309f0
strategy/supertrend: fix double dema initialization problem
2022-07-11 13:37:01 +08:00
c9s
2a9a34ae66
bump version to v1.36.0
2022-07-10 19:08:30 +08:00
c9s
c62aafdf2b
compile and update migration package
2022-07-10 19:08:30 +08:00
Zenix
e633cedd3c
Merge pull request #809 from zenixls2/feature/logistic_regression
...
feature: logistic regression
2022-07-09 17:27:20 +09:00
Yo-An Lin
eacbd13e6b
Merge pull request #810 from andycheng123/fix/supertrend-strategy
2022-07-08 21:03:01 +08:00
Yo-An Lin
e6d9a8a84a
Merge pull request #808 from c9s/fix/kline-with-filtering
2022-07-08 21:02:28 +08:00
c9s
cc8821bb66
update max order api path
2022-07-08 20:47:51 +08:00
c9s
e9faf34b5e
max: fix balance field for api
2022-07-08 17:28:07 +08:00
c9s
59fcef0b6d
supertrend: avoid using embedded struct on DoubleDema
2022-07-08 17:13:12 +08:00
Andy Cheng
d73d7b4380
Merge branch 'main' into fix/supertrend-strategy
2022-07-08 16:45:26 +08:00
c9s
5bd292d0b2
bbgo: add notify(profit)
2022-07-08 16:43:32 +08:00
Andy Cheng
574e142cf9
strategy/supertrend: use types.IntervalWindow instead of types.Interval
2022-07-08 16:42:31 +08:00
c9s
79b70d4a31
supertrend: fix interval window for exit methods
2022-07-08 16:31:28 +08:00
zenix
0e64a14d7f
feature: add entropy, cross entropy, sigmoid, softmax, and logistic regression
2022-07-08 16:58:59 +09:00
c9s
46d6ecc663
fix types.TradeStats usage
2022-07-08 15:44:32 +08:00
c9s
581e4be218
supertrend: clean up and update
2022-07-08 15:41:28 +08:00
c9s
d7f83a45b3
fix: check if interval is empty string
2022-07-08 14:47:36 +08:00
Andy Cheng
f8777752a0
Merge branch 'main' into improve/supertrend-strategy
2022-07-07 10:33:30 +08:00
Yo-An Lin
e778db1f24
Merge pull request #801 from c9s/feature/optimizer-metrics-tsv-format
...
feature: optimizer: support --tsv option and render tsv output
2022-07-07 06:23:49 +08:00
c9s
ba74e83552
optimizer: show *exec.ExitError
2022-07-07 02:26:39 +08:00
c9s
81560746bd
all: reformat code
2022-07-07 02:26:39 +08:00
c9s
c9859c9238
add more struct field tests
2022-07-07 02:26:39 +08:00
c9s
30deaad079
dynamic: add IterateFields
2022-07-07 02:26:39 +08:00
c9s
3131786c02
bbgo: fix trailing stop binding
2022-07-07 02:26:39 +08:00
c9s
74593720a7
add ExitMethodSet.Bind method
2022-07-07 02:26:39 +08:00
c9s
d2637ce261
trailing stop: apply ClosePosition parameter
2022-07-07 02:26:39 +08:00
c9s
7b7d0690c7
optimizer: support --tsv option and render tsv output
2022-07-07 02:11:52 +08:00
c9s
81e05a3f2c
add more struct field tests
2022-07-06 22:01:35 +08:00
c9s
825022715d
dynamic: add IterateFields
2022-07-06 21:58:26 +08:00
c9s
b3e04a68da
bbgo: fix trailing stop binding
2022-07-06 21:50:38 +08:00
Andy Cheng
c43d4e0b24
strategy/supertrend: func to get order side
2022-07-06 18:11:09 +08:00
Andy Cheng
8aa5b706b6
strategy/supertrend: fix double dema missing interval
2022-07-06 17:05:38 +08:00
Andy Cheng
6c93c42ef6
strategy/supertrend: pull double dema into a single file
2022-07-06 16:45:19 +08:00
Andy Cheng
c62e7bbb58
strategy/supertrend: refactor to smaller functions
2022-07-06 16:26:30 +08:00
c9s
3d9db2786d
add trailing stop to the exit method
2022-07-06 10:56:10 +08:00
c9s
b49f12300c
add long position test for trailing stop
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-06 10:54:53 +08:00
c9s
03481000cc
reset activated flag when stop order is submitted
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-06 03:09:57 +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
d140012fd5
fix mockgen command
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-06 01:32:05 +08:00
c9s
f329af2c6b
generate mocks for the exchange interface
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-06 01:31:12 +08:00
Andy Cheng
2de16ac7d1
strategy/supertrend: fix missing Bind() of DEMA
2022-07-05 17:11:58 +08:00
Andy Cheng
91077ce61d
strategy/supertrend: add ExitMethod
2022-07-05 16:55:48 +08:00
Andy Cheng
f0dc9d6147
strategy/supertrend: add TradeStats
2022-07-05 16:30:13 +08:00
Andy Cheng
5b3ba03042
strategy/supertrend: preload indicators
2022-07-05 16:25:02 +08:00
c9s
4de5b0bc9b
add TrailingStop2
2022-07-05 16:10:55 +08:00
Andy Cheng
0a0e5ac4d8
strategy/supertrend: config switch for stop by different signals
2022-07-05 15:59:35 +08:00
c9s
b643b8ed0d
fix LowerShadowTakeProfit kline filter condition
2022-07-05 12:15:31 +08:00
c9s
8ac21fa16e
fix LowerShadowTakeProfit kline filter condition
2022-07-05 12:14:53 +08:00
c9s
193703a9a0
all: use tradeStats constructor
2022-07-05 11:14:50 +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
c258d522e6
backtest: update backtest.Exchange currentTime
2022-07-04 02:38:42 +08:00
c9s
82f9fc139c
backtest: refactor exchange field, clean up startTime and endTime deps
2022-07-04 02:34:46 +08:00
c9s
8fc17f9c0b
backtest: move QueryOrder method
2022-07-04 02:29:18 +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
c9s
449b2d8220
backtest: fix order update emit binding
2022-07-04 02:20:50 +08:00
c9s
3a37154737
pivotshort: fix supportTakeProfit binding
2022-07-04 02:20:15 +08:00
Yo-An Lin
6fe980a2a3
Merge pull request #793 from LarryLuTW/larry/fix-pnl-market
...
Fix pnl command
2022-07-04 01:42:32 +08:00
Fredrik
771f578efd
optimizer/fix: prevent from crashing if missing SummaryReport
2022-07-03 13:16:41 +02: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
LarryLuTW
a0e8359d23
add market for calculator
2022-07-02 17:45:24 +08:00
c9s
f940bb8e0a
implement SupportTakeProfit method
2022-07-02 13:21:27 +08:00
c9s
ac1b5e4df4
check market in the NewPositionFromMarket
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-02 12:43:57 +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
178913dd1b
reformat code
2022-07-01 17:32:59 +08:00
c9s
b158c44b95
fix profit stats notification
2022-07-01 17:32:40 +08:00
c9s
4bb9fb7e1b
fix profit stats wording
2022-07-01 17:32:01 +08:00
c9s
53204f47ea
bollmaker: remove legacy state loading
2022-07-01 17:28:48 +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
8851e67356
dynamic: add doc comment to CallMatch
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-01 13:10:53 +08:00
c9s
910c17a567
dynamic: implement CallWithMatch for dynamic calls
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-07-01 13:09:30 +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
fa98f3fda2
fix position.IsOpened method
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-30 18:29:59 +08:00
c9s
3e6b975c2c
pivotshort: refactor ResistanceShort entry method
2022-06-30 18:29:02 +08:00
c9s
6aa6e57d96
add ema condition to the lower shadow take profit
2022-06-30 17:42:23 +08:00
Andy Cheng
1573a9acf3
strategy/supertrend: add linear regression as filter
2022-06-30 16:35:00 +08:00
c9s
903d773025
dynamic: invert if
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-30 15:49:18 +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
e2ab363e64
dynamic: add CallStructFieldsMethod for map struct field call
...
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
cf0ca70d24
move and rename isSymbolBasedStrategy
2022-06-30 15:49:18 +08:00
c9s
3013eeccc7
move dynamic stuff to the pkg/dynamic package
2022-06-30 15:49:18 +08:00
c9s
a74decc47d
add more test case for reflect
2022-06-30 15:49:18 +08:00
c9s
fa917b0b77
bbgo: implmenet reflectMergeStructFields so that we can merge field values
2022-06-30 15:49:17 +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
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
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
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
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
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
c9s
1156e15cfe
backtest: add order cancel test case
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-28 18:25:51 +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
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
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
10d5a8a4f2
backtest: fix stop limit order matching
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-27 19:48:14 +08:00
c9s
2784408b8b
add submit order tag
2022-06-27 18:17:57 +08:00
c9s
b97ec7bb1e
pivotshort: remove unused struct
2022-06-27 18:14:12 +08:00
c9s
dfdfd6b85e
types: use pointer receiver for submit order
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-27 15:56:09 +08:00
c9s
94ad8a5096
gross loss and gross profit
2022-06-27 14:40:49 +08:00
Yo-An Lin
fc5a753933
Merge pull request #764 from c9s/strategy/pivotshort
...
strategy/pivotshort: refactor exit methods and add protection stop exit method
2022-06-27 00:20:11 +08:00
c9s
d46954a4b1
fix SimplePriceMatching test
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-27 00:13:57 +08:00
c9s
1557423229
pivotshort: improve useQuantityOrBaseBalance and add bounce short check
2022-06-26 19:45:37 +08:00
c9s
4d862a4286
pivotshort: remove market trade debug
2022-06-26 19:29:01 +08:00
c9s
e1a9df0a2d
pivotshort: add safety check
2022-06-26 19:20:46 +08:00
c9s
3604bae933
pivotshort: pull out stop price check to a single method
2022-06-26 19:06:16 +08:00
c9s
ef31e90728
pivotshort: clean up
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-26 16:32:48 +08:00
c9s
e9b87f6f1e
pivotshort: refactor exit methods
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-26 16:31:48 +08:00
c9s
47677e303f
pivotshort: refactor take profit and stop loss methods
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-26 16:13:58 +08:00
c9s
4c02d8f729
implement QueryOrder on the backtest exchange
2022-06-26 16:10:10 +08:00
c9s
88059016b4
add position roi tests
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-26 16:03:42 +08:00
c9s
0715437cc5
fix lastRecordTime
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-26 13:23:04 +08:00
c9s
25fb684fd1
types: add ROI method on position
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-26 13:11:19 +08:00
なるみ
cbb3effc42
glassnode: add QueryOptions
2022-06-25 20:25:42 +08:00
なるみ
99d6c0550d
glassnode: add Request struct
2022-06-25 19:59:00 +08:00
なるみ
5ce5571b5e
glassnode: delete all requests
2022-06-25 19:59:00 +08:00
c9s
4e670c67a8
pivotshort: change ratio calculation
2022-06-25 18:13:50 +08:00
c9s
66f923ad0d
backtest: add kline fixture generator
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-25 17:55:31 +08:00
c9s
118928d388
implement kline fixture generator
2022-06-25 17:52:37 +08:00
c9s
2e49a95d32
bbgo: remove unused context object
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-25 17:02:53 +08:00
c9s
b25be3d702
add doc comments
2022-06-25 16:55:54 +08:00
c9s
9f0e12dc25
service: fix import
2022-06-25 16:46:40 +08:00
c9s
7dd314703c
service: fix trade test
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-24 19:30:17 +08:00
c9s
751085f8ff
clean up todo comment
2022-06-24 19:24:49 +08:00
c9s
f4bb7bd231
service: drop unused methods
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-24 19:11:21 +08:00
c9s
bd991a7080
service: remove unused QueryLast method
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-24 19:08:51 +08:00
c9s
a9bff7701c
sync: avoid adding the millisecond one to the start time
2022-06-24 18:14:52 +08:00
c9s
cace7c8f97
sync: add more debug logs
2022-06-24 17:14:30 +08:00
c9s
4f42f90b49
service: update id map when inserting record
2022-06-24 16:49:41 +08:00
c9s
54d0a83eee
use local time instead of UTC
2022-06-24 15:42:30 +08:00
c9s
1587630b7b
service: pull out record to a var
2022-06-24 15:27:51 +08:00
c9s
3ad1f0e351
show trade ID in the console
2022-06-24 15:19:12 +08:00
c9s
7b60e34821
revert time range check change, it's the same lol
2022-06-23 17:59:46 +08:00
c9s
a78119b9ca
fix time range checking
2022-06-23 17:51:45 +08:00
c9s
4556e501da
batch: fix time range checking
2022-06-23 17:49:28 +08:00
c9s
8c1198de83
service: use created_at field to sort the orders
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-23 01:35:16 +08:00
c9s
2c96d079b8
skeleton: fix log WithField comment
2022-06-22 23:32:31 +08:00
c9s
2c5b553d21
skeleton: add notation
2022-06-22 23:29:29 +08:00
c9s
2550528f60
skeleton: add notification sample
2022-06-22 23:28:49 +08:00
c9s
dcbeace40e
skeleton: update more comments
2022-06-22 23:24:11 +08:00
c9s
b9cbb9d478
skeleton: add detailed comment to the skeleton
2022-06-22 23:18:11 +08:00
Yo-An Lin
7398afbde7
Merge pull request #758 from c9s/improve/pnl-cmd
...
improve: add pnl cmd options and fix trade query
2022-06-22 18:38:02 +08:00
Yo-An Lin
d1abfcf80b
Merge pull request #757 from iamken1204/improve/totp-user
...
totp-user: add default user 'bbgo'
2022-06-22 18:35:12 +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
kettan
a0a96abeec
totp-user: add default user 'bbgo'
...
There's no env in alpine image, causes the program throw error 'No USER or USERNAME' in containers.
* Create and assign env in bbgo image
* Fallback to use the default user 'bbgo' when env or was unassigned
2022-06-22 16:45:23 +08:00
c9s
3150480db8
bollmaker: remove stopC
2022-06-22 16:30:29 +08:00
c9s
c26d0d7824
bollmaker: clean up commment
2022-06-22 16:20:59 +08:00
c9s
fa26d5260f
bollmaker: use bbgo.IsBackTesting
2022-06-22 16:18:50 +08:00
c9s
60d2ac1616
ewoDgtrd: clean up embedded struct
2022-06-22 15:37:02 +08:00
c9s
027f1f01cf
improve callID fallback for persistence
2022-06-22 15:19:30 +08:00
c9s
5d72ffaa0f
rsmaker: remove embedded bbgo.Persistence
2022-06-22 13:52:40 +08:00
c9s
51a2f14af7
rsmaker: remove unused vars
2022-06-22 13:52:18 +08:00
c9s
bae685d63d
rsmaker: refactor ClosePosition method
2022-06-22 13:51:36 +08:00
c9s
09d0a9bbc7
pivotshort: clean up ClosePosition method
2022-06-22 13:46:04 +08:00
c9s
dbc6d4fb44
bollmaker: refactor ClosePosition method
2022-06-22 13:46:04 +08:00
c9s
b3160815ff
dca: use order executor to close position
2022-06-22 13:46:04 +08:00
c9s
929ffc3e5e
dca: clean up
2022-06-22 13:46:04 +08:00
c9s
a5cb8355d4
dca: rewrite dca with the new order executor
2022-06-22 13:46:04 +08:00
c9s
5fe0f5a299
pull out bollinger settings
2022-06-22 13:46:04 +08:00
c9s
b75da154a8
rsmaker: remove legacy state struct
2022-06-22 13:46:04 +08:00
c9s
16eeeb852c
rsmaker: drop the legacy persistence state
2022-06-22 13:46:04 +08:00
c9s
3e5d252c10
rsmaker: clean up and remove unused code
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-22 13:46:04 +08:00
c9s
2cd44b194a
pivotshort: remove persistence from pivotshort
2022-06-22 13:46:04 +08:00
c9s
46691d5ae1
strategy/xbalance: update xbalance persistence usage
2022-06-22 13:46:04 +08:00
c9s
3112b40634
support: remove unused const
2022-06-22 13:46:03 +08:00
c9s
6ef54bf2fb
call bbgo.Sync to sync persistence
2022-06-22 13:46:03 +08:00
c9s
7c9ad535fd
bbgo: call global persistence facade to sync data
2022-06-21 14:32:43 +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
Andy Cheng
edfdb5b888
optimizer: add max num of thread in config
2022-06-21 11:51:20 +08:00
c9s
9f2b810fd3
reformat go code
2022-06-21 01:25:47 +08:00
Yo-An Lin
d53176acdf
Merge pull request #746 from andycheng123/improve/pivotshort-control
...
pivotshort: add strategy controller
2022-06-21 01:24:47 +08:00
Yo-An Lin
223b3dd95f
Merge pull request #747 from andycheng123/improve/supertrend-strategy
...
strategy/supertrend: use new order executor api
2022-06-21 01:23:53 +08:00
c9s
19d8013f49
bbgo: optimize order cancel for back-testing
2022-06-21 01:12:16 +08:00
c9s
58c819bd75
bbgo: pull out PersistenceServiceFacade to singleton
2022-06-21 01:05:13 +08:00
Yo-An Lin
0e877b789e
Merge pull request #748 from andycheng123/improve/bollmaker
...
bollmaker: remove redundant code for adapting new order executor api
2022-06-21 00:26:41 +08:00
Yo-An Lin
74e8540550
Merge pull request #749 from c9s/improve/optimizer-local-proc
...
improve: add parallel local process executor for optimizer
2022-06-20 21:47:06 +08:00
austin362667
2f18ea230a
rsmaker: refactor active OB
2022-06-20 17:23:13 +08:00
austin362667
c227272542
rsmaker: add bulit-in strategy
...
rsmaker: clean up
2022-06-20 17:23:13 +08:00
c9s
6afe2de9f7
optimizer: add parallel local process worker support for optimizer
2022-06-20 17:18:05 +08:00
c9s
626934a059
move out label copy and params copy to the outside of the loop
2022-06-20 15:27:01 +08:00
c9s
9be38e2421
optimizer: support multi metric value functions
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-20 14:52:40 +08:00
Andy Cheng
cc7b8c83ed
bollmaker: remove redundant code for adapting new order executor api
2022-06-20 13:47:17 +08:00
Andy Cheng
aa9296e8d5
strategy/supertrend: use new order executor api
2022-06-20 13:39:07 +08:00
c9s
6669db4264
optimizer: refactor Execute method
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-20 11:54:55 +08:00
Andy Cheng
24844052d2
pivotshort: add strategy controller
2022-06-20 11:39:18 +08:00
c9s
dd087b287d
optimizer: refactor LocalProcessExecutor and pull out config test
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-20 11:20:26 +08:00
c9s
3a072181bc
optimizer: close config file handle
2022-06-20 11:07:48 +08:00
c9s
d1b8710102
add export symbol comment
2022-06-20 10:21:42 +08:00
c9s
ee89a1c382
depth: do not test depth buffer when race is on
2022-06-20 02:49:07 +08:00
c9s
2a1beddba4
support: fix support strategy stop order update
2022-06-19 17:49:38 +08:00
c9s
6e562e2ede
increase batch insert size to 1000 for klines
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-19 17:41:52 +08:00
c9s
bf0186cf55
fix batch buffer size check
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-19 17:36:28 +08:00
c9s
f035667f37
support: refactor trailing stop order management
2022-06-19 17:23:10 +08:00
c9s
b6d1b4309b
refactor and update the support strategy
2022-06-19 15:57:59 +08:00
c9s
cb9ce753e2
strategy/bollmaker: refactor and clean up
2022-06-19 13:40:10 +08:00
c9s
156219456b
all: clean up bbgo.Notifiability
2022-06-19 13:05:02 +08:00
c9s
88a63df186
all: clean up notifiability usage
2022-06-19 13:01:22 +08:00
c9s
eacd1f1ae6
all: rewrite notification api
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-19 12:29:36 +08:00
c9s
88e83c944c
pivotshort: clean up log
2022-06-19 11:21:07 +08:00
c9s
c80fe1af33
pivotshort: call BindTradeStats
2022-06-18 16:32:53 +08:00
c9s
6cae9e7449
move GeneralOrderExecutor into bbgo package
2022-06-18 16:31:53 +08:00
c9s
d367186f3e
pivotshort: clean up and pull out order executor
2022-06-18 15:27:11 +08:00
c9s
47e76a9eb5
pivotshort: refactor and redesign order executor
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-18 12:30:42 +08:00
c9s
0326c34013
pivotshort: pull out GeneralOrderExecutor
2022-06-18 11:45:24 +08:00
c9s
807a3e125c
pivotshort: split trade collector callbacks
2022-06-18 10:54:06 +08:00
c9s
687be4aa7c
fix Withdraw stringer format
2022-06-18 03:33:53 +08:00
Yo-An Lin
ed19d0395f
Merge pull request #738 from c9s/feature/binance-rebate-history
...
feature: binance: add binance spot rebate history support
2022-06-18 03:07:31 +08:00
Yo-An Lin
24fc5c2baf
Merge pull request #736 from zenixls2/feature/lint_fmt_check
...
fix: gosimple alert
2022-06-18 02:48:47 +08:00
c9s
2fb36f4a9f
binance: add binance spot rebate history support
2022-06-18 02:47:15 +08:00
c9s
8038b7a1c7
service: drop unused queryLast method
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-18 02:28:40 +08:00
c9s
d2d6b84079
service: add reward stringer support
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-18 02:27:38 +08:00
c9s
d6f2f4046a
max: add limit to the closed order query
2022-06-18 01:57:34 +08:00
c9s
ee1ba417cd
rewrite reward sync
2022-06-18 01:42:33 +08:00
c9s
ac404b20a5
make default sync simple
2022-06-18 01:42:24 +08:00
zenix
a5ffca7fe8
fix: gosimple alert
2022-06-17 20:19:51 +09:00
zenix
0c7a98cc4b
fix: race condition in buffer
2022-06-17 19:26:14 +09:00
zenix
ba1342cbc3
feature: add pre-commit
2022-06-17 16:07:00 +09:00
zenix
55fa4cc8f1
fix: apply gofmt on all files, add revive action
2022-06-17 16:06:59 +09:00
c9s
fc9d5f72be
bump version to v1.35.0
2022-06-17 14:01:14 +08:00
c9s
daaa3352d7
compile and update migration package
2022-06-17 14:00:36 +08:00
c9s
aedd3e79d5
maxapi: drop unused mustParseURL
2022-06-17 12:52:22 +08:00
c9s
ce63723ff0
maxapi: drop unused functions
2022-06-17 12:52:06 +08:00
Zenix
d33b12ae81
Merge pull request #721 from zenixls2/feature/heikinashi_session
...
feature: add heikinashi support
2022-06-17 12:24:02 +09:00
zenix
aa8d188d15
fix: rename useHeikinAshi to heikinAshi in config
2022-06-17 11:38:36 +09:00
Andy Cheng
5c8cc397f9
Merge pull request #720 from andycheng123/fix/supertrend
...
fix: fix strategy supertrend
2022-06-17 10:26:09 +08:00
Andy Cheng
55f36b2f3e
supertrend: add comment to make the condition clearer
2022-06-17 10:15:54 +08:00
zenix
f5007752b2
feature: add heikinashi support
2022-06-17 10:58:32 +09:00
Yo-An Lin
7225a597f2
Merge pull request #728 from zenixls2/feature/dmi
...
feature: add dmi indicator
2022-06-17 01:13:53 +08:00
zenix
126974cd79
feature: dmi add test, fix: rma with Adjust setting (follow the implementation of pandas.DataFrame.ewm)
2022-06-16 19:55:14 +09:00
zenix
0a4379eec9
feature: add dmi indicator
2022-06-16 19:26:16 +09:00
Andy Cheng
f6770df50f
supertrend: log with symbol
2022-06-16 17:14:50 +08:00
なるみ
50fbf0727e
types: move valuemap and floatmap to types
2022-06-16 16:44:27 +08:00
なるみ
5799497a09
marketp: add marketcap strategy
2022-06-16 16:44:02 +08:00
c9s
500dc64ed4
maxapi: drop unused v2 order api
2022-06-16 16:05:21 +08:00
c9s
0aa606ebcb
maxapi: drop unused v2 api
2022-06-16 16:03:12 +08:00
Yo-An Lin
f9a18e04c2
Merge pull request #729 from c9s/improve/maxapi
...
refactor: re-arrange maxapi files
2022-06-16 15:41:59 +08:00
c9s
4af722e0e0
bump version to v1.34.0
2022-06-16 15:33:36 +08:00
c9s
4b14e7f7e5
refactor maxapi files
2022-06-16 15:22:36 +08:00
Zenix
b691572c0b
Merge pull request #723 from zenixls2/feature/ssf
...
feature: add Ehler's Super smoother filter
2022-06-16 13:09:18 +09:00
zenix
0377ecd42d
fix: ssf less indent
2022-06-16 13:02:00 +09:00
なるみ
8d9faff859
rebalance: validate symbols
2022-06-16 10:44:13 +08:00
なるみ
3d0ad010eb
rebalance: replace Float64Slice by ValueMap
2022-06-16 10:44:13 +08:00
なるみ
0a602bc259
rebalance: add ValueMap
2022-06-16 10:44:13 +08:00
Yo-An Lin
fc340c2286
Merge pull request #725 from narumiruna/rebalance/activeorderbook
...
rebalance: simplify code
2022-06-16 07:34:18 +08:00
Yo-An Lin
4ef10d1dc4
Merge pull request #713 from andycheng123/improve/share-kline
...
improve: share klines tsv
2022-06-16 07:33:43 +08:00
なるみ
ad98cf883c
rebalance: remove unused subscriptions
2022-06-16 01:33:28 +08:00
なるみ
21a793e16b
rebalance: rename variable
2022-06-16 01:33:28 +08:00
なるみ
87adf694b1
rebalance: manage active order book without specifying symbol
2022-06-16 01:33:28 +08:00
なるみ
a4814951d4
rebalance: remove ignoreLock and simplify code
2022-06-16 01:33:28 +08:00
なるみ
f19e1fdf87
rebalance: rename methods
2022-06-16 00:22:19 +08:00
zenix
f4c4d631f8
feature: add Ehler's Super smoother filter
2022-06-15 20:09:33 +09:00
ankion
b82476428d
fix futures mode not use futures kline data.
2022-06-15 16:00:30 +08:00
Yo-An Lin
694c226bc0
Merge pull request #719 from andycheng123/improve/optimizer
...
optimizer: bool type parameter
2022-06-15 15:45:39 +08:00
c9s
22d5b6e142
move max api files
2022-06-15 14:55:43 +08:00
YC
84a00a8249
Merge pull request #718 from c9s/yc/fix/syncing
...
fix: sync api guard condition
2022-06-15 14:33:24 +08:00
Andy Cheng
ae935971f4
indicator: fix wrong supertrend signal due to atr window not satisfied yet
2022-06-15 12:23:41 +08:00
Andy Cheng
91e4003520
strategy: prevent supertrend from open extra position
2022-06-15 12:22:26 +08:00
Andy Cheng
d967525a10
optimizer: bool type parameter
2022-06-15 12:16:18 +08:00
ycdesu
bee85f7973
fix: sync api guard condition
2022-06-15 11:44:39 +08:00
Zenix
92b21e8fe6
Merge pull request #707 from zenixls2/feature/alma
...
feature: add basic implementation of alma indicator
2022-06-15 09:00:42 +09:00
c9s
5aa2f8a681
xmaker: skip quoting if bb value is zero
2022-06-15 01:18:46 +08:00
c9s
5210b97a23
xmaker: update klines to boll indicator
2022-06-15 01:17:41 +08:00
c9s
b47d103cf8
xmaker: pull out band value to fixedpoint
2022-06-15 01:13:54 +08:00
zenix
f2c5ef296a
feature: alma indicator add test
2022-06-14 17:51:06 +09:00
zenix
686d1dcaac
feature: add basic implementation of alma indicator
2022-06-14 16:56:37 +09:00
Yo-An Lin
e261d2c270
Merge pull request #714 from c9s/improve/sync-symbol-opt
...
improve: support specifying session in the sync symbol
2022-06-14 14:34:23 +08:00
zenix
bf6726a529
fix: output color output to stderr
2022-06-14 14:41:41 +09:00
zenix
28d01486ee
clean: clean code, add comments, add more report on exit
2022-06-14 14:41:41 +09:00
zenix
0ff3d94919
refactor: ewo choose ma
2022-06-14 14:41:41 +09:00
zenix
b5b1719045
feature: filter signal by ewo histogram and 3*atr entry
2022-06-14 14:41:41 +09:00
c9s
e7fc12aca7
update symbols doc
2022-06-14 13:32:13 +08:00