Watch how to download trading robots for free
Find us on Facebook!
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 - 23

Submit your code

Gain/Loss Info MetaTrader indicator — displays the gains and losses for all candles where the given threshold is surpassed. The values are calculated in points and percentage. The indicator can calculate gain/loss in two modes: plain candlestick Close and Open difference, and as difference between current Close and previous Close. You can set minimum change limits (for pips and percentage), change modes, and you can also control font color of the output numbers. The indicator is available for both MT4 and MT5.

Keltner Channel (MetaTrader indicator) — is a classical technical analysis indicator developed by Chester W. Keltner in 1960. The indicator is somewhat similar to the Bollinger Bands and Envelopes. It uses three plot lines: the middle line is the 10-day simple moving average applied to the typical price ((high + low + close) / 3), the upper and the lower bands are produced by adding and subtracting the moving average of the daily price range (High and Low difference) from the middle line. This way, a volatility-based channel is built. In this version of the indicator you can modify all the parameters of the MA. The indicator is available both for MT4 and MT5 versions of the platform.

Rainbow Multiple Moving Average (RMMA) MetaTrader indicator — is a very simple but visually informative indicator based on the standard moving average. It draws 66 rainbow-colored moving average lines of your preferred type and price directly in the main window of the chart. This indicator is available for both MT4 and MT5 versions of the trading platform.

Round Levels MetaTrader indicator — an MT4/MT5 indicator that can display round levels and zones near them based on your configuration. It can be useful to trade off the natural psychological support and resistance zones. It can also issue alerts when the price is in either support or resistance zone.

RSIOMA MetaTrader indicator — this indicator takes two moving averages, calculates their RSI (Relative Strength Index) and then also adds a moving average of the calculated RSI. These two lines now can accurately signal the trend changes. They are shown in the separate window where they change from 0 to 100. The auxiliary histogram is shown for a quick-glance view of the current trend. The indicator is available for both MT4 and MT5 versions of the MetaTrader platform.

Schaff Trend Cycle (MetaTrader indicator) — is a cyclical oscillator created by calculating the stochastic over stochastic over a MACD line using cycles. The result is the improved version of the oscillator that is not choppy during the trends and reacts to the changes very fast. It was developed by Doug Schaff, who assumed that the currency trends accelerate and decelerate in cycles. Its algorithm was made public in 2008. Schaff Trend Cycle tries to combine two different methods of determining the trend direction changes — MACD and smoothed stochastic oscillator. The value of the indicator fluctuates between 0 and 100. Two trigger levels are used — 25 and 75. Optional alerts are available. You can download this indicator for MT4, MT5

A simple trend indicator that clearly shows the direction of the current trend. It can be used in the breakout trading systems.

The alarm indicator 3MA Cross w_Alert v2.

Excellent trailing expert. I have been using it for a long time - I recommend it!

Modification of the DeMarker indicator with additional color indication based on the histogram

The indicator loads as a Menu on the menu bar. Click the Symbol Menu to open or close the symbol list. Click a selected symbol to change the chart symbol.

Bollinger Bands with customizable moving average method and applied price.

The presented indicator plots a fully-functional tick chart similar to the standard price charts, with the ability of the analysis using all the MetaTrader features.

Calculates profit (loss) of the current orders on the symbol.

Previous Candle Hi-Lo is used to check the last candle multi-timeframe position relative to the current price.

This expert is a tool to manage the level of profits or losses for each order without using stop loss or take profit. The expert applies virtual levels to close orders in profit or loss. You can use the expert to manage manually opened orders or manage orders opened by another EA. For more information about the expert, you can visit the product's page: https://www.mql5.com/en/market/product/27228

Checks a trading robot must pass

The hst2csv script is used for converting *.hst files to *.csv files, that can be imported into the MetaTrader 4 client terminal with no errors.

The script plots one Fibo line based on the latest ZigZag. This is a remarkable tool to get rid of unnecessary work for those who constantly place Fibo grids (the majority).

Library of functions usefull for time calculations and determining if a report is imminent.

Indicator TDI-With Alerts. The description look in a code.

The Standard Deviation Indicator (StdDev) measures the market volatility.

The script draws on the chart the curve of the Polynomial regression with the channel of the mean square deviation.

The indicator of the Keltner's channel.

The MACD is not required to be present on the chart. However, if a standard MACD is attached, the divergence lines will be drawn both on the chart and in the indicator window, and the indicator will use the MACD settings.

Linear Weighted Fractal Dimension Index (ternd vs notrend filter) plus Step EMA

Waddah Attar Scalping indicator Shows you quick Trend.

The program-simulator v.2 for perfecting strategy, testing of indicators and trainings of trading skills.

Draws a fibonacci study on the visible portion of your chart, and basic downtrend and uptrend lines. Shows the basic price action geometry.

An implementation of a HashMap in MQL4

Automatically draws Fibonacci retracements on chart.

This indicator is my attempt to estimate the real market value.

The indicator plots two Stowell patterns on the right edge of the chart: upper and lower.

Script for opening opposite stop orders at a specified time. Once one of them triggers, the other one is deleted.

Tipu Renko Live is a modified version of Renko Charts that can be plotted on a normal time frame.

Script for drawing a price markup.

Displays the relative strengths of chosen currencies on one chart.

Forex Indicator Price Movement Degrees with Trend Alerts. This indicator will write value degrees of the latest position of price at the current time frames according to the Daily price movement, and when position and condition of trend status was changed the indicator will give an alerts.

Indicator WaveMTF Bull and Bear System with Signal and Alert for MetaTrader 4 with options to display signal on the chart. with Signal and Alert, email alert, Push Notification and option to display trader info and signal.

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

1...161718192021222324252627282930...104