AM Capital Ecosystem

System Architecture & Technical Documentation

01. Introduction & Philosophy

The North Star & AM Capital Manifesto

AM Capital is engineered on a singular, irrefutable truth: markets are unforgiving, and human emotional decision-making is the primary catalyst for capital destruction. The manifesto is rooted in absolute numerical discipline. Every feature, module, and algorithmic process within the AM Capital ecosystem is designed to mechanically enforce this discipline, prioritizing capital preservation mathematically over speculative gains. The platform operates strictly on the principle of Data Over Ego, ensuring every market action is substantiated by quantitative metrics rather than intuition.

Core Pillars

  • Cognitive Bias Eradication: Removing the human element from execution. Decisions are driven by statistical probability models, not sentiment, hope, or fear.
  • Data-Driven Transparency: Real-time access to institutional-grade data, providing a clear, unfiltered view of market conditions directly via API structures.
  • Centralized Risk Management: A systemic approach to portfolio protection. The system enforces strict risk parameters, preventing catastrophic drawdowns before they mathematically can occur.

System Architecture Overview

The platform utilizes a robust, decentralized architecture. The frontend leverages HTML5 and TailwindCSS for a high-performance, asynchronous, responsive interface. Firebase handles secure authentication and NoSQL database management, ensuring data integrity and rapid querying. Netlify provides a global CDN edge network for rapid deployment and content delivery. The backend computational engine is powered by Google Apps Script, orchestrating complex quantitative models, API calls, and data aggregation seamlessly.

02. Access & Authentication

Secure Terminal Login

Access to the AM Capital terminal is strictly gated. The login.html module provides multiple secure authentication vectors to accommodate global users while maintaining high-grade security protocols. Supported login methods include Email/Password, Google OAuth, Facebook, X (Twitter), Yahoo, and direct Phone OTP verification.

Security Features and Firebase Integration

The authentication infrastructure is directly integrated with Firebase Auth. This ensures institutional-grade encryption (AES-256) for user credentials and session token management at the server level.

INFO

All session tokens are dynamically refreshed automatically, and unauthorized access attempts are logged, rate-limited, and flagged by the backend security protocol.

03. The Trader's Vault

Execution Journal

Located in management.html, the Execution Journal is a mandatory protocol for tracking performance metrics. It automatically parses trade data to calculate core metrics essential for evaluating algorithmic strategy efficacy.

  • Automated PnL: Real-time absolute and relative profit and loss tracking.
  • Win Rate: Statistical probability of profitable executions over an n-period sample size.
  • Profit Factor: Gross profit divided by gross loss. A non-negotiable metric of absolute edge.
  • Max Drawdown: Peak-to-trough decline utilizing strict chronological time-sequence tracking rather than absolute yearly highs and lows, representing the worst-case historical risk scenario.
  • Export Data: The system allows exporting historical executions, with numerical syntax strictly enforcing comma separation to seamlessly align with local spreadsheet syntax guidelines.

Risk Engine

The Risk Engine strictly enforces SURVIVAL MODE protocols. It mandates a hard maximum 1% risk of total equity per trade, functioning as an unbreakable barrier against emotional over-leveraging and revenge trading.

CRITICAL WARNING

Bypassing the 1% risk rule fundamentally violates the Survival Mode protocol and mathematically guarantees eventual capital ruin via the law of large numbers.

The engine utilizes the Kelly Criterion to mathematically optimize position sizing based on established historical edge:

f* = (p * b - q) / b

Where:
f* = Fraction of the current bankroll to wager
p  = Probability of a winning trade
q  = Probability of a losing trade (1 - p)
b  = Proportion of the bet gained with a win (Reward/Risk Ratio)

DCA Projection & Asset Tracker

The compound growth simulator is engineered to map out long-term capital accumulation trajectories, utilizing iterative compounding models to visualize portfolio growth over extended horizons. Coupled with the Allocation Matrix, it dynamically tracks weight distribution across asset classes (Crypto, Equities, Precious Metals), ensuring the portfolio remains variance-balanced according to modern portfolio theory.

04. Global Macro Intelligence

Live Intel Ticker & Institutional Asset Tracking

Housed in sentiment.html, this module aggregates real-time quantitative data feeds, tracking major institutional asset movements via WebSockets. It provides a macro-level view of capital rotation, allowing operators to align capital deployment with smart money positioning.

Derivatives & Liquidity Data

  • Fear & Greed Index: Integration of the CNN logic formula to quantify broader market sentiment. Serves as a contrarian indicator identifying potential exhaustion zones.
  • Binance API Metrics: Direct integration providing Open Interest (outstanding contracts), Long/Short Ratios (positioning skew), and Funding Rates (cost of leverage).
  • Liquidity Monitor: Tracks total market capitalization of USDT and USDC, functioning as a leading indicator for systemic liquidity entering or exiting the digital asset ecosystem.

05. US Equity Screener & Valuation

Q-Portfolio Risk Profiles

The us_screener.html module systematically categorizes equities into four distinct risk profiles based on beta and earnings momentum: Value (trading below intrinsic), Growth (high momentum, forward-earning), Defensive (low beta, recession-resistant), and Trend (strong directional momentum).

DCF Valuation Tool

The dcf_calculator.html module executes rigorous fundamental analysis automatically. It projects Free Cash Flow relying exclusively on finalized year-end financials (eliminating year-over-year mismatch from third-quarter metrics), computes the Weighted Average Cost of Capital (WACC), and extrapolates Terminal Growth to establish the absolute Fair Value of an equity.

DCF = Σ (CF_t / (1+r)^t) for t=1 to n

Where:
CF_t = Cash Flow in period t
r    = Discount Rate (WACC)
n    = Total number of projection periods

06. Algorithmic & Indicator Systems

Pine Script Alpha Indicators

  • SR Channel (Volume Delta): Maps dynamic support and resistance zones specifically based on aggressive volume delta, isolating hidden institutional liquidity pockets on TradingView.
  • VWDO Oscillator: A Volatility-Weighted Directional Oscillator mathematically designed to filter low-volume market noise and identify high-probability momentum shifts.

MQL5 Expert Advisor (EA Auto Trade)

An automated execution protocol deployed directly on MetaTrader 5 servers. It utilizes a Confluence System requiring multiple algorithmic signals to mathematically align before order execution. The system features Auto BEP (automatically adjusting stops to break-even to preserve capital) and Dynamic Trailing (algorithmic trailing stops based on ATR to maximize profit capture during extended trends).

07. Partner & Affiliate Protocol

Commission & Tracking Structure

Integrated directly into the primary architecture, the program programmatically issues a 15% commission per verified conversion. It utilizes a cryptographic 30-day cookie tracking window to ensure accurate, immutable attribution.

All affiliate telemetry, click-through rates, and conversion metrics are securely aggregated and tracked in real-time utilizing a Supabase PostgreSQL backend, guaranteeing institutional transparency and instant settlement data visualization for partners. Unique tracking identifiers and URLs are generated programmatically upon successful onboarding.