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 - 5

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

MACD in MA is an indicator to change color in iMA if iMACD is upper of zero (uptrend) or lower of zero (downtrend). It helps any trader to see the trend of pair. For more information about the indicator you can to visit the product's page: https://www.mql5.com/en/market/product/25084

RSI in MA is an indicator to change color in iMA if iRSI crosses level up (uptrend) or crosses level down (downtrend). For more information about the indicator you can to visit the product's page: https://www.mql5.com/en/market/product/6446

CCI in MA is an indicator to change color in iMA if iCCI crosses level up (uptrend) or crosses level down (downtrend). For more information, you can visit the product's page: https://www.mql5.com/en/market/product/6444

This expert is a tool which helps every trader to see the historical results by magic number or orders' comment. For more information for expert you can to visit the product's page: https://www.mql5.com/en/market/product/26008

It's an indicator to show some information about the account on the chart. For more information about indicator you can to visit the product's page https://www.mql5.com/en/market/product/7056

This expert is a tool to check broker execution and spread. For more information about the expert, you can visit the product's page: https://www.mql5.com/en/market/product/5791

This Expert Advisor closes all open positions and pending orders. It is possible to close only buy or sell orders, market or pending orders, positions with profit or loss. For more information about the expert/utility you can to visit the product's page: https://www.mql5.com/en/market/product/7010

This Expert Advisor is a tool to be used for closing all open positions by ticket in profit. Does not open positions, can only close positions. You can select the type of profits (pips or currency) and type of tickets (buy or sell) to manage it, and specific ID (magic number). For more information can visit the product's page: https://www.mql5.com/en/market/product/6990

It is based on solar winds joy and modified based on that. It is giving some good performance

MT4 Indicator for Position Size Calculation

Fractals - adjustable period and prices

Volume indicator as modified by RonT, but histogram bar color will be red on a down candle, green on an up candle

This Expert Advisor trade on fibo pivot level.

The Awesome Oscillator indicator is used for trade entry and exit

This ea designed based on Grid sterategy .

This EA uses modified Williams Awesome Oscillator (AO) and Accelerator Oscillator (AC) indicators for trade entry.

Macd Secrets EA uses 3 different time frames to find a trend,has Trailing Stop Loss &Take Profit works with all time frame major forex pairs and stocks NASDAQ.

If you make your own EA with iCustom from any indicator, but you don't know which signals from indicator via iCustom work? This EA help you.

Manual Hedging EA is an advanced hedging system.to trade manualy, each time you press the "Start" button, a sequence of trades begins ,When the market goes against you by certain number of pips, you open an opposite trade by a trade with slightly bigger lot size.

Zone Recovery Hedging Strategy Ea with two moving averages and Special formula. It works on any time frame, you should try it on demo account.

"Consolidation Breakout" naked trading price action EA draws 3 Trend Lines with "Fractals" on chart and trades after convergence breakouts,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

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

"Trend Reversal"naked trading price action EA draws 4 Trend Lines with "Fractals"(2main+2small) on chart and trades with Trend Reversal,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

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

"Micro Trend breakouts"naked trading price action EA draws 4 Trend Lines with "Fractals"(2main+2small) on chart and trades with Trend breakouts,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

A very simple EA that makes anywhere from 8% to 69% profit. Randomly.

"Eliot Wave I" EA draws 3 Trend Lines with "Fractals"(1main+2small) on chart and trades When a Eliot retracement is formed,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

This indicator uses various SMA to indicate a possible reversal point.

ZeeZee Level, One by One

Display interactive HTML graph of the account balance inside the web browser.

"Triangle" EA draws 2 Trend Lines with fractals on chart and trades When a triangle is formed,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

With "Trend Line By Angle" EA you can draw Trend Line By Angle on the chart and trade with price breakthrough or trend,has 3 buttons for manual trading and allows to predetermine trailing stoploss & take profit, open and close all trades at once.

With "Equidistant Channel" EA you can draw Equidistant Channel on the chart and trade with price breakthrough or trend,has 3 buttons for manual trading and allows to predetermine trailing stoploss & take profit, open and close all trades at once.

With "Fibonacci Time Zones" EA you can draw Fibonacci Time Zones on the chart and trade with price breakthrough,has 3 buttons for manual trading and allows to predetermine trailing stoploss & take profit, open and close all trades at once.

The indicator plots Pivot levels for 3 custom periods on chart.

"Breakthrough volatility" breakdown robot scalper. Added function "roly-poly".

This is a simple EA that automatically places Stops and TakeProfit on opened orders .

With "Cycle Lines" EA you can draw Cycle Lines on the chart and trade with price breakthrough,has 3 buttons for manual trading and allows to predetermine trailing stoploss & take profit, open and close all trades at once.

Building a moving line by a polynomial of the 4th degree. Extrapolate a sine curve and its axis. One value on each bar is removed from the drawn lines and a sliding line of extrapolated values is drawn, which is not redrawn.

Scalper for any timeframe, with the "roly-poly" principle.

123456789101112...92