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

Top MQL4 and MQL5 source codes based on user ratings - 35

Submit your code

New Design - New Opportunities.

The indicator helps to use the Elliott waves, as described in the book "Trade Chaos" by Bill Williams.

Retrieve a list of all Symbols/Instruments known to the Server with MarketInfo output to a CSV file

An indicator based on Lows and Highs of last 16 candles + RSI reading. Describes trend as Flat, Trending Up, Breaking Out Upwards, Trending Down, Breaking Out Downwards.

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

Example of using optimization reports in an Expert Advisor.

My first trading System using simple pattern.

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

Writes days of week above candles.

Displays open position: Symbol + Lots + Points + Profit (Updated for MT4 Build 600)

With 3 settable parameters (currency pair, timeframe, and template) opens a new chart on your screen at the initalization period of the script.

Easy script to help analyze specified symbol, it opens 8 new charts with different periods and applies a specified template.

Mail all order status periodically.

The script gets all the symbols available on your platform and writes their closing prices for a specific bar to a csv file.

The script deletes all objects on all active charts.

Use this script 2 minutes before high impact news pip moving faster FOMC, NFP, RATE BANK.

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

Tick volumes drawn by days as a histogram of clusters.

The indicator was developed to help analyze the interesting strategies, and also to practice and gain experience in analyzing the signals on history data in the selected strategy.

Displays important parameters, which can change during news release or on Fridays before closing.

The Expert Advisor places pending limit orders at the specified distance from the price and trails them after the price with the specified step, applies martingale.

Class for working with ticks in the MetaTrader 4. It is suitable for creating experts that make decisions on trading based on the analysis of tick data.

The indicator displays the total lot and profit for the current instrument.

Advanced Bollinger Bands indicator.

This code was written as an indicator. It adds top and bottom margin to the chart. Both can be adjusted separately.

Stores and implements a basic hidden Stop Loss and Take Profit system.

Get entry signals from specific candles based on your rules.

Changes the zoom level for all opened charts.

Based on the original “Time Segmented Volume (TSV)” developed by Worden Brothers, Inc.

The ideal indicator for those who like to work "by levels". It clearly shows the reversal level, support/resistance levels for the current day.

The new version of the Mc_valute_v8_final EA. It works well on a flat market.

The Bollinger Bands (BB) indicator is plotted at the distances equal to a certain number of standard deviations.

It is realized by the Trade Sistem on breakdown of day time levels which pay off on indicator Pivot

This script takes orders from trade history and places arrows on chart for trades.

The digital filter of the price.

Alternative grid

Demo of functions in StringArraySuite.mqh

some people worked as ib , they used to need to calclute total trade lotes. here it is.

Scripts deletes all objects from the diagram.

The function changes colour of object. An example of realization in the indicator.

1...282930313233343536373839404142...101