MQL4 To CSharp Bridge DNNE functions as a technical bridge rather than a trading robot, allowing developers to extend MetaTrader 4 capabilities with C# libraries. The included Expert Advisor serves as a test suite for primitive arguments, strings, asynchronous functions, and dependency injection service executions. It does not include built-in trading strategies, stop loss controls, or risk management features as its primary purpose is system interoperability.
Connect MQL4 to managed C# code using DNNE
Support for passing strings from MQL to C#
Integration with .NET Dependency Injection services
Read from DNNETest.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
DIRepeat
int
5
number of repeats of DI service executions (scope is changing after every 2 runs)
testSimple
bool
false
run tests of simple primitives arguments
testString
bool
false
run tests of strings arguments
testAsync
bool
false
run tests of functions with async
testDI
bool
true
run tests of DI (Dependency Injection)
testDIDetailed
bool
false
display more detailed DI execution (show Starting function)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone DennisGundersen/xArchive_MT4-To-CSharp-Bridge-Using-DNNE from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
3Copy the filesCopy the .mq4 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This Expert Advisor framework for MetaTrader 4 provides a modular template for building custom trading strategies. It handles complex trade management tasks, including multi-symbol execution, margin-based position capping, and various lot-sizing algorithms such as risk percentage or fixed volume. Risk controls include
This MetaTrader 4 template provides a modular framework for developing expert advisors. It organizes trading logic into decoupled components including signal engines, order management, and environment checking. The system uses an abstract controller class to handle data processing from multiple sources, such as MACD or
This repository contains the MQL source code used by Forex Strategy Builder Professional to export automated trading strategies to MetaTrader 4 and MetaTrader 5. It serves as a standardized template for executing technical strategies generated by the software, handling order execution and trade management. The EA inclu
This MetaTrader 4 expert advisor provides a foundational framework for developers to create custom automated trading systems. It establishes a structured environment for handling trade signals, entry execution, and exit management. The template includes standard risk parameters such as fixed lot sizing, stop loss, and
This MetaTrader 4 utility provides a framework for developers to implement event-driven trade monitoring. It replicates the native MQL5 OnTrade function within the MQL4 environment, which lacks a built-in event for position changes. By monitoring the order pool during each price tick, the code detects when trades are o
This MetaTrader 4 expert advisor provides a robust framework for developing automated trading strategies. It includes pre-built modules for trend detection using ADX and Moving Averages, alongside pullback entry logic. The template emphasizes risk management, featuring percentage-based lot sizing and adaptive volatilit