Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Simple UnitTest includes new MQL4 libraries - MetaTrader 4 libraries - MT4/MT5 resources

author EAcpu | 2 reads | 0 comments |

Simple UnitTest include library for new MQL4 - library for MetaTrader 4

Simple UnitTest include library for new MQL4 - library for MetaTrader 4

This is a simple (cheap) included library for unit testing of MQL4.

See attached example: TestExpert.mq4

Through UnitTest#printSummary(), the output results are as follows:

Simple UnitTest include library for new MQL4 - library for MetaTrader 4

The source code is published in the GitHub repository .


Attachment download

📎 TestExpert.mq4 (1.91 KB)

📎 UnitTest.mqh (21.33 KB)

Source: MQL5 #11111

Simple UnitTest includes the new MQL4 library - Recommendations for using and filtering libraries for MetaTrader 4

Simple UnitTest includes the new MQL4 library - MetaTrader 4 library belongs to MT4 EA related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.

Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based on titles or short-term profit descriptions.

Verification code Refresh