Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


MarketProfile - indicator for MetaTrader 5

Avals | English Русский 中文 Español Deutsch 日本語 Português

Published by:
Nikolay Kositsin
votes: 26
2011.11.14 13:49
2016.11.22 07:32

Real author:


Market Profile is a tool widely used by futures traders.

Market Profile MetaTrader is a standard solution of the Market Profile that displays the statistical time distribution of the price, price area and control value for the day trading session. The indicator is based on the simple price movement and does not use standard MetaTrader 5 platform indicators.

More information on the Market Profile can be found in:

See also the article "The Price Histogram (Market Profile) and its implementation in MQL5".

The author implemented different colors for the indicator: green is for the Asian session, blue is for the European one, while violet is for the American session. Working periods are M30 and M15.

Input parameters:

  • StartDate - for history testing (test starting date);
  • lastdayStart - if true, it is drawn till the last day (StartDate is ignored);
  • CountProfile - the number of day profiles to be drawn.

The mode is drawn in gray.

This indicator was first implemented in MQL4 and published in Code Base at 23.03.2006. In MQL5 this indicator is presented as MarketProfile.mq5 file.


Besides, one more version of this indicator is available (MarketProfile_.mq5).

This indicator can be added to M5, M15 and M30 charts to show market profile for day sessions. Though M5 timeframe is much more accurate, M30 is recommended for more clarity. Also, it is a standard market profile calculation method. Three different color schemes are available for profile blocks drawing.


Input parameters:

  1. StartFromDate (by default = __DATETIME__) - if StartFromToday is equal to false, the indicator will start drawing profiles from that date. It draws back in time. For example, if you set this variable to 2010.07.20 and DaysToCount to 2, the profiles will be drawn for 2010.07.20 and 2010.07.19;
  2. StartFromToday (by default = true) - if true, the indicator starts drawing from the current day, otherwise - from the date specified in StartFromDate;
  3. DaysToCount (by default = 2) - the number of day sessions, for which the market profiles are to be drawn;
  4. ColorScheme (by default = 0) - color schemes for profiles blocks:
    • 0 - from blue to red;
    • 1 - from red to green;
    • 2 - from green to blue.
  5. MedianColor (by default = White) - reference value (median) color;
  6. ValueAreaColor (by default = White) - price area border color.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Fisher RVI Fisher RVI

Fisher RVI is an oscillator that modifies RVI (Relative Vigor Index) custom indicator values using Inverse Fisher Transform.

XOSMA Oscillator XOSMA Oscillator

Four-colored histogram of OsMA (Moving Average of Oscillator) allowing to implement different smoothing algorithms.

Ichimoku Cloud Ichimoku Cloud

Simplified Ichimoku indicator (Ichimoku Kinko Hyo) containing only the cloud.

Smoothed ADX Smoothed ADX

There are a lot of smoothing algorithms. This indicator is a smoothing of standard ADX.