Gesundheit

Ultimate Smoothed MA

When using moving averages there is usually a trade-off between lag and smoothness. Multiple formulas have been devised to reduce lag while maintaining smoothness, and each one has its trade-offs.

This script, tweaked from Chris Moody's extremely popular "Ultimate Moving Average-Multi-TimeFrame-7 MA types" is another attempt.

  • Added least-squares moving average (LSMA)
  • Pick something responsive as the first MA, then smooth out the kinks with a second MA on the first. Find the perfect balance between both for your needs.
  • Play with "Minimum Slope Magnitude" and "Lookback length" for additional control over sensitivity -- only call trend reversals when rate of change is strong enough. Intermediate or "flattish" regions are grayed out. These options are available for both primary and secondary MA.

Also displayed in chart image is the companion script, "Ultimate Smoothed MA Turning Points" to give more definitive visuals when tuning. That script can also be readily adapted for alertcondition.
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?