Netting & Hedging Accounts
MetaTrader 5 supports both account types, and position logic has to match. Expert Advisors are written for the one you trade — or for both.
Hire an MQL5 developer for MetaTrader 5 Expert Advisors, indicators and trading tools — or to extend, fix, speed up and migrate the MQL5 and MQL4 code you already have.
New Expert Advisors and indicators, existing MQL5 code, and MQL4 code that has to move.
Nordman Algorithms writes MQL5 code for traders, prop traders, signal providers and software vendors on MetaTrader 5. Our MQL5 developers work from trading rules, a written specification or just a plain description, existing .mq5 source — and from MQL4 Expert Advisors and indicators that need to move to MetaTrader 5.
MetaTrader 5 is not MetaTrader 4 with a new name. Orders, deals and positions are separate, accounts can be netting or hedging, and the Strategy Tester runs on real ticks across several symbols at once. Every Expert Advisor, indicator and tool is written for these conditions and your broker, and checked on real ticks before it reaches your account.
The finished .mq5 source code and all rights to it are yours on delivery.
Expert Advisors and tools for netting and hedging accounts, written by our MQL5 programmers from your trading rules.
Automated strategies for netting or hedging accounts, from single-symbol systems to multi-symbol portfolios.
Signals, levels and alerts on the chart, including indicators that read several timeframes or market depth.
One-off tools that run on a chart and finish: bulk order actions, data exports and chart set-up.
On-chart panels for manual trading, with preset risk, trailing, partial closes and a view of open positions.
MetaTrader 5 capabilities that MQL4 code cannot use — and that shape how MQL5 code is built.
MetaTrader 5 supports both account types, and position logic has to match. Expert Advisors are written for the one you trade — or for both.
The Strategy Tester runs on real ticks, tests several symbols in one pass and spreads optimization across local and cloud agents.
News filters read release times straight from the terminal’s own calendar, with no external feed to maintain.
On exchange-connected accounts, stocks, futures and options are available, and Expert Advisors and indicators can read the order book.
Models trained elsewhere run inside MQL5 in ONNX format, so an Expert Advisor can use them without calling an outside service.
Renko, range bars or the spread between two instruments can be built as a custom symbol, then charted and tested — while the Expert Advisor trades the real instrument.
An MQL5 developer working on the Expert Advisors, indicators and scripts you already have — and on MQL4 code that needs to move to MetaTrader 5.
New rules, filters, inputs and functions added to existing .mq5 source — including code written by another developer — while the parts that already work stay intact.
Trade requests the server rejects, position logic that breaks on netting or hedging accounts, indicators that repaint and compilation errors after MetaTrader updates — traced to the cause in the code and fixed. When tester and live results differ, we find out why, correct the code and take execution conditions into account.
Heavy calculations moved off the tick, slow multi-symbol loops rewritten, and procedural code reorganised into classes that are easier to extend and test.
MQL5 connected to external systems through HTTP requests, its own socket functions, DLLs and the official MetaTrader 5 package for Python — with trained models running inside the terminal in ONNX format.
MQL4 Expert Advisors and indicators rebuilt for MetaTrader 5’s order, deal and position model rather than translated line by line, then run side by side with the original to compare results. MQL5 logic can also be moved to NinjaScript, cTrader or Pine Script. Still working in MQL4? See MQL4 development.
Send a description of what you need and the .mq5 and .mqh files if there is existing code — we will review it and tell you what it would take.
MetaTrader 5 offers more ways to reach beyond the terminal than MetaTrader 4. The right one depends on what the external system has to do.
Python works with the terminal through the official MetaTrader 5 package, and trained models can run inside MQL5 in ONNX format.
Desktop tools, demanding calculations and links to other Windows software, connected to MQL5 through a DLL.
HTTP requests, live connections over MQL5’s own socket functions, and incoming alerts through a webhook receiver.
We agree the rules, the account type and the acceptance checks with you before any code is written.
Send a description of the rules or the change you need, the source files if there is existing code, and whether your account is netting or hedging.
Receive the .mq5 source and compiled .ex5 file, settings presets, a Strategy Tester report where relevant, and a guide to every input. We walk through the specified behaviour and provide technical support under the agreed terms.
Work with MQL5 programmers who build MetaTrader 5 software every day.
Orders, deals and positions, netting and hedging accounts, real-tick testing — handled the way MetaTrader 5 works, not carried over from MQL4 habits.
Our own MT5 indicators and trade copiers are written in MQL5, so MetaTrader 5 behaviour is familiar ground.
See our MT5 products →Requirements, deliverables, fixed price and acceptance examples are agreed before development begins.
An NDA is available on request. Source code and full IP ownership are transferred on delivery.
Installation help, input explanations and technical answers within the agreed support scope.
Feedback from clients across our custom trading software projects.
Practical answers about MQL5 code, migration from MQL4 and MetaTrader 5.
Yes. Rather than translating it line by line, we rebuild the logic for MetaTrader 5’s order, deal and position model, then run both versions side by side and compare the results.
Yes. On a netting account one symbol holds a single position; on a hedging account several can be open at once. Position logic written for one type can misbehave on the other, so we write for the account you trade — or for both.
Yes. Models trained elsewhere can run inside an Expert Advisor in ONNX format, and Python can work with the terminal through the official MetaTrader 5 package. The right route depends on the model and how often it is used.
Yes. The first step is reading the existing .mq5 code to see how it is structured and what it depends on; changes are then made so that the working parts keep behaving as before.
Compiled files are not decompiled. What we can do is look at what you still have — the trading rules, input settings, screenshots or trade history — and tell you whether the Expert Advisor can be rebuilt from it. If it can, the new version comes with full MQL5 source that belongs to you.
Testing on real ticks narrows the gap, but spreads, execution and broker rules on a live account can still differ. We find the cause first, fix errors in the code, and take execution conditions into account where possible.
Yes. You receive the .mq5 source, the compiled .ex5 file, settings presets and instructions. Source code and full IP ownership are transferred on delivery.
A description of the rules or the change you need, the .mq5 and .mqh files if there is existing code, and whether your account is netting or hedging. Screenshots and settings help as well.
Send your trading rules, or the .mq5 or .mq4 code and what should change. We will review it and outline a practical scope for your MQL5 project.