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

Submit your code

The MinusDi indicator processed through the Laguerre filter.

Trading signals module based on Ozymandias.

All-In-One candlestick chart.

The MultiDeMarkerTrend_x10 indicator shows information on the current trends using the DeMarker oscillator position from then different timeframes

The RVI Oscillator in the main chart window relative to the Moving Average indicator.

This version is showing the channel that needs to be broken if the trend is going to be changed.

A histogram of minimum and maximum values of the following parameters: SYMBOL_SESSION_BUY_ORDERS_VOLUME - "Total current volume of buy orders" and SYMBOL_SESSION_SELL_ORDERS_VOLUME - "Total current volume of sell orders".

Trade direction is chosen based on a random number generator. Stop Loss and Take Profit are set based on the random number generator. Lot calculation based on the risk value as a percentage of free margin. The code contains protection against the "not enough money" error.

A module of trading signals based on the Moving Average indicator signal module.

A trend indicator SSL, marking trend change moments using colored icons, with the possibility to generate alerts, send emails and push-notifications.

The script calculates the maximum lot size that can be used to open a position using the entire free margin available on the deposit.

Advisor on the signals of the indicators Bollinger Bands and Moving Average.

An indicator of ticks (Bid and Ask). Displays the last 300 ticks.

Laguerre stripped of RSI "experiment".

The Triple Exponential Average (TRIX) indicator + the signal line + arrows at the intersection of the signal and the main lines.

The Expert Advisor is based on Bill Williams' strategy.

EMA Levels multi timeframe version.

ADXVMA uses modified ADX calculation for adapting Moving Average calculation.

The indicator measures money on a chart.

The Expert Advisor waits for a gap at the bar opening.

Trend trigger factor (averages pre-filtered)

Indicator XXDPO_Candle can provide alerts and send email and push notifications when trading signals occur. Possible signal options

Displaying the latest closed values of indicator Bollinger Bands® with colored rectangles and background filling

Detect bullish and bearish engulfing candles when entering the overbought or oversold territory. We have all seen a currency pair enter the overbought or oversold territory and stay there for long periods of time. What this indicator does is gives you the emphasis. So if you are looking for reversals then you may want to take notice when oversold territory is entered into with a bullish engulfing candle or if the trend is your thing then check for bearish engulfing candles while entering oversold.

Adaptive moving average - double smoothed

Variance (Welford’s method for computing)

Classical Sudoku puzzle right in MetaTrader chart.

The script provides a synchronous scrolling for all charts opened in the client terminal.

Intitial position is opened according to signals of the indicator.(there are six variants). If position becomes unprofitable, its volume is increased

bts

Comparing the speed of a binary or a ternary search

NRTR is Nick Rypock Trailing Reverse indicator.

A script to place straddle orders around current price level to catch price spikes around announcements.

The Exp_wlxBWWiseMan-2 Expert Advisor is designed using the semaphore signal indicator wlxBWWiseMan-2.

Trades on PERIOD_M1 (M1). Calculates bullish and bearish candlesticks.

MetaTrader 5 allows creating synthetic instruments. The price of such instruments can depend on the current values of a number of financial instruments. In trading, such symbols allow spotting the beginning and end of global market movements at an early stage. In this example we create synthetic instruments to analyze the strength of Forex currencies EUR, USD, GBP, JPY and CHF.

Price momentum oscillator

The Gann High Low Activator Indicator was described by Robert Krausz in a 1998 issue of Stocks & Commodities Magazine. It is a simple moving average SMA of the previous n period's highs or lows.

Classic Pivot Point indicator paints pivot point and three resistance and support levels for all data points.

The semaphore arrow indicator of trend change

The script is assigned to a hot key for quick change of charts around in a circle.

1...919293949596979899100101102103104105...189