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

Source code library - Expert Advisors, Indicators and Scripts

Read Financial Magazines in MetaTrader 4 and MetaTrader 5!
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

MQL5 Source Code Library for the MetaTrader 5 - Indicators

Do you know that all the programs in the MQL5 library are available directly in the MetaEditor 5? 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!


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 Donchain 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.


Where is the herd of Bulls and Bears within the candle? A candle does not show where most of the activity has been during the candle's timeframe. TFV does. TFV shows with 1 simple dot where the battle has taken place in the candle, where the trenches are


This indicator is a small modification of classical Fractals Indicator. You can choose the number or left/right bars to have a new top or bottom as well a shift parameter.


This is a indicator to see if you can find a trend by drawing a graph with bars counted.


Taking a Closer Look at the Workings of the ZigZag Indicator.


The indicator draws support & resistance levels based on the last MN1, W1, D1, H4 and H1 fractals.


Detects and displays the fixed value of Constant Range Bars/Candles.


Detects and displays the fixed value of Renko Bars/Candles.


Value Chart as developed by David Stendhal. Value Chart was designed to show the valuation of the market.


Time indicator displays broker time and local computer time on the chart.


A Panel that allows the Chart Symbol to be changed. i.e. Flick through multiple Symbols from a single chart. (updated for MT4 Build 600)


Shows the distance to assumed stop with two lines located at a predetermined distance from the current price.


Alerts on New Bar. Alert options - 1: Popup Alert, 2: Sound, 3: Email, 4: Push Notification for iOS and Android.


Triggerlines ported from NinjaTrader to be used with existing strategy and to help identify key buying and selling areas.


Draws a Weekly Open Horizontal Line and Horizontal Target Line above and below the Weekly Open Line.


EURX=34.38805726 x [(EURUSD x 0.3155) + (EURGBP x 0.3056) + (EURJPY x 0.1891) + (EURCHF x 0.1113) + (EURSEK x 0.0785)]


Indicator measures the momentary USD currency strength, using combined data from the following four USD pairs: EURUSD, GBPUSD, AUDUSD and USDJPY.


TRYBASK= 1 x [(USDTRY x 0.50) + (EURTRY x 0.50)]


Candle Closing Time Remaining (CCTR) is an indicator which displays the remaining time for an open candle to be closed.


Shows the Max and Min levels of the previos day and today's open price. Change the "up" and "dn" parameters to see the day candle.


The indicator shows the current market conditions.