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

Submit your code

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.

Calculate Pivot Points based on H1 bar, according to normal formula and Fibonacci, with color filling.

The code is based on indicator ZigZag which is in-built in MT4. I have changed it so that it isn't calculated on highest Highs and lowest Lows, but instead uses highest Close and lowest Close of chart price history. See attached chart for differences: ZigZag (red) versus ZigZagClose (yellow).

Based on the original “Time Segmented Volume (TSV)” developed by Worden Brothers, Inc.

This indicator Draw True Pivot Line and seven levels Up ( R1,R2,R3 ... ) and seven levels Down ( S1,S2,S3 ...) with back test.

The indicator generates a sound signal and a Sell or Bye window appears.

The modification of an order (position) using the mouse - the second script from the "GMO" ("Graphical Management of Orders") series.

An update for the BW MFI with the displaying of volumes.

The library contains the functions that are intended to split the access to the trade flow.

A function for calculation of the area of three objects: a rectangle, ellipse or a triangle.

Oscillator based on turnovers

This indicator shows you the trend on every timeframe simultaneously

Trigger Line Indicator.

The script allows to use MetaTrader4 as netting platform. It has some advantages compared with MetaTrader5.

Creates a report in HTML about all pairs and symbols, for example how many days ago a cross moving average appeard. Pairs with a last recent cross moving average at daily timeframe have a chance for a trend reversal which may be traded.

This library implements two simple HTTP GET / POST function and does not require external dll(s).

Simple chart to display the highest and lowest values for a data series over "n" bars period.

Very fast zigzag. No suspended peaks. No wrong peaks. Designed for use in EA. Optimized peaks retrieval

This indicator gives BUY and SELL signals and entry level.

Shows the distance to assumed stop with two lines located at a predetermined distance from the current price.

Expert Advisor that closes orders after defined profit or loss.

The indicator points at the reverse bars based on the Profitunity system by Bill Williams excluding the angulation relative to the Alligator indicator mouth.

The Coppock indicator shows long-term opportunities for buying or selling.

The converter of the tick files created with the Ticks collector into different data representation formats.

This indicator plots bullish and bearish gaps, and crosses/hides closed gaps.

Simple utility that makes use of offline charts to facilitate training by enabling bar-by-bar display - both forward and backward, as well as reset to a pre-defined date/time.

Power of CHF indicator shows actual strength of currency CHF calculated of 7 pairs that contain CHF. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR CHF, USD CHF, GBP CHF, CAD CHF, AUD CHF, NZD CHF, CHF JPY.

1...121314151617181920212223242526...104