Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

AML - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 3 reads | 0 comments |

AML - indicator for MetaTrader 5

The AML (Adaptive Market Level) indicator shows one of three market states: flat, uptrending, and downtrending.

It is based on fractal smoothing and has a discrete filter that eliminates small price movements: if the price movement does not exceed the square of the predefined magnitude within the specified range, the price movement is ignored and considered flat.

It has two parameters:

If ABS(FR - FR(size)) < LAG:

 LAG = Size * Size * Points FR = Alpha * Price + (1.0 - Alpha) * PrevFR
Price = (highest price + lowest price + 2.0 * opening price + 2.0 * closing price) / 6.0
Alpha = EXP(-1.0 * Dimension * (DIM - 1.0)) in the range 0.01 to 1.0

If R1+R2 > 0 and R3 > 0:

AML - indicator for MetaTrader 5


Attachment download

📎 aml.mq5 (11.78 KB)

Source: MQL5 #21103

Verification code Refresh