SShortSingh.
Back to feed

AI Trading Bot Nails Price Range on UMC Stock But Gets Direction Wrong

0
·55 views

An AI trading agent called 'Afu', running on the open-source DuDuClaw platform, predicted that United Microelectronics Corp (UMC) shares would rise on September 25 but the stock instead fell 3.75% to close at NT$154. Despite the wrong directional call, UMC's closing price landed squarely within the agent's predicted range of NT$150–158, highlighting a flaw in how the system compresses multi-stage trading logic into a single direction field. Afu's calibration score for the trade came in negative (RPSS: -0.4625), meaning the prediction performed worse than a model that assigns equal probability to all outcomes. Separately, the agent's correctly-called prediction on ETF 00919 went unscored because no order was placed, while the incorrect UMC prediction entered the scorecard — a structural quirk of the system. The agent's total portfolio stood at NT$2,234 against an initial NT$2,000 principal, reflecting an 11.7% gain on Day 33 of the experiment.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Zwischenzug app unlocks Lichess games only after a player's pulse returns to baseline

Zwischenzug is an open-source desktop app for macOS and Windows that adds a cooldown to online chess after a loss. It embeds Lichess and locks new games following a defeat, using the Lichess public API to detect losses. With the user's consent, the webcam measures pulse between games, and play resumes once the heart rate stays near a personal baseline, with a timer fallback if no usable signal is available. The developer cites an analysis of 11.3 million Lichess games suggesting that rating performance drops after losses and that a 30-minute break removes the effect, though the study cannot separate tilt from ordinary off days. The camera is off during play, video stays on the user's machine, and telemetry is disabled.

0
ProgrammingDEV Community ·

Developer shares self-deleting PHP deploy workers for a 1,000-page site with no SSH access

The author runs The DJ Calendar, roughly 1,000 PHP/MySQL pages on shared cPanel hosting without shell access, SSH, or a deployment pipeline. Their hosting caches HTML for five minutes and opcache serves stale output briefly after writes, making manual code pasting through a browser file manager risky. To address this, they built a worker pattern: a single PHP file uploaded to the web root and triggered once with a secret token, which applies the change and then deletes itself. The approach includes safeguards such as verifiers that check exactly what a patch writes, with automatic restoration on failure, and an 18-rule pre-flight checklist. The author open-sourced the project under the MIT license and invites readers to share their own techniques for working safely with no shell access during a production incident.

0
ProgrammingDEV Community ·

Magento 2 module lists each cart discount rule on its own line with customer-facing labels

A developer found that Magento 2 merges all applied cart discounts into a single totals row, and that the bracketed label can pull text from a rule's internal description field, which may expose internal notes to customers. Because Magento stores only a combined discount description and not per-rule amounts, the split cannot be rebuilt after an order is placed. The developer therefore built a module that records each rule's label and amount at order creation, showing one line per rule. Labels come from customer-facing store labels or coupon codes rather than rule descriptions or names. The approach was tested on a clean Mage-OS installation, with the rule description appearing in a customer email in the unmodified setup.

0
ProgrammingDEV Community ·

Brazil's regulators set strict rules for lawyer-bank AI partnerships

Joint go-to-market efforts between Brazilian lawyers and banks must follow rules set by the Central Bank of Brazil and the Brazilian Bar Association, with ethics, data sovereignty and client confidentiality at the center. Regulators reportedly treat such collaborations as high-risk, requiring pre-deployment validation, registration in the central bank's AI monitoring system, and lawyer responsibility for final legal conclusions. AI systems used in these settings must keep detailed logs, support traceability, and include mandatory source attribution and confidence scoring. Shared liability can apply to both the bank and the law firm if an AI tool misclassifies a clause and the error is endorsed.