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

Submit your code

This indicator throws visual and verbose buy/sell signals according to Bill Williams Trading in the Zone methodology and Alligator.

Draws different color candles above and below MA lines. Supported MA methods: SMA, EMA, SMMA, WMA & TMA.

You confuse where the next target? Use this indicator - it will show you where the next target.

This is a simple (cheap) UnitTest include library for new MQL4

The indicator shows the High, Close and Low of the previous day, week or month with time shift.

The indicator is designed for testing manual strategies and for practicing working according to the strategy. It provides operation reports presented as a table, chart, and additionally saves templates with and without the markup.

This is a simple indicator that plots Signal History on the chart.

Separate window! Uses daily open price and current price (close price for closed candles) to compute % change for the day.

Used to compare 2 currencies on one chart, the Original indicator will recenter its calculation on every bar, and hence the price will keep shifting up and down and so the historical relative values do not remain constant. This indicator was modified so that the 'center' or initial relative reference point stays fixed and does not update each bar. It will only reinitialize when the indicator is reloaded or settings are changed.

Guide 'how to' make different expert adviser license protections

DXYvsEXY_e1 is an optimized version of DXYvsEXY. Original code here: https://www.mql5.com/en/code/30714

Fractals indicator with the custom period feature

Example of optimization using the "running total" method.

The Moving Average Indicator shows the mean instrument price value for a certain period of time.

Example of working with objects: creating object, changing properties, redrawing the chart.

The script shows the conditions of the correct and closest placing of the StopLoss and TakeProfit of the orders.

AMA

Adaptive Moving Average

The script moves the StopLoss at the Distance from the market.

On Bollinger Bands grounds

Standard OsMA indicator with the indication of the possible trade signals.

Murrey_Math_MT_VG Indicator.

Color version of the XMA indicator.

Indicator shows a different Forex sessions and the market hours of the exchanges.

This is a "conceptual" script that uses the WinINet functions to load a HTTP page directly from mql4, without a C++ dll

3 TF Zigag Level with same settings.

Library to work with Skype.

The script closes all charts for the specified symbol.

The Expert Advisor moves the Stop Loss in the direction of the price movement using various methods.

Precision trend (histo) - MetaTrader 4

This robot optimizes the values it uses for overbought and oversold based on what would have been profitable during the Optimization periods(bars) back. Using the strategy of selling when the index indicator crosses below overbought and buying when the index indicator crosses above oversold.

A dynamic version of the standard Heikin Ashi indicator (code compatible with both MQL4 or MQL5).

Instead of having to analyze each pair individually, you can see at a glance what are the most promising pairs according to your own criteria.

The MA-4H indicator displays the moving average of the selected timeframe on the chart of the current timeframe. The intersection of the two moving averages is implemented as optional. The external parameters allow to activate the second moving average in order to see their intersection.

Additional functions for working with the datetime variables.

Indicator Metro

The indicator displays the ranges. Useful for the visualization of various "zones".

The indicator which draws a structure of the market.

PDF

Indicator PDF

Indicator Trend_CF.

Indicator iDCG Camarilla.

1...67891011121314151617181920...102