Commit Graph

15 Commits

Author SHA1 Message Date
c9s
a51f26e3a7
backtest: add gross profit and gross loss fields 2022-07-12 19:50:28 +08:00
c9s
8c6331073d
cmd: fix pnl cmd 2022-06-08 15:10:43 +08:00
c9s
5f68064ac6
pull out writeJsonFile function 2022-05-10 18:27:23 +08:00
c9s
54debaf979
remove stock field from report 2022-05-10 01:11:12 +08:00
zenix
05521a98b6 add skeleton strategy. fix most of the tests. fix final asset value 2022-02-15 12:01:39 +09:00
zenix
b8bf2af14d fixedpoint for exchange and indicators, some fixes in types 2022-02-15 12:01:38 +09:00
zenix
e221f54397 add dnum as the fixedpoint implementation. change types float64 to fixedpoint.Value
change pnl report to use fixedpoint

fix: migrate kline to use fixedpoint
2022-02-15 12:00:39 +09:00
c9s
af837ea237 do not omit empty for field feeInUSD 2021-12-06 13:36:38 +08:00
c9s
5d6bd5a964 not to omit empty all fields 2021-12-06 13:34:39 +08:00
c9s
1e151a170a add JSON method to the pnl report 2021-12-06 00:47:41 +08:00
c9s
0c6055a201 add json tag for AverageCostPnlReport 2021-12-06 00:46:50 +08:00
c9s
df683bdf56 use position to calculate the pnl 2021-12-05 02:17:15 +08:00
c9s
c40982164a fix trade slack formatting 2020-11-17 15:48:18 +08:00
c9s
770efeed4f pnl format improve 2020-11-10 14:18:27 +08:00
c9s
27b582e948 move report struct 2020-10-16 10:21:37 +08:00