loxx

Corrected QWMA (Quadratic Weighted Moving Average) [Loxx]

Corrected QWMA (Quadratic Weighted Moving Average) is the "corrected" version of QWMA. There are other attempts on TradingView to create the QWMA, this is the correct version with weighting applied to the lookback period.

"Correcting" is a process where the value of the average is checked for the significance (how big is it) of change. For that, a standard deviation of a change is used and if the change is "not significant enough", then the change is ignored. Because of this, the average starts to have that "step like" value, but in any case, it should not be mixed with the step average type. The corrected average is different.

The correction period can be used to have different types of calculations:
  • If the "correction" period is set to < 0, then there is no correction made (in that case the value is exactly the same as original qwma)
  • If the "correction" period is set to 0, then the "correction" period is the same as qma period
  • If it is set to any other value, that period is used

Color combinations:
  • Middle: color (and alerts) on slope change
  • Levels: (and alerts) on outer levels cross
  • QWMA: (and alerts) on middle level cross

Included:
  • Bar coloring
  • Signals
  • Alerts

Public Telegram Group, t.me/algxtrading_public

VIP Membership Info: www.patreon.com/algxtrading/membership
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?