Skip to content

DL

Devon Samuel Laijran

~/devpionlion

  • Work
  • About
  • Contact

← all projects

case study / data + ml

ProjectSum

A decision-support tool for trading US stocks on Pluang. It scores each stock on technicals, news sentiment and fundamentals, then suggests buy, sell or hold with its reasons. I still place every trade by hand.

type

Personal project

year

2026

status

In progress

code

View repo →

$ python scripts/scrape_pluang_universe.py
978 US stocks and ETFs scraped from Pluang’s public pages
$ python scripts/validate_universe.py
973 analyzable · 5 quarantined (Yahoo ticker points to a different company)
$ python paper.py log –sentiment
sources: technical_v1, finbert_v1 · runs nightly via a systemd timer

how it works

Four layers, one score

1 · clean stock list

I scrape every stock Pluang offers, then check each one against Yahoo Finance by company name. Five tickers pointed to the wrong company, so I block them from analysis. I also fix format clashes, like BRK.B on Pluang versus BRK-B on Yahoo.

2 · technical engine

Six weighted signals (trend, RSI, MACD, Bollinger Bands, EMA and volume) add up to one score from −100 to +100. Every signal keeps a plain-English note, so I can see why it scored that way.

3 · news sentiment

Headlines are scored by FinBERT, a free local model, or by Claude. I compared them side by side. FinBERT reads every headline literally. Claude filters out headlines that aren’t really about the stock.

4 · fundamentals

Valuation, growth, profitability, financial health and analyst targets each get a score. Snapshots are cached for 7 days, but price-based ratios are recalculated with today’s price.

The honest result: no edge yet

I backtested the technical engine without lookahead, which means each day only sees data up to that day. On 12 large stocks over 3 years, BUY signals earned less than simply holding. On a wider test of 120 random stocks over 5 years (24,000+ signals), the signals only worked when they agreed with the stock’s trend.

So I stopped tuning on past data, because that leads to overfitting. Instead, a nightly job logs every call for all 973 stocks. A scoreboard grades each call 1, 5 and 20 days later against the S&P 500. It builds an honest track record with no real money at risk.

What I learned

Validate the data before trusting any model, because one wrong ticker poisons every result. Measure against a fair baseline. And when the data can’t be replayed honestly, like old news, test going forward instead.

stack: Python · pandas · yfinance · FinBERT · Claude · systemd

Next up: combining the three scores into one, and a mobile-friendly web dashboard.

← All projects

Next: AI Chatbot Acceptance →

© 2026 Devon Samuel Laijran · Surabaya, Indonesia

GitHub · LinkedIn · Email