Wrote /root/JavaX-Caches/tmp_1120920766/main.java - 4081 bytes (written=4081, should be 4081) 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_1277759564 /root/JavaX-Caches/tmp_1120920766/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_1120920766/main.java:1: error: class, interface, or enum expected replace real with double. ^ /root/JavaX-Caches/tmp_1120920766/main.java:14: error: class, interface, or enum expected Real currently() { ret lookback(0); } ^ /root/JavaX-Caches/tmp_1120920766/main.java:17: error: class, interface, or enum expected ret index >= 0 ? data[index] : null; ^ /root/JavaX-Caches/tmp_1120920766/main.java:18: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:23: error: class, interface, or enum expected if (time >= l(data)) fail("Can't handle more than 2 billion ticker entries"); ^ /root/JavaX-Caches/tmp_1120920766/main.java:24: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:26: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:32: error: class, interface, or enum expected if (currently == null) ret 0; ^ /root/JavaX-Caches/tmp_1120920766/main.java:33: error: class, interface, or enum expected Real before = ticker.lookback(time); ^ /root/JavaX-Caches/tmp_1120920766/main.java:34: error: class, interface, or enum expected if (before == null) ret 0; ^ /root/JavaX-Caches/tmp_1120920766/main.java:35: error: class, interface, or enum expected real move = currently-before; ^ /root/JavaX-Caches/tmp_1120920766/main.java:36: error: class, interface, or enum expected if (abs(move) >= minMove) ret (real) sign(move); ^ /root/JavaX-Caches/tmp_1120920766/main.java:37: error: class, interface, or enum expected ret 0; ^ /root/JavaX-Caches/tmp_1120920766/main.java:38: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:41: error: class, interface, or enum expected real ticker(real time) { ret ticker(iceil(time)); } ^ /root/JavaX-Caches/tmp_1120920766/main.java:43: error: class, interface, or enum expected real openingPrice(Position p) { ret ticker(p.openingTime); } ^ /root/JavaX-Caches/tmp_1120920766/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:52: error: class, interface, or enum expected real openingPrice = ticker(time); ^ /root/JavaX-Caches/tmp_1120920766/main.java:53: error: class, interface, or enum expected real crest = -infinity(); ^ /root/JavaX-Caches/tmp_1120920766/main.java:54: error: class, interface, or enum expected while (time < ticker.length-1) { ^ /root/JavaX-Caches/tmp_1120920766/main.java:56: error: class, interface, or enum expected crest = max(crest, profit); ^ /root/JavaX-Caches/tmp_1120920766/main.java:57: error: class, interface, or enum expected if (profit < (profit < 0 ? -j.lossTolerance : crest-j.pullback)) break; ^ /root/JavaX-Caches/tmp_1120920766/main.java:58: error: class, interface, or enum expected ++time; ^ /root/JavaX-Caches/tmp_1120920766/main.java:59: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:61: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:65: error: class, interface, or enum expected ret closingTime == null ? null : profit(p, closingTime, m); ^ /root/JavaX-Caches/tmp_1120920766/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:74: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:81: error: not a statement if (done) false; ^ /root/JavaX-Caches/tmp_1120920766/main.java:88: error: not a statement ret !done; ^ /root/JavaX-Caches/tmp_1120920766/main.java:88: error: ';' expected ret !done; ^ /root/JavaX-Caches/tmp_1120920766/main.java:88: error: not a statement ret !done; ^ /root/JavaX-Caches/tmp_1120920766/main.java:101: error: records are not supported in -source 11 record noeq Backtest(Eye eye, Juicer j, Market m) extends Convergent { ^ (use -source 16 or higher to enable records) /root/JavaX-Caches/tmp_1120920766/main.java:103: error: class, interface, or enum expected new Average profitPerPosition; ^ /root/JavaX-Caches/tmp_1120920766/main.java:105: error: class, interface, or enum expected new Average positionsOpenedPercentage; ^ /root/JavaX-Caches/tmp_1120920766/main.java:108: error: class, interface, or enum expected new Average positionsClosedInTimePercentage; ^ /root/JavaX-Caches/tmp_1120920766/main.java:110: error: class, interface, or enum expected void step { ^ /root/JavaX-Caches/tmp_1120920766/main.java:114: error: class, interface, or enum expected int openingTime = openingTimes.next(); ^ /root/JavaX-Caches/tmp_1120920766/main.java:116: error: class, interface, or enum expected Real profit; ^ /root/JavaX-Caches/tmp_1120920766/main.java:117: error: class, interface, or enum expected if (eye == null) ^ /root/JavaX-Caches/tmp_1120920766/main.java:119: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_1120920766/main.java:121: error: class, interface, or enum expected positionsOpenedPercentage.addSample(direction != 0 ? 100 : 0); ^ /root/JavaX-Caches/tmp_1120920766/main.java:122: error: class, interface, or enum expected if (direction == 0) ^ /root/JavaX-Caches/tmp_1120920766/main.java:124: error: class, interface, or enum expected Position position = new Position(openingTime, direction); ^ /root/JavaX-Caches/tmp_1120920766/main.java:125: error: class, interface, or enum expected profit = profit(position, j, m); ^ /root/JavaX-Caches/tmp_1120920766/main.java:126: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1120920766/main.java:129: error: class, interface, or enum expected if (profit != null) ^ /root/JavaX-Caches/tmp_1120920766/main.java:131: error: class, interface, or enum expected value = profitPerPosition!; ^ /root/JavaX-Caches/tmp_1120920766/main.java:132: error: class, interface, or enum expected } ^ 49 errors