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

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

Indicator for scalping trading - Chanel scalper M1-M15

Two Moving Averages (MA) crossover indicator with alerts and filters.

Velocity = High-Low / Time. Time is changeable to minutes, hours, or days. Seconds is the default. In physics, Velocity = distance / time.

This indicator is developed to show the average movement of any 2 correlated currency pairs of the same TF.

Counts crosses off moving averages, it shows % that all MAs are above slower MAs

Индикатор показывает в рабочем окне графика цены средних линий с других периодов.

This indicator makes use of increase in momentum of cci value with respect to the last peak or bottom.

The classic MT Sample EA updated for full/sub-pip accounts, also now handles ECN/STP brokers. Examples of setting trading hours, and added externals for StopLoss, MagicNumber and order comment.

This is the 2nd version of Source Code

Help me making this better.

GodBot EA is using Bollinger Bands together with DEMA, Moving Average and Candlesticks. (EURUSD M5)

Simple chart to display candlesticks for the 3 following periods: London Open to New York Open, New York Open to London Close, London Close to New York Open.

LineOrder gives you the ability to place an order by using the horizontal line object from the toolbar menu. You can also control stop loss and take profit buy moving its horizontal lines.

This is a Multi time frame indicator based on the MACD. I was attempting to see if I could get a good entry on the M5 chart, and make the MACD values of the H1,H4,D align with the M5.

this indicator is from the e-book master the market of Tom Williams, calling VSA method. It plots many arrow sign of the weakness and strength definition. Just point the mouse out at the sign, then the definition will show.

The purpose of this EA is to receive by email the price quotes of the symbol selected and daily % change, as well as some information about your account. You can insert up to 50 different symbols of any type (FOREX, CFD).

This is first EA I am providing for everyone to see and work upon. This is written by me. This EA should be used on EURUSD 15min with initial capital of $1000.

This EA automatically moves your stop loss to break even at a predefined level.

Another version for AutoEnvelope according to the format described by Dr. Alexander Elder in your book How To Take Profits, Cut Losses, and Benefit from Price Declines.

Multi TimeFrame Stochastic. This indicator was created at the request of several traders in the image of the indicator Nik_PSAR_2B (http://codebase.mql4.com/6934)

Trix two lines

Automatic EMA envelope.

It is the bbsqueeze indicator but with OsMA as momentum.

This indicator shows the future movement depending on similar movement in the past.

This indicator compares four types of regression (linear, quadratic, logarithmic and exponential) and chooses the one that best fits the data analyzed.

This is the updated version of the indicator i uploaded previously at http://codebase.mql4.com/7121.

Indicator that shows profits and losses (in pips and money).

Indicator that shows trend and divergencies.

Intra-[Month,Week,Day,H4,H1 ...] Fibonacci. (Maybe) the most useful Fibonacci tool.

Automatic Andrews, Schiff or modified Schiff pitchforks.

Simply displays active hours (definied by the user).

ORDER MANAGEMENT FOR EA DEVELOPMENT - v1.5

Alerts you whenever there is a moving average cross

Wonderful for scalpers

Places OCO Order, One pip Limit Order and One Pip Stop Order on Metatrader 4 platform.

Backtest your ideas in ST with simple order initiation. 100% visual, no typing, just drop a horizontal line on the chart to order! Focus on your indicators and trade with ease. Has SL and TP lines as well as PC line for partial close. Externals: BSRa

Expert advisor that trade in the trend of EMA and buy/sell signals get from Williams %R

Trend of 8 pairs on one chart

This indicator compares four types of regression (linear, quadratic, logarithmic and exponential) and chooses the one that best fits the data analyzed.

Kaufman Efficiency Ratio (also called "generalized fractal efficiency") according to Perry Kaufman books "Smarter Trading" and "Trading Systems & Methods".

1...323334353637383940414243444546...85