Outlaw EA Source Code, free MQL source code for MetaTrader

Outlaw EA Source Code

Outlaw EA Source Code, free MQL source code for MetaTrader

This page gives you the Outlaw EA free source code, the .mq4 file itself and not a compiled robot you have to trust. It is an ADX, DI and trailing robot, and the file shows every rule it follows.

  • Platform: MetaTrader 4, a single .mq4 file
  • Strategy: ADX, DI and trailing
  • Price: free, a free account is all you need
  • Licence: study it, edit it and, if you want, rebrand it

In short, you get exactly the file we publish, and therefore nothing stops you from rebuilding any part of it.

How the Outlaw strategy works

The ADX does not say up or down, it says how strong the current move is. Below its threshold the market is drifting and a trend robot has no business trading, which is why it usually sits in front of the entry as a gate.

Because every condition has to agree before a trade opens, the robot passes on plenty of moves. That is the trade off it was built around.

What is inside the Outlaw EA free source code file

  • The ADX gate, with its period and the level that allows a trade.
  • The risk block, with the lot sizing, the stop loss and the take profit.
  • Finally, every input with its default value, so you can compare it against your own broker.

How to compile and run it

  1. First, download the .mq4 file from the button at the end of this page.
  2. Then open MetaEditor 4 from MetaTrader 4, with F4 or the editor button.
  3. After that, save the file inside MQL4 and then Experts, and press Compile.
  4. Finally, refresh the Navigator and drag Outlaw onto a chart.
  5. Run it on a demo account first, and read every input before you go live.

If the compiler complains, our guide on compiling MQL source covers the usual causes. In most cases it is simply a missing include or the wrong folder.

What you can change

Raising the ADX level is the quickest way to cut the losing trades that happen inside a range, and it also cuts the number of trades by a lot.

Before any of that, however, look at the risk block. After all, a good entry with the wrong lot size still empties an account, and therefore the sizing deserves the first pass rather than the last.

More robots like this one are in the trend following source code, and the paid catalogue with documentation and support lives in the MT5 source code section. The idea behind the average directional index is explained well on this reference page.

Questions about the Outlaw EA free source code

Which platform is it for? MetaTrader 4, as a single .mq4 file.

Do I get updates? You get the file as it stands. Once it is yours, you improve it.

What pairs suit it? Start with the majors on a demo account, because they behave predictably while you learn the settings.

Can I reuse a part of it? Yes, and that is usually the best use of a free robot. Take the block you need and drop it into your own.

Download the Outlaw EA free source code

The file below is the complete .mq4. First of all, create a free account or log in. Then download it and, finally, open it in MetaEditor 4.

Free source code. Log in or create a free account to download the Outlaw EA Source Code source files.

Login to Download

Shopping Cart
Assistant 🔊 – ✕
← My conversationsEnd chat