Download MetaTrader 5

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


False Breakouts Counter - indicator for MetaTrader 5

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

votes: 20
2013.03.06 13:25
2016.11.22 07:32

The idea is rather simple. If high of the current bar is higher than high of the previous bar, and close of the current bar is lower than high of the previous bar, it is considered as a false breakthrough up. Correspondingly, if low of the current bar is lower than low of the previous bar and close of the current bar is higher than low of the previous bar, we have a false breakthrough down.

There are situations when in one bar will be two false breakthroughs - if the bar is an external in relation to the previous bar, and its close is in the previous bar's range. The indicator displays:

  • the number of false breakthroughs up (blue line).
  • the number of false breakthroughs down (red line).
  • the total number of false breakthroughs (orange line).

The essence is that if, for example, on the last five bars were 3 (or more) false breakthroughs, then, most probably, the next breakthrough high or low (the previous bar) will be true.

False Breakouts Counter


  • it is recommended to use the indicator not lower than Н4 period.
  • as the indicator doesn't specify the direction of a potential breakthrough, we can use it either in combination with stop orders below/above the previous bar's extremums, or in combination with a trend indicator and place stop order for the breakthrough only in the trend direction.

Translated from Russian by MetaQuotes Software Corp.
Original code:


The indicator that calculates the volume per second (or over period) and the corresponding Moving Average.

Narrowest Range Signal Narrowest Range Signal

The narrowest range indicator defines the moments when the market is in the "compressed" state that says of the future breakthrough in this or that side

VolatilityPivot VolatilityPivot

This indicator is calculated on the basis of currency pair volatility displaying the nearest support and resistance level depending on the trend direction.

IncGUI_BitPicA IncGUI_BitPicA

An updated version of the CBitPic class with the ability to control drawing transparency