ATR maType,如何使用它

ATR maType, how to use it

我正在使用 TTR 包中的 ATR 函数。文档说您可以指定移动平均类型。我想知道这意味着什么,例如这是否意味着我的 ATR 值将被我选择使用的 maType 平滑?

如果是这样,使用 maType 并指定 maType 句点的正确语法是什么?

如有任何帮助,我们将不胜感激。

谢谢

The docs says that you can specify a moving average type. I want to know what this means...

这意味着您可以指定除默认值以外的移动平均线类型。我不确定它还有什么意思...

...does this mean that my ATR values will be smoothed by the maType I choose to use?

没有。这意味着真实范围值将被您使用的 maType 平滑,从而创建平均真实范围 (ATR)。

If so what would be the correct syntax for using an maType and specifying the maType period?

与指定任何其他函数参数相同:ATR(x, maType=EMA)。关于如何设置周期,我引用了文档,"n: Number of periods for moving average.".


欢迎就如何改进文档提出建议。