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

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.

To post a new code, please log in or register
latest|best

"Trend Line" EA draws Trend Line on chart and trades with its trend,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

high-low channel

"Andrews Pitchfork" EA draws Andrews Pitchfork on chart and trades with its trend,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

Instead of having to analyze each pair individually, you can see at a glance what are the most promising pairs according to your own criteria.

"Gann Fan" EA draws Gann Fan on chart and trades with its trend,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

EA that uses neural networks to find best entries and survive of difficult conditions.

A higher period Bollinger band strategy used for trading reversals

Linear Regression Channel EA draws "Linear Regression Channel" on chart and trades with its trend,has Trailing Stop Loss &Take Profit works best on all time frames major forex pairs and stocks NASDAQ.

Great EA that scalps BUT also rides a trade.

After looking for many Trading concepts and requirements of my own tried to code an EA. First collected many EA's and tried their codes I re-designed the following codes for my own needs to use for trading. Hope you also find the EA helps you .. Have healthy life and succesfull trades within your life.

STRATEGY MARKET Tickmill-Live; EURGBP; H4 EA will trade a fix lot as you select and close as per the EA base indicator. ITs work only on Tickmill live broker account. without selected any date to back test

Displays colored bars for MACD indicator above or below the zero level. Configurable with alerts.

Trading Criteria EA trades with crrosing signals strategy has Trailing Stop Loss &Take Profit,display of trading criteria on chart,works with all time frames major forex pairs and stocks NASDAQ.

This indicator calculates and displays the Euro Index and 2 definable moving averages. In order for it to work, the broker must provide prices for all the reference pairs, i.e. EURUSD, EURJPY, EURGBP, EURSEK, EURCHF.

Indicator WaveMTF Bull and Bear System with Signal and Alert for MetaTrader 4 with options to display signal on the chart. with Signal and Alert, email alert, Push Notification and option to display trader info and signal.

Expert used for profiting the most from a trade,based in a number of indicators.

"Day Trading" EA Trades with Day Trading strategy,has Trailing Stop Loss &Take Profit works on 1D time frame major forex pairs and stocks NASDAQ.

Pure Price Action EA trades with "Price Action" strategy,has Trailing Stop Loss &Take Profit works best on 1H time frame major forex pairs and stocks NASDAQ.

The Predator EA trades with two strategies ,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ

A simple indicator to draw vertical lines at specified time in the settings.

Software is the modifying indicator base on BrainTrend2SigALERTS by BrainTrading Inc. with Signal and Alert, email alert and option to display trader info and signal. Hopefully useful for fellow traders.

Optimized expert opens only sell positions in 5MIN chart on GBPAUD pair.

Expert optimized for EURCAD in 5min chart,using the stochastics for enter a SHORT ONLY positions.

Follow daily movement after 2 days breakout

Multisystem of Volatility Breakout

The One Hour Stoc Trader uses a simple trigger criteria of: Stochastic rising while in Over-Sold zone (stocval<Stoc_Lo) and specific hour of day for Buy trades; and Stochastic falling while in Over-Bought zone (stocval>Stoc_Hi) and specific hour of day for Sell trades. The one hour chart is used. The algorithm works well, after optimization, for the following currency pairs: EURUSD, GBPUSD, USDCAD, USDCHF, USDJPY, EURGBP and AUDUSD. The following chart shows the Tester performance for the EURUSD currency pair on the 1hr chart for the period Jan 2010 thru Dec 2018.

EA that use Aroon indicator

"Aouto Adjusting" modified EA trades with 3 MA's and uses candels for Trailing Stop Loss &Take Profit and has aouto adjusting lot, works best on 4H time frames major forex pairs and stocks NASDAQ.

here a simple function that calculates FIBO retrace levels for further development steps hope this will help you ;)

"Candle Trailing Stop" EA trades with 3 MA's and uses candels for Trailing Stop Loss &Take Profit works best on 4H time frames major forex pairs and stocks NASDAQ.

"Macd Power" trades with 2 " Macd " indicators has virtual Stop Loss & Take Profit works on 4H & 1D time frames major forex pairs and stocks NASDAQ.

"Hedg System" EA trades with hedging strategy two trades at any given time: Buy and Sell ,works best on 1D time frames major forex pairs .

A simple way to manage graphical objects.

"Heikin Ashi Trader" EA trades with a strategy based on Heikin Ashi indicator (not visible) and has Trailing Stop Loss &Take Profit works best on 1D time frames major forex pairs and stocks NASDAQ.

"Fractals & Alligator" EA trades with a strategy based on Fractals & Alligator indicators and has Trailing Stop Loss &Take Profit works 1D time frames major forex pairs and stocks NASDAQ.

Indicator ZigZag System with Signal and Alert Added Alert and modify by Roberto Jacobs 3rjfx @ 2018/12/29

Forex Indicator Price Movement Degrees with Trend Alerts. This indicator will write value degrees of the latest position of price at the current time frames according to the Daily price movement, and when position and condition of trend status was changed the indicator will give an alerts.

This indicator is based on the Money Management approach used by VP from nononsenseforex.com It uses ATR to calculate Stop Loss, Take Profit and Volume you should enter into a trade based on the percentage of your Equity you want to risk.

The library and iCanvas class simplify writing programs using Canvas.

"Buy Sell Stop Buttons" EA sets up 3 buttons for manual trading and allows to predetermine trailing stoploss & take profit, open and close all trades at once.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687