Termos de Referência
ChatGPT-Integrated MT5 EA for Probability-Based Trade Execution & Live Market Discussion
Project Overview
This Expert Advisor (EA) does not determine trade signals. Instead, ChatGPT analyzes market conditions, calculates probability-based trade setups, and provides instructions for execution. The EA simply acts as an execution engine, executing trades based on ChatGPT’s signals with an optional manual verification mode before execution. Additionally, the user can actively converse with ChatGPT to analyze, adjust, and optimize trade decisions inside MT5.
📌 Key EA Features & Functions
1️⃣ Live Market Data Sent to ChatGPT
The EA continuously feeds real-time data to ChatGPT, including: ✔ VWAP (MT5’s Built-in Indicator, Used Across Multiple Timeframes)
✔ Support & Resistance Levels (Key price reaction zones)
✔ Williams %R Across All Timeframes (Momentum & exhaustion detection)
✔ EMA Cross (9/26, 50/200 if needed) (Trend confirmation)
✔ Market Structure (Breakouts, reversals, liquidity zones)
✔ Recent Price Action (Momentum shifts & volatility spikes)
✔ Order Flow & Liquidity Zones (Avoiding stop hunts and false moves)
✔ Bid/Ask Prices, Open Orders, Active Positions
2️⃣ ChatGPT Analyzes & Determines Trade Probability
Whenever requested, ChatGPT will analyze:
✔ Percentage Probability of Long & Short Trades
✔ Entry & Exit Strategy
✔ All Potential Take Profit Targets Above 70% Probability
✔ Stop Loss & Trailing Logic Based on Market Structure
✔ Trade Adjustment Suggestions If Conditions Change
💡 Example ChatGPT Output:
🔹 Short Trade (USD/JPY) – 78% Probability
Entry: 148.50
TP1: 148.20
TP2: 148.00
SL: 148.80
Risk/Reward: 1:2
🔹 Long Trade (USD/JPY) – 72% Probability
Entry: 148.00
TP1: 148.30
TP2: 148.60
SL: 147.80
Risk/Reward: 1:2
3️⃣ Live Chat & Trade Conversation Feature
✔ The user can chat with ChatGPT directly inside MT5.
✔ ChatGPT provides detailed trade analysis, alternative trade ideas, and risk assessments.
✔ The user can ask questions, tweak parameters, or get insights on different currency pairs.
✔ Example conversation:
❓ "What is the probability of a short on USD/CNH at 7.1900 for 50 pips?"
💬 ChatGPT: "Current probability of a short trade on USD/CNH at 7.1900 is 74%. Suggested SL: 7.1950, TP: 7.1850. Would you like to execute this trade?"
4️⃣ Suggested Trade Signals + Manual Verification Mode
✔ ChatGPT suggests trades based on probability.
✔ The EA can be set to manual confirmation mode, where the user must verify trades before execution.
✔ If manual mode is OFF, the EA executes ChatGPT-approved trades automatically.
✔ If manual mode is ON, ChatGPT suggests trades, and the user confirms them via an alert pop-up before execution.
5️⃣ EA Executes Trades Based on ChatGPT Signals
✔ The EA places orders ONLY when ChatGPT signals a high-probability setup.
✔ If ChatGPT updates probability or conditions change, the EA modifies or closes trades accordingly.
✔ The EA sends trade updates & confirmation back to ChatGPT.
📌 Additional Enhancements & Safeguards
✅ Trade Logging & Reports
✔ All trades will be logged, including:
- Trade Entry/Exit Times
- Probability Score at Execution
- SL/TP Adjustments & Performance Metrics
✔ ChatGPT can use past trade performance to optimize future trade suggestions.
✅ Error Handling & Recovery
✔ If ChatGPT API is down or unresponsive, the EA:
- Pauses Execution (No trades until ChatGPT is back online).
- Notifies the User inside MT5.
- Logs Errors for debugging.
✔ If the MT5 terminal disconnects or loses connection, the EA:
- Cancels new trade execution.
- Ensures active trades remain managed.
✅ Customization Options for Users
✔ Users can adjust the following parameters inside MT5:
- Risk Management (Trade size, account risk %, max drawdown)
- Manual vs. Auto Execution (Toggle manual trade verification)
- Max Open Trades at Once
- Max Trades Per Day
- Minimum Trade Probability for Execution
✅ Performance Monitoring Panel
✔ A live dashboard inside MT5 displaying:
- Active Trades
- Trade Probabilities
- ChatGPT’s Latest Market Analysis
- Current Account Risk Exposure
📌 Micro-Lot Testing for Safe Validation
To ensure ChatGPT-driven trade execution is reliable before full deployment, we will implement a live micro-lot testing phase with real market conditions while minimizing financial risk.
✅ Why Micro-Lot Testing is Necessary
✔ Real Market Conditions: Avoids demo account discrepancies (spread, slippage, execution speed).
✔ Risk Control: Uses 0.01 lot trades to ensure negligible losses per trade.
✔ Improves AI Adaptability: Ensures ChatGPT adjusts dynamically to market shifts.
✔ Verifies Probability Model: Compares ChatGPT's predicted probability vs. actual win rate.
✔ Prevents Overfitting to Historical Data: Live trades eliminate unrealistic backtesting risks.
🔥 Implementation Plan for Small-Lot Testing
1️⃣ Trade Size Control
✔ Default trade size 0.01 lots (micro-lots).
✔ Cap daily risk to 0.5% of account balance.
✔ Both long & short positions are tested across multiple assets.
2️⃣ Only Execute High-Probability Trades
✔ Trades execute only if probability > 75% to filter weak signals.
✔ Track if actual win rate aligns with predicted probability.
3️⃣ Monitor Execution Quality & Adjustments
✔ Log all trades, including slippage, spread, and fill speed.
✔ Adjust SL/TP dynamically based on real-time market conditions.
4️⃣ Scaling Up Gradually
✔ After 50-100 successful micro-lot trades, review performance.
✔ If profitable, increase trade size to 0.05 lots, then 0.10 lots.
✔ Full deployment only when ChatGPT consistently outperforms random execution.
📌 Developer Requirements for Implementation
🔹 MT5 EA Must Support
✔ ChatGPT API Integration for real-time trade decision-making.
✔ Manual Trade Verification Option before execution.
✔ Micro-Lot Trading (0.01 lots) for safe testing.
✔ Live Trade Logging (entry, exit, probability, SL/TP adjustments).
✔ Trade Execution Monitoring Panel inside MT5.
✔ Error Handling & Recovery (API failures, connection issues).
✔ Performance Tracking Dashboard inside MT5.
📌 Budget & Payment Terms
💰 Budget Range: $1,500 – $3,000 (based on experience & performance).
🕒 Timeframe: 4-6 weeks development + micro-lot testing phase.
💳 Payment Terms: Full payment upon successful completion & validation.
📝 Code Ownership: The final source code belongs to the client.
🚀 Why This System is the Future of Trading
💡 ChatGPT dynamically adapts to market shifts.
💡 No rigid trade logic – trades only executed at high-probability points.
💡 Live conversation with ChatGPT provides real-time trading insights.
💡 Safe testing through micro-lots ensures reliability before full deployment.