| | |
| | | List<BigDecimal> low = kline15MinuteData.stream() |
| | | .map(Kline::getL) |
| | | .collect(Collectors.toList()); |
| | | List<BigDecimal> close = kline15MinuteData.stream() |
| | | .map(Kline::getC) |
| | | .collect(Collectors.toList()); |
| | | List<BigDecimal> close = prices; |
| | | |
| | | // 生成成交量数据 |
| | | List<BigDecimal> volume = kline15MinuteData.stream() |
| | |
| | | // 确定市场方向 |
| | | TradingStrategy.Direction direction = tradingStrategy.getDirection(prices, high, low, close, currentPrice); |
| | | System.out.println("市场方向(15分钟): " + direction); |
| | | if (direction == TradingStrategy.Direction.RANGING){ |
| | | return; |
| | | } |
| | | // if (direction == TradingStrategy.Direction.RANGING){ |
| | | // return; |
| | | // } |
| | | |
| | | /** |
| | | * 获取当前网格信息 |