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

MQL5 Source Code Library for MetaTrader 5 - 46

icon

This is the largest free source code library for MetaTrader 5 platform programs. Here you can find ready-made Expert Advisors, technical indicators, scripts and libraries. Use the code library when learning MQL5 language and develop your own automated trading applications based on the provided codes.

You can freely download and test published codes, as well as launch them in MetaTrader 5. The library is also available directly from MetaTrader 5 platform and MetaEditor development environment.

Submit your code

The signal and information indicator Williams Thrust is based on two Williams' Percent Range indicators with different periods and their average values.

The VPCI (Volume Price Confirmation) indicator shows the relationship between the price and the volume.

The STPMT (Medium Term Weighted Stochastics) indicator.

An Expert Advisor based on the iWPR (Williams' Percent Range, %R) indicator with the operation time control.

The Trading Channel Index oscillator displayed as a color histogram.

The Slope Direction Line indicator is displayed as a colored moving average line indicating the average market movement direction.

The Silence indicator displays aggressiveness (price change rate, the blue line) and volatility (the red line) in a separate window.

The Expert Advisor utilizes the High and Low analysis, as well as one iMACD (Moving Average Convergence/Divergence, MACD) and two iMAs (Moving Average, MA).

The Trend Intensity Index oscillator displayed as a color histogram.

A colored smoothed PWMA that displays the most recent value as a price label with the possibility to round the indicator levels up to a required number of digits.

ROCX is a modified ROC (Rate Of Change) indicator displaying an absolute or relative price change.

The Polarized Fractal Efficiency Overlay (PFE_Overlay) indicator is designed for identifying trends. Unlike Polarized Fractal Efficiency, the indicator is displayed on the price chart as the main indicator line and two lines of the calculated StdDev deviation value.

PFE

The Polarized Fractal Efficiency (PFE) indicator is designed for identifying trends.

An Expert Advisor based on the iIchimoku (Ichimoku Kinko Hyo) indicator.

Three independent trading systems using XWAMI indicators 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 SilverTrend indicator with the ability to change the indicator timeframe using the input parameters.

The BrainTrend2_V2 indicator with the ability to change the indicator timeframe using the input parameters.

The Wajdyss_Ichimoku_Candle indicator with the ability to change the timeframe using the input parameters.

Juice - EMA deviation

CCI JMA based with floating levels

CCI JMA based

Multi pass average filter

Super smoother levels

Super smoother

This calculates Optimal f using the Geometric Mean. Per Ralph Vince, "In trading we can count on our wins being for varying amounts and our losses being for varying amounts. Therefore the Kelly formulas could not give us the correct optimal f." So, using his equation(s), I created this library for the Geometric Mean version of Optimal f.

Triple fast ema Hull

Fast ema Hull average

Fast EMA

T3 stripped

Laguerre RSi with Laguerre filter - extended

JMA Z-score

Headley's acceleration bands

ATR adaptive JMA

RSX of RSX

CCI T3 based with floating levels

Corrected RSX

Expert advisor uses the difference between bar closes and a close moving average to detect unusual activity, it will then buy arbitrary volatility spikes. This is a prototype that I will be expanding on in the future, at the moment the user can input an arbitrary level to buy at. In future developments I plan on building a neural network in the EA that detects and compares volatility levels.

RSX of adaptive lookback average

Jurik smooth on chart generic trend

Short description.

1...394041424344454647484950515253...183