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

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

/root/JavaX-Caches/tmp_1974068654/main.java:1: error: class, interface, or enum expected set flag Reparse. ^ /root/JavaX-Caches/tmp_1974068654/main.java:23: error: class, interface, or enum expected gettable real maxPositionDuration = minutesToMS(60); ^ /root/JavaX-Caches/tmp_1974068654/main.java:25: error: class, interface, or enum expected real minimalMaxDuration() { ret minutesToMS(1); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:25: error: class, interface, or enum expected real minimalMaxDuration() { ret minutesToMS(1); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:30: error: class, interface, or enum expected this; ^ /root/JavaX-Caches/tmp_1974068654/main.java:31: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:42: error: class, interface, or enum expected settable Eye eye; ^ /root/JavaX-Caches/tmp_1974068654/main.java:44: error: class, interface, or enum expected real openingPrice() { ret ticker.priceAtTimestamp(openingTime); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:44: error: class, interface, or enum expected real openingPrice() { ret ticker.priceAtTimestamp(openingTime); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:50: error: class, interface, or enum expected real openingTime() { ret openingTime; } ^ /root/JavaX-Caches/tmp_1974068654/main.java:52: error: class, interface, or enum expected S directionString() { ret direction > 0 ? "long" : direction < 0 ? "short" : ""; } ^ /root/JavaX-Caches/tmp_1974068654/main.java:54: error: class, interface, or enum expected void restoreTicker(TickerSequence ticker) { this.ticker = ticker; } ^ /root/JavaX-Caches/tmp_1974068654/main.java:56: error: class, interface, or enum expected TickerPoint openingTickerPoint() { ret new TickerPoint(ticker, lround(openingTime)); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:60: error: class, interface, or enum expected TickerSequence ticker() { ret p.ticker; } ^ /root/JavaX-Caches/tmp_1974068654/main.java:61: error: class, interface, or enum expected void restoreTicker(TickerSequence ticker) { p.restoreTicker(ticker); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:62: error: class, interface, or enum expected real direction() { ret p.direction; } ^ /root/JavaX-Caches/tmp_1974068654/main.java:63: error: class, interface, or enum expected S directionString() { ret p.directionString(); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:64: error: class, interface, or enum expected real openingTime() { ret p.openingTime; } ^ /root/JavaX-Caches/tmp_1974068654/main.java:65: error: class, interface, or enum expected real openingPrice() { ret p.openingPrice(); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:66: error: class, interface, or enum expected Eye eye() { ret p.eye(); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:73: error: class, interface, or enum expected settable real crest = -infinity(); ^ /root/JavaX-Caches/tmp_1974068654/main.java:75: error: class, interface, or enum expected settable real time; // time we last updated this position ^ /root/JavaX-Caches/tmp_1974068654/main.java:76: error: class, interface, or enum expected settable real profit; // expected profit at that time ^ /root/JavaX-Caches/tmp_1974068654/main.java:78: error: class, interface, or enum expected forwardToPosition ^ /root/JavaX-Caches/tmp_1974068654/main.java:83: error: class, interface, or enum expected this.time = time; ^ /root/JavaX-Caches/tmp_1974068654/main.java:84: error: class, interface, or enum expected profit = p.profitAtTime(time); ^ /root/JavaX-Caches/tmp_1974068654/main.java:85: error: class, interface, or enum expected crest = max(crest, profit); ^ /root/JavaX-Caches/tmp_1974068654/main.java:86: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_1974068654/main.java:87: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:92: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:97: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:103: error: class, interface, or enum expected ret strongestSignal == null ? 0 : strongestSignal.trigger; ^ /root/JavaX-Caches/tmp_1974068654/main.java:104: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:108: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:117: error: class, interface, or enum expected if (maxClosingTime() < infinity()) ^ /root/JavaX-Caches/tmp_1974068654/main.java:121: error: class, interface, or enum expected if (profit < 0) ^ /root/JavaX-Caches/tmp_1974068654/main.java:123: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_1974068654/main.java:128: error: class, interface, or enum expected ret signals; ^ /root/JavaX-Caches/tmp_1974068654/main.java:129: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:135: error: class, interface, or enum expected MPM3 mpm() { ret MPM3.this; } ^ /root/JavaX-Caches/tmp_1974068654/main.java:135: error: class, interface, or enum expected MPM3 mpm() { ret MPM3.this; } ^ /root/JavaX-Caches/tmp_1974068654/main.java:138: error: class, interface, or enum expected real closingTime() { ret closingTime; } ^ /root/JavaX-Caches/tmp_1974068654/main.java:139: error: class, interface, or enum expected real closingPrice() { ret ticker().priceAtTimestamp(closingTime); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:141: error: class, interface, or enum expected real duration() { ret closingTime()-openingTime(); } ^ /root/JavaX-Caches/tmp_1974068654/main.java:146: error: class, interface, or enum expected ret profit; ^ /root/JavaX-Caches/tmp_1974068654/main.java:147: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:155: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:159: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:165: error: class, interface, or enum expected abstract sclass Eye { ^ /root/JavaX-Caches/tmp_1974068654/main.java:168: error: class, interface, or enum expected abstract real adviseDirection(TickerPoint tickerPoint); ^ /root/JavaX-Caches/tmp_1974068654/main.java:169: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:177: error: class, interface, or enum expected settable real verificationThreshold/* = 0.5*/; ^ /root/JavaX-Caches/tmp_1974068654/main.java:180: error: class, interface, or enum expected real verificationTime() { ^ /root/JavaX-Caches/tmp_1974068654/main.java:182: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:187: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:192: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:197: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:201: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:205: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:209: error: class, interface, or enum expected if (isNaN(move)) ret 0; ^ /root/JavaX-Caches/tmp_1974068654/main.java:210: error: class, interface, or enum expected real relativeMove = doubleRatio(move, minMove); ^ /root/JavaX-Caches/tmp_1974068654/main.java:211: error: class, interface, or enum expected int sign = sign(relativeMove); ^ /root/JavaX-Caches/tmp_1974068654/main.java:212: error: class, interface, or enum expected real absRelativeMove = abs(relativeMove); ^ /root/JavaX-Caches/tmp_1974068654/main.java:214: error: class, interface, or enum expected if (verificationEnabled()) { ^ /root/JavaX-Caches/tmp_1974068654/main.java:216: error: class, interface, or enum expected absRelativeMove = min(absRelativeMove, verification); ^ /root/JavaX-Caches/tmp_1974068654/main.java:217: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:221: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:225: error: class, interface, or enum expected real currentPrice = tickerPoint.currentPrice(); ^ /root/JavaX-Caches/tmp_1974068654/main.java:226: error: class, interface, or enum expected real before = tickerPoint.lookback(lround(lookbackTime)); ^ /root/JavaX-Caches/tmp_1974068654/main.java:227: error: class, interface, or enum expected ret currentPrice/before*100-100; ^ /root/JavaX-Caches/tmp_1974068654/main.java:228: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:244: error: class, interface, or enum expected juicer = new Juicer(maxLoss, pullback); ^ /root/JavaX-Caches/tmp_1974068654/main.java:245: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:249: error: ';' expected settable TradingBot botConfiguration; ^ /root/JavaX-Caches/tmp_1974068654/main.java:249: error: <identifier> expected settable TradingBot botConfiguration; ^ /root/JavaX-Caches/tmp_1974068654/main.java:255: error: illegal start of type new ListWithChangeListeners<LivePosition> openPositions; ^ /root/JavaX-Caches/tmp_1974068654/main.java:256: error: illegal start of type new ListWithChangeListeners<ClosedPosition> closedPositions; ^ /root/JavaX-Caches/tmp_1974068654/main.java:275: error: not a statement if (ticker == this.ticker) ret; ^ /root/JavaX-Caches/tmp_1974068654/main.java:278: error: bad initializer for for-loop for (p : openPositions) p.restoreTicker(ticker); ^ /root/JavaX-Caches/tmp_1974068654/main.java:279: error: bad initializer for for-loop for (p : closedPositions) p.restoreTicker(ticker); ^ /root/JavaX-Caches/tmp_1974068654/main.java:284: error: bad initializer for for-loop for (p : openPositions) anyChange |= p.update(time); ^ /root/JavaX-Caches/tmp_1974068654/main.java:289: error: class, interface, or enum expected ClosedPosition runJuicer(Position p, Juicer j) { ^ /root/JavaX-Caches/tmp_1974068654/main.java:292: error: class, interface, or enum expected long time = lround(p.openingTime); ^ /root/JavaX-Caches/tmp_1974068654/main.java:293: error: class, interface, or enum expected double maxClosingTime = min(time+maxPositionDuration, ticker.endTime()); ^ /root/JavaX-Caches/tmp_1974068654/main.java:294: error: class, interface, or enum expected real crest = -infinity(); ^ /root/JavaX-Caches/tmp_1974068654/main.java:296: error: class, interface, or enum expected while (time < maxClosingTime) { ^ /root/JavaX-Caches/tmp_1974068654/main.java:298: error: class, interface, or enum expected real profit = p.profitAtTime(time); ^ /root/JavaX-Caches/tmp_1974068654/main.java:299: error: class, interface, or enum expected crest = max(crest, profit); ^ /root/JavaX-Caches/tmp_1974068654/main.java:300: error: class, interface, or enum expected if (profit < (profit < 0 ? -j.lossTolerance : crest-j.pullback)) ^ /root/JavaX-Caches/tmp_1974068654/main.java:302: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:305: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:310: error: class, interface, or enum expected long time; ^ /root/JavaX-Caches/tmp_1974068654/main.java:312: error: class, interface, or enum expected double latestAllowedOpeningTime() { ^ /root/JavaX-Caches/tmp_1974068654/main.java:314: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1974068654/main.java:318: error: class, interface, or enum expected if (time > latestAllowedOpeningTime()) ^ /root/JavaX-Caches/tmp_1974068654/main.java:321: error: class, interface, or enum expected TickerPoint tickerPoint = new(ticker, time); ^ /root/JavaX-Caches/tmp_1974068654/main.java:322: error: class, interface, or enum expected real direction = bot.eye.adviseDirection(tickerPoint); ^ /root/JavaX-Caches/tmp_1974068654/main.java:323: error: class, interface, or enum expected if (abs(direction) < 1) ^ /root/JavaX-Caches/tmp_1974068654/main.java:326: error: class, interface, or enum expected else { ^ 100 errors only showing the first 100 errors, of 104 total; use -Xmaxerrs if you would like to see more