# MT5 Expert Advisor developer who codes your rules in MQL5, tests them in the Strategy Tester and documents the handover

> Sunny Guha is an MT5 Expert Advisor developer who codes a trader's written rules in MQL5: entries, exits, position sizing, filters and risk limits, with the Strategy Tester set up and its limits stated. He handles hedging and netting accounts, with the handover agreed per project. He builds software only: no signals, no advice and no profit claims.

Source: https://sunnyguha.in/services/mt5-ea-developer · Updated: 2026-11-20 · By Sunny Guha, specialist, remote from India

## What does MetaTrader 5 Expert Advisor development include?

- Expert Advisor source: the .mq5 file and its include files, with strategy, risk and execution code in separate modules.
- Compiled program: the .ex5 file built from that source for your terminal.
- Input and set files: documented parameters with default values and ranges.
- Strategy Tester package: the settings, the report and the assumptions behind it.
- Risk controls: position sizing, exposure limits, a daily loss cap, spread and session filters and a kill switch.
- Request log: every order request, result code and error written to a file.
- Deployment: the terminal and EA installed on your VPS with a tested restart.
- Handover notes: a short manual and a change log, with rights in the code agreed per project.

## What does an MT5 Expert Advisor developer actually write?

An Expert Advisor is a program written in MQL5 that runs inside the MetaTrader 5 terminal and reacts to events. MQL5 defines handlers such as OnTick for each new price, OnTimer for scheduled work, OnTradeTransaction for every change to orders and positions, and OnTester, which lets a program hand its own score to the optimiser. Indicators, scripts and libraries are separate program types. Many buyers need an Expert Advisor, sometimes with a custom indicator and a small panel on the chart.

Postings on the MQL5 board typically ask for the following, which makes a fair checklist for any project: strategy logic kept apart from risk and money management, multi-symbol and multi-timeframe support, risk-based position sizing, exposure limits with a drawdown kill switch, news and time-window filters, spread and execution checks, error handling for disconnects and requotes, and full Strategy Tester compatibility with parameterised inputs. I treat that list as the minimum, not as extras.

- Symbols, timeframes and the trading sessions the EA may use.
- Exact entry and exit conditions, including what happens when two signals clash.
- Stop-loss, take-profit, trailing and partial-close rules, in points or as a share of risk.
- Position sizing: fixed lot, percent of equity or percent of risk per trade.
- Filters for spread, news, time of day and open exposure.

## Does a hedging or netting account change how the EA is coded?

Yes, and it is a classic reason for an EA that works in testing and misbehaves live. The MetaTrader 5 help describes two position systems. Under netting there is only one common position per symbol, and a deal in the opposite direction reduces, closes or reverses it. Under hedging several positions per symbol can coexist, including opposite ones, and closing means closing a specific position. A new order also treats stop-loss and take-profit differently in the two systems, so the code that manages them cannot be shared blindly.

Execution has its own variations. The same help page lists four execution types, which are instant, request, market and exchange, and fill policies such as Fill or Kill, Immediate or Cancel and Return, with Book or Cancel limited to limit orders. An order sent with a filling mode the broker does not support is rejected. So the EA reads what the symbol allows instead of hard-coding one mode, and I test on the account type and symbols you will really use.

## How is an MT5 Expert Advisor tested before it trades real money?

The MetaTrader 5 Strategy Tester offers several tick-generation modes. Every tick is the most accurate and the slowest. Every tick based on real ticks uses the broker's recorded ticks, and its first download can take a long time. One-minute OHLC and open-prices-only are faster and rougher. Forward testing splits the period so that the earlier part is used for the test and the latest part for the forward run, and optimisation runs passes in parallel on local or cloud agents.

None of this reproduces your broker's real execution. The documented random execution delay is a model: up to 8 seconds most of the time and up to 18 seconds otherwise, applied only to the EA's own trade actions. A good optimisation result is therefore a reason to run more tests, not a reason to trade. I deliver a tester package that another person can repeat, and a demo forward run shows how live fills compare with it.

- The mode, the dates, the deposit and leverage, and the spread and commission assumptions.
- The execution-delay setting, the optimisation ranges and the forward segment.
- The spread of results across nearby input values, not only the single highest one.
- A short list of what the test cannot show for this strategy.

## What goes wrong with Expert Advisors in live trading?

Many live problems are about the broker and the terminal, not the strategy. I test for them one by one and log every order request, its result code and the last error to a file, so a rejected order says why it was rejected.

- Stop and freeze levels: brokers set a minimum distance for stops and a zone near the price in which orders cannot change, and requests that break the rules are rejected.
- Symbol differences: contract size, volume step, minimum lot and symbol suffixes vary between brokers, so the EA reads them from the symbol instead of assuming them.
- Server time: sessions, rollover and news windows follow broker server time, which differs from yours and may move with daylight saving.
- Spread widening at rollover and news: a fixed spread in a test fails exactly when the live spread jumps.
- Terminal and VPS state: the EA runs only while the terminal is connected, so restarts, updates and dropped connections must be handled.

## Which rules and licences should an MT5 EA buyer know about? Market notes, not legal or financial advice

United States: NFA Compliance Rule 2-43(b), in force for US forex dealer members since 2009, requires positions to be offset first in, first out. Industry coverage describes the practical result as no opposing positions in one account at the same time. An EA designed to hedge needs a different design on such an account.

India: the Reserve Bank of India publishes an Alert List of entities that are not authorised under FEMA to deal in forex or run electronic trading platforms; the latest update I found was its press release of 19 November 2025, which added seven names. RBI notices on the list advise residents to deal in forex only with authorised persons and on authorised platforms or recognised exchanges; I did not read the FEMA directions themselves. I do not advise whether a broker is permitted for you. Check with the RBI and a qualified adviser before opening an account.

Proprietary-trading firms that sell funded challenges publish their own automation rules. The third-party summaries I found agreed that Expert Advisors are commonly allowed but that high-frequency trading and latency arbitrage are prohibited and some firms cap request counts; they disagreed about martingale and grid strategies. Read the firm's current terms before the build starts.

The platform vendor's marketplace terms: the MQL5 Market Developer Distribution Agreement leaves the rights in a product with the developer and gives buyers a personal, non-transferable licence. Unless the developer's own licence says otherwise it bars buyers from decompiling or modifying a product, and it does not mention source code. Rights in code built for you are agreed per project.

Checked on 6 November 2026: the MetaTrader 5 help pages on trading concepts and the Strategy Tester (opened), the MQL5 reference page on event handlers (opened), the MQL5 Market Developer Distribution Agreement (opened), the RBI press release of 19 November 2025 on the Alert List (opened), NFA Rule 2-43 coverage by a forex trade-press outlet, a consumer-finance site and a hedge-fund law blog (search summaries only) and prop-firm help pages and comparison sites (search summaries; no firm's own terms opened). These are market notes, not legal or financial advice.

## How do hosting and handover work for an EA?

An EA runs only on a terminal that stays online, so I typically set up a Windows VPS or your own machine, install the terminal, load the EA with its input files and test a restart. I typically do not need your trading password: I build and test on a demo account, and you enter any live credentials yourself.

A handover typically includes the .mq5 source and its include files, the compiled .ex5, a set file with default inputs, the tester settings and results with their assumptions, a short manual and a change log. What is handed over and the rights in the code are agreed per project in writing.

## How does the work run, step by step?

1. **Read the rules and the account.** Your description becomes a written specification, with questions about every case it does not cover and a note of the broker and account type.
2. **Choose symbols and account setup.** Hedging or netting, filling modes, symbols and sessions are fixed, so tests run on the setup you will really trade.
3. **Build in modules.** Strategy, risk and execution code are written separately and checked against the specification.
4. **Test in the Strategy Tester.** Several modes, a forward segment and a written list of assumptions and limits.
5. **Run forward on a demo account.** Live prices without real money; the request log is compared with the rules and the tester.
6. **Deploy and hand over.** VPS or terminal set up, restart tested, source files and notes delivered.

## How long does MetaTrader 5 Expert Advisor development usually take?

These are typical ranges for work like this, not promises or deadlines. The real estimate follows the written scope after the free call.

- Reading the rules: A day or two to turn your description into a specification and a list of questions.
- A single-strategy EA: Commonly one to three weeks to a first tested version, depending on filters, symbols and money management.
- Multi-symbol or portfolio EAs: Often several weeks, because testing across symbols and account types takes most of the time.
- The demo forward run: In my view at least a few weeks of demo trading on live prices before any real money is used.

## What do I need from you to start?

- Rules in writing: Entry, exit, stop, target, trailing and sizing rules, with examples of trades you would take and trades you would skip.
- Broker, account type and symbols: The broker's name, whether the account is hedging or netting and the symbols and sessions the EA will use, so tests match your setup.
- A demo account: A demo account at the same broker for building and forward testing, while live credentials stay with you at all times.
- Platform rules that apply: Any prop-firm or broker limits on automation, such as caps on request counts, news trading or minimum holding times.
- A tester on your side: One person who runs the delivered EA on a demo account and reports what it did against what the rules say, with the log file.

## How can you tell MetaTrader 5 Expert Advisor development is working?

- Tester report with assumptions: A report that names the mode, dates, spread, delay setting and inputs, so anyone can repeat the same run.
- Same trades on demo: The demo account opens and closes trades when your rules say, and any difference traces to a logged reason.
- A clean request log: Few rejected requests, and every rejection carries a result code that explains why it happened.
- Restart behaviour: After a terminal restart the EA recognises its open positions and orders and carries on without duplicating them.

## Tools and proof

- Tools: MQL5 and MQL4, MetaTrader 5 terminal and Strategy Tester, MetaTrader5 Python package, Python, TradingView PineScript, Windows VPS, Claude and Codex
- Expert Advisors built: 100+ automated trading strategies written as MetaTrader Expert Advisors (MQL4/MQL5) and TradingView PineScript scripts, described in the case study on this site. No performance figures are published.
- Platform range: MT5, MQL4, MQL5 and PineScript are the trading tools listed in the CV, along with Python and Node.js for everything around them.
- Engineering background: M.Tech in Computer Science and Engineering, with AI-assisted software engineering as the build method.

## How is MetaTrader 5 Expert Advisor development priced?

- A defined scope in stages: Specification, build with tester package, then deployment, so each stage is checked before the next one starts.
- Hourly for changes: Small edits to an existing EA, a bug hunt or a conversion are often easier to run by the hour.
- A retainer for upkeep: Keeping an EA working across terminal updates, broker changes and new symbols.
- How I work: Projects, hourly or part-time help and retainers. There is no rate card; after the free 30-minute call I come back with a quote.

## When should you not hire me for MetaTrader 5 Expert Advisor development?

- You want a ready-made robot: I do not sell finished EAs or signals. I code the rules that you bring.
- You need a latency-driven design: Tick scalping and latency arbitrage against a broker's feed are fragile and often prohibited by firms, and I will not build them.
- You need an exchange-grade system: An EA lives inside a retail terminal. A standalone platform with its own order management is a different project.
- You will market it as a profit machine: I write no marketing that promises returns, and I suggest legal advice before selling any EA.

## What can go wrong with MetaTrader 5 Expert Advisor development, and what do I do about it?

- Netting and hedging mismatch: An EA that assumes several positions per symbol misbehaves on a netting account, so I test on the account type you will use.
- Broker differences: Stop levels, filling modes and symbol settings differ between brokers, so the EA reads them from the symbol and logs each rejection.
- Overfitted inputs: Inputs that win in one period can lose in the next, so the report shows a forward segment and the spread of results, not one winning run.
- Terminal updates: A new terminal build can change behaviour, so I record the build used for testing and recheck after a major update when asked.

## Which businesses is MetaTrader 5 Expert Advisor development a good fit for?

- Traders with a written MetaTrader strategy and no programmer
- Traders replacing a closed-source or abandoned EA with code they can read
- Prop-firm candidates who need an EA inside the firm's published rules
- Trading educators who want their rules turned into testable programs
- Brokers' introducing partners who need a custom chart panel or indicator

## Should I hire a MT5 EA developer, an agency or an in-house specialist?

| | Specialist (Sunny Guha) | Agency | In-house hire |
|---|---|---|---|
| Who does the work | One senior person: audit, build, tracking and reporting. | A team, typically with an account manager between you and the specialist. | A salaried employee inside your business. |
| Best for | Owner-run businesses and teams that want one accountable contact. | Projects that need many channels, on-site production or a large team at once. | Ongoing full-time work that needs daily internal context. |
| Limits | One person's capacity; remote only, no on-site production. | Typically more layers, and the person working on your account may change. | Hiring time, a salary, and one person's range of skills. |
| How fees work | Quoted after a free 30-minute call; no published rate card. | Typically quoted by scope and channels, often as a monthly fee. | Salary and overheads, whatever the results. |
| Engagement options | Project, retainer, hourly or part-time; also open to full-time roles. | Usually a monthly retainer or a fixed project. | Full-time or part-time employment. |
| How it starts | A free 30-minute call, then a quote for the scope you agree. | A proposal and onboarding with the sales and account team. | A job post, interviews and a notice period. |

## Frequently asked questions

### Can you build an MT5 EA from my strategy?

Yes, when the rules can be written precisely. I turn your description into a specification, ask about every case it leaves open and code only what you confirm. I do not design strategies or recommend what to trade.

### Do you also write indicators and chart panels?

Yes. A custom indicator, a script or a small on-chart panel can be part of the same project when it supports the Expert Advisor, such as a panel that shows the EA's state and lets you pause it.

### Should the EA be built for MT5 or MT4?

Use the platform your broker offers. MT5 offers hedging and netting account types, a multi-symbol Strategy Tester and an official Python package, but some brokers still offer MT4 only. The MT4 page explains that case and conversions.

### Will my EA be accepted on a prop firm account?

That depends on the firm. Many allow Expert Advisors but ban high-frequency trading, latency arbitrage or copying, and some cap request counts. Send me the firm's current rules before the build, and I design the EA inside them.

### Can you convert an MT4 EA or a TradingView script to MT5?

Yes, though it is usually a rewrite and not a copy, because MT5 handles positions, deals and execution differently from MT4. A TradingView strategy needs its rules restated for MetaTrader and then re-tested, since the two platforms fill orders differently.

### Do you promise the EA will be profitable?

No. I build what your rules say and show how it behaved in tests, with the assumptions stated. Whether a strategy earns money depends on markets, costs and discipline, and nobody can promise that in advance.

### Do you need access to my trading account?

Typically not. I build and test on a demo account. You install the delivered EA on your terminal or VPS and enter your own live credentials, so I do not normally see your trading or investor password.

### How much does an MT5 Expert Advisor cost?

I do not publish a rate card, because the cost depends on the number of rules and filters, symbols, risk controls, testing depth and hosting. Book the free 30-minute call and send your rules; I come back with a quote.

## Which industries can I run MetaTrader 5 Expert Advisor development for?

- [SaaS](https://sunnyguha.in/industries/saas-marketing.md): Google Ads and Meta Ads for SaaS companies: demo and free-trial funnels tracked to pipeline, with sales outcomes sent back to the ad platforms.
- [SaaS websites](https://sunnyguha.in/industries/saas-website-development.md): Website design and development for SaaS companies: fast marketing sites with pricing, demo and trial paths, accessibility and signup tracking.
- [Education and coaching](https://sunnyguha.in/industries/education-coaching-marketing.md): Google Ads and Meta Ads for schools, courses and coaches: enquiry-to-enrolment funnels planned around intake dates, with outcome claims kept honest.

## Related

- [MT4 EA developer](https://sunnyguha.in/services/mt4-ea-developer.md): Hire an MT4 EA developer: new MQL4 Expert Advisors, fixes to existing EAs and ports to MT5, with order errors logged and tests stated.
- [Algo trading software developer](https://sunnyguha.in/services/algo-trading-software-developer.md): Algo trading software developer: your rules coded, backtested with stated limits, linked to MetaTrader or broker APIs, with risk controls and a VPS.
- [Trading software developer](https://sunnyguha.in/services/trading-software-developer.md): Hire a trading software developer: dashboards, trade journals, risk monitors and broker API links built for your own trading. No advice or signals.
- [Custom software developer](https://sunnyguha.in/services/custom-software-development.md): Custom software development services from a developer: internal tools, API integrations and reports that replace spreadsheets, built in tested stages.

## What other services come under trading software?

- [Algo trading software developer](https://sunnyguha.in/services/algo-trading-software-developer.md)
- [MT4 EA developer](https://sunnyguha.in/services/mt4-ea-developer.md)
- [Trading software developer](https://sunnyguha.in/services/trading-software-developer.md)

## Contact

- Free 30-minute call: https://sunnyguha.in/contact
- Email: guha.sunstar@gmail.com
- Phone / WhatsApp: +91 98743 25165
- LinkedIn: https://linkedin.com/in/sunnyguha
- No published rate card: send the goal and the market and Sunny Guha comes back with a quote.

