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

Submit your code

The Expert Advisor opens and closes positions at the predefined moments in time.

PDFma — average using probability density function for average calculation.

Keltner Channel built relative to the average value of the XRSX oscillator as a sequence of candlesticks

The Exp_XOSignal_ReOpen trading system based on the signals of the XOSignal indicator with trend following scaling

Original mathematical functions taken from different places, which either do not have analogues or perform much faster than alternative implementations

A library for reading/writing the parameters of arbitrary Expert Advisors.

A quick way to draw an arc-shaped channel using four mouse clicks.

The Expert Advisor is based on 30 popular candlestick patterns.

A Moving Average with the smoothing type by Mark Jurik.

This version of Polychromatic Momentum is using double smoothed EMA for smoothing. DSEMA has been proven for producing very good smooth results with a lag that is almost non-existent, hence, in combination with it, the Polychromatic Momentum indicator becomes much more usable when it comes to signals.

A.W. Warren's Momentum Indicator

A signal indicator of daily ranges.

RP

Indicator RP (Range Position) displays the price position within the range (from Low to High) reached over the previous N periods.

Tick Based Stochastic with histogram

MACD slope divergence

PdfMA based awesome oscillator

A class to reconstruct closed trades (paired in/out deals) from history sorted by close time.

Adaptive (ema) deviation

Learn how to split the volume data into different groups so that you can compare them and create a strategy based on volume average.

Calculates the risk in the account currency for a given trading volume of the selected symbol at different time periods.

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.

RSIOMA MetaTrader indicator — this indicator takes two moving averages, calculates their RSI (Relative Strength Index) and then also adds a moving average of the calculated RSI. These two lines now can accurately signal the trend changes. They are shown in the separate window where they change from 0 to 100. The auxiliary histogram is shown for a quick-glance view of the current trend. The indicator is available for both MT4 and MT5 versions of the MetaTrader platform.

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

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

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.

1...131415161718192021222324252627...189