MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Buy financial books in MetaTrader Market and trade with confidence
To post a new code, please log in or register

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 Jobs section

MQL4 Source Code Library for the MetaTrader 4 - Indicators

Do you know that all the programs in the MQL4 library are available directly in the MetaEditor? Now you do not need to worry about which folder to use to download the code of an Expert Advisor, indicator or script - the editor does it for you.

Open its Toolbox (Ctr+T), go to the Code Base tab and select "Download" in the right-click menu - that's all you need to do to get a program source code!

previous12345678...37next
latest|best

The indicator shows candle end time and current spread.

Traces the output of indicators by buffer. Output can be changed on the chart by moving the VL left or right.

The indicator helps to find the correct trend before enter the market.

Trading information with Fractal trend.

The indicator calculates and draws the highest, lowest and median point of certain period.

This indicator will write value degrees of the lastest position of price at the current timeframes, and when position and condition of trend status was changed, the indicator will give an alerts.

3 EMA Crossover Indicator.

This indicator based on a 5 period simple moving average detects trends: if there is an uptrend then shows green bars, if there is a downtrend then shows red bars, if there is a weak trend then shows yellow bars.

Average Modified Moving Average.

Detects Head Fake Patterns which are effective in trading reversals.

Advanced ADX indicator.

The spread_on_chart indicator shows the current values of spread, stop and freeze levels.

The oscillator for intraday trading.

The indicator shows entry points according to AC indicator.

MACD indicator.

Plot the STOPD Price Levels based on user specified timeframe.

Typical zigzag indicator

Step Up and Down Forex Indicator draws the price direction movement with single arrow Up or Down on the trading chart.

DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles.

The purpose of the present code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL4 language and functions.

3 Dimensional MACD Ribbon.

ProfitInfo is an indicator to show in one window opened buy and sell trades of defined symbols and systems.

An indicator based on three moving averages.

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.

This indicator combines Moving Average (MA) and Average True Range (ATR).

The indicator shows the channel.

This indicator draws three Donchian bands: up, middle and down bands based on which you can design your scalping system.

This indicator adds H3, H6, H8 and H12 time frames into your charts.

Camarilla Level Pivots.

Multi timeframe fractal indicator with "Extend_Line" and "Show_Validation_Candle" functions (compatible with MT4 build 600 or later).

Combine Candle sticks and Market Profile indicator.

This indicator will write the price of Pivot Point on the trading chart, ranging from Price Support 6 to Price Resistance 6. When prices change or pass one of Pivot Price level, the indicator will be given alerts.

Fibonacci Retracement Levels indicator draws Fibonacci Retracement Levels on the trading chart.

Scan for conditions in which you have an interest. Show where the condition arose historically on the current Symbol and timeframe. On a separate panel, show where the condition has currently arisen for any of your chosen symbols and timeframes.

The indicator ыimulates the full structure of the market profile system that described by "James Dalton" in his book "Mind Over Markets".

A tool for scalping the markets.

This indicator will calculate pips wins and losses for any pair with a parsar and doji star trading strategy. You can see pip targets and losses and see if you can find a winning pair with this. 5MIN charts are the best on current settings.

With this indicator you can follow the evolution of account profit.

Shown all TF candle direction on Chart.

This indicator is a modification of classical Awesome indicator. It computes the smoothed rate of change of two exponential means.

previous12345678...37