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

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

Submit your code

KMSI is short for Kolier Market Sessions Indicator. It can be use to check time periods of market sessions.

This bands Are used by me for the calculation of the stop loss for a breakout entry and for indicate 2 things: the expected volatility and the trailing stop

A simple tick data collector written in MQL4 for you to collect tick data on any symbol you choose.

This indicator points possible price reversals using 5bar and 7bar fractals.

You can either be long or short at any given time. You buy and close a short position if the market makes a new 100-day high, and sell and close a long position if the market makes a new 100-day low.

Based on ibull/ibear, but compare power to define good entry bars.

X trader trades using two moving average crosses.

Tracking Variable Spreads with an Offline Chart

GBPJPY 5M Only. Good luck.

A kind of hedging style play base on "BaseSymbol" and hedge "Hedge.Symbol" to reduce the risk including the auto-calculate-correlation-function for all BaseSymbol-Hedge.Symbol.

RSI average commodity for gold and silver.

The Expert Advisor can be used for Trailing and hidden Take Profit/Stop Loss.

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

The indicator is a histogram of the lowest/minimum spread only, given in a candle whilst the indicator has been running. Example scripts for placing buy or sell at the lowest spread are included.

The strategy of this EA is daily breakout which is compare previous high or low previous day candle then place a pending order for breakout.

This ZigZag indicator uses dual buffers to store high and low points.

The indicator marks the bars, the size of which exceeds the value specified in the settings.

View current and historical trends of every timeframe.

This is a conversion factor. It is used to detect whether broker is 4 or 5 digits. As MetaTrader 4 calculates everything using point basis, coder can use this function to convert pips to point for machine reading.

The EA using single layer Perceptron.

After back testing, we usually need to analyze the testing result on a new chart which we have loaded our template,in this case we need to copy the objects on the testing chart to the new chart. This script helps to save the objects into a file and show the objects on a new chart.

Set all opened charts to use auto scaling or fixed scaling simultaneously.

"Donchain Channel" EA Trades when there is a retracement from "DONCHAIN CHANNEL" levels has Trailing Stop Loss works on all time frames major forex pairs and stocks NASDAQ.

Bladerunner EA trades with "Fractals" indicator and 20 period moving average strategy has Trailing Stop Loss &Take Profit works on 1H time frame major forex pairs and stocks NASDAQ.

Stochastic MACD (metatrader 4 version)

Trend indicator (separate window)

Indicator DXYvsEXY is the USDX vs EURX with Awesome Oscillator Indicator for MT4.

Collection of ticks with writing data to a file and plotting non-standard charts.

"Buy Sell Stop Buttons" EA sets up 3 buttons for manual trading and allows to predetermine trailing stoploss & take profit, open and close all trades at once.

The Awesome Oscillator indicator is used for trade entry and exit

The indicator demonstrates the trend stops with multicolor dots. In order to distinguish the targets the BrainTrend2Stop uses Blue and Red dots.

Prediction of the daily price ranges.

Williams’ Percent Range Indicator (%R) is a dynamic technical indicator, which determines whether the market is overbought/oversold.

Indicator Kuskus Starlight.

The SmartAssTrade-V2 Forex Expert Advisor is a new update for SmartAssTrade EA Version 1.

Plays sound alerts when the price reaches certain levels, specified by trader.

The Expert Advisor is based on the operation of its predecessor — Forex Fraus (for M1), but using the Envelopes indicator.

Pending Order is an order that will be executed if the price touches a point that we specify, in other words open pending order means ordering to open a position at a certain price level. So if price hits a predetermined level, then automatically we have an open trading positions.

Code example of MACD automated with advanced money management function.

"Hedg System" EA trades with hedging strategy two trades at any given time: Buy and Sell ,works best on 1D time frames major forex pairs .

1...636465666768697071727374757677...104