Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
37671
Rating:
(25)
Published:
2008.02.03 09:38
Updated:
2014.04.21 14:52
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This is the final version of the indicator based on two forum branches:


Added an external parameter named AMA_Trend_Type that defines the choice of trend detecting method.





AMA_Trend_Type is nonzero: The difference between the current value of AMA (AMA[0]) and the value of AMA on the preceding bar (AMA[1]) is measured.

deltaAMA=AMA[0]-AMA[1]. The trend detection sensitivity is set in points as dK*Point.



If deltaAMA>dK*Point, then this is the uptrend, a blue point will be put onto the AMA line (as shown in the figure below).


If deltaAMA<dK*Point, then this is the downtrend, a red point will be put onto the AMA line.




AMA_Trend_Type is equal to zero: The array of AMA values on the latest PeroidAMA bars is taken and standard deviation StdAMA is calculated.

The trend detection sensitivity is set in standard deviations as dK*StdAMA.

If deltaAMA>dK*StdAMA, then this is the uptrend, a blue point will be put onto the AMA line.
If deltaAMA<dK*StdAMA, then this is the downtrend, a red point will be put onto the AMA line.




The default value of the AMA_Trend_Type=1, the modification of the AMA is measured in points.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/7385

Frama Indicator Frama Indicator

The fractal dimension value is used to build an EMA-like moving average.

Indicator of Volatility Change Indicator of Volatility Change

Volatility is a standard deviation.

NR4ID ATR NR4ID ATR

NR4ID-ATR indicator.

Simply MA wrong Simply MA wrong

Simply MA wrong indicator.