- 显示:
- 1475
- 等级:
- 已发布:
- 2015.07.29 11:59
- 已更新:
- 2023.03.29 14:32
-
需要基于此代码的EA交易或指标吗?请在自由职业者服务中订购 进入自由职业者服务
真实作者:
MetaQuotes
ZeroLAG MA 是一款无滞后的移动均线指标。此指标介绍刊登于 2000 年 4 月的《Technical Analysis of Stocks and Commodities - 股票和商品技术分析》杂志。
公式:
ZeroLAG MA(i) = 2*MA(Price, P1, i) - MA(MA( Price, P1, i), P2, i)
此处:
- MA — 移动均线;
- Price — 适用价格;
- P1 — 第一条平滑均线的周期;
- P2 — 第二条平滑均线的周期。
指标使用 СMoving_Average 类,定义在 SmoothAlgorithms.mqh 标准库中。类库的使用描述可参阅文章 "Averaging price series for intermediate calculations without using additional buffers(无需使用额外的缓冲区进行平均价格序列的中间计算)"
原版指标以 MQL4 语言编写,并首次发表在 代码库 25.10.2006。
图例.1. ColorZeroLAG_MA
由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/13175