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

Submit your code

The Trend Magic indicator.

The DRAW_SECTION drawing style is used for plotting the values of the indicator's buffer as a sections.

The DRAW_COLOR_ZIGZAG style draws lines of different colors by values ​​of two indicator buffers. This is the color version of the DRAW_ZIGZAG style and allows you to specify individual color for each line from predefined color set.

Reference Fast Trend Line (RFTL).

JFatlAcceleration measures the current trend acceleration.

The indicator generates continuous lines of the relative average bullish and bearish power.

Vertical Horizontal Filter (VHF) shows, if there is a trend or a flat

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.

Modified Donchian Channels indicator with Fibonacci levels.

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

The indicator shows correlation between currencies.

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.

Trading system based on STLMCandle indicator signals.

Byte-wise operation with structures and standard data types.

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.

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 trading system is based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator)

Increased accuracy of the standard timer.

Logarithmic regression channel.

Trend-following trading system Exp_AbsolutelyNoLagLwma_X2 based on the signals of two indicators AbsolutelyNoLagLwma

1...232425262728293031323334353637...188