MT5 EA Builder | MQL5 Engineering & Validation

    1

    Build complete MQL5 EAs with explicit trading rules, risk vetoes, persistent execution safeguards and a demo-only validation handoff.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    MT5 EA Builder | MQL5 Engineering & Validation

    Example session with this skill installed

    Use MT5 EA Builder to implement a complete observation-only MQL5 probe for a dedicated demo/Tester environment. H1 signal: completed close strictly above/below the previous three completed highs/lows; exclude signal candle; equality and insufficient/invalid OHLC mean NONE. Log once per new signal bar; do not backfill an already-running bar on attach. Include self-tests for LONG, SHORT, equality, invalid OHLC and warmup. Refuse non-demo accounts outside Tester. No OrderSend, sizing, SL/TP, risk alteration or trading opt-in. Deliver full source, setup, fixtures and an honest ledger. Separately explain what is blocked if someone asks for a trading EA without risk/protection rules.

    • Read your context and instructions
    • Compiled the mt5 ea builder

    Observation-only MT5 probe — complete demonstration

    Version-bound engineering evidence

    The complete demonstration source below is unchanged. Historical creator-local evidence includes seven runtime-context checks, native compilation, six probe self-tests, and a bounded open-price EURUSD H1 run with48 distinct completed-bar timestamps. A separate diagnostic-only wrapper matched48 completed same-feed OHLC windows against Python (3LONG/11SHORT/34NONE). These are not real-tick execution or economic validation.

    A fresh independent1.0.1 authoring trial passed20 local checks, two clean native compilations and9 native signal-core assertions. That trial is separate from this complete demonstration and is not a buyer-host/runtime delivery or comparative benchmark pass. Earlier adapter restart/fault evidence remains historical and source-bound.

    The creator accepted local prepublication validation and applying Agensi’s independent-output distinction to independently generated MQL5 source. Bundled examples and substantial copies remain protected; third-party rights still apply. No separate MT5-specific provider confirmation or universal licence clearance is claimed. Live buyer-host/multi-host delivery remains unverified.

    Scope revision1.0.2 changes supported-platform wording only, not native reference/demo source, strategy rules or risk. Historical G4 remains INCONCLUSIVE for130 missing real-tick minutes; holdout, forward and live readiness are not passed. Demo/testing only.

    Frozen scope

    This request is deliberately observation-only, not a trading EA with an implicit risk model. Default H1; signal from the last completed candle versus the preceding three completed bars. Strict inequality; equality/invalid/warmup -> NONE. No order API, lot sizing, stop/target or risk opt-in is introduced. Outside Strategy Tester it refuses non-demo accounts. It records the current bar on attach and does not intentionally backfill that bar. Terminal/history availability must still be checked in the intended installation.

    Complete source: ObservationProbe.mq5

    #property strict
    #property version "1.00"
    #property description "Observation-only engineering probe. No order APIs."
    
    input ENUM_TIMEFRAMES InpTimeframe=PERIOD_H1;
    datetime g_seen=0;
    
    bool ValidBar(const MqlRates &bar)
    {
       return MathIsValidNumber(bar.open) && MathIsValidNumber(bar.high) &&
              MathIsValidNumber(bar.low) && MathIsValidNumber(bar.close) &&
              bar.open>0 && bar.low>0 && bar.high>=MathMax(bar.open,bar.close) &&
              bar.low<=MathMin(bar.open,bar.close) && bar.high>=bar.low;
    }
    
    int Direction(const MqlRates &bars[])
    {
       if(ArraySize(bars)<4) return 0;
       for(int index=0;index<4;index++) if(!ValidBar(bars[index])) return 0;
       double upper=bars[1].high;
       double lower=bars[1].low;
       for(int index=2;index<4;index++)
       {
          upper=MathMax(upper,bars[index].high);
          lower=MathMin(lower,bars[index].low);
       }
       return bars[0].close>upper ? 1 : bars[0].close<lower ? -1 : 0;
    }
    
    bool SelfTest()
    {
       MqlRates bars[];
       ArrayResize(bars,4);
       for(int index=0;index<4;index++)
       {
          bars[index].open=100;
          bars[index].high=103;
          bars[index].low=97;
          bars[index].close=100;
       }
       bars[0].high=105;
       bars[0].close=104;
       if(Direction(bars)!=1) return false;
       bars[0].close=103;
       if(Direction(bars)!=0) return false;
       bars[0].low=95;
       bars[0].close=96;
       if(Direction(bars)!=-1) return false;
       bars[0].close=97;
       if(Direction(bars)!=0) return false;
       bars[1].high=99;
       if(Direction(bars)!=0) return false;
       ArrayResize(bars,3);
       if(Direction(bars)!=0) return false;
       return true;
    }
    
    int OnInit()
    {
       if(!MQLInfoInteger(MQL_TESTER) && AccountInfoInteger(ACCOUNT_TRADE_MODE)!=ACCOUNT_TRADE_MODE_DEMO)
          return INIT_FAILED;
       if(PeriodSeconds(InpTimeframe)<=0) return INIT_PARAMETERS_INCORRECT;
       if(!SelfTest()) { Print("MT5_BUILDER_PROBE SELFTEST FAIL"); return INIT_FAILED; }
       Print("MT5_BUILDER_PROBE SELFTEST PASS cases=6 orders=0");
       g_seen=iTime(_Symbol,InpTimeframe,0);
       return INIT_SUCCEEDED;
    }
    
    void OnTick()
    {
       datetime current=iTime(_Symbol,InpTimeframe,0);
       if(current<=0 || current==g_seen) return;
       if(g_seen==0) { g_seen=current; return; }
       MqlRates bars[];
       ArraySetAsSeries(bars,true);
       if(CopyRates(_Symbol,InpTimeframe,1,4,bars)!=4) return;
       g_seen=current;
       PrintFormat("MT5_BUILDER_PROBE bar=%s direction=%d orders=0",TimeToString(bars[0].time),Direction(bars));
    }
    

    Installation and checks

    Save this independently implemented probe to a new folder under MQL5/Experts in a dedicated testing installation. Compile with MetaEditor5 and preserve the exact log/source hash. Use Strategy Tester with EURUSD, H1, September28-30 2026, USD10000 and Open prices only for the bounded log test. Dates/data belong to this engineering test, not a market recommendation. Do not enable normal chart EA trading, connect a live account or run unrelated EAs. No broker order call exists in the probe. A separate, owner-authorized observation chart check is not claimed here.

    Synthetic native self-tests: upper breakout +1; upper equality0; lower breakout -1; lower equality0; invalid prior OHLC0; fewer than four candles0. A developing candle is not copied: CopyRates starts at shift1. The new-bar gate prevents duplicate emission in the running instance; this simple observation-only probe does not claim durable restart deduplication. The modular trading reference has separate persisted execution-state behavior.

    Actual evidence — 2026-10-21 UTC

    CheckResult
    Creator-local seven-file package checksPASS7, format validator PASS. No EX5/private logs/terminal configuration in uploaded ZIP.
    Fresh native compilationPASS3 programs: this probe, packaged modular EA reference and packaged native calculation harness; MetaEditor5 build5836, zero errors/warnings.
    Fresh calculation harnessPASS18 assertions in native mathematical mode, terminal build6230; no history or order runtime implied.
    Fresh probe synthetic self-testsPASS6 cases in native mathematical mode and again in the open-price run.
    Bounded open-price runtimePASS,48 distinct completed-bar log timestamps over the configured EURUSD H1 period, with LONG/SHORT/NONE present.96 transport rows are two matching log copies, not96 separate candles. The initial run had no independent OHLC oracle; the subsequent diagnostic wrapper checked48 windows as noted above.
    Existing adapter persistence/fault campaignSaved evidence verifier PASS94 assertions/four processes and21 unchanged candidate hashes. This was not a fresh crash campaign for this listing.
    Existing engineering regressionsPASS90 tests; source/evidence checks, not another90 native executions.
    Historical/holdout/forwardOriginal reference G4 INCONCLUSIVE:130 real-tick minutes missing. Holdout and economic forward checks NOT_RUN; no profitable/live-ready claim.
    Marketplace live delivery/paired benchmarkNOT_RUN. Unpublished paid-draft live retrieval unavailable per provider. Local authoring and package tests are not buyer-host delivery certification or a skill-versus-baseline improvement claim.

    Probe source SHA256 b01e4f9a53c1001f797b4623350e67a5f86fbcad1b84323ebee852e4504fa9f8. No source/risk changes were made after these native observations. Native tests used a new empty profile and disabled chart EAs/DLL/live-trading settings. Testing processes exited. No broker orders, alerts or spending.

    Insufficient-information branch

    If asked 'make this trade automatically' without entry risk units, protective stop, sizing/cost assumptions, loss halts and ownership/restart rules: BLOCKED for trading implementation. Return the missing decisions and keep the observation-only deliverable; do not add a guessed percentage or order call. If minimum tradable size exceeds the risk budget, veto the entry instead of rounding risk upward.

    Output-rights boundary

    This demonstration is creator-authored example material. It is not an unrestricted licence to export bundled references. Independently generated source for a buyer's own request follows Agensi's clarified independent-output model; skill instructions/examples and substantial copies remain protected skill material. MT5-specific live buyer loading has not been tested.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Turn explicit trading rules into complete MQL5 source

    MT5 EA Builder guides your AI assistant through new Expert Advisors, bounded repairs and extensions. It separates signal logic, risk sizing, execution/state and diagnostics, with a written behavior contract and honest evidence gates.

    What the workflow delivers

    • Complete user-specific .mq5/.mqh source with relative paths and dependency disclosure.
    • Explicit observation timing, equality/warmup rules, entry ownership, lot-step/minimum vetoes and initial protection.
    • Fill compatibility, uncertain-result reconciliation and restart/loss-halt requirements.
    • Positive, negative and boundary fixtures, installation/compile/Tester instructions and an actual-results ledger.
    • Missing safety decisions stay blockers rather than guessed trading logic.

    Seven agent-loaded supporting files

    SKILL.md and README.md; references/engineering.md and references/validation.md; examples/DonchianReference.md with seven complete original modular reference files; examples/native-contracts.md with the non-trading native harness; examples/fixtures.json with ten scenario expectations. Native source is fenced in Markdown, a provider-confirmed supporting-file format. Files are retrieved by the connected assistant at runtime, not downloaded as a skill ZIP.

    What the $15 one-time purchase means

    You purchase an AI-assistant workflow and supporting engineering context, not a hosted compiler, unlimited bespoke development, a profitable EA, broker account management or market data. Independently generated source for your own request may be retained, edited, compiled, used and distributed. The skill package, bundled examples and substantial reproductions remain protected skill material and must not be exported as standalone buyer files.

    Observed engineering evidence

    Creator-local package checks and native compilation of the packaged modular reference, calculation harness and complete observation-only demo passed. The current demo passed six native self-tests and logged 48 distinct completed-bar timestamps in a bounded EURUSD H1 Open-prices-only Tester run; that initial run was not a real-tick or independent OHLC-oracle test. The reference calculation harness freshly passed18 assertions. Earlier hash-bound current-adapter restart/fault evidence covers94 assertions/four processes including crash recovery with protected IOC partial state and no replenishment. Those earlier fault tests were verified from saved evidence, not freshly repeated for this listing. Existing90 local engineering regressions passed. No rule or risk increase.

    Limits and safety

    Demo/testing only. No grid, martingale, averaging or pyramiding. The bundled reference defaults to observation and refuses real/contest accounts. Its 0.25% risk, 2% daily and 8% total entry-halt defaults are unchanged; they are not guaranteed loss caps or prop-firm compliance. The demo shown here is deliberately observation-only, not a complete order-execution showcase. Generated EAs require their own source-bound review/native checks. The reference historical G4 remains INCONCLUSIVE because130 real-tick minutes are missing; holdout, forward paper validation and live readiness are not passed. No profitability claim. True broker network/partial-fill faults, physical disk failure, all brokers/symbols and multi-host buyer delivery are unverified.

    Unpublished paid drafts cannot be live-connector-tested before review/publication per Agensi. Local validation is not a live buyer-delivery pass. Reproducible package/use defects are in scope for support; no unlimited custom coding, response SLA or lifetime updates are promised. Refunds follow Agensi terms.

    Validation continuation — skill1.0.1

    Seven creator-local in-memory runtime-context checks pass, including relative loading, include completeness and fail-closed missing-reference cases. A separate diagnostic-only native wrapper over the unchanged demo matches48 completed same-feed OHLC windows against Python:3LONG/11SHORT/34NONE. Open-prices-only, not real ticks or economics. An independent behavioral trial exposed an unapproved candle-age filter; original evidence is preserved and the skill now explicitly separates raw signals from entry vetoes. Prompted corrected output passed local checks; a fresh independent1.0.1 authoring trial passed20 local mathematical/source checks, followed by two clean native compilations and9 executed native core assertions. The evaluator did not inspect prior QA reports but did see historical reference outcomes inside the required context. This is not a paired baseline benchmark or a live delivery pilot. No reference signal/risk change.

    Output and delivery boundaries

    This listing applies Agensi's clarified distinction between independently generated buyer-request output and protected skill material. The creator has accepted applying that distinction to MQL5 source; no separate MT5-specific written confirmation or universal licence clearance is claimed. Bundled examples and substantial reproductions remain protected, not standalone buyer exports. Third-party rights still apply.

    The creator accepted passed local package/context, independent authoring and bounded native validation as the prepublication method because unpublished paid-draft live retrieval is unavailable. Live buyer-host and multi-host delivery remain deferred, not certified. No broker trading or live-readiness authorization is included.

    Scope revision1.0.2

    Only MT5 implementation is supported. This documentation-only revision does not change native reference source, strategy rules or risk. Existing native evidence is historical and source-bound, not a new native or independent trial of these instructions. The revised package is submitted for review; the previously approved package remains available until approval.

    Workflow not compiler/service/profitable EA. Demo is observation-only:6 native synthetic cases and48 distinct completed-bar log timestamps using Open-prices-only, not real ticks; a subsequent diagnostic-only wrapper independently matches48 completed OHLC windows (3L/11S/34NONE). Fresh reference18 assertion harness and3 clean compilations passed. Earlier94-assertion restart/fault evidence verified, not rerun; injected order/account faults are not real broker network failures. Historical reference G4 INCONCLUSIVE for130 missing real-tick minutes; no untouched holdout/forward/live eligibility. Missing decision test must block order logic. Independent behavior trial found an unapproved candle-age filter; prompted correction passed local checks.1.0.1 clarifies raw-signal boundaries. No full new execution-code review or paired skill-versus-baseline benchmark. Paid-draft live retrieval unavailable; buyer/multi-host delivery untested. MT5 only. Buyers can retain independent generated source, not skill material or substantial example copies. Owner accepted the local prepublication validation substitute; live buyer-host delivery remains deferred. Creator accepted applying Agensi's existing independent-output clarification to MQL5; no separate MT5-specific confirmation or universal licence clearance is claimed. Protected examples/substantial copies remain non-exportable. Fresh independent1.0.1 authoring trial:20 local checks, two clean native compilations and9 native core assertions PASS. No generated-observer chart/runtime certification beyond that native core harness; no benchmark improvement claim.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 27 days ago

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Browser
    Network Access

    Optional terminal: local compilation/testing after authorization, not arbitrary installation. File reads: authorized user source and agent context. Writes: independently generated user output, not protected package/example exports. Browser/network: public official documentation; terminal may request broker history only in an approved demo/testing experiment. No broker orders, credential access, environment variables, alerts, spending or publication authority.

    Listed27 days ago

    What's inside

    Frequently Asked Questions

    No. It is an AI-assistant development workflow. Examples and validation are engineering demonstrations. No broker orders, account management or profitable/live-ready guarantee is included.

    Independently generated source for your own request may be retained, edited, compiled, used and distributed. The uploaded skill package/examples and substantial example reproductions remain protected skill material, not standalone exports.

    Source authoring requires the compatible assistant, not broker credentials. Native compilation needs MetaEditor5. Native historical/runtime checks need a separately authorized isolated MT5 testing environment and suitable history. Neither platform access nor paid data is bundled.

    No. Every generated/modified source needs its own review, compilation, runtime and subsequent historical/holdout/forward gates. Current reference evidence and the observation-only demo cover only their named artifacts and cases.

    New in Trading & Investing