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

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

My version of the famous indicator

A simple indicator that shows the price change, in pips, per candle.

Parabolic SAR on the M1 from all Time Frames

A volume-adjusted reading of the net flow of USD as measured by all 7 major currency pairs.

This indicator looks at local high/lows. It connects the points and finds where a local high and low appears many times. Depending on how many times a local high/low appears, it draws colored lines into the chart.

I got this EA from a friend. It is based on the previous day's open and close price, but I would want it to close all trade on friday at a certain time.

The indicator shows the power of the trend that is in place and whether a pair is trending or ranging. Many user adjustable variables.

All Moving Average on the M1 Time Frame

Forex Second Chance EA is a modification of Moving Average Convergence Divergence EA. Here, I have included "TrendShift" to the parameters and it is doing good.

The indicator displays the ratio of lengths of the bodies last N candles

THIS IS THE LAST VERSION for EA DEVELOPMENT

Zero values characterizes the Flat Trend. V-shaped pulse indicates the entrance to the opposite direction. U-shaped ilpuls - entry in the same direction.

Drop Level Lines with the level value inserted above or below the line and the color changing automatically for bottom level or top level.

This indicator allows you to draw candles of an higher timeframe on your chart. Example: Draw H1 candles on your M1 chart.

This systems allows you to progressively enter and exit the market. You define the amount you want to risk (%) and it calculates automatically the different levels of entering and exiting the market according to the amount of levels you have defined.

Draw several resistance and support lines as a "little segment line", differentiating the color of both types of line

A day Hi Lo

Прорыв трендовых линий

In this field give a brief description of your script (1-2 sentences).

Draws several resistance and support lines differentiating the color of both types of line by Drag and Drop a simple script.

10 Point 3 v004 enhanced Expert Advisor

Three indicators MA, RSI and Stoxastic with the ability to select the desired timeframe.

Base on 10 point , V003 But have been enhanced

Calculating the difference between the High and Low price to see the price range for every hour.

Based on the HAS indicator.

This indicator displays the variations of the Hurst Exponent which are seen as a predictor of the variations of volatility, therefore giving an indication on when to enter the market.

Script opening orders with specified Magic Number

Indicator draw green and red lines similar to wavy dash. Green is a buy signal, red is a sell signal.

Load history form server Set the option at 1.

Wave Power

This script allow you to modify the price, the Stop Loss or take profit or a pending order by just point and drop a script

Select the pending order you want to delete when you have severals pending orders on a same chart by point and drop over the price of the pending order you want to delete.

This script opens a pending sell order by just point and drop the script in the place you want.

This script opens a pending buy order by just point and drop the script in the place you want. The script will automatically place a "limit buy order" if you point and drop below actual bid. The script will automatically place a "stop buy order" if you

Continuing the theme "tumbler. Trade in breakdown rates timing.

3 Scripts to simplify scalper operations. The scripts puts new OrderBuy, new OrderSell or CloseAllPositiveOrder.

Multi function price indicator

Indicators Multi pairs and multi-functions

The Variant of the oscillator. Entry on change the sign (intersection 0 axise ) . It Is Painted depending on positions of the indicator for 0 axises (+or-) for two senior periods to the current. The Example: m1 red if m5+ m15- , м1 crimson if m5+ m15+.

This EA will send an e-mail about your account details every xx minutes.