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

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

/root/JavaX-Caches/tmp_1730133591/main.java:1: error: class, interface, or enum expected concept Chaser extends G22TradingStrategy { ^ /root/JavaX-Caches/tmp_1730133591/main.java:8: error: class, interface, or enum expected settable double maxLoss = 0.6; ^ /root/JavaX-Caches/tmp_1730133591/main.java:11: error: class, interface, or enum expected settable double pullback = 0.4; ^ /root/JavaX-Caches/tmp_1730133591/main.java:14: error: class, interface, or enum expected settable double relativePullback; // e.g. 20 ^ /root/JavaX-Caches/tmp_1730133591/main.java:15: error: class, interface, or enum expected settable double minPullback; // e.g. 0.1 ^ /root/JavaX-Caches/tmp_1730133591/main.java:16: error: class, interface, or enum expected settable double maxPullback; // e.g. 4 ^ /root/JavaX-Caches/tmp_1730133591/main.java:18: error: class, interface, or enum expected settable Opener opener; ^ /root/JavaX-Caches/tmp_1730133591/main.java:22: error: class, interface, or enum expected settableWithVar int lastDirection; ^ /root/JavaX-Caches/tmp_1730133591/main.java:23: error: class, interface, or enum expected new RunLengthCounter<Int> rlc; ^ /root/JavaX-Caches/tmp_1730133591/main.java:24: error: class, interface, or enum expected OpenSignal openSignal; ^ /root/JavaX-Caches/tmp_1730133591/main.java:27: error: records are not supported in -source 11 record noeq CloseSignal(S reason, double trigger) { ^ (use -source 16 or higher to enable records) /root/JavaX-Caches/tmp_1730133591/main.java:28: error: class, interface, or enum expected double trigger() { ret trigger; } ^ /root/JavaX-Caches/tmp_1730133591/main.java:29: error: class, interface, or enum expected toString { ret "Close signal " + reason + " (" + iround(trigger*100) + "%)"; } ^ /root/JavaX-Caches/tmp_1730133591/main.java:34: error: class, interface, or enum expected double trigger() { ret trigger; } ^ /root/JavaX-Caches/tmp_1730133591/main.java:35: error: class, interface, or enum expected toString { ret "Open signal " + reason + " (" + iround(trigger*100) + "%)"; } ^ /root/JavaX-Caches/tmp_1730133591/main.java:39: error: <identifier> expected settable double maxLoss; ^ /root/JavaX-Caches/tmp_1730133591/main.java:42: error: '(' or '[' expected new L<CloseSignal> signals; ^ /root/JavaX-Caches/tmp_1730133591/main.java:51: error: ')' expected signals.add(new CloseSignal("Loss", doubleRatio(-profit, maxLoss)); ^ /root/JavaX-Caches/tmp_1730133591/main.java:58: error: class, interface, or enum expected persistable class Juicer extends BaseJuicer { ^ /root/JavaX-Caches/tmp_1730133591/main.java:59: error: <identifier> expected settable double pullback; ^ /root/JavaX-Caches/tmp_1730133591/main.java:61: error: illegal start of type *(double *maxLoss, double *pullback) {} ^ /root/JavaX-Caches/tmp_1730133591/main.java:61: error: <identifier> expected *(double *maxLoss, double *pullback) {} ^ /root/JavaX-Caches/tmp_1730133591/main.java:61: error: <identifier> expected *(double *maxLoss, double *pullback) {} ^ /root/JavaX-Caches/tmp_1730133591/main.java:61: error: <identifier> expected *(double *maxLoss, double *pullback) {} ^ /root/JavaX-Caches/tmp_1730133591/main.java:61: error: <identifier> expected *(double *maxLoss, double *pullback) {} ^ /root/JavaX-Caches/tmp_1730133591/main.java:61: error: <identifier> expected *(double *maxLoss, double *pullback) {} ^ /root/JavaX-Caches/tmp_1730133591/main.java:63: error: <identifier> expected toString { ret renderRecord("Juicer", +maxLoss, +pullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:63: error: ';' expected toString { ret renderRecord("Juicer", +maxLoss, +pullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:63: error: not a statement toString { ret renderRecord("Juicer", +maxLoss, +pullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:63: error: ';' expected toString { ret renderRecord("Juicer", +maxLoss, +pullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:63: error: not a statement toString { ret renderRecord("Juicer", +maxLoss, +pullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:63: error: ';' expected toString { ret renderRecord("Juicer", +maxLoss, +pullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:73: error: ')' expected p.crest, p.crest-pullback)); ^ /root/JavaX-Caches/tmp_1730133591/main.java:80: error: class, interface, or enum expected persistable class RelativePullbackJuicer extends BaseJuicer { ^ /root/JavaX-Caches/tmp_1730133591/main.java:81: error: <identifier> expected settable double relativePullback; // e.g. 20 ^ /root/JavaX-Caches/tmp_1730133591/main.java:82: error: <identifier> expected settable double minPullback; // e.g. 0.1 ^ /root/JavaX-Caches/tmp_1730133591/main.java:83: error: <identifier> expected settable double maxPullback; // e.g. 4 ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: <identifier> expected toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: ';' expected toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: not a statement toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: ';' expected toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: not a statement toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: ';' expected toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: not a statement toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: ';' expected toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: not a statement toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:85: error: ';' expected toString { ret renderRecord("RelativePullbackJuicer", +maxLoss, +relativePullback, +minPullback, +maxPullback); } ^ /root/JavaX-Caches/tmp_1730133591/main.java:95: error: ')' expected p.crest, p.crest-calculatePullback(p.crest))); ^ /root/JavaX-Caches/tmp_1730133591/main.java:101: error: ';' expected ret clamp(relativePullback/100*crest, minPullback, maxPullback); ^ /root/JavaX-Caches/tmp_1730133591/main.java:101: error: not a statement ret clamp(relativePullback/100*crest, minPullback, maxPullback); ^ /root/JavaX-Caches/tmp_1730133591/main.java:101: error: ';' expected ret clamp(relativePullback/100*crest, minPullback, maxPullback); ^ /root/JavaX-Caches/tmp_1730133591/main.java:101: error: not a statement ret clamp(relativePullback/100*crest, minPullback, maxPullback); ^ /root/JavaX-Caches/tmp_1730133591/main.java:101: error: ';' expected ret clamp(relativePullback/100*crest, minPullback, maxPullback); ^ /root/JavaX-Caches/tmp_1730133591/main.java:101: error: not a statement ret clamp(relativePullback/100*crest, minPullback, maxPullback); ^ /root/JavaX-Caches/tmp_1730133591/main.java:101: error: ';' expected ret clamp(relativePullback/100*crest, minPullback, maxPullback); ^ /root/JavaX-Caches/tmp_1730133591/main.java:105: error: class, interface, or enum expected abstract sclass Opener { ^ /root/JavaX-Caches/tmp_1730133591/main.java:106: error: class, interface, or enum expected abstract OpenSignal openSignal(); ^ /root/JavaX-Caches/tmp_1730133591/main.java:107: error: class, interface, or enum expected abstract Opener cloneInto(Chaser strat); ^ /root/JavaX-Caches/tmp_1730133591/main.java:108: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1730133591/main.java:113: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1730133591/main.java:117: error: class, interface, or enum expected if (direction == 0) null; ^ /root/JavaX-Caches/tmp_1730133591/main.java:118: error: class, interface, or enum expected int preRun = direction > 1 ? minRunUp : minRunDown; ^ /root/JavaX-Caches/tmp_1730133591/main.java:119: error: class, interface, or enum expected int runLength = toInt(rlc.runLength()); ^ /root/JavaX-Caches/tmp_1730133591/main.java:133: error: class, interface, or enum expected ret new OpenSignal("RunLength " + runLength, doubleRatio(runLength, preRun), direction); ^ /root/JavaX-Caches/tmp_1730133591/main.java:134: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1730133591/main.java:136: error: class, interface, or enum expected toString { ret "PreRunOpener up " + minRunUp + ", down " + minRunDown; } ^ /root/JavaX-Caches/tmp_1730133591/main.java:140: error: ';' expected settable OpenSignal openSignal; ^ /root/JavaX-Caches/tmp_1730133591/main.java:140: error: <identifier> expected settable OpenSignal openSignal; ^ /root/JavaX-Caches/tmp_1730133591/main.java:141: error: ';' expected settable BaseJuicer juicer; ^ /root/JavaX-Caches/tmp_1730133591/main.java:141: error: <identifier> expected settable BaseJuicer juicer; ^ /root/JavaX-Caches/tmp_1730133591/main.java:147: error: ';' expected ret usingLiveData ? infinity() : openingTime()+hoursToMS(maxPositionHours); ^ /root/JavaX-Caches/tmp_1730133591/main.java:147: error: ';' expected ret usingLiveData ? infinity() : openingTime()+hoursToMS(maxPositionHours); ^ /root/JavaX-Caches/tmp_1730133591/main.java:147: error: not a statement ret usingLiveData ? infinity() : openingTime()+hoursToMS(maxPositionHours); ^ /root/JavaX-Caches/tmp_1730133591/main.java:151: error: ';' expected ret juicer == null ?: juicer.closeSignals(this); ^ /root/JavaX-Caches/tmp_1730133591/main.java:158: error: ';' expected ret strongestSignal == null ? 0 : strongestSignal.trigger; ^ /root/JavaX-Caches/tmp_1730133591/main.java:158: error: not a statement ret strongestSignal == null ? 0 : strongestSignal.trigger; ^ /root/JavaX-Caches/tmp_1730133591/main.java:162: error: ';' expected ret highestBy(closeSignals(), signal -> signal.trigger); ^ /root/JavaX-Caches/tmp_1730133591/main.java:162: error: ';' expected ret highestBy(closeSignals(), signal -> signal.trigger); ^ /root/JavaX-Caches/tmp_1730133591/main.java:162: error: not a statement ret highestBy(closeSignals(), signal -> signal.trigger); ^ /root/JavaX-Caches/tmp_1730133591/main.java:162: error: ';' expected ret highestBy(closeSignals(), signal -> signal.trigger); ^ /root/JavaX-Caches/tmp_1730133591/main.java:165: error: '(' expected void update { ^ /root/JavaX-Caches/tmp_1730133591/main.java:169: error: <identifier> expected toString { ^ /root/JavaX-Caches/tmp_1730133591/main.java:171: error: ';' expected ret commaCombine(super.toString(), ^ /root/JavaX-Caches/tmp_1730133591/main.java:171: error: ';' expected ret commaCombine(super.toString(), ^ /root/JavaX-Caches/tmp_1730133591/main.java:172: error: not a statement closeSignal ^ /root/JavaX-Caches/tmp_1730133591/main.java:172: error: ';' expected closeSignal ^ /root/JavaX-Caches/tmp_1730133591/main.java:177: error: class, interface, or enum expected LS status() { ^ /root/JavaX-Caches/tmp_1730133591/main.java:194: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1730133591/main.java:198: error: class, interface, or enum expected if (l(positionsInDirection(direction)) > 0) { ^ /root/JavaX-Caches/tmp_1730133591/main.java:201: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1730133591/main.java:204: error: class, interface, or enum expected new Position p; ^ /root/JavaX-Caches/tmp_1730133591/main.java:205: error: class, interface, or enum expected p.openSignal(openSignal); ^ /root/JavaX-Caches/tmp_1730133591/main.java:206: error: class, interface, or enum expected p.juicer(makeJuicer()); ^ /root/JavaX-Caches/tmp_1730133591/main.java:207: error: class, interface, or enum expected ret openPosition(p, direction); ^ /root/JavaX-Caches/tmp_1730133591/main.java:208: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1730133591/main.java:217: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_1730133591/main.java:219: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1730133591/main.java:223: error: class, interface, or enum expected if (currentPrice() == 0) ^ /root/JavaX-Caches/tmp_1730133591/main.java:228: error: class, interface, or enum expected startingPrice = currentPrice(); ^ /root/JavaX-Caches/tmp_1730133591/main.java:229: error: class, interface, or enum expected var priceCells = makePriceCells(startingPrice); ^ 100 errors only showing the first 100 errors, of 142 total; use -Xmaxerrs if you would like to see more