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

Submit your code

Enhanced version of Larry Williams' Percent Range.

This Expert Advisor is example of use of the Memory Mapping DLL for working with File Mapping functions. In this example the Expert Advisor create a virtual (memory-mapped) file and start to update the quotes on symbol. Using this way, Expert Advisors can exchange data (for example, quotes) using common memory-mapped file.

Enables the "Chart Objects Description" for non-programmers. For any open chart window.

This is the improved version of Price Channel indicator. Two additional price levels, trade signals and Stop Loss/Take Profit levels were added.

8 Stochastic oscillators (%K 6, 9, 12, 14, 16, 19, 21, 24).

This indicator calculates the classic historical volatility of a financial asset.

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.

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.

1...192021222324252627282930313233...185