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

Submit your code

An indicator that draws a Risk/ZReward Box Automatically on your chart

This is a grid trading algorithm idea.

Simple Support, Resistance, and Mid-Line boilerplate

An example for my yet unpublished article. An easy template for writing custom experts.

Simple strategy - MM % volatility

Trend indicator with a multitude of settings. Displays the direction (red) and strength (blue) of the trend as a two-colored histogram. The main signals are the crossing of the zero line, reaching a new high/low, divergence.

Schaff Trend Indicator.

When assigned to a hotkey, the script allows to almost instantly open limit orders with the specified risk level (in the deposit currency) and take profit (so-called braces).

The EA well trades on "fat" sites of a trend on periods H4 and D - EURUSD.The input in the market occurs on the basis of two-parametrical Exponential Smoothings Time Series.

This indicator for draw an Arrows for buy & sell , it's Depends on SSL channel chart Indicator http://forum.m-e-c.biz/t29121.html

This indicator for draw an Arrows for buy & sell, it's Depends on Stochastic

MACD (настройки по умолчанию - АО Вильямса) с сигналами импульса от пересечений разнопериодных RSI / направления Стохастика.

The indicator shows trade signals.

Multi-currency EA, working on brekouts and stop-orders.

This indicator based on a 5 period simple moving average detects trends: if there is an uptrend then shows green bars, if there is a downtrend then shows red bars, if there is a weak trend then shows yellow bars.

Simple code to close all opened orders.

Using Golden Section Analysis of the market for yesterday and last week.

Elementary trailing stop able to distinguish its "own" orders among others by comment and/or Magic number. It also distinguishes the financial instrument that needs to be trailed.

SBVolumeAvg is a Forex Indicator (MetaTrader 4) for calculating Average Volume on the Swing Bars by a ZigZag trend line that is bounded by two vertical lines.

EA that can delete pending orders, close open orders and close terminal at certain time.

Open two buttons on a chart, one for closing all shorts, one for closing all longs. The buttons labels display the current total profit for each type of order.

Hedging Martingale opens two trades of buy and sell together,and uses the martingale method.

After looking for many Trading concepts and requirements of my own tried to code an EA. First collected many EA's and tried their codes I re-designed the following codes for my own needs to use for trading. Hope you also find the EA helps you .. Have healthy life and succesfull trades within your life.

RSI in MA is an indicator to change color in iMA if iRSI crosses level up (uptrend) or crosses level down (downtrend). For more information about the indicator you can to visit the product's page: https://www.mql5.com/en/market/product/6446

Indicator AFStar

Example: Moving Average indicator filling by different colors

Literally, "Bollinger bands with a fractional ratio of deviation."

SMI

The SMI indicator. Based on the "Momentum, Direction, and Divergence" book by Blau.

Adviser Two PerBar. One more unpretentious variant.

Triple exponential smoothing is used in this indicator.

A multi-timeframe indicator. It shows the trend direction for the charts of several timeframes in a separate window.

The modified version of indicator DinapoliTargets.

The indicator displays the ratio between the length of the current down-trend (in bars) and the total length of the period barsToProcess (of course, in bars, as well) where the down-trend is searched for.

The indicator represents the ratio between the length of the up-trend found and the length of the entire range where the indicator is searching for an up-trend.

This expert advisor is based on the 3MACross indicator.

Do you have the need to take the opposite side of a trade? Using manual trading or another EA, EES Hedger can immediately take the opposite position as specified in EA parameters. Instructions: For example, you are trading SAR EA on GBPUSD and SAR

Indicator that signals about trend turns.

Indicator Gideon's_ATR.

Indicator WolfWave. The code contains a fragmentary description.

Indicator Pivot Mid Support Historical.v1

1...525354555657585960616263646566...102