Weighted
Quick Moving AverageThis moving average was originally developed by John McCormick in 2008 as NinjaTrader indicator. The purpose was to find a cheap replacement for JMA ( ).
Well, not impressive concerning the response.
Source code on request .
Self-Weighted Moving AverageThis type of moving average was originally developed by Alex Orekhov at his home. This WMA uses previous prices as weights for the new ones. At the moment, this is a highly experimental approach, so don't use it in real trading.
The weighting scheme is presented on the chart.
Jurik JMA/DWMA MACDAn oscillator form of the crossover system that was recommended by Mark Jurik. The oscillator is based on the Jurik Moving Average (JMA) and Double Weighted Moving Average (DWMA) convergence/divergence. I use the best original JMA' clone on TradingView that has the almost identical behaviour as the original one.
I made it more pretty and added alerts for the peaks (blue circles).
As Mr. Jurik noticed:
"Of all the different combinations of moving average filters to use for a MACD oscillator, we prefer using the JMA - DWMA combination."
Reference: www.jurikres.com
Jurik JMA/DWMA CrossoverThis is a crossover system that was recommended by Mark Jurik. The system consists of Jurik Moving Average (JMA) and Double Weighted Moving Average (DWMA). In case of Jurik Moving Average I use the best original JMA' clone on TradingView that has the almost identical behaviour as the original one.
As Mr. Jurik noticed:
" JMA is ideal for the fast moving average line because it is quick to respond to reversals, is smooth and can be set to have no overshoot. DWMA (double weighted moving average) is ideal for the slower line as is tends to delay reversing direction until JMA crosses it."
Reference: www.jurikres.com
Double Weighted Moving AverageMr. Jurik uses this weighted moving average to create a crossover trading system with his JMA.
To learn more see www.jurikres.com .
Good luck!
Inverse Distance Weighted Moving AverageThe weights of this moving average are the sums of distances between points.
Good luck!
Distance Weighted Moving AverageAdopted to Pine from systemtradersuccess.com
They wrote that this average is designed to be a robust version of a moving average to reduce the impact of outliers, but I dont see a significant difference comparing it with SMA. So, I published it for the educational purposes.
To learn more about the robust filters and averages google Hampel Filter, Interquartile Range Filter and Recursive Median Filter (or any other filter that is based on quartiles).
Good luck!
Moving Average Smoothness BenchmarkHey there!
This tool will help you to choose a moving average/filter that has the lowest lag throughout the whole history for the specified period.
What does it do?
It calculates the mean absolute errors for each moving average or filter and shows histogram with results. The lower error the lower lag of the moving average.
So, the best average will be at the end of the list of labels on the chart.
Settings
The main setting is a period for all moving averages.
Additionally, it allows to customize some multi-parametric moving average such as JMA, ALMA, McGinley Dynamic, Tillson's T3, REMA, Adaptive Laguerre Filter, Hampel Filter, Recursive Median Filter and Middle-High-Low MA.
NOTE : The results may vary on the different tickers and timeframes. This tool measures the performances on the current ticker and on the current timeframe.
Supported averages/filters (use short titles to match movings on the chart)
SMA, Simple MA
EMA, Exponential MA
WMA, Weighted (Linear) MA
RMA, Running MA (by J. Welles Wilder)
VWMA, Volume Weighted MA (by Buff P. Dormeier)
AHMA, Ahrens MA (by Richard D. Ahrens)
ALMA, Arnaud Legoux MA (by Arnaud Legoux and Dimitris Kouzis-Loukas)
ALF, Adaptive Laguerre Filter (by John F. Ehlers)
ARSI, Adaptive RSI
DEMA, Double Exponential MA (by Patrick G. Mulloy)
EDCF, Ehlers Distance Coefficient Filter (by John F. Ehlers)
EVWMA, Elastic Volume Weighted MA (by Christian P. Fries)
FRAMA, Fractal Adaptive MA (by John F. Ehlers)
HFSMA, Hampel Filter on Simple Moving Average
HFEMA, Hampel Filter on Exponential Moving Average
HMA, Hull MA (by Alan Hull)
HWMA, Henderson Weighted MA (by Robert Henderson)
IIRF, Infinite Impulse Response Filter (by John F. Ehlers)
JMA1, Jurik MA with power of 1 (by Mark Jurik)
JMA2, Jurik MA with power of 2 (by Mark Jurik)
JMA3, Jurik MA with power of 3 (by Mark Jurik)
JMA4, Jurik MA with power of 4 (by Mark Jurik)
LF, Laguerre Filter (by John F. Ehlers)
LMA, Leo MA (by ProRealCode' user Leo)
LSMA, Least Squares MA (Moving Linear Regression)
MD, McGinley Dynamic (by John R. McGinley)
MHLMA, Middle-High-Low MA (by Vitali Apirine)
REMA, Regularized Exponential MA (by Chris Satchwell)
RMF, Recursive Median Filter (by John F. Ehlers)
RMTA, Recursive Moving Trend Average (by Dennis Meyers)
SHMMA, Sharp Modified MA (by Joe Sharp)
SWMA, Sine Weighted MA
TEMA, Triple Exponential MA (by Patrick G. Mulloy)
TMA, Triangular MA
T3, (by Tim Tillson)
VIDYA, Variable Index Dynamic Average (by Tushar S. Chande)
ZLEMA, Zero Lag Exponential MA (by John F. Ehlers and Ric Way)
BF2, Butterworth Filter with 2 poles
BF3, Butterworth Filter with 3 poles
SSF2, Super Smoother Filter with 2 poles (by John F. Ehlers)
SSF3, Super Smoother Filter with 3 poles (by John F. Ehlers)
GF1, Gaussian Filter with 1 pole
GF2, Gaussian Filter with 2 poles
GF3, Gaussian Filter with 3 poles
GF4, Gaussian Filter with 4 poles
Good luck and Merry Christmas!
Fibonacci Weighted Moving AverageHello traders and developers!
The weights of this WMA are Fibonacci numbers. That's all)
Good luck and happy trading!
VW-MACDHello traders!
I am reading "Investing with Volume Analysis: Identify, Follow, and Profit from Trends" by Buff Pelz Dormeier so I am going to implement all indicators that are considered there.
VW-MACD was developed by Buff Pelz Dormeier in 2000 and is based on the difference between a short-term volume-weighted moving average and a long-term volume-weighted moving average. The signal line is traditionally left as an exponential moving average.
Like and follow for more cool indicators!
Happy Trading!
Coppock CurveThis indicator was originally developed by Edwin "Sedge" Coppock (Barron's Magazine, October 1962).
Specially for @AlexMayorov :
1) Buy when indicator crosses the zero line upside
2) Sell when indicator crosses the zero line downside
Henderson Weighted Moving AverageHenderson Weighted Moving Average script.
This indicator was originally developed by Robert Henderson in 1916 (Transaction of Actuarial Society of America, 17, pp. 43-48: Note on Graduation by Adjusted Average).
Spencer 21-Point Moving AverageSpencer 21-Point Moving Average script.
This indicator was originally developed by John Spencer in 1904 (J.I.A. 38, 334: On the graduation of the rates of sickness and mortality presented by the experience of the Manchester Unity of Oddfellows during the period 1893 - 1897).
Spencer 15-Point Moving AverageSpencer 15-Point Moving Average script.
This indicator was originally developed by John Spencer in 1904 (J.I.A. 38, 334: On the graduation of the rates of sickness and mortality presented by the experience of the Manchester Unity of Oddfellows during the period 1893 - 1897).
Mtu Macdalertcondition added to script
so u ll be able to put an alert when macd goes down or up to get alert from price movement up or down
when you are on indicator
right click via mouse
add alert
select mtu macdleader
then
select macd go up for buy signal
select macd go down for sell signal
use 4 hour or daily time frame for accurate results, also works better on down trend or uptrend not trade range because macd is a trend oscilator
lower time frame works too but u ll get to much alert and noise
no need if u rent a daytime trader
Hamming Windowed Volume Weighted Moving AverageApplying a window to the filter weights provides sometimes extra control over the characteristics of the filter.In this script an hamming window is applied to the volume before being used as a weight.In general this process smooth the frequency response of a filter.
Lets compare the classic vwma with hamming windowed vwma
Something i noticed is that windowed filters depending on their period ( high ones in general ) tend to make less bad crosses with the price ( at least with the hamming window )
Here are some data regarding number of crosses with period 50 with the hamming vwma in orange and the classic vwma in purple
Feel free to use the hamming window when using weighted filter.
Three Moving AveragesThis is simply three moving averages in the same indicator, with the possibility to change the source, length, offset and type on every moving average (Simple, Exponential, Weighted, Volume-weighted, Triple EMA or a moving average that uses RSI ).
If you want to disable any of the moving averages, then do that under the "Style"-tab by unchecking the box for that moving average.
Composite Weighted Indicator IndexThe CWII uses multiple indicators and combines them in a weighted average. This is under development and will have more indicators included in the formula over time.
A simple signaling strategy using Bollinger Bands can be seen which will be improved upon.
BTC World Price: Multi-Exchange VWAPBTC World Price: Multi-Exchange VWAP
__________________________
WHAT IT DOES
What you see above are not Bitmex candles, but this indicator's.
Bitcoin is listed on multiple exchanges. Many people have called for a single global index that would quote BTC price and volume across all exchanges: this script is such a virtual aggregate (formerly: Multi-Listed , Volume-Weighted Average Price ).
It will, independently for each tick, for any time-frame:
- Quote the price (O, H, L, C) and volume from Bitfinex (USD), Binance (USDT), bitFlyer (Yen), Bithumb (S. Korean Won), Coinbase (USD), Kraken (EUR) and even Bitmex (USD Contracts).
- Weight each price with the corresponding volume of the exchange.
- Quote the FOREX conversion rate in USD for each currency (USDJPY etc.)
- Finally return global average price (candles) in USD.
- Additionally provide (H+L)/2 etc. values.
No more "on Coinbase this" or "on Bitstamp that", you've now got a global overview!
See CoinMarketCap: Markets for reference. I've included alternative exchanges in the comments at the top of the script.
__________________________
HOW TO USE IT
Basically just add it to your chart and use the indicator's candles instead of the chart's main ticker.
By default, BTC World Price will display candles only, but you can also display OHLC & averages (in whichever style you want).
You may indeed want to hide the main symbol (top-left corner, click the 'eye' button next to its name), or switch it to something else than candles/bars (e.g. line).
Make sure "Scale Price Chart Only" is disabled if you want to use the auto-zoom feature. (if other indicators are messing your zoom, you can try to select "Line with Breaks" or "Area with Breaks" to allow these to overflow from the main window)
By clicking the triangle next to the indicator's name, you can select "Visual Order" (e.g "Bring to Front").
You can select regular Candles or Heikin-Ashi in Options.
In the Format > Inputs tab, you can select which exchanges to quote. By default, all of them are enabled.
The script also exposes the following typical values to the backend, which you can use as Price Source for other indicators: (e.g. MA, RSI, in their "Format > Input" tab)
Open Price (grey)
High Price (green)
Low Price (red)
Close Price (white)
(H + L)/2 (light blue)
(H + L + C)/3 (blue)
(O + H + L + C)/4 (purple)
They are all hidden by default (by means of maximum transparency).
In the Format > Style tab, you can change their color, transparency and style (line, area, etc), as well as uncheck Candles and Wicks to hide these.
If you are using "Indicator Last Value" and want to clear the clutter from all these values, simply uncheck them in Style. They will still be available as Price Source for other indicators.
You can also choose to scale it to the left, right (default) or "screen" (no scaling).
Once you're satisfied with your Style, you may click "Default"> "Save as default" in the botton-left. Everytime you load the indicator, it will look the same. ("Reset Settings" will reset to the script's defaults)
__________________________
Please leave feedback below in comments or pm me directly for bugs and suggestions.
Elastic Volume Weighted Moving AverageElastic Volume Weighted Moving Average indicator script. This indicator was originally developed by Christian P. Fries (Technical Analysis of Stocks & Commodities, June 2001).
Sine Weighted Moving AverageSine Weighted Moving Average indicator.
The result is very similar to the Triangular Moving Average.
Volume Weighted Average Range Bands [DW]This is an experimental study designed to identify the underlying trend bias and volatility of an instrument over any custom interval TradingView supports.
First, reset points are established at points where the opening price of the interval changes.
Next, Volume Weighted Average Price (VWAP) is calculated. It is the cumulative sum of typical price times volume divided by the cumulative volume. The cumulation starts over upon each reset point.
After that, Volume Weighted Average Range (VWAR) is calculated. The formula structure is the same as VWAP, except using range rather than typical price.
Lastly, the bands are calculated by multiplying the VWAR by the specified multiplier (approximate Golden Ratio by default) and by 1 through 5, then adding to and subtracting from the VWAP.
Custom Bar Colors are included.