- 显示:
- 1740
- 等级:
- 已发布:
- 2018.12.23 08:16
-
需要基于此代码的EA交易或指标吗?请在自由职业者服务中订购 进入自由职业者服务
平滑的 RSI 指标。 该指标基于移动平均数据。
有七个可配置参数:
- Source period - 计算源数据 (МА) 的周期
- Source method - 计算源数据 (МА) 的方法
- Source applied price - 计算源数据 (МА) 的价格
- Smoothed RSI period - 平滑周期
- Smoothed RSI method - 平滑方法
- Top level - 上边界
- Bottom level - 下边界
计算:
SmRSI = 100.0-(100.0 / (1.0+AvgPositive / AvgNegative))
其中:
AvgPositive = MA(Pos, Smoothed RSI period, Smoothed RSI method)
AvgNegative = MA(Neg, Smoothed RSI period, Smoothed RSI method)
- 如果 Diff > 0
Pos = Diff, Neg = 0
- 如果 Diff < 0
Pos = 0, Neg = -Diff
Diff = MA - Close
MA - MA(Source applied price, Source period, Source method)
与标准 RSI 相比,该指标具有以下特征:当价格下跌时,SmRSI 上升,反之亦然。
由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/22510