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

Submit your code

One more version that draws the parts when the slope is in accordance with trend.

The Expert Advisor increases the volume of an open position if profit in points from the last trade increases a threshold fixed in the EA inputs.

This is a modified Envelopes indicator for measuring the price deviation. It displays the upper and lower borders of the price deviation from МА calculated considering the average volatility of the symbol according to ATR indicator.

Fractal channel by Keltner.

The Expert Advisor places two pending orders at a certain time.

SnakeInBorders calculates the channel of a filtered market, which is limited by two borders BorderTop[] and BorderBot[], and it calculates the signal Mart[].

The TDI-2 indicator with the timeframe selection option available in input parameters.

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

The Asymmetric Trend Pressure indicator shows the trend direction and strength line. It can additionally show the bullish and bearish components of the trend.

The EA trades using the signals of iADX (Average Directional Movement Index, ADX) and iSAR (Parabolic SAR) indicators. The profit/loss of the last closed position is taken into account. Positions are moved to breakeven.

A Moving Average based on Heiken Ashi candlesticks.

VA

The Velocity/Acceleration indicator.

Rsi(var) indicator with zero lag DEMA.

Regularized EMA by Cris Satchwell.

TCF

Oscillator TCF (Trend Continuation Factor) was developed to help identify the trend and direction of the market.

Choppiness Index: another way of calculating fractal dimension.

LBR Paint Bars indicator

The HLCrossSigForRSI is considered as a trend indicator since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional effects from trading

Indicator Volatility Ratio2

Opening an opposite position when reaching a profit of N pips

The Expert Asvisor uses iCCI (Commodity Channel Index, CCI) and iWPR (Williams’ Percent Range, %R) indicators, as well as custom DayImpuls indicator.

Two identical trading systems (for long and short deals) based on the ColorMETRO indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system.

An Expert Advisor for two currency pairs

CCI of average - floating levels

Deviation scaled MA with self adjusting levels

An Expert Advisor for placing Stop Loss and Take Profit.

Vervort's crossover - histogram version

Adaptive Moving Average - AMA - with filter

Trix oscillator with support / resistance lines on chart

QQE of Rsi(oma) - on chart

Grid system with limit orders. This expert advisor is designed with visual strategy builder - Mission Automate. Code is generated automatically. More info: https://www.mql5.com/en/articles/4951

converted stdlib library for MQL5 from the MQL4

This script opens randomly selected charts and applies user-defined template.

Are you tired and lost when it comes to creating an attractive market watch list ? You always see pro traders creating an attractive market watch list in which they draw support/resistance and create all possible scenario ? Well we will guide you step by step to create your own attractive market watch list for potential entries.

Indicator Camarilla Points "Stocks & Commodities V. 31:3 (pg. 10-15)"

The ColorLine indicator shows the line of the price moving average on the chart. The line has diffrent colors (100 bars has the same color). The color settings of the line is changing every 5 ticks, there are 3 color schemes.

The Fractal is one of 5 indicators of Bill Williams’ trading system, which allows to detect the bottom or the top.

This is a simple Expert Advisor, that uses a specified custom RKD indicator.

RSI indicator, can be applied to any timeframe (higher or lower than the current chart's timeframe).

The indicator allows to perform any arithmetic action with prices of two symbols and plot result on any other chart. It allows to calculate crosses (using multiplication and division), spread (subtract) or just to plot the other symbol's data on the chart.

1...505152535455565758596061626364...185