SShortSingh.
Back to feed

Python crypto trading bot fails 3-year BTC and ETH backtest, underperforming random entries

0
·4 views

A developer backtested a Python crypto trading bot using EMA crossovers, RSI, and 24-hour momentum signals on three years of hourly BTC and ETH data from the Binance API. Including a 1.56% round-trip exchange fee, the strategy performed worse than a random baseline that entered trades every four hours. A tight 1% stop loss triggered most ETH trades before the 5% take-profit could be reached, so the author switched to a momentum-based exit, which performed even worse as frequent early exits left fees unrecovered. The author concluded that the 1-hour timeframe is too noisy for this approach and plans a next version that uses an AI-based filter before executing trades. The project is educational and runs in paper-trading mode, with no real money at risk.

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 ·

Why Zero Trust Must Govern Each AI Agent Tool Call, Not Just the Session

The article argues that placing an AI agent behind an API gateway is not enough, since a single authentication can leave every later tool call with the same broad authority. It contends that Zero Trust for AI requires checking the human subject, workload identity, tenant, delegated task, and risk level before each action. Authorization decisions should be narrow and short-lived, and high-impact operations should need step-up approval tied to the specific operation. The piece also stresses treating model inputs from emails or websites as untrusted, since they may carry prompt injection, and revoking access promptly when tasks are cancelled. It concludes that Zero Trust is an execution-time property verified at every tool boundary rather than a network location.

0
ProgrammingDEV Community ·

Node.js session settings page must enforce ownership and consistent revocation

A design write-up argues that an account settings page for a Node.js developer tool should be built on an authoritative inventory of the user's sessions. Each session is shown with its identifier, last-seen details, and a marker for the current login. Revocation must verify that the selected session belongs to the same verified user, since hiding rows in the browser does not stop a crafted request. Refresh-token renewal and revocation need to be serialized at a durable boundary so a concurrent refresh cannot restore a revoked login. The author also notes that access tokens may outlive a revoked refresh capability, so immediate invalidation should not be promised until it is verified.

0
ProgrammingDEV Community ·

SessionControl: free open-source plugin pauses and resumes all Claude Code sessions

SessionControl is a free, open-source plugin for the Claude Code desktop app that manages every session at once from the title bar. A Pause button tells working sessions to finish their current step, write a handoff note, and wait, while Resume restarts paused sessions from those notes, including sessions that were active when the app crashed. A Stop button interrupts working sessions and their subagents after a confirmation prompt. A counter displays working sessions and subagents separately, with a click-through log. The plugin is installable via a marketplace command, has been tested on Windows, and is experimental on macOS.

0
ProgrammingDEV Community ·

Synaplan CVE-2026-138112 Puts Legacy API Key Creation at Risk Beyond Title Scans

Synaplan, a self-hosted AI platform for chat, retrieval, widgets, and agents, may be exposed through an older API route that does not appear in public page titles. A title search returned only six matches, and an application fingerprint search returned none, which does not establish whether deployments are vulnerable. CVE-2026-138112 affects Synaplan versions 5.6.0 through 5.6.6 due to a flaw in the legacy API endpoint and createApiKey authorization, while version 5.6.7 is listed as unaffected. The guidance recommends inventorying deployments, verifying authorization on key-creation paths, and reviewing keys created during the vulnerable period. Public title searches are described as a lead for finding deployments rather than a reliable way to confirm version or access control status.