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

2013.03.06 13:25

False Breakouts Counter - indicator for MetaTrader 5

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

votes: 20

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:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Example of MACD Automated Example of MACD Automated

Code example of MACD automated with advanced money management function.

Pivot Star Pivot Star

Pivot indicator. Standard, Fibonacci, Camarilla, Woody's, Demark. Calculates pivot points from previous bar of chosen period (M5 - MN).