Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2014.02.06 14:31

mt4R for new MQL4 - library for MetaTrader 4

| English Español Português 日本語 Deutsch

votes: 18

mt4R, originally developed by Bernd Kreuss and distributed here, does not work correctly with new MQL4.

I modiifed the dll and the include file to support new MQL4.

Trouble or Bug Report:

If you are in trouble with this, please report it to GitHub Issue.

Because notification is broken, I cannot notice someone reported here.

Latest version:

You can get the latest version from GitHub releases. (Due to update time lag by moderation, the attached binary may be older than the latest release at GitHub)

Changelog is also at and GitHub commits.

Update history:

Feburary 10, 2014: v1.4.0-b7: Added sample experts: Arb-O-Mat and Trend-O-Mat(GitHub#5).

Feburary 9, 2014: v1.4.0-b6: Fixed the bug of RGetBool/RGetInteger(Github#4).

Feburary 9, 2014: v1.4.0-b5: Fixed the bug of RAssignString(Github#3).

Feburary 9, 2014: v1.4.0-b4: Fixed the bug of RAssignStringVector(GitHub#1), and updated the minor version number in DLL hardcoded.

Feburary 7, 2014: v1.4.0-b1: Changed MQL file encoding to UTF-16

Feburary 6, 2014: v1.4.0-b0: Initial snpashot


Source codes are distributed at a branch of my GitHub repository.


  • Testing is not enough
  • I had only confirmed that it seems work good with R-3.0.2 on Windows 2012 R2.
  • Performance may be slightly worse, because wide string in arguments is always converted to ansi string.
Simple UnitTest include library for new MQL4 Simple UnitTest include library for new MQL4

This is a simple (cheap) UnitTest include library for new MQL4

Elliott_1 Elliott_1

EA depend on distances for 9 orders opened with condition of Stoc 4H >80 sell &

Candle Direction Panels Candle Direction Panels

Shown all TF candle direction on Chart.

MySQL for new MQL4 (tested in build 600) MySQL for new MQL4 (tested in build 600)

Connecting to MySQL server from new MQL4.