// AI · DevOps · Trading · Personal Project

I Built My Own AI Assistant That Also Trades for Me at 3 AM

✍️ Naveed Ahmed 📅 June 14, 2026 ⏱ 10 min read 🏷 AI · Trading · DevOps · OpenAI

About eight months ago, I started learning to read charts. Not as a career move — just curiosity. I was reading about how markets move, watching YouTube videos about ICT concepts (liquidity, order blocks, fair value gaps), and somewhere in that rabbit hole I got hooked.

The problem: I work full-time as a Lead DevOps Engineer at DigitalOcean. I can't sit and watch charts all day. And the best trading sessions for XAU/USD — the London open, the New York killzone — sometimes happen at 2 AM my time in Karachi.

So I did what any DevOps engineer with too much free time would do: I built a system.

"You don't advise. You act." — MORPHEUS system prompt

What Is MORPHEUS?

MORPHEUS is my personal AI operator. It's not a product. It's not open source (yet). It runs entirely on my EC2 instance via Docker Compose and connects to my live trading account, Kubernetes clusters, Slack workspace at work, GitHub, and my local machine — all at the same time.

Think of it as a best friend who happens to also manage your entire tech stack and trade for you when you're asleep.

MORPHEUS Main Dashboard
The main dashboard — 3D audio-reactive orb, live watchlist, and chat interface

The frontend is a React + TypeScript app with a Three.js particle orb that pulses when MORPHEUS is speaking. The backend is Node.js + Express with Socket.IO for real-time streaming. All intelligence comes from OpenAI GPT-4o with tool calling — 73 tools registered across 14 categories.

73
AI Tools
14
Categories
8
Trading Bots
4
Docker Services

The Trading Side

This is the part people find hard to believe. MORPHEUS has full, live integration with my MT5 trading account — it can check my balance, see open positions, place and close trades, and automatically manage risk. All from a chat interface or by voice.

There are multiple bots running, each focused on a different session or approach. They run on a schedule, scan the market, and either find a setup or skip — without me needing to watch a screen.

Asian Session Order Block Bot

Asian Session OB Bot
The OB Bot — runs during Asian session, waits patiently for the right setup

This bot runs during a specific trading session and looks for a particular price pattern on the H1 chart. When conditions are met, it enters automatically — and if nothing qualifies, it simply doesn't trade. It's the most backtested part of the system with strong historical results.

Gold Scalper — Multi-Pair Watchlist

Gold Scalper
The Gold Scalper — scanning 14 pairs with an AI confirmation gate before every entry

A scalping bot that continuously monitors 14 pairs — metals, forex, indices, and crypto. What makes it different is the AI gate: before any trade is placed, GPT-4o-mini reviews the setup and gives a confidence score. Only setups above the threshold go through. This single addition made the biggest difference in quality of entries.

Chart Analyser

Chart Analyser
The chart analyser — ask in natural language, get annotated charts with AI trade plan

I can describe what I'm looking for in plain English and MORPHEUS pulls live price data, renders an annotated chart, and gives me a structured trade plan. No switching tabs, no manual drawing — just ask and it appears.

Top-Down Analysis

Top Down Analysis
Top-down analysis — from higher timeframes down to entry, all in one view

Before a trading session I ask for a full top-down read. MORPHEUS goes through multiple timeframes, identifies the overall bias, key levels, and hands me a final entry plan. Something that used to take 30 minutes now takes about 15 seconds.

MT5 Live Trading Panel

MT5 Live Trading
MT5 panel — live balance, open positions, equity, and MORPHEUS-specific trade stats

A dedicated panel showing the live account at all times — balance, equity, margin, every open position, and a breakdown of how MORPHEUS-tagged trades are performing. Trades can be placed, closed, or modified from here or directly via chat.

Trade Setup Scanner

Trading Setups
Setup scanner — automatically finds and cards trade opportunities across pairs

An automated scanner that runs across multiple pairs and surfaces trade setups as cards — with entry, SL, TP, and direct execution buttons. Results are tracked with P&L history so I can see how each setup type performs over time.

Trading Journal

Trading Journal
Unified journal — every bot and manual trade in one place with full history

Every trade — whether placed manually, by the Gold Scalper, OB Bot, or any other bot — flows into a single unified journal. Full history, P&L tracking, and session tags in one view.

Session Reclaim Bot

Session Reclaim Bot
Session reclaim bot — targets key session transition reversals automatically

A bot focused on session transition moments — when the market sweeps a key level then aggressively reverses back. It runs automatically and only trades when the pattern is clean.

Session IFVG Bot

Session IFVG Bot
Session IFVG bot — auto-starts at a fixed time targeting key daily levels

Auto-starts at a scheduled time each day, targets key previous day levels, and looks for a specific entry pattern. Fully hands-off — it either finds a trade or it doesn't.

H1 OB → M1 FVG Bot

H1 OB Bot
Multi-timeframe bot — higher timeframe structure with lower timeframe precision entry

A multi-timeframe bot that uses a higher timeframe to identify structure and a lower timeframe for a precision entry trigger. Combines two timeframes to improve entry accuracy.

Pyramid Scalper

Pyramid Scalper XAU
Pyramid scalper — adds to winning positions as the trade moves in favour
Pyramid Scalper BTC
Same pyramid logic adapted for BTC — separate configuration for crypto volatility

A scaling bot that adds to a winning position as it moves in favour. Available for both XAU/USD and BTC, each with separate configurations suited to the instrument's volatility.

AI Asset Analyzer

AI Asset Analyzer
AI asset analyzer — on-demand deep analysis using live MT5 data and GPT-4o

On-demand deep analysis of any asset. MORPHEUS pulls live data and produces a structured bias report — trend direction, key levels, and a trade recommendation across timeframes.

Kronos Scalper

Kronos Scalper
Kronos scalper — combines the forecasting model with M5 trade recommendations

Combines the Kronos forecasting model with scalping logic to produce a structured trade recommendation — direction, confidence score, entry, SL, and TP — on the M5 timeframe.

DOCN Stock Monitor

DOCN Monitor
DOCN panel — tracking DigitalOcean stock alongside my trading

A small personal touch — a dedicated panel monitoring DigitalOcean (DOCN) stock. Since it's my employer, I like keeping an eye on it alongside everything else.

The DevOps Side

I built MORPHEUS as a trader's assistant first — but I'm a DevOps engineer full-time, so naturally it became a DevOps tool too.

Ansible API Panel
The Ansible API panel — run playbooks, check logs, ping inventory from the same interface

From the MORPHEUS chat, I can:

Slack Panel
Slack integration — monitoring DigitalOcean workspace messages without leaving MORPHEUS

The DevOps tools save me time, but the real value is everything in one place. I don't context-switch between terminals, dashboards, and Slack anymore. I just ask.

The Memory System

One thing I built early that I didn't expect to value so much: permanent memory.

MORPHEUS has a memory layer that survives chat clears and container restarts. Personal notes, task lists, trip plans, calendar events — all stored as files on my local machine, mounted into the Docker container. Every single OpenAI call injects these files directly into the system prompt.

# Tell MORPHEUS something once
"Remember: I prefer window seats on flights"
"Remember: my trading risk is 0.5% per trade"
"Remember: standup is at 11:30 AM, don't schedule trades before that"

# It writes to /morpheus-files/personal-notes/*.md
# And knows it forever — even after you clear the chat

I've had it remember my Karachi trip plans, my gym schedule, my weekend reading list — and bring them up naturally in conversation without me asking. It feels like talking to someone who actually pays attention.

Kronos — AI Forecasting

Kronos Forecast
Kronos — a dedicated forecasting service that adds a probabilistic view on top of live market data

MORPHEUS includes a separate AI forecasting service called Kronos. It takes live market data and generates a probabilistic view of where price is likely to go next. It doesn't make the final call — it's just another layer of context before I or the bot makes a decision.

What I Learned Building This

A few things surprised me:

AI tool calling is remarkably reliable. When you structure your tools well and give GPT-4o clear descriptions, it picks the right tool consistently. I've run hundreds of conversations and the routing is almost never wrong.

The AI confirmation layer matters. Adding an AI review step before any trade goes through was the single biggest improvement to bot performance. Not a new strategy — just an extra filter that asks "does this make sense right now?"

Personal context changes everything. When MORPHEUS knows I have a standup at 11:30, a Karachi trip coming up, and I'm running a 2% daily loss limit — it gives me genuinely different, better advice than a generic assistant would. Context at scale is what makes AI actually useful.

DevOps and trading are more similar than they look. Both are about managing complex systems, responding to signals, and staying disciplined under pressure. The mental models transfer directly.

What's Next

I'm actively working on the discipline layer — pre-trade gates that enforce risk limits before any order goes through, a formal daily loss limit with hard stops, and a weekly performance attribution report that breaks down P&L by strategy, session, and confluence combination.

The goal isn't to automate everything. It's to make every decision I take — in DevOps and in trading — more deliberate, more tracked, and better informed.

You don't need AI to replace you. You need AI to make sure you never make the same mistake twice.

AI Agents OpenAI GPT-4o Trading Automation MT5 DevOps XAU/USD ICT/SMC Docker Node.js React Personal Project

See the Full Project Details

All features, architecture diagrams, screenshots, and bot details in the Lab.

View MORPHEUS in the Lab →
NA
Naveed Ahmed
Lead DevOps Engineer @ DigitalOcean · 10+ years in cloud infrastructure · 2x AWS Certified · Building AI agents that work while I sleep · Based in Karachi, Pakistan