Inspiration
** A Battle for Survival The inspiration for Guard AI didn't come from a textbook; it came from the reality of the 90-90-90 rule: 90% of retail traders lose 90% of their money within 90 days.
But the numbers don't tell the whole story. In the crypto world, the 24/7 market volatility creates a relentless psychological toll. I’ve seen communities where a single "liquidation" doesn't just mean a lost account. It leads to broken families, lost life savings, and in the most tragic cases, a total loss of hope. Studies show that active crypto trading is linked to higher rates of depression, anxiety, and even suicidal ideation.
I realized that we don't need another indicator or a faster chart. We need a safety net. I wanted to build a terminal that can say "No" when a human is about to make a life-altering mistake.
What it does
In short, Guard AI is a professional-grade safety layer for trading execution. It uses AI to enforce discipline, validate strategy structure, and prevent impulsive behavior before and during live trading Powered by Gemini 3.
Guard AI does not generate trade signals or predict markets. Its purpose is to ensure that traders follow clearly defined rules and remain protected from emotional decision-making.
Guard AI currently operates across three core safety mechanisms:
- The Strategy Lab (AI Checklist Generator + Rule Evaluation)
Instead of trading based on vague intuition, traders describe their strategy in plain English.
What it does: Gemini 3 Flash converts natural-language strategies into structured, machine-enforceable execution rules.
How it works:
The strategy is synthesized into a strict checklist (e.g., RSI threshold, trend confirmation, volume condition).
When users click on the Ai Backtest Button Gemini 3 retrieves recent historical OHLCV price data using Yahoo Finance.
An evaluation routine analyzes how often valid setups occurred, whether rules conflict, and whether the strategy logic is internally consistent.
This evaluation is designed to identify structural weaknesses and ambiguity, not to forecast price movement or optimize profitability.
The Guard: The trading interface remains locked until:
All checklist conditions are explicitly confirmed
The trader’s risk profile is unlocked
This ensures execution cannot proceed without rule compliance.
- The Risk Guardian (Live Discipline Enforcement)
Guard AI includes a live discipline enforcement layer that operates independently of trader intent.
Currently implemented protections include:
Revenge Trade Lock: If daily loss or trade limits are exceeded, the account is locked for a mandatory cooldown period.
Discipline Enforcement: Locks are enforced at the database level and reflected immediately in the UI, preventing circumvention.
This system is designed to force disengagement during emotionally compromised trading states.
Position sizing and percentage-based exposure limits are planned extensions of this layer.
- The Trade Journal & Behavioral Feedback Loop
Every trade is automatically logged and analyzed.
What it does:
Tracks whether each trade followed the predefined plan
Aggregates execution discipline into performance metrics over time
AI Behavioral Analysis: Gemini 3 analyzes trade logs and annotations to identify behavioral patterns such as:
Impulsive execution
Risk escalation after losses
Inconsistencies between stated strategy and actual behavior
This produces structured behavioral insights designed to improve discipline, not provide financial advice.
Image-based trade review is a planned enhancement to this system.
Why this matters
Guard AI addresses the Execution Gap the difference between knowing a strategy and following it under pressure.
By combining:
Gemini 3–based reasoning
Deterministic backend enforcement
Real historical market data
Guard AI transforms subjective trading intent into objective, enforceable constraints.
Its core philosophy is simple:
Defense first. Discipline always.
Challenges we ran into
The "Ghost Login" Bug: Trading requires zero distractions. I had to build a custom Silent Refresh Interceptor in the frontend to ensure that a trader is never logged out or distracted by a technicality during high market volatility.
Legacy Connectivity: Bridging a modern web app to MetaTrader 5 (a legacy Windows application) required a complex Python IPC layer to ensure the risk-lock happens instantly.
Gemini 3 Configuration: Integrating Gemini 3 directly into a local system (via Antigravity) was necessary for deep, custom logic. Moved away from Google AI Studio for more control over the Project.
Stretching Gemini 3 for Strategy Evaluation: One advanced challenge was using Gemini 3 to analyze historical market data from Yahoo Finance for strategy validation.
Historical OHLCV data is normalized and summarized before input.
Gemini 3 evaluates rule consistency, frequency of valid setups, drawdown sensitivity, and structural weaknesses.
Importantly, this is analysis, not prediction. it checks if a strategy would have adhered to the rules in past conditions, without generating signals or advising trades.
Accomplishments that we're proud of
"As a Junior Developer and a Trader in Nigeria, I faced a trifecta of challenges: market volatility, technical hurdles, and infrastructure gaps. I am proudest of the fact that despite these obstacles, Guard AI is no longer just a dream in my head. it is a live, working platform. I turned the frustration of my own trading losses into a solution for the global trading community."
What we learned
The biggest lesson I learned is that Code is Discipline. A human will move their Stop Loss out of hope; a Python backend won't. I learned that building for traders is 20% about the data and 80% about the psychological architecture. By moving risk management from the human mind to the AI-enforced software, we create an unbreakable barrier against self-destruction.
According to Paul Tudor Jones “The most important rule of trading is to play great defense, not great offense.”
What's next for Guard AI
Evolving for the Retail Trader Our immediate roadmap focuses on deepening the "Psychological Guardrails" by integrating real-time sentiment analysis and behavioral tracking. We want to help traders move beyond "guessing" to making data-driven decisions that are backed by the same discipline used in high-level trading desks by using Ai.
Democratizing Hedge Fund Discipline Hedge funds don't win because they are luckier; they win because they have institutional-grade risk management. Our goal is to make these high-level tools a prerequisite for every retail trader. We are building the "Standard Oil" of trading discipline. a universal terminal that forces retail users to manage risk, position size, and emotional exposure exactly like a billion-dollar fund.
Global Scaling & Accessibility We aim to take Guard AI global, bridging the gap for traders in emerging markets like Nigeria. By integrating more local and international brokers through an expanded Universal Connect API, we want to ensure that any trader, anywhere in the world, has a digital supervisor protecting their capital from the "human element."
4.Automating Retail Strategies: Reduce the human emotional factor in execution, helping traders avoid losses caused by impulsive decisions.
Log in or sign up for Devpost to join the conversation.