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

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

Library to convert datetime to double and vice versa.

Pivot Point (PP) indicator for use on timeframes < D1 with adjustable preceding day close time, elimination of sunday bars, optional display of weekly and monthly PP, preview of tomorrows' PP and current days' midpoints.

Gives you information on pip value, spread value, daily pips average, how much you can earn, future range of the present day.

Calculation of pivot and similar levels based on time zones.

This indicator draws 3 Moving Averages by median price.

The indicator analyzes price volatility for optimal setting of Take Profit and Stop Loss.

This indicator shows low-volatility periods on the chart.

ZigZag Arrow indicator is based on a built-in ZigZag indicator that replaces the Line Section with Arrow.

An extended version of my RealValue indicator with a new parameter.

This indicator is my attempt to estimate the real market value.

Bound MA (Moving Average) to specific timeframe.

Simple EA template to export trade details from a backtest or live trading to a CSV file.

Expert Advisor based on JJN Scalper indicator.

This is a simple multistrategies EA based on many strategies that work in parallel mode.

This indicator acts by PRICE ACTION to find the strongest trend each day.

Difference between two currencies.

Doji candle histogram detector with alert & email notfication.

Expert Advisor with the system is very sensitive to movement.

Easy to use an open trade script.

This EA is based on 1 moving average indicator, the exit and entry points are determined by a "smoothing factor".

Second-by-second candle timer not dependent on incoming ticks. New candle alert option. Automatic Broker GMT and Daylight Saving Time adjustment.

This is an indicator for finding the strongest trend each day, suitable for intraday trading or a swing trading.

This script shows you current currency pair spread, pip value and the total cost of the spread to open a position. Result will show in your account currency.

Simple code to close all opened orders.

The script reverses all the orders of the actual chart symbol.

Saves all historical bar data (Open timestamp, Open, High, Low, Volume) and every new tick to CSV of your choice.

Save your indicator values and Open, High, Low, Close, Volume data to a csv file of your choice.

This indicator is used to monitor the movement of the previous candle from 1m to 1D timeframe.

ForexLine indicator provide signals for trade, white line (sell signal) and the blue line (buy signal).

FMOneEA is a scalping Expert Advisor based on MA and MACD indicators.

Average of ATR (AATR) is simple but effective indicator to confirm any price action trading strategy.

COT

The indicator for the analysis of CFTC reports.

The script creates an ellipse on window drop.

The indicator shows current spread with color line.

Script deletes selected object types from the charts (current chart or all active charts).

When the current price is below trendlines, EA will wait for upward breakout, and vice versa.

BB_OsMA indicator is the OsMA indicator in the form of spheroid with a deviation as the upper and lower bands.

This indicator is a composite of several indicators: Fibonacci, Pivot Point, ZigZag, MACD and Moving Average which are combined in this indicator.

Main chart shows the overlay chart of 2 symbols - while subchart displays the price spread line with spreadfactor.

A simple label that shows information like Ask & Bid, OHLC prices, volume, spread, remaining candle time, local & server time.

1...343536373839404142434445464748...102