📉 简单移动平均Simple Moving Average
对数列做窗口为 w 的 SMA。本地处理。可设置「数据(空格/逗号分隔)」、「窗口」。SMA of a series with window w. Processed locally. Settings: Data (space/comma separated), Window.
使用说明与常见问题How-to & FAQ
「简单移动平均」是什么?What is the Simple Moving Average tool?
对数列做窗口为 w 的 SMA。本地处理。可设置「数据(空格/逗号分隔)」、「窗口」。SMA of a series with window w. Processed locally. Settings: Data (space/comma separated), Window.
如何使用「简单移动平均」?How do I use the Simple Moving Average tool?
在「简单移动平均」中,填写「数据(空格/逗号分隔)」、「窗口」等参数,结果会随输入实时计算并显示在下方。In the Simple Moving Average: Fill in "Data (space/comma separated)", "Window"; results are recalculated instantly as you type.
能算加权移动平均吗?Can it do a weighted moving average?
不能,本页只算等权的简单移动平均:每个窗口内 w 个数的平均值。加权移动平均(WMA)或指数移动平均(EMA)会给近期数据更大权重,需要其他工具。No, it computes the equal-weight simple moving average: the mean of each window of w values. Weighted (WMA) or exponential (EMA) averages give recent values more weight and need another tool.
能举个计算实例吗?Can you show a worked example?
例如在「简单移动平均」中填 数据(空格/逗号分隔) = 10 11 12 13 14 15,窗口 = 3,结果区显示:SMA 点数:4;末值:14;i=3:11;i=4:12;i=5:13;i=6:14For example, entering Data (space/comma separated) = 10 11 12 13 14 15, Window = 3 in the Simple Moving Average gives: SMA points: 4; Last: 14; i=3: 11; i=4: 12; i=5: 13; i=6: 14
哪些输入会被检查?Which inputs are validated?
「简单移动平均」会检查这些输入——「窗口」:必须填写;绝对值超过 10¹⁵ 的数也会被拒绝。不符合时结果区显示具体提示,不会给出数字。The Simple Moving Average checks its inputs — "Window": required; numbers above 10¹⁵ in absolute value are rejected too. When a value fails, the result area names the problem instead of showing a number.
有哪些选项可以调整?What options can I adjust?
「简单移动平均」的设置:「数据(空格/逗号分隔)」默认 10 11 12 13 14 15;「窗口」默认 3。每次生成结果都按当前设置处理。Settings in the Simple Moving Average — "Data (space/comma separated)" default 10 11 12 13 14 15; "Window" default 3. The result always uses the current settings.
计算精度如何?How precise are the results?
「简单移动平均」使用 JavaScript 双精度浮点数(约 15–16 位有效数字);极大或极小的数值可能存在精度误差。The Simple Moving Average uses double-precision floating point (about 15–16 significant digits); very large or very small values may lose precision.
「简单移动平均」免费吗?需要注册吗?Is the Simple Moving Average free? Do I need an account?
「简单移动平均」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Simple Moving Average is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.