The challenge
Delight Equity wanted systematic buy and sell alerts on Pakistani equities: the same signals a trader would read off a chart, delivered automatically, every trading day, without sitting in front of a terminal.
Two constraints shaped everything. The exchange publishes no retail order or write API, so automated execution was never available, and building toward it would have been a compliance liability rather than a feature. And the suite had to run on an ordinary Windows machine with no developer setup and no ongoing maintenance burden.
What was delivered
- A read-only market data client
- The single component every other one goes through: prices, closes, klines, the full instrument list, market watch, index constituents and market-hours detection, with polite retry and backoff for the gateway’s transient failures.
- Four alert engines
- EMA 50/100 golden and death crosses; EMA 50/200 for the slower trend-defining cross; Parabolic SAR reversals as a stateless two-bar flip; and Bollinger middle-band breakouts.
- A live board
- The tracked universe posted as a single message and edited in place on each refresh, with per-name up, down and flat indicators and a breadth line. No channel spam.
- A below-book-value screen
- A fundamental research tool listing every name trading under book value, ranked by depth of discount, with distressed and stale-data names flagged and dropped.
- A desktop control panel
- Runs, stops and schedules all six components, tails their logs for live progress, edits the shared watchlist, and survives being closed without killing the engines.