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

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

/root/JavaX-Caches/tmp_1835833499/main.java:1: error: class, interface, or enum expected set flag Reparse. ^ /root/JavaX-Caches/tmp_1835833499/main.java:23: error: class, interface, or enum expected gettable real maxPositionDuration = minutesToMS(60); ^ /root/JavaX-Caches/tmp_1835833499/main.java:25: error: class, interface, or enum expected real minimalMaxDuration() { ret minutesToMS(1); } ^ /root/JavaX-Caches/tmp_1835833499/main.java:25: error: class, interface, or enum expected real minimalMaxDuration() { ret minutesToMS(1); } ^ /root/JavaX-Caches/tmp_1835833499/main.java:30: error: class, interface, or enum expected this; ^ /root/JavaX-Caches/tmp_1835833499/main.java:31: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:41: error: class, interface, or enum expected real openingPrice() { ret ticker.priceAtTimestamp(openingTime); } ^ /root/JavaX-Caches/tmp_1835833499/main.java:41: error: class, interface, or enum expected real openingPrice() { ret ticker.priceAtTimestamp(openingTime); } ^ /root/JavaX-Caches/tmp_1835833499/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:47: error: class, interface, or enum expected real openingTime() { ret openingTime; } ^ /root/JavaX-Caches/tmp_1835833499/main.java:49: error: class, interface, or enum expected S directionString() { ret direction > 0 ? "long" : direction < 0 ? "short" : ""; } ^ /root/JavaX-Caches/tmp_1835833499/main.java:51: error: class, interface, or enum expected void restoreTicker(TickerSequence ticker) { this.ticker = ticker; } ^ /root/JavaX-Caches/tmp_1835833499/main.java:55: error: class, interface, or enum expected TickerSequence ticker() { ret p.ticker; } ^ /root/JavaX-Caches/tmp_1835833499/main.java:56: error: class, interface, or enum expected void restoreTicker(TickerSequence ticker) { p.restoreTicker(ticker); } ^ /root/JavaX-Caches/tmp_1835833499/main.java:57: error: class, interface, or enum expected real direction() { ret p.direction; } ^ /root/JavaX-Caches/tmp_1835833499/main.java:58: error: class, interface, or enum expected S directionString() { ret p.directionString(); } ^ /root/JavaX-Caches/tmp_1835833499/main.java:59: error: class, interface, or enum expected real openingTime() { ret p.openingTime; } ^ /root/JavaX-Caches/tmp_1835833499/main.java:60: error: class, interface, or enum expected real openingPrice() { ret p.openingPrice(); } ^ /root/JavaX-Caches/tmp_1835833499/main.java:67: error: class, interface, or enum expected settable real crest = -infinity(); ^ /root/JavaX-Caches/tmp_1835833499/main.java:69: error: class, interface, or enum expected settable real time; // time we last updated this position ^ /root/JavaX-Caches/tmp_1835833499/main.java:70: error: class, interface, or enum expected settable real profit; // expected profit at that time ^ /root/JavaX-Caches/tmp_1835833499/main.java:72: error: class, interface, or enum expected forwardToPosition ^ /root/JavaX-Caches/tmp_1835833499/main.java:77: error: class, interface, or enum expected this.time = time; ^ /root/JavaX-Caches/tmp_1835833499/main.java:78: error: class, interface, or enum expected profit = p.profitAtTime(time); ^ /root/JavaX-Caches/tmp_1835833499/main.java:79: error: class, interface, or enum expected crest = max(crest, profit); ^ /root/JavaX-Caches/tmp_1835833499/main.java:80: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_1835833499/main.java:81: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:86: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:91: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:97: error: class, interface, or enum expected ret strongestSignal == null ? 0 : strongestSignal.trigger; ^ /root/JavaX-Caches/tmp_1835833499/main.java:98: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:102: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:111: error: class, interface, or enum expected if (maxClosingTime() < infinity()) ^ /root/JavaX-Caches/tmp_1835833499/main.java:115: error: class, interface, or enum expected if (profit < 0) ^ /root/JavaX-Caches/tmp_1835833499/main.java:117: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_1835833499/main.java:122: error: class, interface, or enum expected ret signals; ^ /root/JavaX-Caches/tmp_1835833499/main.java:123: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:129: error: class, interface, or enum expected MPM3 mpm() { ret MPM3.this; } ^ /root/JavaX-Caches/tmp_1835833499/main.java:129: error: class, interface, or enum expected MPM3 mpm() { ret MPM3.this; } ^ /root/JavaX-Caches/tmp_1835833499/main.java:132: error: class, interface, or enum expected real closingTime() { ret closingTime; } ^ /root/JavaX-Caches/tmp_1835833499/main.java:133: error: class, interface, or enum expected real closingPrice() { ret ticker().priceAtTimestamp(closingTime); } ^ /root/JavaX-Caches/tmp_1835833499/main.java:135: error: class, interface, or enum expected real duration() { ret closingTime()-openingTime(); } ^ /root/JavaX-Caches/tmp_1835833499/main.java:140: error: class, interface, or enum expected ret profit; ^ /root/JavaX-Caches/tmp_1835833499/main.java:141: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:149: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:153: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:159: error: class, interface, or enum expected abstract sclass Eye { ^ /root/JavaX-Caches/tmp_1835833499/main.java:162: error: class, interface, or enum expected abstract real adviseDirection(TickerPoint tickerPoint); ^ /root/JavaX-Caches/tmp_1835833499/main.java:163: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:169: error: class, interface, or enum expected if (isNaN(move)) ret 0; ^ /root/JavaX-Caches/tmp_1835833499/main.java:170: error: class, interface, or enum expected real relativeMove = doubleRatio(move, minMove); ^ /root/JavaX-Caches/tmp_1835833499/main.java:171: error: class, interface, or enum expected ret clamp(relativeMove, -1, 1); ^ /root/JavaX-Caches/tmp_1835833499/main.java:172: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:176: error: class, interface, or enum expected real currentPrice = tickerPoint.currentPrice(); ^ /root/JavaX-Caches/tmp_1835833499/main.java:177: error: class, interface, or enum expected real before = tickerPoint.lookback(lookbackTime); ^ /root/JavaX-Caches/tmp_1835833499/main.java:178: error: class, interface, or enum expected ret currentPrice/before*100-100; ^ /root/JavaX-Caches/tmp_1835833499/main.java:179: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:185: error: class, interface, or enum expected juicer = new Juicer(maxLoss, pullback); ^ /root/JavaX-Caches/tmp_1835833499/main.java:186: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:190: error: ';' expected settable TradingBot botConfiguration; ^ /root/JavaX-Caches/tmp_1835833499/main.java:190: error: <identifier> expected settable TradingBot botConfiguration; ^ /root/JavaX-Caches/tmp_1835833499/main.java:196: error: illegal start of type new ListWithChangeListeners<LivePosition> openPositions; ^ /root/JavaX-Caches/tmp_1835833499/main.java:197: error: illegal start of type new ListWithChangeListeners<ClosedPosition> closedPositions; ^ /root/JavaX-Caches/tmp_1835833499/main.java:216: error: not a statement if (ticker == this.ticker) ret; ^ /root/JavaX-Caches/tmp_1835833499/main.java:219: error: bad initializer for for-loop for (p : openPositions) p.restoreTicker(ticker); ^ /root/JavaX-Caches/tmp_1835833499/main.java:220: error: bad initializer for for-loop for (p : closedPositions) p.restoreTicker(ticker); ^ /root/JavaX-Caches/tmp_1835833499/main.java:225: error: bad initializer for for-loop for (p : openPositions) anyChange |= p.update(time); ^ /root/JavaX-Caches/tmp_1835833499/main.java:230: error: class, interface, or enum expected ClosedPosition runJuicer(Position p, Juicer j) { ^ /root/JavaX-Caches/tmp_1835833499/main.java:233: error: class, interface, or enum expected long time = lround(p.openingTime); ^ /root/JavaX-Caches/tmp_1835833499/main.java:234: error: class, interface, or enum expected double maxClosingTime = min(time+maxPositionDuration, ticker.endTime()); ^ /root/JavaX-Caches/tmp_1835833499/main.java:235: error: class, interface, or enum expected real crest = -infinity(); ^ /root/JavaX-Caches/tmp_1835833499/main.java:237: error: class, interface, or enum expected while (time < maxClosingTime) { ^ /root/JavaX-Caches/tmp_1835833499/main.java:239: error: class, interface, or enum expected real profit = p.profitAtTime(time); ^ /root/JavaX-Caches/tmp_1835833499/main.java:240: error: class, interface, or enum expected crest = max(crest, profit); ^ /root/JavaX-Caches/tmp_1835833499/main.java:241: error: class, interface, or enum expected if (profit < (profit < 0 ? -j.lossTolerance : crest-j.pullback)) ^ /root/JavaX-Caches/tmp_1835833499/main.java:243: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:246: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:251: error: class, interface, or enum expected long time; ^ /root/JavaX-Caches/tmp_1835833499/main.java:253: error: class, interface, or enum expected double latestAllowedOpeningTime() { ^ /root/JavaX-Caches/tmp_1835833499/main.java:255: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1835833499/main.java:259: error: class, interface, or enum expected if (time > latestAllowedOpeningTime()) ^ /root/JavaX-Caches/tmp_1835833499/main.java:262: error: class, interface, or enum expected TickerPoint tickerPoint = new(ticker, time); ^ /root/JavaX-Caches/tmp_1835833499/main.java:263: error: class, interface, or enum expected real direction = bot.eye.adviseDirection(tickerPoint); ^ /root/JavaX-Caches/tmp_1835833499/main.java:264: error: class, interface, or enum expected if (abs(direction) < 1) ^ /root/JavaX-Caches/tmp_1835833499/main.java:267: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_1835833499/main.java:272: error: class, interface, or enum expected var closedPosition = runJuicer(position, bot.juicer); ^ /root/JavaX-Caches/tmp_1835833499/main.java:275: error: class, interface, or enum expected closedPositions.add(closedPosition); ^ /root/JavaX-Caches/tmp_1835833499/main.java:278: error: class, interface, or enum expected time = ticker.nextTimestamp(closedPosition.closingTime); ^ /root/JavaX-Caches/tmp_1835833499/main.java:279: error: class, interface, or enum expected } ^ 89 errors