Watch how to download trading robots for free
Find us on Telegram!
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 - 33

Submit your code

Demonstration of Canvas's capabilities using 3D spiral quotes as an example.

The Relative Strength Index Indicator (RSI) is a price-following oscillator that varies between 0 and 100.

The Universal Moving Average, it allows to select any type of moving average, included in the MetaTrader 5 client terminal.

Trade signals based on "Hammer/Hanging Man" 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.

The DRAW_LINE style is used for plotting the values of the indicator's buffer as a line.

The DRAW_FILLING drawing style plots the filled area between the values of two indicator buffers. In fact, it plots two lines and fills the area between them with the specified color.

The DRAW_BARS drawing style is used to plot the bars using the values of 4 indicator buffers with Open, High, Low and Close prices.

CG Oscillator basic and signal lines crossing generates buy and sell signals.

The indicator builds a candlestick chart consisting of floating spread current values in online mode.

iGDR_Fractal_Levels shows the fractals average values over a certain period of time.

MPC

The MPC indicator plots a simple channel using extermums of the specified period. It can be used for additional visual control of trading system (channel breakout), based on HighestLowestRange (HLR) indicator.

Trading signals module for MQL5 Wizard. BykovTrend indicator's color arrow serves as a market entry signal.

Trading signals module for MQL5 Wizard. The moment, when ColorJFatl indicator changes its color, indicates the time for market entry.

Advaptive Exponential Moving Average - ATR Volatility Adjusted by Jose Silva.

CCI smoothed by Tilson algorithm.

The indicator demonstrates the example of using the FileReadDatetime() function

Creates a synthetic from two selected pairs.

Modified Donchian Channels indicator with Fibonacci levels.

Expert Advisor based on the ColorZeroLAG_MA indicator change of direction.

The indicator shows Moving Averages (MA) values, difference between values and difference between MA.

The Expert Advisor looks for a negative spread and trades using it.

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

The Exp_i-CAi Expert Advisor is based on change of direction of the i-CAi indicator.

PFE

Oscillator with calculations using an algorithm similar to Kaufmann's AMA.

The Exp_i-SpectrAnalysis_WPR Expert Advisor is based on change of direction of the i-SpectrAnalysis_WPR indicator.

Trading system based on the signals of the RSI_Slowdown indicator.

The indicator plots price channel and Fibonacci levels based on the latest parabolic ZigZag peaks.

Double stochastic of RSI uses floating levels instead of fixed levels for OB/OS conditions.

The Zigzag2_R_Color indicator with the timeframe selection option in the input parameters and display of values as fractal labels.

Fractal Relative Strength Index.

The WeightOscillator trend indicator, which features alerts, sending emails and push-notifications to mobile devices.

The class allows to easily determine from your MQL5 programs any changes in the Market Watch window (change of symbol sorting, adding, deleting a symbol or a set of symbols), as well as opening and closure of charts, and the availability of the one click trading option on the current chart, on which the program is running.

The NRTR_ZigZag_Price indicator with the timeframe selection option available in input parameters

The Expert Advisor trades based on the ADX Wilder and Ichimoku Kinko Hyo indicators. Lot is calculated based on risk percentage of margin.

The implementation of the MACD pattern "Trend continuation".

A trade strategy based on the RSI indicator. Checks if there is enough money before opening a position.

The EA waits for a TP or SL to trigger, and then opens a position in the opposite direction. It checks if there is enough money before sending a trade request. OnTradeTransaction.

A breakout trading system based on the signals of the Color_PEMA_Envelopes_Digit_System indicator.

The МТ45 Expert Advisor is based on the Martingale strategy. It is designed for trading in the МetaТrader 4 and МetaТrader 5 terminals.

Simple Expert Advisor based on the Larry Conners RSI 2 strategy.

1...262728293031323334353637383940...183