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

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

See for getting a connection between highs and a connection between lows. I made a zigzag this way.

Improvements to the previous version.

I wrote a new indicator to find the range bound period, then we can place order when the price break the range bound.

The indicator specifies on trend and lateral movements of the price.

The moving average that divides the prices for classes. The classes with extreme price get bigger weight (importance)

Drag and drop wave counts.

I'm looking for a skilled programmer that can take my existing EA alert and fine tune it. I have a solid set of rules that consistantly make me money, and I am looking to automate the signals so that I can effectively manage several currency charts at th

"Follow Your Heart" is an Expert Advisor that open an Order strictly by price increase/decrease during nBars on the M1 time frame (without any indicators).

This EA will open a Long Order if the Price move above yesterday High or Short Order if the Price move beneath yesterday Low.

Expert Advisor based on the ACD and MA Attention: this is not a Holy Grail

Trades when two moving averages cross each other

Trades using parabolic SAR signals

Shows you profit history in real time.

Many developers face the same problem - how to get to the trading terminal sandbox without using unsafe DLLs. One of the easiest and safest method is to use standard Named Pipes that work as normal file operations.

Moving Average on Moving Average

Strategy is founded on support and resistance AND the theory that the market moves in trends or consolidated horizontal movement containing smaller ranges. It uses default custom indicator moving average and partial order closing. -WhooDoo22.

Execute Script only one time and it will delete all pending orders i.e Limits and Stops by this script at once. No Need to run script for each order separately.

Renko Expert Advisor.

Multi-currency EA, working on brekouts and stop-orders.

Autostop automatically sets stops on open trades

A simple script to quickly place letter/numbers on the chart for wave labeling (A, B, C or 1, 2, 3, etc)

Schaff Trend + Signal EMA

Improved functions iAC, iAO and iBearsBulls

Scripts to modify stop loss in buy or sell opened orders on current chart.

For those trader who can't stand having the Market Watch or Navigator boxes up on their platform but like to have a time displayed on chart a Simple Clock Indicator

Extension of VR --- SETKA. Advisor to the grid works by Martin ...

Indicator BoDi for finding signals to close position.

Calculates the profit from oppened trades if the Price reaches the dropped Price

Opens specified trades at the specified time

MFI indicator with possibility to establish applied price.

Customizable Fibonacci Tool scripts to make these tools more informative on chart as per your needs.

This EA executes trades when it recognizes candlestick patterns that are associated with Bullish Reversals. Test have been ran on the daily chart. The code still needs a lot of work, so trade at your own risk.

Improved functions iBands и iMACD.

Automatic set (woth confirmation) of tp ans sl calcul use buy cost it work for every trade available and for all symbol. You can change the external parameter for tp and sl. I work on a new version where you could choose sl and tp for each symbol

Trades on two moving average crosses

Trades when the first parabolic sar dot occurs signaling a new trend

Scalper system. It shows the entry, takeprofit and stoploss levels.

Scalper system. It shows the entry, takeprofit and stoploss levels.

This indicator gives BUY and SELL signals and entry level.

Simple multicurrency trend indicator. You can modify it according to your taste.