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

Submit your code

Wick Ratio Candlesticks are recognized by its upper and lower wick ratio instead of open and close properties.

Smooth Algorithms fixed version plus Trade Algorithms plus full operational EA, plus two indicators . So you will get complete project where you be able to see example how to use and implement this libraries

The script is useful for inspecting the structure of ONNX models, providing insights into the input and output, their names, and their properties. It is particularly helpful for debugging and understanding the characteristics of ONNX models used in machine learning applications.

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.

Schaff Trend Cycle (MetaTrader indicator) — is a cyclical oscillator created by calculating the stochastic over stochastic over a MACD line using cycles. The result is the improved version of the oscillator that is not choppy during the trends and reacts to the changes very fast. It was developed by Doug Schaff, who assumed that the currency trends accelerate and decelerate in cycles. Its algorithm was made public in 2008. Schaff Trend Cycle tries to combine two different methods of determining the trend direction changes — MACD and smoothed stochastic oscillator. The value of the indicator fluctuates between 0 and 100. Two trigger levels are used — 25 and 75. Optional alerts are available. You can download this indicator for MT4, MT5

A simple starting-point script to collect data and send to a CSV in oldest-newest ordering. In this example only the close price data is collected.

This indicator will shows the time remaining until the end of the candle. You can choose colour and the font size.

The RSI Expert Advisor (EA) is an automated trading tool developed for the MetaTrader 5 (MT5) platform. This EA leverages the Relative Strength Index (RSI) to identify buy and sell signals, incorporating risk management, partial position closing, and trading hour restrictions to optimize trading performance.

The ADX (Average Directional Index) Smoothed indicator enhances the standard ADX by applying dual exponential smoothing filters to reduce noise and provide clearer trend signals. It plots three lines: smoothed +DI (blue), -DI (red), and the main ADX line (green). This refined version helps traders identify trend strength and potential direction changes with reduced false signals. The indicator excels at confirming established trends and warning of weakening momentum before actual price reversals occur, making it valuable for both trend following strategies and determining optimal entry/exit points.

The Bears Power Indicator measures the balance of the bears strength.

The Indicator Ichimoku Kinko Hyo is predefined to characterize the market Trend, Support and Resistance Levels, and to generate signals of buying and selling.

The Mass Index is developed to catch the trend reversal points. It is based on changes between maximum and minimum prices. If the amplitude gets wider, the mass index grows; if it gets narrower, the index gets smaller. The mass index was created by Donald Dorcy.

The Momentum Technical Indicator measures the amount that a security’s price has changed over a given time period.

The Zigzag indicator is a series of sections connecting significant tops and bottoms at the price plot.

This indicator allows to see the activity of the market.

The Rabbit indicator plots the true support/resistance levels for any currency pair.

This indicator uses an autoregresive model to extrapolate prices

All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.

The script exports historical quotes data from MetaTrader 5 for the import to MetaTrader 4. This solution will allow you to get the full history for MetaTrader 4.

Library for working with files using WinAPI without location limitations.

The indicator is a combination of the FATL digital filter and analogue JMA adaptive smoothing.

Trend strength indicator based on the Laguerre adaptive filter.

ExCandles-v2 indicator shows candlesticks combinations on a chart using the arrows.

Vertical time grid with four hours step.

CADXWOnArray class is designed for calculation of ADXW (Average Directional Movement Index Wilder, ADX Wilder) values on indicator buffers. The example of use of the class is provided.

CMACDOnArray class is designed for calculation of MACD (Moving Average Convergence/Divergence) values on indicator buffers. The example of use of the class is provided.

CDeMarkerOnArray class is designed for calculation of DeMarker values on indicator buffers.

The CFastFile eliminates the need for an intermediate writing of data to the physical file on disk. It provides the significant acceleration when working with data.

The indicator shows the use of the free Library for Custom Chart library for the automatic connection of the indicators to iCustomChart custom charts created on the basis of custom history files.

DCC

The indicator plots the chart of the specified symbol in a separate window.

Class for working with matrices.

Dedicated functions to read and write object properties.

Export of all necessary instruments and time frames in one click with load and checking history

Library to work with Skype.

This CExpert subclass allows to open only long/short orders, showing its usage with an MACD example.

Indicator of daily price movement range. Shows the history of daily price fluctuations.

Indicator shows the size of one of the three candlestick elements: upper shadows, lower shadows or bodies. It displays the current candlestick value and the daily average value for a certain element.

Price(%)Range is the indicator for the MetaTrader 5, which calculates the price movement based on percentage High (Highest) and Low (Lowest) Price on 100 bars.

Trading system based on ColorXTRIX_Histogram indicator signals.

The indicator is an example of smoothing a time series of the ADX indicator by filtering harmonics of higher order.

1...141516171819202122232425262728...190