Scripting Tutorial 2 - Triple Exponential Moving AveragesThis script is for a triple exponential moving average indicator. It is meant as an educational script with well formatted styling, and references for specific functions.
Average
Scripting Tutorial 1 - Simple Moving AverageThis script is for a simple moving average indicator. It is meant as an educational script with well formatted styling, and references for specific functions.
Alpha-Decreasing Exponential Moving AverageThe alpha parameter of this moving average decreases with every new bar on the chart, so it will become more slowly and slowly in course of time. Can act like additional support/resistance line but works in an acceptable way on weekly and monthly timeframes only.
Smart Labelling - Candlestick ChartingThis 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: www.researchgate.net
This script is best suited for middle-to-higher time frames. Possible future developments: trend identification and factor calculation techniques.
Donate: PayPal (paypal.me)
EMA 21,13,8 - scalping3 EMAs will help identify and predict uptrends and downtrends
-If EMAs are all above the candles it a sign to sell & if the EMAs are below its a sign to buy
- If the Green-8 EMA crosses or touches red candle then flips under the other EMAs & candles then it's time to sell
-If the Green-8 EMA crosses or touches green candle then flips above the other EMAs & candles then it's time to buy
- how far is the EMAs from the candle it'll show how strong the trend. combine this strategy with the stochastic oscillator & RSI to get the maximum benefit
Leeloo Quadruple (4x) Simple Moving AverageOne-stop shop for all of the simple moving averages because editing separately is annoying.
AntiRekt RibbonThis script is a fork of the Madrid Ribbon, the only difference is that you can color your bars depending on the trend.
[RS]ZigZag Percent Reversal - Forecast - patterns - labels description:
• Zig Zag indicator plots points on the chart whenever prices reverse
by a percentage greater than a pre-chosen variable.
• Forecasts area based on zigzag statistics.
• Displays labels with detected patterns.
• Displays slope information rate of price, time diferentials and angle(experimental)
Ratio OCHL Averager - An Alternative to VWAPIntroduction
I had the idea to make this indicator thanks to @dpanday with the support of @Coppermine and @Reika. Vwap is a non parametric indicator based on volume used by lot of traders and institutions, its non parametric particularity makes it great because it don't need to go through parameter optimization. Today i present a similar indicator called Ratio OCHL Averager based on exponential averaging by using the ratio of open-close to high-low range by using monthly high/low.
The Indicator
The indicator can more recursive by checking the "recursive" option, this allow to use the indicator output instead of the open price for the calculation of the ratio of open-close to high-low range. The result is a more reactive estimation,
The indicator reactivity change based on the time frame you are in, using higher time frame result in a more reactive indicator, however it is way less reactive than the vwap, this is a personal choice since i wanted this indicator to be smooth even with high time frames, if you want to change that you use another resolution for H and L in line 5,6.
Conclusion
I presented an alternative to vwap based on the Ratio OCHL indicator. I hope you like it and thanks for reading !
Thanks to Coppermine and Reika for the support during the creation of the indicator
AVERAGE MULTI_SMAIndicator returns an average of 5 SMAs. an interesting point that I have noticed that the price has several times reacted on it.
Note 1: Do not just use this as a criterion for buying and selling, use as one more aid.
Note 2: It is possible to leave in the chart all the averages, if you feel it necessary.
------------------------------------//--------------------------------------------------
Indicador retorna uma média de 5 SMAs. um ponto interessante que tenho notado que o preço tem diversas vezes reagido nele.
Observação 1: Não use apenas isso como critério para compra e venda, use como mais um auxilio.
Observação 2: É possivel deixar no grafico todas as médias, caso você ache necessário.
Moving Average Heatmap Visualization7 different types of moving averages (5 different lengths of each) compared to a base moving average. Base moving average can be configured to be a slew of different types of moving averages (credit to @mortdiggiddy for the code) and have a custom length.
Red = base moving average is over other moving average (bearish)
Green = base moving average is under other moving average (bullish)
lengths for the different MAs are just fibonacci numbers due to lack of creativity.
First 5 moving averages are Simple moving average the next 5 are Exponential moving averages and after that it is weighted moving averages, volume weighted moving average (VWAP), Exponential volume weighted moving average (thanks again @mortdiggiddy ), hull moving averages and lastly zero lag moving averages.
The indicator might lag your chart out a bit so be ready for that.
Have fun!
Averages - PineCoders FAQ█ WARNING
The publication of our ConditionalAverages library has deprecated this publication.
█ ORIGINAL DESCRIPTION
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 ends up skewing your results with zero values.
This script calculates:
1. The running average of all up volumes,
2. The average of last x occurrences of up volume ,
3. The average up volume occurrences in last y bars.
Look first. Then leap.
Moving Average Trend IndicatorThis Indicator shows you the major moving averages, both in simple and exponential.