OPEN-SOURCE SCRIPT

Range Weighted Moving Average (RWMA)

Updated
The Range Weighted Moving Average (RWMA) :

The Range Weighted Moving Average (RWMA) is a variation of the traditional moving average that incorporates the price range within each period as a weighting factor.

It assigns higher weights to periods with larger price ranges, aiming to provide a moving average that responds more dynamically to changes in price range and volatility.


Compared to a normal Simple Moving Average (SMA) or Exponential Moving Average (EMA), the RWMA offers several potential advantages:


snapshot
Why do i think its better than Normal SMA , EMA ?
  • Increased Sensitivity: The RWMA reacts faster to changes in price compared to traditional moving averages. By incorporating the price range, which represents the volatility of each period, the RWMA gives more importance to periods with larger price ranges. This increased sensitivity can help traders identify price movements and trends more quickly.

  • Adaptive to Volatility: The RWMA adjusts dynamically to changes in market volatility. During periods of high volatility, the RWMA places more weight on those periods, capturing and reflecting the increased price movements. This adaptability allows the RWMA to be responsive to different market conditions and better capture significant price swings.

  • Filtering Potential: The RWMA can be utilized as a filtering tool in trading strategies. By using the RWMA as a trend indicator or filter, traders can focus on trades that align with the direction indicated by the RWMA. This filtering mechanism can help eliminate trades that go against the prevailing momentum, potentially improving the overall quality of trade entries.



Release Notes
Minor Chart change
Moving AveragesTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer