Watch how to download trading robots for free
Find us on Telegram!
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 - 6

Submit your code

The script obtains information about the number, types and sizes of input and output tensors in an ONNX model

Provide simplest class to read and parse CSV file

Set of statistical functions which allows you to calculate some values describing timeseries.

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

Class for working with AES-256 encryption.

The Exp_JSatlCandle Expert Advisor based on signals of the JSatlCandle indicator.

AdxVma trend.

Median MA is a moving average, which is calculated using the median price for a given period.

Step average - average true range based

Higher Highs & Lower Lows Stochastic

RSI slope divergence - multi time frame version

"This advisor uses the RSI indicator to determine optimal entry and exit points in the market. A unique feature of the advisor is its martingale strategy, which allows for position reversal with an increased lot size during market reversals. The advisor offers flexible trading time settings: you can set a working time range and disable trading during specific hours to filter out news events."

The 'wd.Multi_ClockPrice lite!' is the lite version of 'wd.Multi_ClockPrice', providing a visual representation of server time and bid prices on the chart. It synchronizes with PC clock every seconds, allowing seamless updates even when MT5 is offline. Real-time bid prices are displayed, efficiently meeting the need for price information. Place informational labels in the specified sub-window, adjusting positions as needed.

The library contains functions that returns description of runtime error codes and trade server return codes.

Enhance your charts by adding intelligent markers for important price points and the start/end of year/month/week/day/session Includes a price pointer that changes color whenever price is near an important price point (e.g. historical high/low)

If you want to optimize your Expert Advisor using your own characteristics, you can use "Custom max" mode via OnTester() function. This code provides you many characteristics, which can be used during the optimization of your EA. Also it allows you to save the optimized charateristics in HTML file.

The indicator displays the horizontal line that sets the signal actuating level.

A small example of the Mandelbrot fractal calculation in OpenCL. The OpenCL accelerates calculations of fractal approximately up to 100 times in comparison with the CPU calculations.

This class contains functions for working with colors. It has color conversion and other useful functions.

Unlike ParabolicSAR this indicator is continuous and more precise. Indicator's calculation is also very easy.

Synchronize ОС/EA/MT processes etc. Any self-made DLLs are not needed now.

The class restricts the EA trading by time. It has flexible configuration options, which allow to set a custom number of the time zones, and also to allow trading only on the specified week days.

The indicator draws three pairs of the Bollinger Bands with a default standard deviation rate of 2, 3 and 4, respectively. Modified to accept all Bollinger Bands parameters.

Trading system based on XDPO_Histogram indicator signals.

Oscillator that represents the relative smoothed rate of price change.

The i-CAiChannel_System_Digit indicator with the timeframe selection option available in input parameters.

The indicator is finding out the minimum and maximum for the desired period and draws fibo zones in those bounds.

Blau T3 ergodic candlestick oscillator with new display types and styles

BrainTrend2Sig semaphore signal indicator features alerts, emails and push notifications.

The upgraded version of Stochastic without repainting.

There are some additions in this indicator compared with MetaTrader 4-version.

Jurik velocity ("smoother moment") with added choice of prices.

Ron Black's swing line indicator for MetaTrader 5 version.

Adapting is done using standard deviations.

This version is an attempt to normalize MACD in known bounds

Quantile bands - generalized version.

The NRTR_extr_ZigZag indicator with price labels of the ZigZag peak values.

A library for creating icons in the Windows taskbar and for sending text alerts. The use of this library will help you make your MQL programs more informative.

The Efficiency Ratio (ER) was first presented by Perry Kaufman in his 1995 book "Smarter Trading". It is calculated by dividing the price change over a period by the absolute sum of the price movements that occurred to achieve that change. The resulting ratio ranges between 0 and 1 with higher values representing a more efficient or trending market.

The indicator calculates the inclination angle of the last segment of moving average and shows it in the chart together with the MA line and the line drawn from the last segment of moving average.

12345678910111213...183