The indicator of DeMark fractals.
The indicator can be drawn on the basis of price data and on the basis of a moving average. There is a possibility to color the up and down fractals.
The indicator can be used for manual and for automated trading within an Expert Advisor.
For automated trading, use any indicator buffer of the double type: 0 - up fractals, 1 - down fractals! Values of the buffers must not be equal to zero.
A moving average is drawn on the basis of input parameters:
- MA_Period - period of averaging.
- MA_Method - method of averaging (0 - MODE_SMA, 1 - MODE_EMA, 2 - MODE_SMMA, 3 - MODE_LWMA).
- Applied_Price - price used (0 - PRICE_CLOSE, 1 - PRICE_OPEN, 2 - PRICE_HIGH, 3 - PRICE_LOW, 4 - PRICE_MEDIAN, 5 - PRICE_TYPICAL, 6 - PRICE_WEIGHTED).
- MA_Shift - shift of the indicator relative to the price chart.