모의투자 로직 변경
This commit is contained in:
+3
-2
@@ -58,6 +58,7 @@ public class BarCloseStrategyEvaluationService {
|
||||
long candleTimeEpoch = barEndEpoch - signalBar.getTimePeriod().getSeconds();
|
||||
|
||||
for (GcLiveStrategySettings s : activeSettings) {
|
||||
if (s.getUserId() == null) continue;
|
||||
if (!conditionTimeframes.usesTimeframe(s.getStrategyId(), ct)) continue;
|
||||
|
||||
String closeSignal = "NONE";
|
||||
@@ -82,9 +83,9 @@ public class BarCloseStrategyEvaluationService {
|
||||
market, s.getStrategyId(), null,
|
||||
closeSignal, signalBar.getClosePrice().doubleValue(),
|
||||
candleTimeEpoch, ct, signalExecType);
|
||||
if (s.getDeviceId() != null) {
|
||||
if (s.getUserId() != null) {
|
||||
orderExecutionQueue.submitSignal(
|
||||
s.getDeviceId(), s.getUserId(), market,
|
||||
s.getUserId(), market,
|
||||
s.getStrategyId(), closeSignal,
|
||||
signalBar.getClosePrice().doubleValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user