Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal

Class CalcFrac - Number of bars before and after the current High / Low (calculated fractal) - library for MetaTrader 5
- Views:
- 7742
- Rating:
- Published:
- 2010.01.07 13:36
- Updated:
- 2017.09.06 09:54
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).
Functions://+------------------------------------------------------------------+ //| calculate lower fractals | //+------------------------------------------------------------------+ bool CalcFrac :: is_lower_fr(int number_of_bars) //+------------------------------------------------------------------+ //| calculate upper fractals | //+------------------------------------------------------------------+ bool CalcFrac :: is_upper_fr(int number_of_bars)
Sample:
Indicator : FractalsPeriod

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

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

The Average Directional Movement Index by Wilder (ADX Wilder) helps to determine the presence of the price trend.

The Adaptive Moving Average Indicator is used for constructing a moving average with low sensitivity to price series noises and is characterized by the minimal lag for trend detection.