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

Submit your code

These codes give you a list of currency pairs that have a positive and negative swap. This is useful when you do a Carry Trade strategy.

This is a great template to start from if you're looking to build an MT4 EA quick and easily with your own rules/custom indicators. It has all the nice features for managing the account and the trades.

The FM Demodulation Indicator tracks the timing of price variations.

Volume with Custom Moving Average.

Indicator Market Hours Shade v01.

Indicator Indexes_v4. It shows the motion pattern of two or more indexes on a single chart.

Expert Advisor Kijun Sen Robot. It uses the following indicators: Ichimoku, MA, SAR. It is optimized for the following currency pairs: GBPUSD and EURUSD with M30 period. You can view the full description in the code.

An EA developed on the basis of "Full Dump" system.

Greetings to all. I started to develop a MTS not long ago. This is my first one. How can I improve it, I'm waiting for the specialist's advices. And how can I use the AMA indicator in the EAs (iAMA)? I tested this strategy on September 2008.

The indicator of 2 МАs of different currency pairs in one window.

ROC

ROC Indicator.

The Expert Adviser JK_BullP_AutoTrader is built on Bulls Power indicator.

Expert Advisor trading with Local High/Local Low (msl/msh)

The Great Hunter, is a Holy Grail attempt, by using a mix of trend following indicators, volatility filters and martingale system (optional).

Just a Donchian channel with slope. If xslope=0 it becomes the Donchian channel. It uses the moving average of Momentum.

Recent High/Low Alert MetaTrader indicator — displays two bands of maximum and minimum levels across recent N candles. By default, the maximum band is displayed with a blue line; the minimum band is displayed with a yellow line. Additionally, it can invoke a popup alert, send an email alert, or issue a notification alert when the current price (Bid) breaks recent High or Low level. All alerts can be turned off. If you use the email alert feature, do not forget to set the email settings in your MetaTrader platform's options window. Same with push-notifications. The indicator is available for both MT4 and MT5.

The Expert Advisor shows information about the current spread.

Open and close when fast moving average line cross slow moving average line. Default parameters is for XAU H1.

It's an expert to open and close orders on a specific day and time. Expert open and close orders only with the same symbol attached. For more information, please visit product's page: https://www.mql5.com/en/market/product/44939

This Expert Advisor based on Envelopes indicator from MT4, my best TimeFrame is 5 Minutes on GBPUSD.

TTF

The classic TTF with the T3 smoothing method and signal lines.

It uses VMA - ЕMA, which automatically adjust the smoothing percentage based on the market volatility.

This script can close all your open positions in your MetaTrader 4, or you can select different similar positions.

This ADX version is used on many other popular trading platforms. It is different to the standard one included with Metatrader.

MPM is a stop reverse strategy.

Indicator ZZ MTF XO A.

Adviser AOCCI.

This custom indicator waits the price to reach specific zones and the custom indicator takes decisions for buying or selling.

This expert shows the maximum profit level that touched by price line for your first position on chart window. the expert don't need any variable or specified timeframe. Please vote this program to help know this program how much helpful. Thanks for your vote stars.

This Custom Function Will Help To Get Round Time For Any Given Timeframe And Time.

A simple but fully functional program that demonstrate how a martingale can work for you. Just change the entry analyis using your own scalping strategy and your personal money management style, then optimize.

Will scale up after N consec losses and will reset after same amount of consec wins

Dynamic Stop-Loss is a tool for traders who trade without a stop-loss. It gives the traders a trick to trade as if there is no stop-loss but actually using one.

Nadaraya-Watson estimator - metatrader 4 version

Expert Advisor in MQL4 with 4 signals based on 6 Indicators. Works at any stock. If anybody wants to translate it to MQL5, it would be great. I still do not know MQL5. If you do, please, let me know.

I had thought about selling it, but my conscience did not allow that. I had worked on it for more than 2 months.

"Last Kiss Breakout" naked trading price action EA draws 2 mini Trend Lines with "Fractals" on chart and trades with consolidation breakouts,has Trailing Stop Loss &Take Profit works with all time frames major forex pairs and stocks NASDAQ.

Smoothed ATR indicator.

TrendCollector is the EA based on price action, Stochastic indicator, specific EMA's (206) crossings, and trade size variability based on ATR and time of a day.

The power of Evelopes with trailing stop.

1...90919293949596979899100101102103104