AIS Lehmer Moving Average MT5
- 指标
- Aleksej Poljakov
- 版本: 1.0
- 激活: 15
Lehmer均值可以看作是一个窗函数,其权重系数取决于计算中使用的变量的值。该平均值是非线性的,因为在其计算中使用了取幂。
指标的特征取决于两个参数:
- iPeriod - 指标周期,有效值大于等于2;
- iPower - 指数,在计算指标值时使用。有效范围是 -32768 到 32767
在 iPower = 0 时,我们得到调和平均值,
iPower = 1 - 算术平均值,
对于 iPower = 2,反谐波平均值。
Lehmer 均值具有较大的指数,突出了时间序列的最大边界。对于负指数,强调最小值。由于此属性,Lehmer 均值可用于平滑时间序列和构建通道。
第一张图片显示了使用收盘价计算的通道,指数为 +500 和 -500。
第二张图片显示了同一通道,iPower = +1000 和 -1000。
在第三和第四个数字中,Lehmer 的平均值适用于 +/- 1000 和 +/- 5000 的最高价和最低价。