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

Submit your code

The indicator shows the opening price of the senior time frame (e.g., 1-day time frame) and draws line indents to the opening price, thus forming a range.

Disparity Index (difference index) displays the difference between the close price and chosen Moving Averages in percentage. It is recommended to use in combination with the other candlestick models

The Expert Advisor drawn on the basis of the TrendEnvelopes semaphore, signal indicator

The class to play music using the MIDI device

Example of implementation of lines hash array with a string key.

This indicator measures the (smoothed) distance in pips between the close and an exponential moving average.

Negative Volume Index (NVI) with the timeframe selection option available in the input parameters.

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

This indicator is an example of smoothing the Bears Power indicator timeseries by filtering high-order harmonics.

Indicator of daily extremum zones. Flexible parameter setting is allowed.

Volume Profile + Range v6.0 (former TPO). Distribution of deals by price levels at a given time interval. Displayed as a histogram.

Trading system based on STLMCandle indicator signals.

Byte-wise operation with structures and standard data types.

This is an indicator that generates simulated data for any period - but in seconds

The Kijun-sen line with color customization and sending alert on trend changes

ZigZag based on RSI oscillator.

This is a trend-following indicator using the moving average and its smoothing. It features alerts, emails and push notifications.

Added the filled array for overbought and oversold zones.

Indicator in the form of a panel. Displays the resulting direction of the position: resulting lot size and up or down arrow.

Works based on the iMACD (MACD) indicators

Maksigen channels - extended version.

Normalized MACD.

The Expert Advisor synchronizes the local computer time in the interval from 9:50 to 9:59 (before the beginning of the morning session) with the MetaTrader 5 FORTS server time.

Averaging of values (RSI) using MovingAverages.mqh. Two MA indicators.

The strategy is based on the ZigZag indicator and pending orders.

Increased accuracy of the standard timer.

Logarithmic regression channel.

Kase DevStops. What all of this boils down to is that we need to take variance and skew into consideration when we are establishing a system for setting stops. Three steps that we can take in order to both better define and to minimize the threshold of uncertainty in setting stops are: 1. Consideration of the variance or the standard deviation of range. 2. Consideration of the skew, or more simply, the amount at which range can spike in the opposite direction of the trend. 3. Reformation of our data to be more consistent (this step is examined in detail in Chapter 81, while minimizing the degree of uncertainty as much as possible).

Modified Awesome Oscillator.

Historical Volatility bands constructed using average as the middle line, and upper and lower bands using the Historical Volatility high/low (instead of "regular" Historical Volatility) for bands calculation.

Indicator CaudateXPeriodCandle in the main chart, highlighting with colored points caudate candlesticks of the "Hammer" and "Reversed Hammer" types only.

Virtual Trailing Stop.

Candle amplitude indicator

Compared to the Volume Zone Oscillator indicator, this version is additionally using floating levels to determine the trend.

The Dinapoli Preferred Stochastic indicator uses the smoothing method described by Joe DiNapoli, which differs from the standard stochastic.

Stop loss and take profit initial setting. Trailing.

Elder Impulse System indicator

Separate the construction of a complex object from its representation so that the same construction process can create different representations.

The first really 3D indicator "Moving Average".

Create objects by copying a prototype

1...181920212223242526272829303132...183