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

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.

"Harami" trades with 2 Moving Averages and an Harami pattern has Trailing Stop Loss &Take Profit works on 4H & 1D time frames major forex pairs and stocks NASDAQ.

This indicator will display the combined values of all stop losses and take profits.

Scans multiple symbols looking for when the price crosses a pivot point then it alerts the trader.

"Trend Is Your Friend" trades with 2 Moving Averages and an Engulfing pattern has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

The indicator pivot points consist of support and resistance.

"1MA" EA trades with a strategy based on one 20 period moving average and has Trailing Stop Loss &Take Profit works on all time frames major forex pairs

Hedging Martingale opens two trades of buy and sell together,and uses the martingale method.

"Accelerator Trailing SL&TP" EA trades with "Accelerator" indicator and has Trailing Stop Loss &Take Profit works on all time frames major forex pairs.

Open and close when fast moving average line cross slow moving average line. Default parameters is for XAU H1.

StochasticAlerts is base of the Indicator Stochastic Oscillator by MetaQuotes Software Corp. with alert and email alert and option to display trader info and signal.

Parabolic Stop-And-Reversal system with Alert is base of the Indicator Parabolic by MetaQuotes Software Corp. with alert and email alert and option to display trader info and signal.

KeltnerChannels is base of the Indicator Keltner_Channels by MetaQuotes Software Corp. with alert and email alert and option to display trader info and signal. Hopefully useful for fellow traders.

FractalsAlert is base of the Indicator Fractals by MetaQuotes Software Corp. with alert and email alert and option to display trader info and signal.

The "Risk Reward Ratio" EA trades with RSI,MA & STOCHASTIC indicators It uses a Risk Reward Ratio ,has Trailing Stop Loss &Take Profit,works with all time frames major forex pairs and stocks NASDAQ.

The "Fractals Martingale" EA trades according to "Fractals" and "Iccimoku" indicators. If we lose a trade then the EA will take a new trade with a multiplied lot size,has Trailing Stop Loss &Take Profit,works with all time frames major forex pairs and stocks NASDAQ.

1H Bolinger Bands EA trades according to the "Bolinger Bands" indicator and two MA's,has Trailing Stop Loss &Take Profit works best on 1H and 4H time frame major forex pairs and stocks NASDAQ.

Bladerunner EA trades with "Fractals" indicator and 20 period moving average strategy has Trailing Stop Loss &Take Profit works on 1H time frame major forex pairs and stocks NASDAQ.

555 Scalper EA trades with two 5 period exponential moving averages has Trailing Stop Loss &Take Profit works on 5 minute time frame major forex pairs and stocks NASDAQ.

Candle Trader EA trades according to the low/high price of the candle of the previous day,has Trailing Stop Loss &Take Profit, works best on H4 and daily time frame major forex pairs and stocks NASDAQ.

Stochastic EA trades with two "Stochastic " indicators has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ .

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586