Watch how to download trading robots for free
Find us on Twitter!
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 - 17

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

Do you rely on your analysis and just want help on position sizing and how and when to take profit ? Do you have a lot of open positions and you need to reduse your DD and release some margin?

Quick scripts to remove Equity from a demo account for a broker that does not support anyway to withdraw.

Simple decycler oscillator

Sell relative strength index (SRSi)

This Expert Advisor is a tool for managing orders.

This indicator is a tool to show history orders on the chart.

This expert is a tool to manage the level of profits or losses for each order without using stop loss or take profit.

This indicator uses Bollinger Bands lines to detect markets trend.

This indicator uses Moving Average to detect markets trend.

STOCH in MA is an indicator which applies the stochastic changes to the iMA.

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.

RSI in MA is an indicator to change color in iMA if iRSI crosses level up (uptrend) or crosses level down (downtrend).

CCI in MA is an indicator to change color in iMA if iCCI crosses level up (uptrend) or crosses level down (downtrend).

This expert is a tool which helps every trader to see the historical results by magic number or orders' comment.

It's an indicator to show some information about the account on the chart.

This expert is a tool to check broker execution and spread.

This Expert Advisor closes all open positions and pending orders.

This Expert Advisor is a tool to be used for closing all open positions by ticket in profit.

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

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.

1...101112131415161718192021222324...104