Heads-up: Over the subsequent ~10 minutes, I’ll publish the AI Information Strike EA guide to my MQL5 weblog in a number of languages. You might obtain a number of notifications—thanks for understanding.The product launch is scheduled for 13:30 (UTC). Thanks to your endurance.
AI Information Strike EA v1.0 Onboarding Guide & Set Information
AI Information Strike EA — MQL5 Market web page:https://www.mql5.com/en/market/product/153455
1. Overview
AI Information Strike EA (NSE) is a subsequent‑era scalping EA that targets financial launch spikes by combining the “GDELT Venture,” one of many world’s largest information databases, with Perplexity Sonar‑Professional’s actual‑time net search AI.
■ Section 1: Computerized retrieval of financial‑launch knowledge by way of the GDELT Venture
The GDELT Venture is an enormous huge‑knowledge initiative that collects and analyzes lots of of thousands and thousands of reports articles day by day from 100+ nations in 100+ languages. This EA makes use of GDELT’s aggregated financial information to routinely acquire scheduled launch time, significance, anticipated volatility vary, and goal foreign money for main indicators.
■ Section 2: Actual‑time market evaluation by way of Perplexity Sonar‑Professional
Conventional AI solely analyzes previous knowledge. Perplexity Sonar‑Professional immediately searches and analyzes “final‑minute information, market sentiment, and knowledgeable takes”. Pulling from a number of trusted sources (Bloomberg, Reuters, CNBC, and many others.), it infers the market’s expectations inside minutes and auto‑decides BUY/SELL path and confidence (★1–5).
■ Section 3: Engineered to seize the spike’s first transfer
Past the launched numbers, the AI predicts “how markets will react”, delivering precision that units it aside from typical information EAs. With optimum pre‑launch entry timing, quick put up‑launch shut, and a dynamic exit, it’s constructed to go after the preliminary spike.
“World huge knowledge × actual‑time AI evaluation × financial‑launch spike buying and selling” accelerates resolution‑making and execution. It helps main pairs (EURUSD, USDJPY, GBPUSD, and many others.) and excessive‑volatility gold (XAUUSD). ※ XAUUSD and minor pairs will likely be prolonged in future updates.
- Platform: MetaTrader 5 (MT5)
- Really helpful timeframe: M1–M15 (not depending on timeframe setting)
- Really helpful symbols: EURUSD / USDJPY / GBPUSD / XAUUSD and different majors
- Really helpful brokers: ECN / RAW accounts (extremely‑low spreads most well-liked)
- Focused volatility: Designed to seize ±20–50 pips (or extra) in a short while
2. Set up
Computerized set up
If bought on the MQL5 Market, set up from “Navigator” > “Market”.
Guide set up
- Copy AI Information Strike EA.ex5 to MQL5Experts
- Restart MT5
Connect to chart
- Open any image/timeframe (the EA auto‑maps to the proper foreign money for every launch)
- Navigator → Professional Advisors → AI Information Strike EA → drag & drop
- Test “Permit algorithmic buying and selling” → OK
- Image suffixes set by brokers (e.g., .m, #) are auto‑resolved
Vital:
The EA auto‑detects goal currencies and trades the optimum pair no matter which chart you connect it to.
You don’t want pair‑particular charts. It handles every information launch routinely from any chart.
Make sure you add https://script.google.com and https://api.perplexity.ai beneath [Tools] → [Options] → [Expert Advisors] → WebRequest allowed URLs.
They’re required for knowledge retrieval and AI evaluation.

3. The way to acquire your Perplexity API key
You want a Perplexity API key to make use of AI evaluation. We suggest acquiring the important thing prematurely.
- Go to Perplexity AI
- Create an account and log in
- Go to the API settings web page and generate an API key
- Copy the generated key
- Paste it into the EA parameter InpPerplexityKey
For detailed steps, see this information.
https://www.mql5.com/en/blogs/put up/764935
Why Sonar‑Professional?
Perplexity affords two fashions, “Sonar” and “Sonar‑Professional.” This EA recommends Sonar‑Professional by default for the next causes:
- Extra superior reasoning: understands complicated interactions amongst financial indicators
- Extra correct extraction: pulls key details from huge multi‑supply information
- Extra dependable choices: evaluation tuned for monetary‑market context
You may select “sonar” or “sonar‑professional” by way of InpPerplexityModel, however if you happen to prioritize commerce accuracy we strongly suggest sonar‑professional.
Observe: The Perplexity API could incur charges. See the Perplexity pricing web page.
4. Preliminary advisable settings (AI Information Strike EA v1.0)
| Group | Setting | Really helpful for freshmen |
|---|---|---|
| AI Settings | InpPerplexityKey | (Enter your Perplexity API key) |
| AI Settings | InpUseAI | true |
| AI Settings | InpAILeadMinutes | 3 (run AI evaluation 3 minutes earlier than) |
| Knowledge Feed | InpDataFetchIntervalSec | 7200 (fetch financial calendar each 2 hours) |
| Entry Timing | InpLeadSec | 45 (enter 45s earlier than launch) |
| Entry Timing | InpMaxEntryDelay | 10 (enable as much as 10s delay) |
| Exit | InpForceCloseSec | 30 (pressure shut 30s after launch) |
| Spike Commerce | InpUseDynamicExit | true (allow dynamic exit) |
| Filters | InpMinStars | 3 Stars (★3 or larger) |
| Filters | InpMinVolPips | 20 (min. anticipated volatility 20 pips) |
| Unfold Filter | InpMaxSpreadPips | 10.0 (ECN/RAW account advisable) |
| Lot | InpFixedLot / InpVariableLot | 0.01 (begin small) / true |
| Cease Loss | InpUseInitSL / InpInitSLPips | true / 100 |
5. Parameter Reference (ERS EA v1.0)
Inputs are grouped by perform. Don’t tune all the pieces without delay—alter and take a look at by block.
| Group / Parameter | Objective | Default |
|---|---|---|
| 📡 Knowledge Feed Settings | ||
| InpDataFetchIntervalSec | Refresh interval for financial knowledge (seconds) | 7200 (2 hours) |
| 🌐 Timezone Settings | ||
| InpServerUtcOffsetOverride | Guide server UTC offset (‑999 = auto) | -999 |
| InpShowMultiTimezone | Present a number of time zones | true |
| InpAutoDeletePastEvents | Auto‑delete previous occasions | true |
| InpPastEventKeepMinutes | Retention time for previous occasions (minutes) | 5 |
| 🤖 AI Settings | ||
| InpUseAI | Allow AI evaluation | true |
| InpPerplexityKey | Perplexity API key | xxx-xxx-xxx |
| InpPerplexityUrl | Perplexity API endpoint | https://api.perplexity.ai/chat/completions |
| InpPerplexityModel | Perplexity mannequin (sonar / sonar‑professional) | sonar-pro |
| InpAILeadMinutes | Lead time to run AI evaluation (minutes) | 3 |
| ⏱️ Entry Timing | ||
| InpLeadSec | Seconds earlier than launch to enter | 45 |
| InpMaxEntryDelay | Max entry delay (seconds) | 10 |
| 🚪 Exit Settings | ||
| InpForceCloseSec | Pressure‑shut seconds after launch | 30 |
| InpMaxHoldHours | Most holding time (hours) | 2 |
| 📊 Spike Commerce Settings | ||
| InpUseDynamicExit | Allow dynamic exit | true |
| InpDynExitPipsFromPeak | Shut when value pulls again from peak by (pips) | 5 |
| InpDynExitMinProfitPips | Minimal revenue for dynamic exit (pips) | 3 |
| 🎯 Filters | ||
| InpMinStars | Minimal significance (★1–5) | 3 Stars |
| InpMinVolPips | Minimal anticipated volatility (pips) | 20 |
| InpMinConfidencePreRelease | Minimal confidence for pre‑launch entries (%) | 60 |
| 📏 Unfold Filter | ||
| InpMaxSpreadPips | Max allowed unfold (pips) | 10.0 |
| 💰 Lot Settings | ||
| InpVariableLot | Allow lot scaling by confidence | true |
| InpFixedLot | Base lot | 0.01 |
| InpMaxLot | Most lot | 1.0 |
| 🛑 Cease Loss Settings | ||
| InpUseInitSL | Allow cease loss | true |
| InpInitSLPips | Cease‑loss distance (pips) | 100 |
| ⚠️ Danger Administration | ||
| InpMaxConcurrent | Max concurrent positions | 3 |
| InpDailyDrawdownPercent | Day by day most drawdown (%) | 5.0 |
| 🎨 Show Settings | ||
| InpFontSize | Panel font dimension | 9 |
| InpHeaderColor | Header colour | clrDodgerBlue |
| 📝 CSV Log Settings | ||
| InpEnableCSVLog | Allow CSV logging | false |
| InpCSVLogFolder | Log folder title | ERS_Logs |
| 🔧 Superior Settings | ||
| InpMagicBase | EA identifier (magic base) | 87654321 |
| InpSlippage | Allowed slippage (pips) | 5 |
6. Newbie Guidelines
Please verify the next earlier than going dwell:
| Merchandise | Standing |
|---|---|
| ✅ Permit WebRequest for https://script.google.com and https://api.perplexity.ai | □ |
| ✅ Set your Perplexity API key in InpPerplexityKey | □ |
| ✅ Set InpUseAI = true (advisable) | □ |
| ✅ Begin with small heaps (0.01–0.05) | □ |
| ✅ Allow cease loss with InpUseInitSL = true | □ |
| ✅ Use ECN/RAW accounts (low spreads) | □ |
| ✅ Demo‑take a look at for no less than one week | □ |
7. Really helpful Parameter Units (3 sorts)
This EA consists of three presets primarily based on danger tolerance. Obtain the set recordsdata beneath.
📂AI_News_Strike_EA_HighRisk.set
📂AI_News_Strike_EA_Balanced.set
📂AI_News_Strike_EA_LowRisk.set
For first‑time customers we strongly suggest beginning with the Low‑Danger set.
📊 Set Choice Information
| Kind | Greatest for | Minimal capital | Traits |
|---|---|---|---|
| 🔴 Excessive‑Danger | Superior merchants with expertise | $5,000+ | Aggressive; goals for bigger returns |
| 🟡 Balanced | Intermediate customers searching for commonplace operation | $2,000+ | Good danger‑return steadiness |
| 🟢 Low‑Danger | Newbies / security‑first | $1,000+ | Prioritizes security; trades solely excessive‑high quality setups |
⚙️ Detailed Parameter Comparability
| Parameter | 🔴 Excessive‑Danger | 🟡 Balanced | 🟢 Low‑Danger |
|---|---|---|---|
| Danger & Lot Settings | |||
| InpRiskPercent | 2.5 | 1.0 | 0.5 |
| InpFixedLot | 0.05 | 0.01 | 0.01 |
| InpLotMultiplier5 | 3.0 | 2.0 | 1.5 |
| InpLotMultiplier4 | 2.0 | 1.5 | 1.2 |
| Entry Settings | |||
| InpLeadSec | 60 | 45 | 30 |
| InpMaxEntryDelay | 15 | 10 | 5 |
| InpAILeadMinutes | 3 | 3 | 5 |
| Exit Settings | |||
| InpForceCloseSec | 45 | 30 | 20 |
| InpMaxHoldHours | 48 | 24 | 12 |
| InpDefaultExitSec | 45 | 30 | 25 |
| Filter Settings | |||
| InpImportanceFilter | All | Excessive + Med | Excessive Solely |
| InpMinStars | 1 Star | 3 Stars | 4 Stars |
| InpMinVolPips | 15 | 20 | 30 |
| InpMaxSpreadPips | 15.0 | 10.0 | 5.0 |
| InpMaxConcurrent | 5 | 3 | 1 |
| InpMinInitialSpike | 10.0 | 15.0 | 25.0 |
| InpMinConfidencePreRelease | 2 | 4 | 5 |
| InpSkipLowSurprise | false | true | true |
| InpSkipFalseSpike | false | true | true |
| Cease‑Loss Settings | |||
| InpUseSL | true | true | true |
| InpSLPips | 150 | 100 | 80 |
| InpTrailStartPips | 30 | 25 | 20 |
| InpTrailStopPips | 25 | 20 | 15 |
| Take‑Revenue Settings | |||
| InpUseTP | true | true | true |
| InpTPPips | 200 | 150 | 120 |
| InpPartialClosePips | 80 | 60 | 50 |
| Breakeven | |||
| InpBreakevenPips | 40 | 30 | 25 |
| InpBreakevenOffset | 10 | 8 | 5 |
| Danger Administration | |||
| InpDailyDrawdownPercent | 8.0 | 5.0 | 2.0 |
| InpMaxSlippage | 5 | 4 | 3 |
📈 Anticipated Efficiency (reference)
| Metric | 🔴 Excessive‑Danger | 🟡 Balanced | 🟢 Low‑Danger |
|---|---|---|---|
| Month-to-month trades (approx.) | 15–25 | 8–15 | 3–8 |
| Anticipated month-to-month return | 10–20% (extremely variable) | 5–10% (reasonable) | 2–5% (steadier) |
| Max drawdown (approx.) | 15–25% | 8–15% | 3–8% |
| Win charge (anticipated) | 45–55% | 50–60% | 55–65% |
🔄 The way to load set recordsdata
Steps in MT5:
- Launch MT5 and drag & drop the EA onto a chart
- When the enter window opens, click on the “Load” button
- Choose the specified .set file:
- AI_News_Strike_EA_HighRisk.set — Excessive‑Danger
- AI_News_Strike_EA_Balanced.set — Balanced (advisable)
- AI_News_Strike_EA_LowRisk.set — Low‑Danger
- Click on “OK” to use
⚠️ After loading a set file, at all times confirm:
- InpPerplexityKey: enter your key (substitute “xxx-xxx-xxx”)
- InpCurrencyFilter: specify pairs to commerce (clean = all)
- InpMagicNumber: change as wanted to tell apart from different EAs
- Timezone: verify server UTC offset
💡 Phased method (advisable)
Recommended rollout:
| Step | Length | Setup | Aim |
|---|---|---|---|
| STEP 1 | 1–2 months | 🟢 Low‑Danger | Perceive conduct and consider outcomes |
| STEP 2 | 2–3 months | 🟡 Balanced | Seize extra alternatives |
| STEP 3 | Ongoing | 🔴 Excessive‑Danger (non-compulsory) | Pursue most efficiency |
Observe: These efficiency estimates assume perfect circumstances. Precise outcomes differ with market circumstances. All the time demo take a look at totally earlier than going dwell.
8. FAQ
Q1. Is AI evaluation required?
A. Strongly advisable, however not obligatory.
You may set InpUseAI = false to run with out AI. With out AI, trades rely solely on significance and anticipated volatility, so you lose the “how markets will react” prediction.
With Perplexity Sonar‑Professional you possibly can:
- Seize final‑minute market sentiment
- Account for surprises (geopolitics, central‑financial institution remarks, and many others.)
- Mixture a number of sources right into a single resolution
This tremendously improves entry precision. If price is a priority, you possibly can allow AI just for key occasions (★4–5).
Q2. Which brokers are advisable?
A. ECN or RAW accounts are strongly advisable. Tighter spreads enhance spike‑commerce success.
Q3. Can I backtest?
A. The EA is dependent upon actual‑time calendar and AI evaluation, so typical backtesting isn’t supported. Use ahead testing or a demo account.
This autumn. Can it run throughout a number of pairs without delay?
A. Sure. Connect the EA to at least one chart solely and it’ll monitor and commerce all related pairs routinely. No want to connect to a number of charts.
Q5. Time zone shows are incorrect
A. Alter with InpServerUtcOffsetOverride. Enter the dealer server offset to UTC (e.g., for GMT+2 enter “2”).
Q6. A spike occurred however no commerce was positioned
A. Please test:
- Confidence meets InpMinStars
- Anticipated volatility ≥ InpMinVolPips
- Present unfold ≤ InpMaxSpreadPips
- Not exceeding InpMaxConcurrent
- InpMinConfidencePreRelease not set too excessive
9. Optimization Suggestions
📊 Per‑pair tuning
- EURUSD / GBPUSD: good outcomes on commonplace settings
- USDJPY: volatility is decrease; think about InpMinVolPips = 15
- XAUUSD (Gold): extremely risky; think about widening InpInitSLPips to 200–300
⏰ By buying and selling session
- Europe (approx. 15:00–23:00 JST): liquid; commonplace settings work effectively
- US (approx. 21:30–06:00 JST): most key releases; extra aggressive settings advisable
- Asia (approx. 9:00–15:00 JST): thinner liquidity; tighten InpMaxSpreadPips
🎯 Technique by Stars (confidence)
- ★5: max lot, longer maintain (~60s)
- ★4: commonplace lot, commonplace maintain (30–45s)
- ★3: small lot, shorter maintain (20–30s)
10. Troubleshooting
❌ “WebRequest not allowed”
Repair:
- MT5 menu → Instruments → Choices → Professional Advisors
- Add the next to “Permit WebRequest for listed URL”:
- Restart MT5
❌ “AI Evaluation Failed”
Repair:
- Affirm your Perplexity API key
- Test API availability/quotas
- Confirm Web connectivity
- You may as well set InpUseAI = false to run with out AI
❌ Unable to fetch financial knowledge
Repair:
- Re‑test WebRequest permissions
- Guarantee firewall/VPN just isn’t blocking
- Test the Specialists tab logs
❌ Positions don’t shut
Repair:
- Confirm InpMaxHoldHours
- Test InpForceCloseSec
- Affirm dealer‑facet buying and selling restrictions
11. The way to acquire logs for troubleshooting
When points happen (or to assist enhance the EA), sharing logs permits speedy prognosis.
Fundamental log retrieval
- On the backside of the MT5 chart, open the “Specialists” tab within the Toolbox
- Proper‑click on wherever contained in the tab
- Choose “Open” from the menu

- From the opened folder, decide the newest and the day prior to this’s .log recordsdata
- Share these two log recordsdata by way of MQL5 messages

Deeper evaluation: CSV log
If primary logs are inadequate, you possibly can allow CSV logging for extra element.
Allow CSV logging
- Set InpEnableCSVLog = true within the EA inputs
- Specify InpCSVLogFolder (default: ERS_Logs)
- Restart the EA
CSV file location
- MT5 menu → File → Open Knowledge Folder
- Go to MQL5 → Information → ERS_Logs (or your folder)
- Open the newest CSV (ERS_v437_YYYYMMDD_HHMMSS.csv)
What CSV logs comprise
- Timestamps (when trades/evaluation ran)
- Log degree (INFO / WARN / ERROR)
- Tags (ENTRY / EXIT / AI / DATA, and many others.)
- Detailed messages
- Commerce information (image, sort, lot, value)
- Occasion information (launch time, significance, confidence)
- AI rationale (Perplexity outcomes)
Vital: CSV logging is disabled by default (false). Hold it off throughout regular operation to keep away from overhead and disk utilization. Allow quickly solely when troubleshooting.
12. Help
For those who need assistance with setup or points, contact us by way of MQL5 messages or within the Market product feedback.
For quicker dealing with, please connect:
- Screenshots of the Specialists tab
- Your parameter settings
- CSV logs (if InpEnableCSVLog = true)
- Dealer title and account sort (ECN/STP/Normal, and many others.)
13. Disclaimer
Vital: This EA offers data and tooling solely and doesn’t represent funding recommendation, solicitation, or a advice of monetary merchandise.
Leverage buying and selling is excessive danger. Previous outcomes don’t assure future returns.
All the time take a look at totally on a demo account and function at your individual danger and discretion.
Throughout financial releases, liquidity can shift abruptly, inflicting slippage or rejections.
The developer assumes no legal responsibility for any loss incurred by means of using this EA.
All funding choices are your individual duty.
Firm, product, and repair names are logos or registered logos of their respective homeowners.
Thanks for studying.
Wishing you success in your buying and selling!