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

Submit your code

The CCI CustomCandles indicator.

The library contains the functions that ease the writing of EAs.

The library contains the function that monitors the appearance of the trading events in the MT4 client terrminal.

Basic indicator that displays the strength of a move, based either on either moving averages, MACD, or stochastics.

Combines 9 indicators and 7 timeframes in an easy to read meter in bottom right corner, which can be used on any FX chart or timeframe.

NRTR_ATR_STOP Indicator.

Displaying of any instrument, synchronisation on bars or on days.

Price Alert MetaTrader indicator plays sound alerts when the price reaches certain levels that are specified by the trader.

With the MTF RSI Indicator you can easily identify the oversold/overbought levels on several different timeframes by using only one chart.

The Expert Advisor shows the current values of World Stock Indices from Google Finance using WebRequest function.

RSI modified to show the excess of the market (more than 70 and less than 30), and show you the divergency with the price.

Many Expert Advisors (EAs) tend to close orders at the take profit level, considering the pip distance from the purchase price.

Ultimate oscillator offered by Larry Williams is a weighted average of values of three stochastic indicators defined on a short, medium and long periods.

Example of file read and write operations

Indicator iDCG ModStDev.

MC

Indicator MC.

Advisor MostasHaR15 Pivot.

Heiken Ashi - Custom Indicator as Candlesticks Example.

Overlay two or more charts on the same window.

Velocity_v2 indicator.

Indicator StochCandles. Paints candles on the basis of stochastic.

A fast oscillatorб also suited for scalping.

The Detrendeded Price Oscillator (DPO) indicator looks like a moving average because it filters the directivity (trend) in the price values in the same manner.

Indicator Camarilladt.

The indicator of Fibo levels and arcs drawing.

The script is intended for gathering some statistics by the symbols and its comparison.

The indicator calculates the correlation of the currency pairs.

This indicator is another implementation of daily pivot points that allows the time for pivot point calculation to be advanced or delayed from the server time. It considers any Saturday trading to be Friday and any Sunday trading to be Monday.

Parabolic plotted based on Lows and Highs of a moving average. Efficiently displays the trends on smaller timeframes, and allows to mostly eliminate frequent switches, inherent to the "Parabolic SAR" indicator.

Indicator shows entry and exit points for all deals and account statistics on the chart. It is very useful for trade analysis.

Two indicators MA_Support and Para_B

This uses the standard Bollinger Band calculations to further calculate the width of the Upper and Lower Bands, comparing that number to the Max and Min width of the bands for the last N periods. The results are plotted onto a histogram.

Improvements to the previous version.

Indicator BoDi for finding signals to close position.

Detects and displays the fixed value of Constant Range Bars/Candles.

Display of the Heiken Ashi candlestick indicator in a subwindow.

The indicator draws a price channel using the Hodrick-Prescott Filter.

An indicator for drawing all important Pivot Points including: "Classic", "Camarilla", "Woodie", "Floor", "Fibonacci", "Fibonacci_Retracement".

Template EA that downloads news without the use of DLL.

This custom indicator will show you 28 pair's daily candle range, High-Low range, candle bullishness or bearishness from real tick market. So you can understand the overall market situation very short time. You can change the default timeframe from Daily to any period and default candle (bar) number from 0 to any previous number. Also you can open the required symbol by clicking the symbol button.

1...111213141516171819202122232425...104