Skip to main content

Risk Informed Investment Approach (RIIA) with Agentic AI

In the fast-paced financial world, investors face a constant barrage of challenges: massive amounts of raw data, sudden market volatility, and the psychological hurdles of greed, fear, and FOMO (Fear of Missing Out). . This becomes a perfect use case to build data science model around proper risk management and then make it accessible through Agentic AI approach. This also helps great deal with keeping emotions out of the game and focus on quantitative signals. Risk Informed Investment Approach (RIIA) is designed to cut through such noise, offering an risk information platform that prioritizes positive sharpe ratio and restrict maximum portfolio drawdown.

Project Goal : Consistency Over Chaos

The primary business goal of RIIA is to minimize risk while maintaining steady performance. To measure success, the project focuses on two key financial metrics

  • Sharpe Ratio: Targeting a return factor over the risk-free rate of greater than 1
  • Maximum Drawdown: Keeping portfolio losses below 10%


The Architecture: From Data to Decision

RIIA operates through a sophisticated multi-layered pipeline that integrates a Data Science Layer with an Agentic AI Layer.

1. The Data Pipeline

The foundation is built on a massive public dataset spanning 2010 to 2025, including daily OHLC (Open, High, Low, Close) and volume data.

  • Feature Engineering: The system analyzes 33 distinct features, including 21 technical indicators and 6 market perception features.

  • Champion Pattern Selection: RIIA identifies high-probability chart patterns like the Bullish Flag, HnS, DoubleTop, and DoubleBottom, using F2-scores to prioritize reliability and recall.

2. The Agentic AI Layer

RIIA moves beyond simple automation by employing a suite of specialized AI Agents, each mimicking a professional role in a financial firm:

  1. Research Analyst: Monitors macro-economic trends.
  2. Sentiment Analyst: Tracks greed/fear indicators
  3. Technical Analyst: Analyzes candlestick patterns and charts.
  4. Strategy & Scenario Analysts: Determine investment approaches and evaluate adding  to existing positions.
  5. Execution & Outcome Analysts: Handle the execution and review pass/fail investments to refine future learning.

  • Flow Diagram
Below is the flow diagram and communication layer with Agentic AI. It follows CRISP-DM data science methodology.

 

Deployment and Tech Stack

The project is built on a modern stack and is discoverable to Agentic AI through the Model Context Protocol (MCP):

  • Data Science: Python (pandas, matplotlib), Random Forest, and DDQN Reinforcement Learning.

  • Agentic AI: FastMCP, FastAPI, Pydantic AI for workflows, and integration with the Claude Desktop tool.

Comments

Popular posts from this blog

AI Meets EA: How Artificial Intelligence is Transforming Enterprise Architecture

  "Architects who use AI will replace those who don’t."   This quote captures the reality of modern enterprise technology. Industry surveys, such as Gartner’s 2025 predictions , indicate that 70% of organizations will use AI-driven decision-making in IT governance and architecture . As organizations grow more complex, AI is now an integral part of Enterprise Architecture (EA) strategy. The Case for AI in Enterprise Architecture Enterprise Architecture exists to provide clarity, structure, and alignment between business goals and IT capabilities. However, the digital era introduces challenges: Explosion of complexity : Applications, APIs, microservices, and cloud services create sprawling ecosystems. Data overload : Organizations sit on massive volumes of data , yet struggle to extract actionable insights. Pace of change : Strategic decisions can’t wait for weeks of analysis— predictive and prescriptive capabilities are now essential. This is where AI steps in as a...

Enterprise Architect aligned to Corporate Lifecycle

Enterprise Architecture (EA) has long been criticised for being either too rigid or too abstract. But I see this as not a problem with EA itself—but mainly the one size fit all approach that is followed. Organisations like any other live ecosystem goes through a lifecycle. Renowned valuation expert Aswath Damodaran's corporate lifecycle framework offers a powerful lens through which we can reimagine the strategic role of EA. EA is a shape-shifter , adapting its value, focus, and tools based on where a company is in its business lifecycle. Enterprise Architecture Across the Corporate Lifecycle The table below highlights how EA adapts its focus, addresses stage-specific challenges, and utilizes different tools as a company moves through Damodaran’s lifecycle stages: Lifecycle Stage Business Focus EA Challenges EA Focus Areas Key Tools & Methods Start-up (Idea Business) Prove viability, rapid iteration Lack of structure, tech founder-driven, resource constraints Define core capa...