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

Submit your code

Detects fake, old, stale, or other erroneous ticks that come to the MT4 platform. These rogue ticks can sometimes cause a take profit, stop loss, trigger orders and/or any price-related action to occur when the price is actually no longer actionable.

Simple way to encode and decode using Base64.

This script is used to calculate lot rebate.

The indicator displays the price pivot point.

"Cryptocurrency Divergence" EA draws 2 mini Trend Lines with "Fractals" on chart and trades with Divergence\Convergence of RSI & MACD indicators ,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs, Crypto and stocks NASDAQ.

It is a manual trading system consisting of 5 indicators. We buy when all indicators are in blue, and we sell when all indicators are in red. Indicators auto turn chart in M5 time frame, there is a switch to skip it.

Ichimoku Kinko Hyo is an indicator that tracks the equilibrium of momentum and identify likely areas of support and resistance. The Ichimoku chart is composed of five (5) separate indicator lines. These lines work together to form the complete "Ichimoku picture".

This script was developed in order to help us detect if a chart is actually trending or going nowhere.

This code is simple variation of Bollinger Bands code which comes with Metatrader4, if we change Standard Deviation by ATR we have StarcBands.

One of the indicators I recommend to novices as the entry indicator.

This indicator adds a smoothing curve to the MACD.

Chandelier Exit calculates the trailing stop based either on the maximum value of the maximum price or the maximum value of the close price over a specified period.

(Fast Adaptive Trend Line)– the «fast» adaptive trend line is calculated using a digital low-pass filter with a small cutoff period.

Trend indicator based on the Kaufman's AMA.

Displays 3 vertical lines each for a time zone.

Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

In this issue we will view the strategy called Moving Average Position System developed by the reader of our forum, Andrey. The strategy uses the only one indicator and the combined system of capital management.

High_Low (ZigZag) indicator.

Colored ОsМА, and ОsМА that shows the divergences.

works on the movement continuation with position inversion after closure

Expert Advisor for trend trading with lot increase

This indicator appears in the January 2010 issue of Technical Analysis of Stocks & Commodities.

The Alerter simply works on 1 or 2 trendlines and plays a sound file when the trendline has been broken so the only think you must do is name correctly the trendlines.

The Indicator ang_AZad(C) helps to define the dominant trend as ang_Zad(C).

The EA open position on Breaking S/R , it will make offsets if that was not a break

Trades when two moving averages cross each other

liquidex is a HFT EA. It uses moving average and range to determine it's entries and exits.

Fractal volatility indicator based on Bollerslev Model.

Trend following system with breakout of different EMA as entry signal and SL and a breakout of highest high and lowest low as TP.

It synthesizes any symbol if you have the source symbols and then makes a real time virtual chart. Same concept with Triangle Hedge (SymbolSynthesizer.mq5 https://www.mql5.com/en/code/909) but for chart display in MetaTrader 4.

This EA Opens a grid of Buy Stops and Sell Stops at a specified distance from price. Has Stop Loss, Take Profit and Trailing Stop.

"Fibonacci" EA Trades when there is a retracement from "FIBONACCI" levels has Trailing Stop Loss &Take Profit works on all time frames major forex pairs and stocks NASDAQ.

"Eliot Wave I" EA draws 3 Trend Lines with "Fractals"(1main+2small) on chart and trades When a Eliot retracement is formed,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

Dynamic Pivot Indicator, provide all timeframes and extra timeframes

This is a high-quality ZigZag based on HiLo.

This indicator is created to determine the trend and its direction.

Opens a BUY position with the size of a percentage of the maximum allowed size.

Tick Collector in the FXT File

Artificial Intellegence (by Reshetov) original code is optimized with higher returns and accuracy for positional traders.

Simple display any time zone daily channel.

1...575859606162636465666768697071...101