| | |
| | | */ |
| | | public void onKline(BigDecimal closePrice) { |
| | | |
| | | log.info("当前价:{}", closePrice); |
| | | // log.info("当前价:{}", closePrice); |
| | | |
| | | lastKlinePrice = closePrice; |
| | | |
| | |
| | | // times {满仓%, 阈值%} |
| | | put(1, new int[]{0, 0}); |
| | | put(2, new int[]{0, 0}); |
| | | put(3, new int[]{30, 0}); |
| | | put(3, new int[]{15, 0}); |
| | | put(4, new int[]{0, 0}); |
| | | put(5, new int[]{0, 0}); |
| | | put(6, new int[]{40, 40}); |
| | | put(6, new int[]{30, 40}); |
| | | put(7, new int[]{0, 0}); |
| | | put(8, new int[]{0, 0}); |
| | | put(9, new int[]{50, 50}); |
| | | put(9, new int[]{40, 50}); |
| | | put(10, new int[]{0, 0}); |
| | | put(11, new int[]{0, 0}); |
| | | put(12, new int[]{55, 60}); |
| | | put(12, new int[]{50, 60}); |
| | | put(13, new int[]{0, 0}); |
| | | put(14, new int[]{0, 0}); |
| | | put(15, new int[]{60, 60}); |