Market Profile — MetaTrader Indicator (2024)

Market Profile MetaTrader indicator— is a classic Market Profile implementation that can show the price density over time, outlining the most important price levels, value area, and control value of a given trading session. This indicator can be attached to timeframes between M1 and D1 and will show the Market Profile for daily, weekly, monthly, or even intraday sessions. Lower timeframes offer higher precision. Higher timeframes are recommended for better visibility. It is also possible to use a free-draw rectangle session to create a custom market profile on any timeframe. Six different color schemes are available to draw the profile's blocks. Drawing profiles as a plain color histogram is also possible. Alternatively, you may choose to color the profile based on bullish/bearish bars. This indicator is based on bare price action and does not use any standard indicators. It is available for MetaTrader4, MetaTrader5, and cTrader platforms.

A system of alerts is available for price crossing the levels of Value Area high and low, Median, and Single Print zones.

The chart screenshot shows market profiles calculated and displayed for two daily Forex trading sessions. The timeframe is M30 and the right-hand daily session is still in progress. The earliest prices are blue and the latest prices are red. The medians and the value areas are marked with the white lines and display the most important price areas. Traders tend to return to those areas if the volume of the breakout movement is not too high. High-volume breakout out of these areas signifies a real breakout. You can read more about Market Profile in this short e-book: Book on Market Profile.

The example below demonstrates how the Market Profile can be colored according to the direction of each bar in the session rather than its age. This is done when ColorBullBear is set to true.

This example demonstrates how the indicator can display a market profile based on the rectangle chart objects freely drawn by a trader. For this to work, a rectangle object's name has to start with MPR and the Session input parameter has to be set to Rectangle. You can press 'r' on your keyboard to add such a rectangle to the chart automatically.

Market Profile indicator can also draw histogram from right to left. Unlike the traditional left-to-right display, it can be helpful to focus on the current trading session, without obscuring its chart. You can see how this works on the chart screenshot below.

Market Profile indicator is also available as a free cTrader indicator. It is very similar to its MetaTrader siblings, but cannot work with push notification alerts.

Download (ver. 1.22, 2023-06-14)

MarketProfile indicator is being developed via a dedicated GitHub repository. You are encouraged to actively participate in the improvement of this indicator by submitting your own features via pull-requests and reviewing existing suggestions, changes, fixes, and so on.

MT4/MT5

Market Profile for MetaTrader 4 in .zip Market Profile for MetaTrader 4 in .mq4 Market Profile for MetaTrader 5 in .zip Market Profile for MetaTrader 5 in .mq5

cTrader

Market Profile for cTrader in .algo (compiled file including source code) Market Profile for cTrader in .cs (source code only)

How to use Market Profile in Forex trading?

Market Profile indicator is a powerful tool developed by a CBOT trader. Its original purpose was to graphically organize price and time information obtained during a trading session in a manner useful to traders. Today's Forex market is quite different from what commodity futures trading was back in 1985 when Peter Steidlmayer introduced his charting instrument to the public. Can Market Profile be a useful tool to Forex traders?

Issues with Forex

The main difference between today's currency market and the futures market of 80's is the lack of daily trading sessions. Fortunately, it does not produce any real problems. The lack of strict daily close and daily open can be compensated by one of the following methods:

  • A rolling 24-hour window for Market Profile calculation. Each new bar, the Market Profile calculation window is shifted right by one bar as well. This way, a trader is always looking for the graphical profile of the recent 24 hours of trading. Unfortunately, this would require a complete recalculation of the whole curve with every new bar arriving. Still, this can be accomplished by using the Rectangle session type in our Market Profile indicator.
  • Smaller geographically-bound time windows. The Forex market operates through several widely recognized trading sessions. The most prominent of them are: London, New York, and Tokyo. A trader operating mainly inside the New York trading session could use a 10-hour window based on the NY open and close to calculate and display Market Profile. A trader operating within a mix of New York and Asian sessions could use the span of both. The good thing is that with this method, the calculation process is much simpler than with a rolling window. The bad thing is that it ignores all the market data that is left outside of the target trading sessions.
  • Weekly trading sessions. Unlike days, the weeks in Forex are clearly defined. The minor difference of Sunday/Monday open and Friday/Saturday close between different brokers and liquidity providers is small enough to ignore (one or two hours of thin-volume trading). Weekly Market Profile is easy to calculate and offers a lot of data to traders. However, it is rarely suitable to short-term intraday traders, less so to scalpers.

Apparently, it is still possible to apply Market Profile to modern foreign exchange market. The most consistent approach seems to be the third one, which is based on weekly sessions.

Another important issue to solve when using this indicator in analysis is whether to apply it to the current session — and suffer from the lack of data during the early hours — or to the previous session, which could be based on stale data. In reality, this is no issue at all. As outlined in the CBOT's A Six-Part Guide to Market Profile, the most important profile is based on the current session, but the profile built during the previous one is also relevant and should be analyzed by a trader.

Moreover, it is possible (and useful) to look at several previous profiles at once, analyzing how the trend developed across more than one value area. The multi-session Market Profile analysis is also a key to detecting long-term areas of balance and states of imbalance. In fact, long-term traders should be looking at Market Profiles of many sessions to determine possible points of entry and exits.

The following example shows Market Profile calculated for six weekly sessions of the EUR/USD currency pair:

Usage

As the indicator's author stated, the Market Profile should not be used as a buy/sell signal generator. It is a tool for analyzing the market and getting information that isn't evident from a bare chart. Here is how the main parts of the Market Profile can be used in Forex trading:

Value area — the area of market acceptance. The price spent a hefty amount of time at those levels — the market likes it. The edges of the value area form strong support and resistance levels.

Median — the middle of the value area offers a strong pivot point. It serves both as the attractor for the price and as the bounce level. The median is also called a fair price. If market is below the level, it is considered undervalued. If it is above the median, it is overvalued.

Areas of low volume — the long tails below and above the value area show the price areas rejected by the market. The bottom tail is telling us of long-term buyers outperforming long-term sellers at those price levels. The top tail is telling us about the long-term sellers doing better than buyers at the respective price levels.

Even if you aren't a regular user of Market Profile indicator and your main trading strategy is based on a different concept or if your strategies are either automated with expert advisors or use fundamental indicators, you can still consult the long-term market profiles in times of doubt when lacking accurate information on where to put an entry order, take-profit, or stop-loss.

Discussion

Warning! If you do not know how to install this indicator, please read the MetaTrader Indicators Tutorial.

Do you have any suggestions or questions regarding this indicator? You can always discuss Market Profile with the other traders and MQL programmers on the indicators forums.

Changelog

1.22 — 2023-06-14

  • Added input parameter headings in the MT4 version of the indicator.
  • Improved performance for right-to-left and seamless scrolling modes.
  • Fixed an issue with flickering profiles in the seamless scrolling mode in MT5.

1.21 — 2023-01-09

  • Fixed an MT5-only bug that prevented the developing POC from showing up.

1.20 — 2022-12-07

  • Added arrow alerts for history— arrows are now displayed immediately for old sessions that should have generated alerts in the past.
  • Fixed rays in the seamless scrolling mode.
  • Fixed a bug with alert arrows that prevented them from showing up if no other alert types were turned on.
  • Fixed a minor bug when single print rays weren't hiding correctly.
  • Changed the default value for the AlertCheckBar input parameter from Current to Previous.
  • Fixed removal of arrows when a rectangle is removed in the Rectangle session mode.

1.19 — 2022-05-17

  • Added the arrow alerts option.
  • Added the seamless scrolling mode to display sessions starting from the rightmost bar of the current chart window. This can be helpful to analyze past sessions without going back to the indicator's input parameters constantly.
  • Fixed input parameter types for SinglePrint ray style and width.
  • Fixed a bug with when value area and POC rays could be shown for a wrong session in some cases.
  • Fixed description of the RaysUntilIntersection parameters' values.
  • Fixed a glitch when random indicator plot values could be displayed in the MT5 version of the indicator.
  • Fixed a glitch when value area rays could be disappearing and appearing again in the MT5 version of the indicator.
  • Fixed a bug when single print wasn't properly removed for the current trading session.

1.18 — 2022-01-12

  • Added alerts for crossing Median (Point of Control), Value Area, and Single Print zones.
  • Added a new ray drawing mode (via the HideRaysFromInvisibleSessions input parameter) where rays are not shown on the chart if their source sessions are behind the left edge of the screen. This helps to reduce chart clutter when working with many sessions at once.
  • Improved performance in both MT4 and MT5 version of the indicator.
  • Fixed a bug with session colors in latest MT5 builds.
  • Fixed Value Area lowest edge— it is now drawn at its real level.
  • Fixed a bug when all rays could disappear when a new session started.

1.17 — 2021-07-17

  • Added a developing POC option to show how the Point of Control (median) developed during the session.
  • Added style and width input parameters for all lines and rays.
  • Added a hotkey (r) to place a properly named rectangle chart object in the Rectangle session mode.
  • Added an input parameter (ValueAreaPercentage) to control how many TPOs (the profile's building blocks) should be captured by the Value Area.
  • Added an option for Single Print rays to mark the edges of single print profile ranges.
  • Fixed time zone shift parameter (TimeShiftMinutes) to work properly with Intraday sessions.

1.16 — 2020-12-07

  • Added an input parameter (DisableHistogram) to prevent the indicator from drawing profile histograms (TPO's). Value area and point of control are still drawn in this mode.
  • Added an input parameter (RightToLeft) for right-to-left histogram display. Works for the current trading session for non-Rectangle session types, and for all trading sessions for Rectangle session type.
  • Added adaptive point multiplier option via setting the PointMultiplier input parameter to 0 (which is now default).

1.15 — 2020-07-14

  • Added Rectangle session type to display market profile based on rectangle objects added to the chart. It works on any timeframe. A rectangle should have a name starting with MPR to be detected by the indicator.
  • Added single print highlighting (ShowSinglePrint and SinglePrintColor input parameters).
  • Added prominent median (PPOC) highlighting (ProminentMedianPercentage and ProminentMedianColor input parameters).

1.14 — 2020-01-26

  • Replaced ValueAreaColor input parameter with two separate parameters: ValueAreaSidesColor and ValueAreaHighLowColor to provide more control over how the value area is shown on the chart.
  • Changed RaysUntilIntersection input parameter to provide more control over which value area or point of control (median) rays are cut off at intersection with other sessions.
  • Fixed a rounding error in MT5 version, which resulted in value areas being biased towards higher prices.
  • Fixed a bug in MT5 version, which resulted in profile blocks being displayed in white color rather than not displayed at all when Single_Color scheme is used and SingleColor parameter is set to clrNone.
  • Bypassed a coloring bug in MT4 version that would cause the chart discoloring and blinking along with visible gaps showing in the profile.

1.13 — 2019-10-18

  • Added ColorBullBear input parameter to color the market profile according to bars' directions.
  • Added DisableAlertsOnWrongTimeframes input parameter to disable popup alerts when Market Profile is applied to a wrong timeframe.
  • Added optional printouts for Value Area High, Value Area Low, and Point of Control rates for each profile.
  • Added grouping for input parameter in MT5 version of the indicator.

1.12 — 2019-03-27

  • Added RaysUntilIntersection input parameter, which helps to hide the rays of the previous sessions' median and value area that have already been violated by newer trading sessions.
  • Fixed a bug with TPO display when the symbol's TickSize is higher than _Point × PointMultiplier.

1.11 — 2019-01-20

  • Fixed a bug when empty holes could appear in the profile when the current session was built.
  • Fixed a bug that prevented current session profile from drawing from the first bar.
  • Fixed some potential 'array out of range' errors.

1.10 — 2018-12-25

  • Fixed potential array out of range error when old chart with Market Profile indicator is reopened.

1.09 — 2018-12-24

  • Added two alternative options for dealing with Saturday and Sunday candlesticks.
  • Added more flexibility to displaying Median and Value Area rays.
  • Changed Median to draw as a single line inside the value area.
  • Reduced the size of the working arrays significantly, which should make MP calculation on some trading instruments faster.

1.08 — 2018-05-28

  • Added smart color graduation depending on timeframe and session type.
  • Added an option to project the Median (Point of Control) of the previous session to the right side of the chart.
  • Added single color scheme.
  • Added PointMultiplier input parameter to allow traders to set wider profile box, helping with indicator's performance.
  • Added ThrottleRedraw input parameter to delay indicator's display updates, helping to reduce its load on the CPU.
  • Fixed a potential bug when incorrect chart object naming routine could cause glitchy display of the market profile.
  • Changed hard initialization failure to a soft one— this will prevent input parameters from resetting when incorrect timeframe and session type combination is used.

1.07 — 2018-02-06

  • Added support for up to four intraday sessions.
  • Added three new color schemes for drawing the market profile.
  • Some minor code tweaks and improvements.

1.06 — 2017-11-30

  • Added proper object cleanup when Market Profile is used with chart templates.

1.05 — 2017-11-23

  • Added optional display for the previous session's Value Area High/Low lines.
  • Added time shift input parameter to move the sessions across time zones.

1.04 — 2016-11-07

  • Fixed "Array out of range" errors.

1.03 — 2016-01-25

  • Added support for three sessions: daily, weekly, and monthly.
  • Fixed chart object deletion to only delete indicator's own objects.
  • Optimized execution speed.
  • Increased the range of supported timeframes.
  • Added inline indicator description.
  • Improved interface (enumerated input parameters).
  • Fixed some potential "Array out of range" errors.
  • Code rewritten completely to comply with the current MQL4 and MQL5 standards.

1.01 — 2011-12-11

  • Fixed compatibility issues due to new coding conventions in MQL5.

1.00 — 2010-07-23

  • Original version of Market Profile released for MT4 and MT5.
Market Profile — MetaTrader Indicator (2024)

FAQs

Is market profile a good indicator? ›

A market profile chart is useful for judging how an asset has trended over the course of a single trading day. By using this tool traders can understand how heavily the asset has traded, at which prices and in which direction the asset has moved. For this reason it's particularly relied on by day traders.

What is the most accurate MT4 indicator? ›

What are the most accurate MT4 indicators? The Moving Average (MA), Relative Strength Index (RSI), Bollinger Bands and Moving Average Convergence Divergence (MACD) are among the most accurate MT4 trading indicators.

What is a poor high in market profile? ›

A trader might identify a “Poor High” or “Poor Low” formation on the market profile chart. This occurs when the market makes a brief excursion beyond the previous day's high or low but fails to sustain that level and returns within the Value Area.

What is the most useful indicator in MT4? ›

Top 10 MT4 indicators for technical analysis
  1. Trend Magic Indicator. The Trend Magic indicator is a custom indicator available in MT4 that uses the Trend Magic algorithm to generate trade signals. ...
  2. Aroon Indicator. ...
  3. Gentor CCI. ...
  4. MA Channels FIBO. ...
  5. Fisher Indicator. ...
  6. Zigzag Indicator. ...
  7. DeMarker Indicator. ...
  8. Rate of Change Indicator.

What is the most successful indicator? ›

A guide to the 10 most popular trading indicators
  • Moving Average Convergence Divergence (MACD) ...
  • Fibonacci retracements. ...
  • Stochastic oscillator. ...
  • Bollinger bands. ...
  • Relative Strength Index (RSI) Indicator. ...
  • Average Directional Index (ADX) Indicator. ...
  • Standard deviation indicator. ...
  • Ichimoku cloud indicator.

Which trading indicator has the highest accuracy? ›

Which is one of the most accurate trading indicators? The most accurate for trading is the Relative Strength Index. It is considered one of the best momentum indicators for intraday trading. It helps investors identify the shares which are bought and sold in the market.

What is the best profitable indicator in MT4? ›

In our MT4 indicators list, we'll take a look at three of the most popular ones used in Forex, as well as other markets:
  • Moving Average Convergence/Divergence (MACD)
  • Stochastic oscillator.
  • Bulls/Bears Power.
Nov 12, 2023

Which indicator is more reliable? ›

Some of the most reliable momentum indicators are relative strength index (RSI), stochastic oscillator, and moving average convergence divergence (MACD). RSI is a popular indicator that ranges from 0 to 100 and shows how strong or weak the price is compared to its previous levels.

Why MT4 is better than TradingView? ›

MT4 is a reliable and user-friendly platform for beginners and experienced traders, while TradingView is a powerful tool for technical analysis and social trading enthusiasts.

What is 80% rule in market profile? ›

The 80% Rule is a Market Profile concept and strategy. If the market opens (or moves outside of the value area ) and then moves back into the value area for two consecutive 30-min-bars, then the 80% rule states that there is a high probability of completely filling the value area.

What is the ideal market profile? ›

The Ideal Market Profile is a description of those characteristics, which are considered important demand indicators for the product[1] in question. The Ideal Market is a market with a high density of Ideal Customers.

What is the most accurate scalping indicator MT4? ›

Today's top picks of the Scalping Indicators.
  • Nonlagdot Non Repaint.
  • AO Divergence.
  • Scalper Signal.
  • Adx Buy Sell.
  • Super Signal V3.
  • Rsi 3Tf Alert.
  • Semafor Alert.
  • Simple Binary Options.

What are the leading indicators in MT4? ›

Leading indicators in MT4

Forex MetaTrader indicators are perhaps the most popular. Some indicators that can be used in the forex market include Bollinger Bands, simple moving average (SMA), relative strength index (RSI), among many other stochastic oscillators and money management tools.

What is the most accurate reversal indicator in MT4? ›

The Profit Ratio indicator is best suited for identifying the price reversal zone (especially the end of a retracement) with high precision. The signal line of the indicator helps you to keep track of the market volatility.

Why is the market profile important? ›

Advantages of Market Profile Analysis: In-depth Understanding: Market Profile provides a deeper look into the market's structure, which can be critical for making informed trading decisions. Volume Analysis: By combining price and volume, it offers an extra dimension over regular price charts.

What is the best indicator to predict stocks? ›

Seven of the best indicators for day trading are:
  • On-balance volume (OBV)
  • Accumulation/distribution (A/D) line.
  • Average directional index.
  • Aroon oscillator.
  • Moving average convergence divergence (MACD)
  • Relative strength index (RSI)
  • Stochastic oscillator.

What is the most accurate indicator of what a stock is actually worth? ›

Price-to-Earnings Ratio

The P/E ratio is important because it provides a measuring stick for comparing whether a stock is overvalued or undervalued. A high P/E ratio could mean that a stock's price is expensive relative to earnings and possibly overvalued.

Top Articles
Latest Posts
Article information

Author: Otha Schamberger

Last Updated:

Views: 6192

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.