How NetTrader's AI Engine
Actually Works
From a 24-dimensional ML feature matrix to a Gemini AI Macro Brain and an 8-tier defense shield — this page explains every layer of the strategy that powers your trades.
The Triple-Loop Framework
Three concurrent loops running at different cadences. Each serves a distinct function: emergency response, rapid ML signal scanning, and deep macro reasoning.
Emergency Loop
Listens to the Telegram Bot for instant human override commands. Processes /panic, /pause, /resume, and /leverage in near-realtime, bypassing all other logic.
ML Reflex Loop
FastTree gradient-boosted model evaluates 24 market features. Outputs directional probabilities for LONG/SHORT. Opens position only if GAP > 8% threshold is met.
Gemini Macro Loop
Calls Gemini 3.1 Pro (with flash fallback) for macro-level market analysis. Determines Fear/Neutral/Greed sentiment, which modulates entry aggressiveness of the ML Loop.
24-Dimensional Feature Matrix
The FastTree gradient-boosted model processes 24 carefully engineered features across four orthogonal market dimensions — achieving AUC-ROC > 71% on 6-year out-of-sample data.
- RSI(14)
- ADX(14)
- Plus/Minus DI
- Price vs EMA(200)
- 4h Momentum
- Bollinger Width
- Bollinger %B
- ATR(14) Normalized
- Volatility24h
- High-Low Spread
- VWAP Distance
- Volume Ratio
- Market Cap Tier
- Funding Rate
- Open Interest Δ
- Bid-Ask Spread
- Order Book Depth
- Candle Body Ratio
- Wick Ratio
- Trade Count Δ
Gemini AI Executive Brain
Every 30 minutes, NetTrader consults Google's Gemini AI for a macro-level assessment of market conditions. Sentiment output dynamically modulates the ML engine's entry aggressiveness.
Model Fallback Chain
Sentiment → Action Matrix
8-Tier Defense-In-Depth Risk Shield
While the ML engine seeks alpha, the risk shield protects downside at every stage. Eight independent layers of protection work in parallel to prevent catastrophic loss.
ML Probability Gate
Requires P(LONG) or P(SHORT) > minimum AUC threshold before any trade entry.
Requires P(LONG) or P(SHORT) > minimum AUC threshold before any trade entry.
GAP Confidence Filter
Mandates |P(LONG) - P(SHORT)| > 8% to ensure directional conviction before entry.
Margin Safety Guard
Blocks new positions if current margin usage exceeds configurable % of total balance.
Dynamic Stop-Loss
Per-position SL placed at structurally significant levels with leverage-aware R:R 1:2.5.
Trailing Stop Activation
Activates trailing mechanism once position ROI exceeds configurable activation threshold.
Daily Drawdown Pause
If daily PnL drops below threshold (e.g. -3%), all new entries are paused automatically.
Emergency Balance Stop
Hard stop: if total balance falls below a critical %, all positions are force-closed.
Human Override (Telegram)
The last and always-available line of defense: /panic closes everything instantly.
Seamless Direction Flip Paradigm
When both Gemini and the ML engine agree on a reversal, NetTrader executes a clean, atomic 6-step position flip — no manual intervention needed.
Detect Signal Reversal
ML outputs opposite direction with GAP > threshold.
Confirm with Gemini Macro
Gemini sentiment aligns with or permits the reversal.
Close Existing Position
Current position market-closed at best available price.
Cool-Down Wait
Configurable minimum interval before re-entry to avoid whipsaws.
Re-calculate Entry
Fresh SL/TP levels computed for new direction.
Open Opposite Position
New position opened with full sizing logic applied.
Ready to Trade at Machine Speed?
Start with our Weekly Pass — full dashboard access, live ML signal streaming,
and one week of professional AI-driven trading.