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

Submit your code

The ColorJJRSX indicator with the timeframe selection option available in the input parameters.

The Exp_CenterOfGravityCandles Expert Advisor is based on signals of the CenterOfGravityCandles indicator.

This indicator calculate angle of averages using ATR-approximation.

The T3 using standard deviations to make it adaptive

The Expert Advisor moves a position to a breakeven when a predefined profit is reached.

The Exp_AdaptiveCGOscillator_X2 trend trading system based on the signals from two AdaptiveCGOscillator indicators.

Fractal Average Directional Index.

Modification of StopLoss of any positions. Trailing. Trailing.

The NRTR_extr_ZigZag_Price indicator with the timeframe selection option available in the input parameters.

The smoothed Larry Williams' Percent Range oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction.

The XOSignal_HTF_Signal indicator shows a trend direction or a trade signal generated by the XOSignal indicator at the chosen bar as a graphical object with colored trend indication or deal direction. It also triggers alerts and plays audio signals.

Precision trend (histo).

Two histograms in one window, showing the maximum average price deviation in points from the initial value.

A moving average with the five-fold EMA averaging. It displays the most recent value as a price label with the possibility to round the indicator levels up to a required number of digits.

The indicator draws a channel of a trading day in the form of a cloud.

The Difference indicator shows the difference between the current prices and prices as of N periods ago.

The indicator of divergences of High/Low indices.

A library for working with a third-party tick archive.

The Price Channel Stop indicator shows the current estimated trend based on channel period and desired risk. It also shows two levels of values that can be used as a stop loss for orders opened based on this indicator (using the trend color change can be used as a signal for a new order opening as well as closing already opened orders).

The Rainbow Oscillator indicator is mainly intended to show the trend of the market. But, using the levels you can use it to assess overbought and oversold conditions too.

Two identical trading systems (for long and short positions) based on the signals of indicator SilverTrend, which can be configured in different ways within one Expert Advisor.

AML

Indicator AML (Adaptive Market Level) displays one of three market states: Flat, uptrend, and downtrend.

UDP

Indicator UDP (Up/Down Percentage) displays the direction of candlesticks, i.e., up/down, as a percentage over the selected period.

DSS

Double Smoothed Stochastic indicator

Step average - standard deviation based

Indicator Candle's Middle Point

Double smoothed stochastic

Define an interface for creating an object, but let subclasses decide which class to instantiate. Lets a class defer instantiation to subclasses.

Indicator WaveMTF Bull and Bear System with Signal and Alert for MetaTrader 5 with options to display signal on the chart.

required margin and maximum volume calculator.

The Force Index Indicator was developed by Alexander Elder. This index measures the Bulls Power at each increase, and the Bears Power at each decrease.

The indicator plots the candles with different colors depending on the trend direction and price movement.

The indicator shows recalculated ("broken") highs/lows of the standard ZigZag indicator.

The NRTR (Nick Rypock Trailing Reverse) indicator draws the base line (support and resistance) and a target line.

This is the simplified implementation of multicurrency mode in MetaTrader 5. It isn't necessary to consider the details how does it work. It has minimum settings and simple structure. It can be used in Strategy Tester.

Trade signals based on "Bullish Engulfing/Bearish Engulfing" candlestick pattern, confirmed by Stochastic indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Trade signals based on "Bullish Engulfing/Bearish Engulfing" candlestick pattern, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The DRAW_CANDLES drawing style plots the candles using the values of 4 indicator buffers with Open, High, Low and Close prices.

The current time position in relation to the beginning and the end of the bar is shown. In addition the ratio between the time passed since the beginning of the bar and the whole bar duration expressed in percents is given. It is useful for choosing the moment of making a trade decision.

CATROnArray is designed for calculation of ATR (Average True Range) values on indicator buffers. The example of use of the class is provided.

1...212223242526272829303132333435...183