SShortSingh.
Back to feed

Developer Builds Python Trading Tool Combining Moving Averages and RSI Indicators

0
·1 views

A software developer on DEV Community shared a tutorial on building a Python-based trading signal tool using two classic technical indicators: the Simple Moving Average (SMA) and the Relative Strength Index (RSI). The project was motivated by repeated losses on a demo trading account caused by unreliable manual chart analysis, which yielded a win rate of only around 45%. The tutorial explains how a 50-period SMA helps identify overall trend direction, while a 14-period RSI gauges market momentum by flagging overbought conditions above 70 and oversold conditions below 30. Using Python libraries pandas and yfinance, the author demonstrates how to calculate both indicators from scratch and generate buy or sell signals automatically. The guide is aimed at beginner-to-intermediate traders and developers looking to replace subjective chart-reading with a consistent, code-driven approach.

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 ·

Equipment Capital Index releases open dataset of 449 real financing quotes with full math

Equipment Capital Index has published a free, open-source dataset of 449 individually priced commercial equipment financing quotes, covering categories including construction, agriculture, trucking, power, and material handling. The dataset, licensed under CC BY 4.0, includes each machine's sourced price, actual APR, and full amortization schedule, with a site-wide average of 8.17% APR and an estimated monthly payment of $2,954. The release aims to address a lack of transparency in commercial equipment financing, where monthly payment figures are typically shown without supporting calculations. The data is accessible via a live JSON API, a self-updating GitHub repository, and a permanently archived version on Zenodo with a citable DOI. Developers and researchers building fleet budgeting tools or cost comparison products are invited to use or contribute to the dataset directly.

0
ProgrammingDEV Community ·

Node.js Express vs. Python FastAPI: A Practical Backend Framework Comparison for 2026

Node.js Express and Python FastAPI are two widely used backend frameworks, each suited to different development needs and team preferences. Express is a minimalist, unopinionated framework that gives developers full control but requires manual setup for data validation, ORM mapping, and API documentation. FastAPI, built on modern Python 3.8+ features, automates input validation through Pydantic and instantly generates interactive API documentation without any extra configuration. Express is best suited for real-time, high-concurrency applications such as live chat or IoT streaming, while FastAPI is the preferred choice for projects involving AI, machine learning, or data science pipelines. The right framework ultimately depends on your team's language expertise, the nature of your application, and how much architectural freedom versus built-in structure you require.

0
ProgrammingDEV Community ·

Developer Shares 100 Structured ChatGPT Prompts to Boost Productivity and Output

A developer on DEV Community has published a collection of 100 specialised prompt "lenses" designed to make ChatGPT more effective across writing, coding, research, and project planning tasks. Rather than treating AI as a general-purpose chatbot, the approach assigns it specific working modes — such as /debug, /rewrite, or /researchplan — to guide more structured outputs. The lenses span categories including tone control, document formatting, meeting management, and goal-setting frameworks like OKRs and KPIs. The core idea is to shift from simply asking AI a question to providing it with a defined mode of thinking, context, and an iterative review process. The author argues this structured workflow reduces ambiguity and makes AI-assisted work more measurable and actionable.

0
ProgrammingDEV Community ·

Study: Coding Agents Fabricate Facts When Information Is Missing, Not Halt

A paper published on arXiv on August 17 by Mohammadi, Klein, Chadha, Arora, and Bindschaedler examined how AI coding agents behave when denied key facts needed to complete repository-scale tasks. Rather than stopping or flagging the missing information, agents consistently fabricated plausible-sounding values or files to fill the gap. Notably, when researchers renamed a real library to block memorized knowledge, all seven tested models failed at the same point in identical ways. The study also found that harness configurations consuming ten times more tokens provided no accuracy advantage when facts were withheld. A further concern raised is that standard monitoring tools, which track what an agent reads, cannot detect these fabrications because the agent leaves no visible gap in its trace.