Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Access the CodeBase from your MetaTrader 5 terminal
Couldn't find the right code? Order it in the Freelance section
How to Write an Expert Advisor or an Indicator

MQL4 Source Code Library for MetaTrader 4 - 15

icon

The largest library features codes of free trading Expert Advisors, technical indicators and scripts. With the available applications you can trade in automated mode and analyze price dynamics. Use the library of codes to learn more about financial market sentiments.

Download free applications, test them and run in your MetaTrader 4. You can access them from the MetaTrader 4 platform and the MetaEditor development environment.

Submit your code

This expert is a tool to test any of my histo indicator (8) for testing and find better settings to trade.

The expert uses iFollowLine and iCompass indicators to generate signals.

The indicator is shown in a histogram the ADX uptrend and downtrend uses a different way.

The indicator is shown in a histogram the Bands uptrend and downtrend uses a different way.

The indicator is shown in a histogram the MACD uptrend and downtrend uses a different way.

The indicator is shown in a histogram the Stochastic uptrend and downtrend uses a different way.

The indicator is shown in a histogram the Bull and Bears uptrend and downtrend uses a different way.

The indicator is shown in a histogram the ATR uptrend and downtrend uses a different way.

The indicator is shown in a histogram the CCI up and downtrend uses a different way.

The indicator is shown in a histogram the RSI up and downtrend uses a different way.

5MinutesScalpingEA uses indicators (5) from 5MinutesScalpingSystem.

You can send pending order on closed market between StartTime and EndTime at specific minumum and maximum price.

Expert works only with FolowLine indicator.

This expert uses iDoubleChannel indicator.

It is an indicator of technical analysis that aims to assist every trader in his manual trades.

It is a manual trading system consisting of 5 indicators.

Simple utility that makes use of offline charts to facilitate training by enabling bar-by-bar display - both forward and backward, as well as reset to a pre-defined date/time.

Adaptive ATR

Detects intersections between MA3, MA20 and MA150.

It's a multi-currency grid and martingale system that can trade all input pairs from one chart.

NewsReleaseEA is an expert to trade about economic news uses pending orders.

This Expert Advisor is a pure scalping system.

This Expert Advisor is a pure hedging system.

Used to compare 2 currencies on one chart, the Original indicator will recenter its calculation on every bar, and hence the price will keep shifting up and down and so the historical relative values do not remain constant. This indicator was modified so that the 'center' or initial relative reference point stays fixed and does not update each bar. It will only reinitialize when the indicator is reloaded or settings are changed.

Currency Index that calculates evenly on all 7 major pairs. Can also change base currency. Based on No Nonsense Forex podcast.

Let say you have an EA and you want it to trade in between an interval of time but you do not have the source codes to modify the EA. This utility allows you to automatically enable or disable the automated trading button. You can use the codes as an EA, Indicator or script but I used as an EA. You can remove Ordersend command because I set it only for the codes to past the test but it is meaningless.

EA with candle size filter and scale on loss

Arrow trends by iBearsPower and iBullsPower indicator for MT4.

A Price Time correlation model is used for Trend and Reversal trading

Indicator Bears and Bulls Power for MT4 together in one separate window.

TraderTool is a tool/panel that will help any trader to perform trades quickly and easily.

Volatility ratio

Virtual Robot

Three Moving Averages Convergence/Divergence - Indicator for MT4

The code consists of lines created according to the opening, closing, low and high values of prices.

"Wedge pattern" naked trading price action EA draws 2 mini Trend Lines with "Fractals" on chart and trades with Wedge pattern strategy,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

"Head and Shoulders" naked trading price action EA draws 2 mini Trend Lines with "Fractals" on chart and trades with "Head and Shoulders" strategy,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

Divides whole levels into Halfs and Quarters.

Trend indicator

This EA doesn't need any indicator, just moving price action is necessary to operate.

1...8910111213141516171819202122...104