Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Latest: Metatrader 4 Indicators | Perry Kaufman AMA Optimized | MQL5 Release

RobotFX curates the best open-source MetaTrader code to inspire your trading automation.

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


  • AMA Кауфмана от wellx
  • Оптимизированный вариант адаптивной скользящей средней Кауфмана AMA от wellx

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



Image for Perry Kaufman AMA Optimized

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.

Trade the powerful Traders Dynamic Index strategy automatically with this dedicated TDI Expert Advisor. More details.



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.


Image for Perry Kaufman AMA Optimized


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

Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.

7385

Best MetaTrader Indicators + Profitable Expert Advisors