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

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

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".

Kaufman Volatility according to Perry Kaufman books "Smarter Trading"

A Notifier for I-Regr Indicator, It alerts when Price Breaks Up or Down I-Regr lines.N

Indicator which draws daily, weekly and monthly pivots, support and resistance levels.

This EA alerts you whenever there is a MA cross.

This indicator shows the % Daily Change of yesterday close with respect to actual price (Bid).

Variant of stochastic indicator, which filters false signals automatically.

Join me to develop this project. It has been my project for 2 years now and running.

Power Wave Oscillator.

Indicator shows buy and sell regions based on combination of Bollinger bands and Keltner channels.

The Expert Advisor places stop orders and waits for breakdown of the last day or time period.

Use the tester as Simulator

1...484950515253545556575859606162...101