RedK Smooth And Lazy Moving Average (SALMA)Here's a quick and simple script that produces yet another Smooth and Lazy Moving Average - SALMA - that helps hide noise caused by extreme price fluctuations to enable better trend visualization and tracking
Concept:
===========
SALMA is based on a simple concept - we calculate a standard deviation channel of a user-selected width - then correct the price value so that it is restricted within the boundaries of the SD channel - effectively adjusting against high-volatility, sudden price moves - which acts as a pre-smoothing of the price values - then we calculate our moving average and apply extra smoothing as needed.
Since only "persistent" price moves will have an effect on the direction of this MA, it will be suitable to use as an additional trend guide with other indicators, and to consider only long positions when the price is above the SALMA, and short positions only when the price is below
Notes:
========
- for the time being, i'm using Weighted Moving Average (WMA) for the calculation of the base price MA and the SD channel - we can add other MA types as options in a future versions based on feedback
- will add alerts in a future update
- SALMA can be used with any timeframe. can also be set to a higher timeframe against a lower timeframe chart
i have also added couple of standard moving average lines (choose between SMA, EMA and WMA) of selectable lengths - to enable utilizing this in a Moving Average cross-over setup - or to simply monitor other common MA's that other traders are using.
here's how the settings look like when you add SALMA to your chart
Please feel free to play around with SALMA and share feedback :)