Wrote /root/JavaX-Caches/tmp_479958364/main.java - 5250 bytes (written=5250, should be 5250)
javac=0, ecj=1, useJarBot=0
Checking ECJ at port 4898 at 127.0.0.1
/root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_958952467 /root/JavaX-Caches/tmp_479958364/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_479958364/main.java:1: error: class, interface, or enum expected
set flag Reparse.
^
/root/JavaX-Caches/tmp_479958364/main.java:16: error: class, interface, or enum expected
settable real profit;
^
/root/JavaX-Caches/tmp_479958364/main.java:18: error: class, interface, or enum expected
MPM2 mpm() { ret MPM2.this; }
^
/root/JavaX-Caches/tmp_479958364/main.java:18: error: class, interface, or enum expected
MPM2 mpm() { ret MPM2.this; }
^
/root/JavaX-Caches/tmp_479958364/main.java:20: error: class, interface, or enum expected
real openingPrice() { ret MPM2.this.ticker(p.openingTime); }
^
/root/JavaX-Caches/tmp_479958364/main.java:21: error: class, interface, or enum expected
real closingPrice() { ret MPM2.this.ticker(closingTime); }
^
/root/JavaX-Caches/tmp_479958364/main.java:26: error: class, interface, or enum expected
abstract sclass Eye {
^
/root/JavaX-Caches/tmp_479958364/main.java:27: error: class, interface, or enum expected
abstract real adviseDirection(Ticker ticker);
^
/root/JavaX-Caches/tmp_479958364/main.java:28: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:32: error: class, interface, or enum expected
real currentPrice() { ret data[length-1]; }
^
/root/JavaX-Caches/tmp_479958364/main.java:36: error: class, interface, or enum expected
ret index >= 0 ? (real) data[index] : null;
^
/root/JavaX-Caches/tmp_479958364/main.java:37: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:43: error: class, interface, or enum expected
timestamps = addToArrayWithDoublingStrategy(timestamps, length, timestamp);
^
/root/JavaX-Caches/tmp_479958364/main.java:44: error: class, interface, or enum expected
length++;
^
/root/JavaX-Caches/tmp_479958364/main.java:45: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:48: error: class, interface, or enum expected
Ticker ticker() { ret new Ticker(ticker, timestamps, l(timestamps), last(timestamps)); }
^
/root/JavaX-Caches/tmp_479958364/main.java:53: error: class, interface, or enum expected
if (currentPrice == null) ret 0;
^
/root/JavaX-Caches/tmp_479958364/main.java:54: error: class, interface, or enum expected
Real before = ticker.lookback(time);
^
/root/JavaX-Caches/tmp_479958364/main.java:55: error: class, interface, or enum expected
if (before == null) ret 0;
^
/root/JavaX-Caches/tmp_479958364/main.java:56: error: class, interface, or enum expected
real move = currentPrice/before*100-100;
^
/root/JavaX-Caches/tmp_479958364/main.java:57: error: class, interface, or enum expected
if (abs(move) >= minMove) ret (real) sign(move);
^
/root/JavaX-Caches/tmp_479958364/main.java:58: error: class, interface, or enum expected
ret 0;
^
/root/JavaX-Caches/tmp_479958364/main.java:59: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:62: error: class, interface, or enum expected
real ticker(real time) { ret ticker[iceil(time)]; }
^
/root/JavaX-Caches/tmp_479958364/main.java:64: error: class, interface, or enum expected
real openingPrice(Position p) { ret ticker(p.openingTime); }
^
/root/JavaX-Caches/tmp_479958364/main.java:69: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:73: error: class, interface, or enum expected
real openingPrice = ticker(time);
^
/root/JavaX-Caches/tmp_479958364/main.java:74: error: class, interface, or enum expected
real crest = -infinity();
^
/root/JavaX-Caches/tmp_479958364/main.java:75: error: class, interface, or enum expected
while (time < ticker.length-1) {
^
/root/JavaX-Caches/tmp_479958364/main.java:77: error: class, interface, or enum expected
crest = max(crest, profit);
^
/root/JavaX-Caches/tmp_479958364/main.java:78: error: class, interface, or enum expected
if (profit < (profit < 0 ? -j.lossTolerance : crest-j.pullback))
^
/root/JavaX-Caches/tmp_479958364/main.java:80: error: class, interface, or enum expected
++time;
^
/root/JavaX-Caches/tmp_479958364/main.java:81: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:83: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:87: error: class, interface, or enum expected
ret closingTime == null ? null : profit(p, closingTime, m);
^
/root/JavaX-Caches/tmp_479958364/main.java:88: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:96: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:102: error: class, interface, or enum expected
new Average profitPerPosition;
^
/root/JavaX-Caches/tmp_479958364/main.java:104: error: class, interface, or enum expected
new Average positionsOpenedPercentage;
^
/root/JavaX-Caches/tmp_479958364/main.java:107: error: class, interface, or enum expected
new Average positionsClosedPercentage;
^
/root/JavaX-Caches/tmp_479958364/main.java:109: error: class, interface, or enum expected
new L closedPositions;
^
/root/JavaX-Caches/tmp_479958364/main.java:111: error: class, interface, or enum expected
*(Juicer *j, Market *m) {}
^
/root/JavaX-Caches/tmp_479958364/main.java:118: error: class, interface, or enum expected
int openingTime = openingTimes.next();
^
/root/JavaX-Caches/tmp_479958364/main.java:120: error: class, interface, or enum expected
Real profit = null;
^
/root/JavaX-Caches/tmp_479958364/main.java:121: error: class, interface, or enum expected
ClosedPosition closedPosition = null;
^
/root/JavaX-Caches/tmp_479958364/main.java:123: error: class, interface, or enum expected
if (eye == null) // Test only juicer
^
/root/JavaX-Caches/tmp_479958364/main.java:125: error: class, interface, or enum expected
else {
^
/root/JavaX-Caches/tmp_479958364/main.java:128: error: class, interface, or enum expected
positionsOpenedPercentage.addSample(direction != 0 ? 100 : 0);
^
/root/JavaX-Caches/tmp_479958364/main.java:129: error: class, interface, or enum expected
if (direction != 0) {
^
/root/JavaX-Caches/tmp_479958364/main.java:131: error: class, interface, or enum expected
Real closingTime = closingTime(position, j, m);
^
/root/JavaX-Caches/tmp_479958364/main.java:132: error: class, interface, or enum expected
if (closingTime != null) {
^
/root/JavaX-Caches/tmp_479958364/main.java:134: error: class, interface, or enum expected
closedPosition = new ClosedPosition(position, closingTime).ticker(ticker()).profit(profit);
^
/root/JavaX-Caches/tmp_479958364/main.java:135: error: class, interface, or enum expected
closedPositions.add(closedPosition);
^
/root/JavaX-Caches/tmp_479958364/main.java:136: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_479958364/main.java:141: error: class, interface, or enum expected
if (profit != null) {
^
/root/JavaX-Caches/tmp_479958364/main.java:144: error: class, interface, or enum expected
} else // Profit for unclosed positions = 0
^
/root/JavaX-Caches/tmp_479958364/main.java:146: error: class, interface, or enum expected
value = profitPerPosition!;
^
/root/JavaX-Caches/tmp_479958364/main.java:147: error: class, interface, or enum expected
}
^
58 errors