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

2010.01.07 13:36

Class CalcFrac - Number of bars before and after the current High / Low (calculated fractal) - library for MetaTrader 5

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

votes: 44
calcfrac.mqh (1.6 KB)view


Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).

//| calculate lower fractals                                         |
bool CalcFrac :: is_lower_fr(int number_of_bars)
//| calculate upper fractals                                         |
bool CalcFrac :: is_upper_fr(int number_of_bars)


Indicator : FractalsPeriod

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.