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

Submit your code

Draws label of the chart symbol and Period. Any text size, color and position on chart.

Easy EA for closing positions of the symbol with profit or loss. You can use it for hidden SL too.

Copying utility with minimal functionality.

Tick volume of the candlestick drawn as clusters.

A simple Expert Advisor, which works without the use of any indicators. Enters at trend reversal attempt.

A round-number horizontal web with continuous auto-adjusting.

This indicator help you keep 3 different timeframes on the screen to see the price action clearly on both short term and long term without switching buttons.

The Proper Bot is for those who like Martingale style trading. Features: Stop Loss, Take Profit, Trailing Stop Loss functions. All are calculated in POINTS.

Displays current bid price and % change of (open price of) current bar or X previous bars, also High, Low, and range.

The example of multicurrency hedging implementation on a single chart in Metatrader 4.

StochasticAlerts is base of the Indicator Stochastic Oscillator by MetaQuotes Software Corp. with alert and email alert and option to display trader info and signal.

"Crypto Scalper" EA uses MFI indicator as Overbought and oversold indicators ,has Trailing Stop Loss &Take Profit works with all time frame major forex pairs,Crypto and stocks NASDAQ.

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

This is a simple EA that will buy/sell pullbacks while managing your given risk parameters. You need to decide on a direction, and the EA will do the rest.

This indicator separate Buy Volume and Sell Volume .. you never see like this before

Some people think that most indicators, such as: MACD, RSI, AO, AC, are delayed and not convenient to work with. But the MaksiGen KaHaJI ckaJIneP allows to earn 10 points every day persistently.

The Standard Deviation Channel is plotted on the basis of the Linear Regression Trend.

The script performs the calculation of the average volatility of the symbol on the specified interval.

Bollinger Bands ® Indicator (Bollinger Bands, BB) is plotted a certain number of standard deviations

The main point of Relative Vigor Index Indicator (RVI) is that on the bull market the closing price is, as a rule, higher, than the opening price.

It is based on the RSI indicator.

Laguerre Indicator.

Another variation of the Macd. I do not remember it had already been published.

Semaphore indicator that predicts the future direction of the price

The Expert waits the price to have a strong fluctuation of x pips in y minutes and then it opens a reverse position with a grid of limits position to reinforce it.

Shows 4 sessions: Pacific, Asian, European, American.

AntiFragile EA is an innovative trading strategy built on the idea of Antifragility professed by Nassim Nicholas Taleb. The general idea is to gain from disorder.

Example of working with OBJ_LABEL graphic object.

Main chart shows the overlay chart of 2 symbols - while subchart displays the price spread line with spreadfactor.

The Slope Direction Line trend indicator, used by the Hammering EA from the Market section.

Indicator S&R based on OHCL candles.

The indicator based on the moving averages shifted to the left relative to the chart.

An example of creating a trade panel using the MasterWindows library.

One of the divergence subtypes.

Byte-wise operation with structures and standard data types.

Follow daily movement after 2 days breakout

For day traders, this is one of the important thing to consider in order to improve our strategy by calculating on average how much an asset moves, in which it will allow us to identify the best TIME during the day to trade when the market moves the most as well

An interesting attempt to make levels based on ZigZag values. This indicator is strongly recommended for those who can not "feel" the market. The indicator gives a very clear view of the market.

Average Modified Moving Average.

The indicator is calculated on the basis of currency pair volatility displaying the nearest support and resistance levels. It can be used as a trend indicator.

1...303132333435363738394041424344...101