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

Submit your code

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

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.

OpenOrder script allows you to open an order defining the % of balance to risk, the Stop Loss distance in pips and the Take Profit distance in pips and a magic number.

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.

"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.

A simple indicator to draw vertical lines at specified time in the settings.

Stochastic MACD (metatrader 4 version)

Power of JPY indicator shows actual strength of currency JPY calculated of 7 pairs that contain JPY. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: USD JPY, EUR JPY, GBP JPY, AUD JPY, CAD JPY, NZD JPY, CHF JPY.

Trend indicator (separate window)

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

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

The Awesome Oscillator indicator is used for trade entry and exit

KA-Gold Bot is an advanced trading advisor specifically designed for gold, utilizing the powerful combination of the Keltner channel strategy and two exponential moving averages (EMAs) - the 10-period EMA and the 200-period EMA. Principle of Operation: The 10-period EMA represents the average price cutting above/below the Keltner band, confirming an uptrend/downtrend. The price being above the 200-period EMA supports the uptrend/downtrend. This indicates that the uptrend/downtrend has been stronger than the previous 10 periods, considering the volatility over the last 50 periods.

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

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

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

Trading multiple instruments across multiple timeframes (and multiple brokers) can result in the use of many different templates. An immediate means of template identification is expedient in order to avoid confusion, trading inefficiency and possible trading mistakes. This simple indicator accomplishes the required.

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

The Average True Range indicator, in which the indicator period is calculated automatically using the number of bars of the current day.

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.

The Expert Advisor is designed for placing managing grids.

"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 .

Let's say we have 20 open orders on one symbol and want to set takeprofit or stoploss for all of them at the same level(price) .The script selects all open orders of the symbol and can modify stoploss or takeprofit or both at the desired level (price). If the input parameters are left to zero , the stop or the takeprofit are left unchanged .

Power of GBP indicator shows actual strength of currency GBP calculated of 7 pairs that contain GBP. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR GBP, GBP USD, GBP JPY, GBP AUD, GBP CAD, GBP NZD, GBP CHF.

in raw form for currency pairs and indices.

2 scripts for the analysis of trading results. Useful both for investors and traders.

Indicator MACD Divergence.

The indicator finds Doji candlesticks and highlights them on the chart.

Almost classical TS based on the intersection of two MA.

Like MA cross but this indicator shows more valid signal. Buy and Sell Signal appears when it cross each others.

The EA is based on the indicator TREND_alexcud Something goes wrong with it

Draft daily trend-following EA that trades using ZIGZAG-FRACTALS on high/low of the preceding bar on a one-hour chart. TakeProfit is 13 points.

The EA uses the method of Burg's linear prediction that was taken from my indicator Extrapolator.mq4.

This EA works in hangseng futures.

1...555657585960616263646566676869...101