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

2015.12.10 16:22

Volatile action - expert for MetaTrader 4

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

votes: 20

A real working idea, which is as follows. If there is a trend, then it consists of impulse and correction waves. Impulse waves are generally characterized by high volatility of bars, rapid movement towards the existing trend.

The goal — enter the market in the beginning of the impulse.

The EA works in the following way. Trace the trend on the H4 chart using the Alligator. Trace the volatility on the M30 chart, enter the market when it explodes towards the trend. Additional condition — the bar with the increased volatility has to break through maximum (minimum) 24 bars with its extremum, i.e. get out of its price range.

  • VolN — how many times the volatility of the current bar has to be greater than the average volatility for the period.
  • ATR — the average volatility period.
  • ns — the stop loss factor (tied to volatility).
  • np — the take profit factor (tied to volatility).


The EA works on a M30 chart. It is supposed to work properly on any financial instruments, 4- and 5-digit quotes. Slightly optimized for gold, highly volatile pairs will probably fit. Optimization can be performed by opening prices.

I would be glad to hear offers on modernization of the idea itself!

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.

TypeToBytes TypeToBytes

Byte-wise operation with structures and standard data types.

PriceLines PriceLines

Script for drawing a price markup.