c9s
b32cfef2fd
backtest: set order price for market order
2022-06-28 23:47:34 +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
10d5a8a4f2
backtest: fix stop limit order matching
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-27 19:48:14 +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
zenix
a5ffca7fe8
fix: gosimple alert
2022-06-17 20:19:51 +09:00
zenix
55fa4cc8f1
fix: apply gofmt on all files, add revive action
2022-06-17 16:06:59 +09:00
c9s
69fc6ca252
backtest: add fee token support
2022-06-12 03:55:02 +08:00
c9s
2e8f9c3ad8
backtest: fix fee calculation
2022-06-12 03:45:47 +08:00
c9s
1d8cd2d604
improve kline matching error
2022-06-09 12:34:22 +08:00
c9s
7f07852086
fix filled market order update event duplicated trigger
2022-06-07 20:27:11 +08:00
c9s
cb4c879942
backtest: copy the order object for updating status
2022-06-06 06:24:25 +08:00
zenix
c6bad0ba08
fix: tv chart, price direction in backtest
2022-05-25 01:48:14 +09:00
zenix
99122f44bc
fix: backtest kline prev close -> new open, pass exchange as pointer (for Mutex passing), ewo add filter ma34
2022-05-24 23:05:01 +09:00
c9s
18fc68f6c6
backtest: fix order update_time update in the matching engine
...
fixes : #631
2022-05-22 02:40:26 +08:00
c9s
f06ec76618
backtest: check quoteQuantity only when price is given
2022-05-22 01:19:43 +08:00
c9s
4e4912ebdc
backtest: update order update time when new trade happen
2022-05-11 15:04:11 +08:00
zenix
2a942eab0e
fix: rename EVWMP to VWEMP, fix backtesting fee
2022-04-15 19:12:11 +09:00
ankion
ccb7fe39fa
backtest: fix order cancel fail when run order cancel on the filled event.
2022-03-16 15:01:19 +08:00
zenix
d9450e823e
fix all the fixedpoint use other than strategy
2022-02-15 12:01:39 +09:00
c9s
e595b9acb2
backtest: should panic if last price is zero
2022-01-30 02:41:00 +08:00
c9s
ec8129ab87
backtest: fix market order fee calculation
2022-01-30 02:00:30 +08:00
c9s
78855d552a
backtest: fix backtest trade for market order
2022-01-30 01:37:24 +08:00
c9s
2255f3ed0a
bollmaker: check dust order for stop
2022-01-29 17:44:42 +08:00
zenix
213ceeda82
fix : #431 for not updating lastPrice if no tade happened
2022-01-21 20:57:55 +09:00
c9s
cb189d885c
fix backtest for limit maker order and bollpp strategy
2022-01-08 02:18:44 +08:00
c9s
cfd68fdd1d
all: change trade id to uint64
2021-12-23 17:49:18 +08:00
TonyQ
3e45035ab1
database: sqlite3 issue fix
...
database: upgrade gosqllite3 version for increasing variable amount limit
types: update kline starttime/endtime field to prevent sqlite3
time parsing issue.
fix #215
2021-12-15 14:34:31 +08:00
c9s
4665ae0e31
remove unused error return value
2021-12-10 15:03:43 +08:00
c9s
634ce6180b
avoid using panic when order cancel failed
2021-12-06 13:32:08 +08:00
c9s
b301ea549a
adjust default rate to DefaultFeeRate 0.075%
2021-12-05 12:24:51 +08:00
c9s
44d7055809
fix backtest fee rate calculation
2021-12-05 12:10:45 +08:00
c9s
57a78777df
move Time type to types.Time
2021-05-21 00:10:53 +08:00
c9s
e636a5008d
replace Exchange field type with ExchangeName
2021-05-16 17:02:23 +08:00
ycdesu
c8447663db
refactor: use fixedpoint to store fee
2021-03-19 08:49:24 +08:00
ycdesu
83ae943a4f
ftx: calculate commission
2021-03-18 23:58:28 +08:00
c9s
c5eb6483a5
integrate QueryTicker for backtesting
2021-03-16 02:13:52 +08:00
c9s
26f9e5488d
apply datatype.Time to order time fields
2021-02-06 14:30:00 +08:00
c9s
3abdb3dd7b
convert time struct for sqlite driver
2021-02-06 12:32:21 +08:00
c9s
936650d879
rename kline trend to direction
2020-12-04 10:18:51 +08:00
c9s
04f6da3cb8
add traditional grid strategy
2020-11-10 19:06:20 +08:00
c9s
69a33b6400
fix and improve backtest
2020-11-10 14:18:04 +08:00
c9s
e7cc79f3cf
replace errors.Errorf with fmt.Errorf
2020-11-09 16:34:35 +08:00
c9s
ded89e099f
refactor simple price matching
2020-11-09 03:17:02 +08:00
c9s
5cc9506960
simplify executeTrade method since we should not use over locked funds
2020-11-09 03:09:12 +08:00
c9s
443f2c6891
document fee rate for BNB holders
2020-11-09 03:01:40 +08:00
c9s
377f4cae34
add account balance lock and unlock for testing maker strategies
2020-11-09 02:58:46 +08:00
c9s
f69c87b3a8
fix fee calculation and add account balance checking
2020-11-08 21:52:44 +08:00