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

Submit your code

Checks if either upper or lower Wick range of a candlestick is greater than Body range of a candlestick and plot a wingding

Select the last closed deal (trade) to further work.

Standard Bollinger Bands indicator with averaging features added

This is a first for MetaTrader 5. Now you can click on the chart to create price alerts.

Basic library to create Volume Profiles on chart.

This code does not trace the iatr() because the iatr() or this code is a more modern version. This code uses original smoothing, a kind of SMA and not wilder smoothing. The analysis of the two smoothings can suggest opportunities elsewhere

Set TakeProfit by just dragging and dropping script on the desired price level.

Keltner Channel for traders or young developers by William210

Syncs all chart symbols to symbol of the chart the EA is attached to

The indicator draws an arbitrary second time frame on the chart.

RSI adaptive indicator based on tick calculations

Candlestick Fitness concept is used in coding HFT Algos based on population optimization algorithms.

The EA only trades buy positions and does not use SL and TP.

it is an Indicator of Donchain chanel price action work with to all time frame.

Anlayse swing highs and lows

This indicator allows you to define a checklist for you to manually check and confirm your strategy before entering into a trade.

A simpler way to display Heikin Ashi

Searches for Wick or Body based High low in visible bars of chart

Linear Regression Line

A customized bid and ask line which is labelled and clear to help visualize the bid and ask prices

A very simple, efficient and non-obtrusive clock for your Chart. KISS compliant! :)

Constructor for creating histograms of statistical distributions of indicators, timeseries and their derivatives.

This class allows you to create buttons on the chart as if they were chart objects(have time and price coordinates) these objects can be dragged on the chart and when scrolling they stay at the same place. If you wan't to learn some Object Oriented Programming or if you wan't to understand how chartevents work or you wan't to create graphical interfaces, you can learn a lot from this.

Fair Value gaps are used in ICT's smart money concept where there is an imbalanace of 1 point or more between 1st candle's high and 3rd candle 's low in bullish and 1st candle 's low and 3rd candle's high in bearish

MACD variation that uses Nonlag MA.

This is a RSI of High, Low, Open and Close displayed as color candles in it's own sub-window.

The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.

The JSatl indicator with the timeframe selection option available in the input parameters.

It is made more up-to-date and multi time frame option added.

Stochastic that is using RSX as an input for calculations.

Export history of closed positions from MT5 retail hedging account selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software.

Here is my implementation of a colored Hull Moving Average.

It will automatically plot a colored horizontal line on the previous open/highs/lows/close of the selected period, and it will make the lines consistent on this price when switching timeframes.

This Include File checks for Market Open Hours. An EA to test it is also included.

A sophisticated tool that accurately measures market noise

Calculate the cosine distance and similarity between 2 vectors . The cosine distance is 1-cosine_similarity and the cosine similarity is the dot product of two vectors by their magnitudes multiplied.

This is a script to print all open trades and their PnLs at a specific time in history.

Show candle gain and candle loss in percent.

This is an indicator to calculate ATR Weighted moving averages.

A simple yet effective donchian channel breakout strategy. This strategy is timeless!

12345678910...184