OpenAi Japan Exo Scalp EA v3.35 Manual body{font-family:Arial,Helvetica,sans-serif;line-height:1.6;margin:0;padding:20px;background:#fafafa;color:#222} h3{margin-top:40px;margin-bottom:10px;font-size:1.5em} h4{margin-top:25px;margin-bottom:6px;font-size:1.15em} table{border-collapse:collapse;width:100%;margin-top:12px} th,td{border:1px solid #999;padding:6px 8px;text-align:left;vertical-align:top} .note{font-style:italic;color:#555} .warn{color:#c00;font-weight:bold}
1. Introduction
What is “OpenAi Japan Exo Scalp EA”?
OpenAi Japan Exo Scalp EA is a MetaTrader 5 (“MT5”) Expert Advisor that blends Japanese financial-engineering know-how with OpenAI’s GPT-series models. Version 3.35 introduces a “Three Arrows” consensus engine (o4-mini + GPT-4.1 + GPT-3.5-turbo) and 200-plus lines of additional risk controls. It is engineered for short-term scalping on pairs such as USDJPY or EURUSD.
Main Benefits
- Hybrid AI engine: three separate GPT models vote; you decide whether to require unanimous agreement ( UseAllAgree = true ).
- ATR-adaptive SL/TP: automatic position sizing and SL/TP distance that expands or contracts with volatility.
- Spread & news shields: trades are skipped when spreads exceed SpreadThresholdPip or when high-impact calendar events fall in the defined buffer window.
- Built-in cooldown / trailing / break-even logic for draw-down mitigation.
- 100 % Stop-loss protected, no martingale, no grid.
How does the EA work?
- Every new bar (default: M15) the EA collects technical metrics (EMA slope, ATR, DI difference, etc.).
- Those metrics are injected into a JSON prompt and sent to each model via HTTPS ( ChatGptEndpoint ).
- The three models answer BUY / SELL / NO. A voting function translates the result into BUY SIGNAL, SELL SIGNAL or NO SIGNAL.
- Final local filters (spread, session, news, max-trades-per-day) must all pass before an order is executed.
2. System Requirements & Installation
Software & Hardware
- MetaTrader 5 build 4120 or newer.
- Windows 10/11 64-bit (or Linux/macOS VPS with Wine) with a steady 24 × 5 internet line.
- OpenAI account funded with at least USD 5.
- VPS latency below 50 ms to broker is recommended for scalping.
Step-by-Step Installation
- Copy OpenAi_Japan_ExoScalp_EA.ex5 into MQL5/Experts and press “Refresh” in the Navigator.
- Drag the EA to a chart (M15–H1). Activate “Allow algorithmic trading” and “Allow DLL imports”.
- Whitelist https://api.openai.com in Tools → Options → Expert Advisors → Allow WebRequest for listed URL.
- Open the Inputs tab → paste your secret key into OpenAI_API_Key . (Key-issuance tutorial: see the blog links in section 8)
- Click OK. The smiley icon confirms the EA is running.
3. Parameter Reference (v3.35 — every input exposed)
Tip: Beginners should trade on demo with defaults first, then adjust one block at a time.
Header / Parameter | Function | Typical Range / Default |
---|---|---|
=== AI Settings === | ||
OpenAI_API_Key | Your secret key (sk-…) | (mandatory) |
UseAllAgree | Require unanimous 3-model vote | true = fewer trades, false = 2-of-3 |
Arrow 1 (o-family) | ||
Arrow1_Model | Select model (e.g. o4-mini-2025-04-16) | o4-mini (fixed) |
Arrow1_Temp | Creativity (ignored by o-family) | 1.0 (locked) |
Arrow 2 (GPT-4.1) | ||
Arrow2_Enable | Toggle second arrow | true |
Arrow2_Model | Model name | gpt-4.1-2025-04-14 |
Arrow2_Temp | Temperature | 0.6 (balanced) |
Arrow 3 (GPT-3.5) | ||
Arrow3_Enable | Toggle third arrow | true |
Arrow3_Model | Model name | gpt-3.5-turbo |
Arrow3_Temp | Temperature | 0.3 (conservative) |
=== Market Analysis Settings === | ||
AnalysisTimeframe | Chart timeframe used in prompts | M15 (1 bar ≈ 15 min) |
SlopeSmoothBars | EMA slope smoothing length | 3 |
UseDiffDI / DI_Flat_Threshold | ADX ±DI filter and its flat threshold | true / 5.0 |
AtrFilterFactor | Extra ATR multiplier for “quiet-market” filter | 1.0 = off |
=== Forex Market Hours === | ||
UseLondonSession | Trade only GMT 08:00–17:00 | false |
UseNYSession | Trade only GMT 13:00–22:00 | false |
InpGMTOffsetHours | Your broker-server − UTC offset | 0 (auto-detect) |
=== News Filter === | ||
EnableNewsFilter | Block new trades near events | false |
FilterMinutesBefore / After | Time buffer around event (minutes) | 15 / 15 |
NewsImportanceLevel | 1 = Low, 2 = Medium, 3 = High | 2 |
ClosePositionsOnNews | Close open trades when event triggers | false |
ShowCalendarOnChart | Draw vertical lines for events | false |
=== Trading Settings === | ||
MaxTradesPerDay | Daily cap of new positions | 800 (max for testing; cut to 30 for live) |
=== Stop-Loss & Take-Profit === | ||
UseATRForSLTP | Dynamic SL/TP (true) or fixed pips (false) | true |
ATRPeriod | ATR look-back length | 14 |
SL_ATR_Factor / TP_ATR_Factor | ATR multipliers | 1.2 / 2.6 |
StopLossPips / TakeProfitPips | Fixed fallback (pips) | 50 / 100 |
=== Risk Management === | ||
RiskPercent | % balance risked per trade | 1.0 |
SpreadThresholdPip | Maximum allowed spread (pips) | 3.0 |
=== Lot Settings === | ||
UseFixedLot | Ignore RiskPercent and use static lots | false |
FixedLotSize | Lot size when above is true | 0.01 |
=== Additional Filters === | ||
UseAdditionalFilter | Volatility threshold gate | true |
VolatilityThreshold | ATR × points threshold | 1000 |
=== Trailing / Cooldown === | ||
UseTrailingStop | Activate trailing SL | false |
TrailingStartPips / TrailingStopPips | Distance to start / trail | 25 / 20 |
BreakEvenPips | Move SL to break-even after x pips | 20 |
UseCooldown / CooldownBars | Bar-count pause after close | false / 5 |
=== Misc. Diagnostics === | ||
InpMagicNumber | Unique ID per chart | 123456 |
DebugVerboseLogs | Print slope/ATR debug | false |
4. Using the EA
Live-Trading Checklist
- Attach EA on one symbol per chart; set unique MagicNumber.
- Let it run 24 × 5 on a VPS to avoid session breaks.
- Monitor OpenAI balance; o4-mini ≈ USD 0.001 / request, GPT-4.1 ≈ 0.03 – 0.06 / request.
- Keep daily trade cap realistic ( MaxTradesPerDay = 30 – 60 ).
Back-testing Notice
MT5’s built-in Strategy Tester cannot replay external WebRequests. Always forward-test on demo instead.
Typical Troubles
- EA icon is sad → “AutoTrading” is off or DLL/WebRequest not permitted.
- Error 401 → bad or expired API key.
- No trades for hours → spread above threshold, news filter active, cooldown active, or GPT replied “NO”.
5. Best Practices
- Low leverage & low spread ECN accounts keep costs small.
- RiskPercent ≤ 1 % is recommended until ≥ 50 live trades are logged.
- During NFP/FOMC widen SpreadThresholdPip or disable EA.
6. FAQ (excerpt)
A consolidated 60-item FAQ is maintained in the purchaser group; highlights:
- Back-test? → Forward demo only.
- Prop firms? → Yes, but verify daily-loss rules.
- API key per account? → One key is fine; usage is pooled.
- No martingale? → Correct: each trade has a fixed SL.
7. Support & Useful Links
- Installation guide (EN): https://www.mql5.com/en/blogs/post/761209
- API key guide (EN): https://www.mql5.com/en/blogs/post/761210
- MQL5 documentation: https://www.mql5.com/en/docs
8. Legal Notices
- This software is provided “as-is”; trading is risky; past performance ≠ future returns.
- No resale or distribution without permission.
- Refunds are not possible after activation (MQL5 policy).
© 2025 AI Trader KYO – OpenAi Japan Exo Scalp EA v3.35