OPEN-SOURCE SCRIPT

Triangular Moving Average

The TRIMA is simply the SMA of the SMA -- a double-smoothed simple moving average . The end effect of the double smoothing is that greater weight is placed on values near the middle of the lookback period. It therefore reacts relatively slowly to price changes compared to most moving averages .

But why would I want more lag?
One potential use of this moving average that I've found is that it can allow price to run for a bit after crossing the TRIMA before catching up and creating an opposing signal. It therefore creates the chance for the price to "run its course" so to speak, which can make whipsaw signals less common.
doublelagMoving AveragessmoothedTriangleweighting

开源脚本

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

想在图表上使用此脚本?


更多:

免责声明