loxx

STD-Filtered, Regularized EMA/RMA [Loxx]

STD-Filtered, Regularized EMA/RMA calculates and visualizes a standard deviation (STD) filtered, regularized version of the Exponential Moving Average (EMA) or Regular Moving Average (RMA) on a trading chart.

█ Understanding the Regularized Moving Average

The Regularized Moving Average, as conceptualized by Chris Satchwell, offers a more responsive interpretation compared to traditional moving averages. By incorporating a smoothing mechanism using "Lambda", this approach reduces lag without compromising the data's integrity.

In the realm of technical analysis, many regard it as a preferred alternative to the standard Moving Average and Exponential Moving Average.

█ How Does It Stand Out from Other Moving Averages?

While analysts traditionally shorten an indicator's length or period to minimize lag, the Regularized Moving Average uses a unique approach. By embedding "Regularization" within its computation, this method introduces Lambda (often symbolized as λ-calculus). This mathematical factor tames the moving average's undue fluctuations, offering more stability through its Lambda adjustments.

Pro Tip: For those analyzing smaller intraday timeframes, consider ramping up the Lambda setting to 6.0 or even higher. When tweaking these settings, always remember to backtest and observe how it impacts signal accuracy and noise filtering.

█ Standard Deviation Filtering:

  • This filtering mechanism is designed to smoothen price data by eliminating minor fluctuations that might be considered "noise". Here's how the process works:
  • For every data point, the standard deviation of prices over a specified period is calculated.
  • This standard deviation is then multiplied by a user-defined value to determine a threshold. This threshold defines the magnitude of change required in the price for it to be considered significant.
  • For each price, if the absolute difference between its current and previous value is less than this threshold, the price is kept unchanged (considered insignificant and thus filtered). If the difference exceeds the threshold, the price is considered significant and remains as is.

By applying this filter, minor price variations within the threshold are disregarded, resulting in a smoother representation of the price data.

█ Moving Average Calculation:

The script provides an option to calculate either a regularized Exponential Moving Average (EMA) or a Regular Moving Average (RMA). Here's how these are approached:

  • If the EMA option is selected: A weighted formula is used where more recent prices have a higher influence on the average than older prices. This is achieved by applying a fraction that's inversely related to the chosen period. The outcome is an average that reacts more quickly to recent price changes.
  • If the RMA option is selected: The average is computed by giving equal weight to all prices within the chosen period.

Both these averages then undergo a regularization process. Regularization, in this context, refers to adjusting the moving average using a factor to make it potentially more sensitive or responsive to price changes.

This regularized moving average can offer a refined perspective on price trends by being more adaptive to recent changes, potentially highlighting turning points or trend continuations more effectively.

█ Extras
  • Signals
  • Alerts
  • Bar coloring

Public Telegram Group, t.me/algxtrading_public

VIP Membership Info: www.patreon.com/algxtrading/membership
보호된 스크립트입니다
이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.
면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?