Commit Graph

7674 Commits

Author SHA1 Message Date
c9s
57f4d56ec5 save market object in the trading context 2020-06-18 19:00:03 +08:00
c9s
965ab59580 move exchange and order struct to the bbgo package 2020-06-18 18:56:54 +08:00
c9s
e62f1f2479 add abstract exchange interface 2020-06-18 18:54:14 +08:00
c9s
ed00243734 load recent klines 2020-06-18 08:08:47 +08:00
c9s
7b099b2ede fix kline window get low 2020-06-17 21:57:36 +08:00
c9s
cf7760e72a refactor 1m rule with detector pattern 2020-06-17 13:57:51 +08:00
c9s
ad41c14521 update trade kline red color code 2020-06-16 17:09:14 +08:00
c9s
1102fd0a1e rename Symbol field to Market 2020-06-16 16:55:42 +08:00
c9s
88c7049a99 add reportTrade method 2020-06-16 16:47:15 +08:00
c9s
f4bf79d842 fix color 2020-06-16 15:32:22 +08:00
c9s
d28bec2a05 add kline color and submitMarketOrder method 2020-06-16 15:14:23 +08:00
c9s
884a9730f1 refactor kline attachment 2020-06-16 14:22:02 +08:00
c9s
0153670f78 refactor rule and upper shaodw checker 2020-06-16 14:13:53 +08:00
c9s
fded619772 implement GetUpperShadowHeight and GetLowerShadowHeight 2020-06-16 13:44:50 +08:00
c9s
c089e9a1b5 add 1m kline window protection 2020-06-10 13:53:31 +08:00
c9s
35bb5bda06 ignore selling trades from the beginning 2020-06-10 10:26:14 +08:00
c9s
062fe55b43 add thickness condition in bounce check 2020-06-10 09:51:53 +08:00
c9s
1ca616fb43 fix bounce calculation 2020-06-10 09:44:44 +08:00
c9s
fce3beccd0 refactor pnl updater 2020-06-09 23:27:46 +08:00
c9s
825cefd76d refactor and fix many issues 2020-06-09 22:48:56 +08:00
c9s
71098c9f8b fix: use math.Abs to calculate change 2020-06-09 19:33:44 +08:00
c9s
c30c4e9937 add min profit check 2020-06-09 14:13:02 +08:00
c9s
b191462096 add 1d kline 2020-06-09 13:45:47 +08:00
c9s
3fe812264f update 2020-06-09 10:38:20 +08:00