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

Submit your code

The script creates the Fibonacci levels graphic object with a large number of settings.

Multi timeframe Slow Volume Strength Index

Very handy Multiple Moving Averages for those who like to look at Price Action using several time periods...

RSI of smoother average

Chande's DMI - volatility ratio adaptive

This indicator predicts future price movements by searching for similar candle patterns in the rate history.

This is an indicator w/o buffers which demonstrates parallel multi-threaded calculations in chart objects hosting worker expert adviser.

Provide a unified interface to a set of interfaces in a subsystem.

For a complex object separate its construction from representation. Same construction process can create different representations

Attach additional responsibilities to an object dynamically; and provide a flexible alternative to subclassing for extending functionality

This strategy is the well known set & forget accompanied by the martingale system. It is very useful if you are very busy in which you don't have time, you want to trade the London session while you are sleeping in USA, etc.

The DD_Relative function calculates the drawdown (relative loss) of the current trading account in percentage. To do this, it uses the Current_LossOrProfit() function to get the current profit or loss for all open positions and divides it by the current account balance. The result is rounded to two decimal places and displayed in the chart comment. The Current_LossOrProfit() function loops through all open positions in the account and adds the commission, swap, and current profit or loss for each position. The result is rounded to two decimal places and returned as the current profit or loss of all open positions.

Added colors to Parabolic SAR.

Smoothed Accelerator

Variation Index shows if a trend or a flat movement is prevailing in the time series or random behaviour.

Simple and demonstrative indicator of the current trend power and direction.

Three-pole super smoother filter from John Ehlers' book "Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading" is used in this indicator for moving average calculation.

The indicator "warning" about the appearance of the bars with an extended range and/or strong directed movements

The Expert Advisor used on such indicators as the Moving Average, the CCI, stochastic

The class is designed for calculation the Fractals technical indicator (Fractals) using the algorithm of the ring buffer.

The script demonstrates the example of using the FileWriteDouble() function

The QStick indicator is a simple n-period moving average of the price difference.

Three RSI oscillators with three different timeframes on one chart.

Several envelopes with fixed shifts.

The trend indicator drawn in the form of the colored cloud.

Indicator MACD drawn in the form of a colored cloud.

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

Three Larry Williams' Percent Range indicators from three different timeframes displayed on the same chart.

A semaphore signal indicator that uses the algorithm of crossing of two Moving Averages obtained from two consecutive averages.

This indicator measures the rate of change of AwesomeModPips indicator.

The AML indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

The CCI indicator implemented as a sequence of candlesticks.

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

The MultiCMxTrend_x10 indicator shows information on current trends using the CMx oscillator position from ten different timeframes.

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

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

Trading system based on the signals of the Dots indicator.

The RSI_Histogram oscillator with the timeframe selection option available in input parameters.

The Price Channel indicator with the color filling inside the channel, drawn as a cloud, with the display of the last values as price labels and the possibility to round the channel levels up to a required number of digits, and a price grid with these rounded values.

The indicator implements a breakout system using a channel based on the High and Low price series processed by the algorithm of JFatl_Digit.

1...686970717273747576777879808182...183