가상투자 화면 목록 선택 동작
This commit is contained in:
@@ -535,6 +535,7 @@ public class BacktestingService {
|
||||
case "1m" -> Duration.ofMinutes(1);
|
||||
case "3m" -> Duration.ofMinutes(3);
|
||||
case "5m" -> Duration.ofMinutes(5);
|
||||
case "10m" -> Duration.ofMinutes(10);
|
||||
case "15m" -> Duration.ofMinutes(15);
|
||||
case "30m" -> Duration.ofMinutes(30);
|
||||
case "1h" -> Duration.ofHours(1);
|
||||
|
||||
@@ -163,6 +163,7 @@ public class IndicatorService {
|
||||
case "1m" -> Duration.ofMinutes(1);
|
||||
case "3m" -> Duration.ofMinutes(3);
|
||||
case "5m" -> Duration.ofMinutes(5);
|
||||
case "10m" -> Duration.ofMinutes(10);
|
||||
case "15m" -> Duration.ofMinutes(15);
|
||||
case "30m" -> Duration.ofMinutes(30);
|
||||
case "1h" -> Duration.ofHours(1);
|
||||
|
||||
@@ -66,7 +66,7 @@ public class LiveStrategyTimeframeService {
|
||||
|
||||
private static String mapChartTfToCandleType(String chartTf) {
|
||||
return switch (chartTf) {
|
||||
case "1m", "3m", "5m", "15m", "30m" -> chartTf;
|
||||
case "1m", "3m", "5m", "10m", "15m", "30m" -> chartTf;
|
||||
case "1h", "4h" -> chartTf;
|
||||
case "1D" -> "1d";
|
||||
case "1W", "1M" -> "1d";
|
||||
|
||||
Reference in New Issue
Block a user