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

Submit your code

The script displays the monthly and weekly levels on the chart.

Script to set correct scale on Fibonacci arcs attached to chart.

The Expert Advisor is based on the signals of the iADX (Average Directional Movement Index) indicator.

Fractional Bands modifies the price changes using the fractal Brownian motion, which takes into account the fractal dimension.

MACD calculated using the NEMA.

The CDir class allows getting information about files and folders outside the MQL5 sandbox similar to the MS-DOS Dir command. Call of system DLL is used, therefore you should allow their use.

The "Nevalyashka" Expert Advisor.

The EA uses two Moving Averages, one MACD and one CCI. OnTradeTransaction is used to receive position opening time.

A script for placing a BuyLimit order

A script for placing a SellStop order

Hedge The Hedge Trader EA.

An Expert Advisor without a single indicator. Uses lot and step increase.

The XMA_Divergence indicator with the possibility to change the indicator timeframe from input parameters.

The indicator shows a text block with the values ​​of the user defined RVI oscillator period for each timeframe.

Two identical trading systems based on the change in the color of XFatlXSatlCloud for long and short trades, which can be configured in different ways in one Expert Advisor.

A trading system based on ColorJFatl_Digit indicator signals with the possibility to set a fixed position holding time.

Chandes Quick Stick (Qstick)

The Volume Rate of Change indicator (VROC) measures the rate of change in volume over the past "n" sessions. In other words, the VROC measures the current volume by comparing it to the volume "n" periods or sessions ago.

Smoothed Rate of Change (Smoothed-RoC) is a refinement of Rate of Change (RoC) indicator that was developed by Fred G Schutzman. It differs from the RoC in that it based on Exponential Moving Averages (EMAs) rather than on price closes. Like the RoC, Smoothed RoC is a leading Momentum indicator that can be used to determine the strength of a trend by determining if the trend is accelerating or decelerating. The Smoothed RoC does this by comparing the current EMA to value that the EMA was a specified periods ago. The use of EMAs rather than the price close eliminates the erratic tendencies of the RoC.

A simple oscillator, which is based on the values of the iStochastic, iRSI and iMomentum indicators and is implemented as a two-colored histogram.

Example of functions MathCeil, MathRound and MathFloor.

APR

Average Period Range - an indicator of the average daily range.

Elastic Volume Weighted MA

An indicator of StopLoss levels.

The KWAN_CCC indicator with the possibility to change the indicator timeframe in input parameters.

Sherman and Marian McClellan Oscillator.

Two channels by the High and Low of MA.

Four different CCIs combined into a "candles" display of CCI. For smoothing you can use one of the 4 basic types of averages: SMA, EMA, SMMA or LWMA.

Indicator Trend Confirmation Index

Trend-following trading system Exp_ColorX2MA_X2 based on the signals of two indicators ColorX2MA

A utility for closing (reducing the right side of the length) the rectangles.

IMI

Indicator Intraday Momentum Index.

NV

NV (Natenberg's Volatility) - Sheldon Natenberg's historical volatility indicator.

VFO

The VFO (Volume Flow Oscillator) values above zero are bullish and indicate accumulating, while those below zero indicate distributing. Divergences between the price and the indicator values may indicate a forthcoming change in the trend.

CI

Indicator CI (Congestion Identifier). It displays within how many bars before the current one the price was within the channel formed by the Close price of the current bar +/- Delta in points. It also displays the counter value threshold level and the marks, in which the counter is above or below that level.

Indicator Ang_Zad_C_Hist_Candle with the timeframe selection option available in the input parameters

An Expert Advisor for closing all positions, in case of the total losses on those positions exceeded the Stop Loss level fixed in inputs, or where it is necessary to close all positions beyond the time interval fixed in the settings.

An indicator that colors candlesticks going beyond channel Ozymandias.

WVF Stochastic indicator

ALWMA moving average

1...373839404142434445464748495051...185