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

Submit your code

Redrawing trading position for history data and current trading position

The indicator displays in a separate subwindow of the chart the current symbol, Bid/Ask prices, the current swap, the expected deposit for long/short position as well as the floating spread for the symbol and the remaining time until the candle completion of the current timeframe... Let's see

Indicator for scalping trading - Chanel scalper M1-M15

The breakout strength meter is a trading tool that is used to identify which currencies are the strongest to breakout, and which currencies are the weakest to breakout

This EA executes trades when it recognizes candlestick patterns that are associated with Bullish Reversals. Test have been ran on the daily chart. The code still needs a lot of work, so trade at your own risk.

Indicator that shows higher timeframe candle on current timeframe.

Amazing EA that does not use any indicator. Instead, it follows the price action. Tested from 18 August 1995 to 29th January 2014. It has managed to turn $10,000 to 11,958,183.37.

This indicator draws 3 Moving Averages by median price.

It only demonstrates the possibilities of the multiplier.

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.

Due to recent popularity of Multi currencies EA, This codes allows to Close Orders or delete Pending orders of a Multi Currencies EA, Single Currency EA or Manual orders.

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.

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.

1...90919293949596979899100101102103104