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

Submit your code
ESM

Indicator ESM (Elsig's Shifting Mean) shows the averaged shift of price over the specified time interval (bars).

Range Oscillator is an indicator that shows the relative position of median price in the highest high to lowest low range for desired period.

Indicator AnalysisOnBars with the timeframe selection option available in input parameters.

Weight Volume Move-Adjusted Moving Average.

A simple RSI with a channel and signal arrows

Two independent trading systems using indicators BykovTrend_V2 and ColorX2MA within one EA, with an option of changing the size of the future trade depending on the results of the previous ones.

The Random Walk Index attempts to determine when the market is in a strong uptrend or downtrend by measuring price ranges over N and how it differs from what would be expected by a random walk (randomly going up or down). The greater the range suggests a stronger trend. The RWI states that the shortest distance between two points is a straight line and the further prices stray from a straight line, implies the market is choppy and random in nature.

PCR

The PCR (Percent Retracement) indicator shows the maximum distance by which the price has moved away from the highest High in the specified range.

An Expert Advisor based on the iMA (Moving Average, MA) indicator.

Deviation scaled MA

Trix with LR signal

XDeMarker_Histogram_Vol indicator with the timeframe selection option available in input parameters

WILL VAL indicator

Auto Envelope indicator

XCCI_Histogram_Vol_Direct indicator provides alerts, sends email and push notifications at the incoming trading signals

JFatlCandle_Chl indicator with the timeframe selection option available in input parameters

Step chart of CCI of averages

Skyscraper_Fix_Signal indicator shows information on the current trend using the values of the Skyscraper_Fix indicator with a fixed timeframe.

The trading system based on the signals of the Hans_Indicator_Cloud_System indicator

The trading system based on Hans_Indicator_Cloud_System indicator signals with the possibility to set a fixed position holding time

Trading system based on XWPR_Histogram_Vol indicator signals

FanMA Avg indicator

The Expert Advisor is based on OHLC and three indicators: iMACD (Moving Average Convergence/Divergence, MACD), iStochastic (Stochastic Oscillator) and iRSI (Relative Strength Index, RSI)

Indicator FineTuningMACandle_Chl with the timeframe selection option available in its input parameters

Three standard deviation channels using indicator buffers based on the number of bars defined in the indicator inputs with the channels' background filling.

TIA

The Trend Interruption Average indicator

The ROC indicator with signal Moving Average

The Super_Signals_Channel_V3 indicator with a colored filling of the channel and a middle line

Filtered averages

An indicator of support and resistance channels.

Two identical trading systems (for long and short deals) based on the VortexIndicator 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

The Expert Advisor operates using pending Buy limit and Sell limit orders. It uses High and Low of the D1 timeframe (bars #1 and #2)

The Expert Advisor uses Buy Stop and Sell Stop pending orders.

This is the trading signal of Bollinger Bands. The expert code for this strategy is automatically generated by the MQL 5 wizard.

Asymmetric bands oscillator - extended version

CCI - double smoothed Wilder's EMA filtered with floating levels

Improved version based on RSI_candles by © mladen 2018 https://www.mql5.com/en/code/20968

Keltner channel with standard averaging and averaged over the ATR indicator.

Extended version of the original Heikin Ashi indicator.

Rsi close/ mtf use

1...118119120121122123124125126127128129130131132...189