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

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

Draws an ATR envelope surrounding price action and assists you in setting proper stoploss and takeprofit levels.

An improved version of the standard Moving Average indicator, now on the hourly timeframe, you can see moving averages of higher timeframes.

Scripts of pending, market orders, placing and removing stops.

The indicator shows spread-related values (spread, Bid + spread, Ask + spread, Ask + Bid + spread).

This indicator points possible price reversals using 5bar and 7bar fractals.

The script (in the absence of communication) rescans the server, will make paging history, emulates the ticks for the indicators and experts.

Hamyar indicator, the complete package (pivots,zones,panel,tp's...)

Review the results of the work of your strategy (in history) by the hour.

The EA without indicators with increasing lot size.

Very fast zigzag. No suspended peaks. No wrong peaks. Designed for use in EA. Optimized peaks retrieval

Three main pivot points : Daily - Weekly - Monthly.

This is a script to view a myfxbook's CSV statements file in MT4.

Do you want to know how the Spread on your Broker fluctuates? I developed 2 small indicators which will allow you to see hot the spread is performing real time and for the last few minutes or whichever you can thing your platform can hold.

The Martingale with Envelope indicator.

Uses candlestick signals to trade.

Account Balance, Equity, Margin, Free Margin + Account Profit: position anywhere on chart - hide any item - enhanced user preference options.

TheGreedyPig Average Daily Range Indicator calculates 5, 10, 20 days and shows them on the chart. I found this on a Forum, updated, modified the Indicator I found.

Martingale syste, trades are random.

This indicator shows signals triggered using Fractals and the original ZigZag indicator. Signals are never -ever- repainted and is an useful tool to study the real behavior of the ZigZag indicator.

This indicator shows signals from two different Zigzags without repainting, and allows you to study the real behaviour of the zigzag indicator as a trading tool over time.

The support and resistance levels are determined. It provides the values for TP and SL.

This is a "conceptual" script that uses the WinINet functions to load a HTTP page directly from mql4, without a C++ dll

The ideas from the article 3 Methods of Indicators Acceleration by the Example of the Linear Regression" is implemented in this indicator.

Rewrites JForex csv data without the weekend candles and the seconds.

This EA is supposed to trade news and high market spikes.

Trade with right risk !

This EA doesn't open orders, it takes PICTURES every time you (or another EA) opens or closes an order.

This multi-timeframe capable moving average discounts prices far from the average. It is smoother than SMA but follows price similar to an EMA of the same length.

This indicator throws visual and verbose buy/sell signals according to Bill Williams Trading in the Zone methodology and Alligator.

This indicator is based on the article: Getting Clear With Short-Term Swings by Ron Black

WatchDog sends an e-mail when things go wrong, an order has opened or closed, on requotes, on log errors, on server shut down... Just drag the script in a chart window.

MMT

It is a Malty order Placer(4 LIMIT and 1 INSTANT). and good performed EA. It Works With THE Co-ordination of Different Moving Averages.

Opens specified orders at a specified time

The EA open position on Breaking S/R , it will make offsets if that was not a break

This code simply display ask-bid value.

EA scalper 1430% = 2011!!!

Simple Daily pivot.

This Robot uses the default zigzag indicator from Metatrader.

Close all trades after reaching defined profit or loss

Center of Gravity Indicator plotted on MACD values in sub window.

1...454647484950515253545556575859...102