The need to calculate averages (arithmetic mean) comes up here and there in scripts. When you want the average of a value only when a given condition has occurred, you will often not be able to use the standard sma function in Pine because it will average all values in the series. Even if you take care to use your condition to set non-conforming values to zero,...
This script plots a higher timeframe EMA to your chart.
You can specify the timeframe and the length of the EMA in the settings.
This chart demonstrates the 5-minute 50EMA (black) combined with the 1-hour 50EMA (colored) on the 1 minute timeframe.
The weights of this moving average are powers of the weights of the standard weighted moving average WMA .
When parameter Power = 0, you will get SMA .
When parameter Power = 1, you will get WMA .
by this script you can see the average level of macd, macd-asprey, rsi, stochastic, cci, momentum, obv, DI, volume weighted macd, cmf indicators within a period. It also calculates and creates the same graph for higher time frame, so you can see average levels for current and higher time frame. you can also check it for divergence/convergence. You can use it as...
7, 30, 50, 100, 200 simple moving averages, bundled in one indicator (for users who are using the free TradingView service and can only load limited number of indicators at any given time).
You can turn each moving average on or off at will and change the colors.
This script is for three moving averages with as many features as I can possibly fit into a single moving average.
- Three moving averages (MA1, MA2, MA3).
- Standard MA inputs.
- MA type.
- MA period.
- MA price.
- MA resolution (time frame).
- Visibility toggle.
- MA Candle Type
- Fancy MA inputs.
- Toggle to show only candles included in the MA...
This indicator, combines the traditional FOREX moving averages (20EMA, 50ma, 200ma) into a single indicator with
an adaptive moving average (AMA) taken from a user defined timeframe to show trend direction (by default, it plots
the daily 10/2/34 KAMA overlayed on any timeframe chart.
An AMA moves slowly when markets are sideways but swiftly during periods of...
Ignore the other one (it contains some errors).
On this FRAMA you can play with length, SC and FC.
Just read on below links to understand more about this super useful moving average:
This is a full-fledged implementation of a system presented in an unique research paper 'Profitability of Candlestick Charting Patterns in the Stock Exchange of Thailand' (2017) on candlestick charting, candlestick patterns, trend identification methods, and testing.
You can easily find this paper in the Web. For example, visit:...
Inspired by @LazyBear's/@timwest's script:
Usage: support and resistance levels based on averaging price around earnings and quarterly opens.
What it is plotting:
1. A horizontal level whenever earnings occur. If actual earnings is higher than...