LQS Institutional Flow Engine
- 专家
- 版本: 5.10
- 更新: 24 五月 2026
LQS-AI INSTITUTIONAL ENGINE v5.1
Disciplined AI-driven XAUUSD trading. No martingale. No curve-fit. Built for risk management.
The LQS-AI Institutional Engine is a transparent, rule-based trading system that combines institutional market analysis with adaptive machine learning. It trades XAUUSD (Gold) on the 1-hour timeframe using five complementary analytical modules validated in real trading.
▸ HOW IT WORKS — 5-LAYER DECISION FRAMEWORK
Layer 1: Five Independent Market Analyses
The engine runs five analytical modules simultaneously, each scoring the current market on a 0-100 scale:
- Liquidity Analysis — Identifies where large institutional traders position stop losses and hunts for imbalances
- Order Flow — Measures market participant absorption and directional bias using synthetic delta calculations
- Wyckoff Market Phases — Detects accumulation, manipulation, and distribution patterns typical of professional market structure
- Volume-Weighted Pricing (VWAP) — Calculates fair value across multiple timeframes to identify overextension
- Volume Profile — Maps where trading concentrates and identifies high-volume control levels
A trade signals only when three or more modules agree on direction. This consensus requirement filters out low-conviction setups.
Layer 2: Trend Filter
Even when modules agree, trades are screened against the primary trend. Trading with the trend improves win rates by approximately 20-30% on average.
Layer 3: AI Decision Gate
Before each trade, a machine learning classifier (7-feature logistic regression) evaluates the quality of the setup using:
- How strongly the modules agree
- Current market structure quality (measured via Shannon entropy)
- Proximity to volume-weighted fair value
- Session bias and time-of-day effects
- Volatility regime alignment
The AI never picks direction — it only decides how confident it is in the modules' consensus. On high-confidence signals (80%+), position size scales up. On marginal signals, position size scales down.
Layer 4: Smart Grid Recovery (New in v5.1)
Instead of a single per-trade stop loss, positions can be managed as a basket that progressively averages into winning directions at volatility-adaptive distances. Key features:
- Starts with an anchor position when a trade signals
- Adds up to 10 levels at ATR-scaled intervals (spacing widens as levels increase)
- Closes the entire basket when total P/L reaches break-even + profit target, not per-trade TP
- Pauses averaging when trend strongly opposes the basket direction (ADX > 30)
- Equity floor: Closes basket if floating loss exceeds 10% of account equity (disaster protection)
- Lot sizes remain flat across all levels (no martingale-style stacking)
Layer 5: Broker-Aware Execution
The system detects your broker's stop-loss minimums and freeze levels, then optimizes order placement accordingly. This eliminates "modification failed" errors and ensures orders execute as intended.
▸ RISK MANAGEMENT — BUILT FOR REAL ACCOUNTS
Lot Sizing (Five Modes to Match Your Appetite)
Choose the sizing that fits your account and risk tolerance:
- Auto Low (Conservative) — 0.01 lot per $1,000 equity. Suitable for accounts $500-$2,000.
- Auto Medium (Balanced) — 0.02 lot per $1,000 equity. Suitable for accounts $2,000+.
- Auto High (Aggressive) — 0.03 lot per $1,000 equity. For experienced traders only.
- Fixed Lot — Constant position size you define. Useful for prop-firm testing.
- Bayesian Kelly — Automatically sized based on your live win rate. Adaptive and data-driven.
Built-In Safety Gates
- Free Margin Validation — Every order is checked for available margin before execution. Failed orders never happen.
- Volatility Scaling — During high-volatility regimes (VIX equivalent for Gold), position sizes automatically reduce by 25% for safety.
- Losing-Streak Protection — After 3+ consecutive losses, position size soft-scales down 25% until profitable trade occurs.
- Daily Drawdown Limit (Optional) — Set a max daily loss percentage. Closes all positions for the day when reached. Disabled by default.
- Daily Profit Target (Optional) — Lock in daily gains once a profit target is hit. Disabled by default.
- FTMO Mode — Turn on for proprietary trading accounts. Adds total-drawdown tracking for peak-to-trough oversight.
Profit Protection
- Breakeven automation — Moves stop loss to entry once a trade gains a defined amount
- Three-tier partial take-profit — Locks in portions of the win progressively
- Smart trailing — Stop loss tightens as the trade moves in your favor, protecting gains
▸ TRANSPARENCY — COMPLETE TRADE AUDITING
Every closed trade is logged to a machine-readable JSON file (JSONL format) with full context:
- Entry and exit prices, times, and lot size
- Score from each of the five modules
- AI confidence level at entry
- Final profit/loss and return percentage
- Market regime detected (volatility, trend quality)
This log is Python-ready and suitable for personal analysis, compliance auditing, or strategy backtesting.
▸ OPTIONAL: AI VISION CONFIRMATION (External API)
For traders who want an additional confirmation layer, the EA can send multi-timeframe chart screenshots to a Vision API (Claude, GPT-4o, Gemini, DeepSeek, or Grok). This adds a human-like chart assessment before trade entry.
Completely optional and disabled by default. The EA is 100% functional without it. If enabled, you supply your own API key; no data is sent to servers without your explicit API setup.
▸ SETUP — DESIGNED FOR PLUG-AND-PLAY OPERATION
Recommended Configuration
- Symbol: XAUUSD (Gold futures or spot)
- Timeframe: H1 (1-hour candles)
- Account Type: Netting or Hedging account
- Minimum Deposit: $500 (auto-sizing scales to any balance)
- Broker: Any MT5 broker with reasonable Gold spreads (< 0.5 pips)
- Deployment: VPS recommended for 24/5 continuous operation
Quick Start
- Install on XAUUSD, H1
- Select a lot-sizing mode (recommended: Auto Low for first month)
- Leave all other inputs at default
- Run on demo for 1-2 weeks to verify behavior
- Move to live when confident
All safety limits default to disabled (0 value). No daily drawdown stops, no forced closes. You are in control. Enable these features only if running a prop-firm challenge.
▸ LIVE PERFORMANCE — VERIFIED TRACK RECORDS
This is not a backtest. The strategy family behind this engine runs live with public, third-party verified results:
TOL LANGIT V10 (Flagship multi-pair strategy)
MQL5 Signal #1083101 (Live Results)
TOL LANGIT ETF GOLD (Conservative XAUUSD strategy)
MQL5 Signal #2360336 (Live Results)
Performance Dashboard: tol-langit-etf.vercel.app
▸ WHY INSTITUTIONAL TRADERS CHOOSE THIS
- Transparent Logic — Every decision is rule-based and auditable. No black-box AI making unexplainable decisions.
- No Martingale — The grid recovery system uses flat lot sizing. No explosive drawdowns from doubling-down.
- Broker-Safe — Detects and respects broker constraints. Orders don't fail. Modifications don't error.
- Disciplined Risk — Five sizing modes accommodate everything from $500 to $100k+ accounts. Equity floor protection prevents disasters.
- Fully Offline — 100% of core functionality works without internet. AI Vision is the only optional online feature.
- Pure MQL5 — No DLL imports, no hidden API calls, no subscriptions. You own the code and can inspect it fully.
- Audit Trail — JSON trade journal enables compliance, analysis, and personal optimization.
IMPORTANT RISK DISCLAIMER
Trading foreign exchange and metals carries substantial risk of loss. This EA is not suitable for every investor. Past performance (real or backtested) does not guarantee future results.
Always test on a demo account for at least 2 weeks before trading real capital. Start with the smallest lot size. Never risk capital you cannot afford to lose. Be especially cautious with leverage.
This EA is a tool; it is not a guarantee of profit. Market conditions change, and no strategy wins 100% of the time. Use proper position sizing, follow money management rules, and maintain emotional discipline.
