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

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.

latest|best

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

The difference between the Laguerre_PlusDi and the Laguerre_MinusDi indicators in a single window in the form of a colored histogram

The Laguerre_PlusDi and Laguerre_MinusDi indicators in a single window in the form of a cloud

The Laguerre_PlusDi and Laguerre_MinusDi indicators in a single window in the form of a colored cloud with the timeframe selection option available in the input parameters.

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

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

The indicator plots a fan of Moving Averages and calculates Acceleration/Deceleration for each of them. This gives the ability to see the attenuation of a trend and the moment of its change.

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

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

The Exp_LaguerreFilter Expert Advisor with the entry at the intersection of the fast and the slow lines of the LaguerreFilter indcator.

LaguerreVolume indicator with the timeframe selection option available in the input parameters.

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

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

The XKRI indicator implemented as a sequence of candlesticks. Candlesticks appear as a result of relevant price timeseries processed by the XKRI algorithm.

The Exp_XKRI_Histogram Expert Advisor is based on the XKRI_Histogram oscillator change of direction.

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

The KRI indicator implemented as a sequence of candlesticks.

The smoothed KRI oscillator implemented in the form of a color histogram.

The SlopeDirectionLine_HTF_Signal indicator displays trend directions from three bars of the SlopeDirectionLine indicator as three graphical objects, colors of which determine a trend direction

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

The Exp_XDerivative Expert Advisor is based on the XDerivative oscillator change of direction.

The Exp_TEMA_CUSTOM Expert Advisor is based on the TEMA_CUSTOM indicator change of direction.

Displays the number of decimal places (the number of digits in the fractional part), time and values of graphic object anchor points.

The TEMA_CUSTOM indicator implemented as a sequence of candlesticks.

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

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

The Exp_KPrmSt Expert Advisor with the entry at the intersection of the signal and the oscillator lines of the KPrmSt indicator.

The extra smoothed Derivative indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

The Triple Exponential Moving Average (TEMA) technical indicator with advanced features of setting input parameters.

The Kolier_SuperTrend with the timeframe selection option available in the input parameters.

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

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

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

The script displays the number of bullish and bearish candlesticks.

The Exp_derivative Expert Advisor is based on the breakthrough of the zero level by the Derivative indicator.

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

The Karacatica_HTF_Signal indicator shows the trend direction or the signal based on the Karacatica indicator.

The indicator performs the calculation of the derivative of the price.

The KalmanFilter indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

An example of counting the number of objects in the chart window.

1...636465666768697071727374757677...133