RedK Volume-Weighted Directional Efficiency Index (DXF)RedK Volume-Weighted Directional Efficiency Index (DXF) is a momentum indicator - that builds on Kaufman's Efficiency Ratio (ER) concept.
DXF utilizes a restricted +100/-100 oscillator to represent the "quality" of a trend, and does a good job in detecting the possibility of an upcoming trend change (in both direction and quality), improving our ability to make decisions on trade entries and exits.
Here's a quick background on Kaufman's Efficiency Ratio (ER)
------------------------------------------------------------------------------- Copied from internet sources -----------------------------
Developed by Perry Kaufman and introduced in his book “New Trading Systems and Methods”, the Efficiency Ratio reflects relative market speed to volatility. There are cases, when it is used as a filter, which helps a trader to avoid ”choppy” markets or trading ranges and to identify smoother trends.
ER is the result of dividing the net change in price movement during n-periods by the sum of all bar-to-bar price changes during the same n-periods. In case the market is trending smoother, then the ratio will be higher. In case the ratio shows readings in proximity to zero, this implies that market movement is inefficient and ”choppy”.
If the Efficiency Ratio shows a reading of +100, this means that the trading instrument is in a bull trend and trending with perfect efficiency.
If the Efficiency Ratio shows a reading of -100, this means that the trading instrument is in a bear trend and trending with perfect efficiency.
It is impossible for any instrument to have a perfect Efficiency ratio, because any movement against the major trend during the examined period of time would cause the ratio to drop.
If the Efficiency Ratio shows a reading above +30 (common setting for the "Significant Level"), this is indicative of a quality bull trend. If the ratio shows a reading below -30, this is indicative of a quality bear trend.
------------------------------------------------------------------------------- End of Copy -------------------------------------------------------------------------------------------------------
Kaufman also used the ER as basis for his famous Kaufman Adaptive Moving Average (KAMA).
Read more on ER & Kama here
How is DXF different from other ER-based indicators?
------------------------------------------------------------------
- Let's get the easy part out of the way: DXF has a "volume-weighting" option ✔
This option is OFF by default (to avoid errors with instruments with no volume data)
- once this option is applied, it provides the benefit of combining the volume effect into the calculation - those who appreciate the effect of volume on price action will hopefully find this option valuable
- The calculation of ER and how it can be "best utilized":
Let's examine the ER concept a bit closer: as a (math) concept, the (original) Efficiency Ratio (ER) takes the positive change of the price of an instrument during a certain period, and divide it by the sum of (absolute) price moves that were observed during that same period.
So, in the trader's language, we will be saying "out of a total of $20 moves (up and down) that MSFT did in the past 10 days, MSFT only made a net change of $5 up during that period" - so the "10-day ER" for MSFT in that case is 5/20 = 25% -- then we continue to observe that ongoing "10-day ER" and if it increases, we can expect that MSFT is going to establish a strong move (trend) up --- right?
the magic word here is to "observe the ongoing ER" - many of the ER based indicators just use the ER as calculated by Kaufman's original method. IMHO, these are just "point-in-time readings" - if we hope to get real insights from the ER, we need to take an average of that reading - for our "time window" we're interested in - and only then we can identify trends and patterns in the ER value as it changes during that windowss- DXF does that - and that allows a trader to say "the (weighted) 5-day average of the 10-day ER for MSFT is increasing, and that why i expect an up-trend" -- makes sense ? both the "Lookback" used to calculate the ER, and the Length of observed "window" for the Average ER are adjustable in DXF settings
Other Uses and Settings :
---------------------------------
- As a momentum indicator, DXF can predict an upcoming change of trend - cause that will reflect on the average ER value. There are few examples in the chart where the price move and ER trend *do not agree* - The trader can see these signs and take decisions accordingly
- DXF can help reveal best entries and exits: assume we are long-term bullish on MSFT, and we want to "buy the dip" - DXF can help reveal the time where price is recovering from extreme weakness - and that would be the ideal buy opportunities for us - exampled marked on the chart
- the Stepping & Smoothing options enable better visualization of the DXF plot. the "raw" DXF is still shown as a silver line.
- The "Significant Levels" option is available and is set to -20/+20 by default .. also adjustable in indicator settings.
- Please use DXF in combination with other trend and volume indicators, and with thorough chart / price action analysis and not in isolation to ensure you get proper signal confirmation for trades. In the chart above, you can see DXF combined with a moving average that can act as a filter and to confirm the price moves.
---------------------------------------------------
As usual, feedback & comments are welcome - if you find this work useful in your trading arsenal, please share a comment - i would be more than happy to learn about that. Good luck!
Volumeweighted
VolumatrixVolumatrix is an enhanced volume weighted price indicator with advanced features
Created by CryptoJew & CryptoTiger on 04-06-2021
👋 Definition
Volumatrix turns current and historical price data into enhanced volume weighted price plots that allow you to visually grasp the momentum of any given market.
It’s easy to use and provides an accurate reading about an ongoing trend. This indicator is optimized to catch trend movements as soon as possible and to maximize certainty.
🙌 Overview
The Volumatrix indicator is based on an enhanced VWAP calculation, which serves as a present and upcoming price movement indication.
The further away the VWAP Wave is from the Zero Line, the more powerful the momentum is in that direction.
Conversely, the closer the VWAP Wave is to the Zero Line, the less momentum it has.
⭐️ Features
Volumatrix consists of the following features:
VWAP Waves: Visualizes the market's momentum in an easy-to-understand way by drawing colored waves.
VWAP Average: Acts as a calibration line for current wave movements.
Bearish & Bullish Dots: Indicates and confirms immediate trend changes by printing dual-colored dots.
E MA Backgrounds: Shows the general direction of the market, based on the exponential moving average (EMA).
In-depth alerts: Help traders discover potential trades with less time.
☝️ Basics
The Volume Weighted Average Price plays an essential role, as the Volumatrix indicator uses an enhanced VWAP calculation.
The volume weighted average price (VWAP) is a great technical trading indicator used by traders as it accounts for both price and volume.
VWAP signals the ratio of the cumulative share price to the cumulative volume traded over a given time.
It is essential because it provides traders with advanced insight into the trend and value of an asset.
Unlike moving averages, VWAP assigns more weight to price points with high volume.
This allows one to understand price points of interest, gauge relative strength, and identify prime entries/exits.
VWAP works with any interval: seconds, minutes, hours, days, weeks, months, years, etc...
However, keep in mind that VWAP can also experience some lag, much like a moving average.
Lag is inherent in the indicator because it's a calculation of an average using past data.
🧮 Calculation
Volume Weighted Average Price (VWAP) is constructed with two parameters, namely, price and volume, in 5 steps:
1. Calculate the Typical Price for the period.
((High + Low + Close)/3)
2. Multiply the Typical Price by the period Volume
(Typical Price x Volume)
3. Create a Cumulative Total of Typical Price
Cumulative(Typical Price x Volume)
4. Create a Cumulative Total of Volume
Cumulative(Volume)
5. Divide the Cumulative Totals
VWAP = Cumulative(Typical Price x Volume) / Cumulative(Volume)
🔍 Trend Identification - What to look for
VWAP is an excellent way to identify the trend of a market.
When using Volumatrix, you are looking for multiple confirmations that take place simultaneously.
The more confirmations that occur at the same time; the more certain the indicator will be.
You can identify the direction of a market by looking out for a few critical confirming signals.
📈 Bullish Trend Confirmations:
VWAP Wave overcrossing Zero Line :
When the VWAP Wave is crossing over the Zero Line, it indicates an immediate bullish trend.
This is one of the most certain moves that one can detect in Volumatrix.
This means that the price is about to change direction.
This is the case for any timeframe: seconds, minutes, hours, days, week, month, year, etc.
VWAP Wave color turning bullish:
When a bullish trend is about to happen, the VWAP Wave will change its color to yellow and finally to green.
That way, one can preemptively detect an upcoming bullish move.
In general, the VWAP Wave can change to 3 different colors.
Green means bullish.
Bullish Dots:
From time to time, bullish green dots will appear.
When combined with other indications, the Bullish Dots can be handy in confirming an upcoming or present uptrend.
That said, one should never solely rely on dots when deciding whether the trend is bullish or not.
Instead, if a trader sees a green dot, it should be taken as a hint to look for further bullish indications.
EMA Background:
One can identify the general trend of a market by looking at the background color of the indicator.
When the background is green, one can assume that a bullish trend is present.
The background color changes based on the exponential moving average (EMA).
By default, the 200 EMA is set. Change this value based on your timeframe preferences.
VWAP Average:
When the white VWAP Average line crosses above the Zero Line, it acts as an additional trend confirmation when combined with the VWAP waves.
As the VWAP average does not weigh in the short-term movements too heavily, it is less affected by immediate volatility.
Therefore, traders usually use the VWAP Average as a calibration tool to interpret the VWAP Waves more precisely.
📉 Bearish Trend Confirmations:
VWAP Wave under crossing Zero Line:
When the VWAP Wave is crossing under the Zero Line, it indicates an immediate bearish trend.
This is one of the most certain moves that one can detect in Volumatrix. This means that the price is about to change direction.
This is the case for any timeframe: seconds, minutes, hours, days, week, month, year, etc.
VWAP Wave turning bearish:
When a bearish trend is about to happen, the VWAP Wave will change its color to yellow and then finally to red.
That way, one can preemptively detect an upcoming bearish move. In general, the VWAP Wave can change to 3 different colors.
Red means bearish.
Bearish Dots:
From time to time, bearish red dots will appear.
When combined with other indications, the bearish dots can be handy in confirming an upcoming or present downtrend.
That said, one should never solely rely on dots when deciding whether the trend is bearish or not.
Instead, if a trader sees a red dot, it should be taken as a hint to look for further bearish indications.
EMA Background:
One can identify the general trend of a market by looking at the background color of the indicator.
When the background is red, one can assume that a bearish trend is present.
The background color changes based on the exponential moving average (EMA).
By default, the 200 EMA is set. Change this value based on your timeframe preferences.
VWAP Average:
When the white VWAP Average line crosses below the Zero Line, it acts as an additional trend confirmation if combined with the VWAP waves.
As the VWAP average does not weigh in the short-term movements too heavily, it is less affected by immediate volatility.
Therefore, traders usually use the VWAP Average as a calibration tool to interpret the VWAP Waves more precisely.
💤 Sideways Trend Confirmations:
VWAP Average:
When the VWAP Average is parallel and hovering around the Zero Line, either above or below it, that will indicate a sideways trend.
🚦 Usage - How and where to use it
The Volumatrix indicator is a universal indicator that works with any market capable of calculating a VWAP.
It’s currently being used in the following markets: cryptocurrency market, stock market, gold market and oil (just to name a few).
❗️ Requirements:
This indicator does not require any additional indicators as traders usually do in price action trading.
Basically, one just needs to follow the crossings, dots, and colors to get maximum certainty.
As a bonus, we recommend traders take advantage of TradingView’s multi-chart to catch more simultaneous confirmations.
🗣 Example Strategy: The 4 Timeframe Strategy
One can use the Volumatrix indicator along with the 4 timeframe strategy.
For example, open the 4 hour, 1 hour, 30 minute, and 5minute intervals simultaneously from left to right in a multi-chart layout.
Then lookout for the following conditions to meet:
OPEN LONG TRADE IF: On the 1-hour interval + 30-minute interval, Bullish Dots appear simultaneously
AND: On the 4-hour interval, the VWAP Wave is above the Zero Line
AND: On the 5-minute interval VWAP Wave is about to cross over the Zero Line or has already minimally crossed up.
OPEN SHORT TRADE IF: On the 1-hour interval + 30-minute interval, Bearish Dots appear simultaneously
AND: On the 4-hour interval VWAP Wave is below the Zero Line
AND: On the 5-minute interval VWAP Wave is about to cross under the Zero Line or has already minimally crossed down.
💡 Tips
Use TradingView’s 4-multi-chart layout to catch potential trades faster.
Use the indicator on a computer for optimal performance.
Set your computer screen to higher resolutions to get a better overview.
🔔 Alerts
With Volumatrix, you can use in-depth alerts like:
Bullish Dot
When a green dot at the bottom of the indicator appears
Bearish Dot
When a red dot at the bottom of the indicator appears
VWAP Wave Crossing Over Zero Line
When the VWAP Wave crosses over the Zero Line
VWAP Wave Crossing Under Zero Line
When the VWAP Wave crosses under the Zero Line
VWAP Wave Crossing Over Zero Line + Bullish Dot
When the VWAP Wave crosses over the Zero Line and a Bullish Dot appears
VWAP Wave Crossing Under Zero Line + Bearish Dot
When the VWAP Wave crosses over the Zero Line and a Bearish Dot appears
VWAP Average Crossing Over Zero Line
When the VWAP Average crosses over the Zero Line
VWAP Average Crossing Under Zero Line
When the VWAP Average crosses under the Zero Line
🔧 Settings
🔢 Inputs
These settings will change the behavior and outcome of the indicator.
EMA
Determines the number of previous candles that should be taken into calculation for the EMA background.
The value of the EMA can be changed to one's preferred value in accordance with the chosen interval.
The default value is 200.
🎨 Style
These settings will change the appearance of the indicator
VWAP Waves
Determines the color, opacity, thickness, and shape for the VWAP Waves.
The default shape is area.
The default colors are red, yellow & green.
VWAP Average
Determines the color, opacity, thickness, and shape for the VWAP Average.
The default shape is line.
The default color is white.
Zero Line
Determines the color, opacity, thickness, and shape for the Zero Line.
The default shape is a line.
The default color is white.
EMA Background
Determines the color & opacity for the Dynamic Background.
The default colors are black, red & green.
Bullish Dot
Determines the color, shape, opacity & location for the bullish dot.
The default shape is a circle.
The default color is green.
Bearish Dot
Determines the color, shape, opacity & location for the bearish dot.
The default shape is a circle.
The default color is red.
✅ Summary
Volumatrix is a unique indicator because, unlike many other VWAP tools, it's suited for simple as well as advanced analysis.
It’s a solid tool for immediately identifying the underlying trend of an asset.
Of course, this is true for any indicator based on the VWAP, which calculates an average using past data.
Still, Volumatrix is superior in this realm as it enhances the VWAP in its calculation and its visualization, while it comes with many advanced features.
❓ Questions
If you have any questions, just ask them here or in the Volumatrix community.
📚 Terminology
Bearish Dots: Red dots appearing at the bottom of the Volumatrix indicator.
Bullish Dots: Green dots appearing at the bottom of the Volumatrix indicator.
EMA: Exponential Moving Average - Tracks the price of an asset over time while giving more importance to recent price data.
Volume: A measure of how much of a given asset has traded in a period.
VWAP: Volume Weighted Average Price - The ratio of the value traded to total volume traded over time.
VWAP Average: Represents the average of the VWAP waves in the Volumatrix indicator.
VWAP Wave: The colorful waves representing the enhanced VWAP in the Volumatrix indicator.
Zero Line: It’s the indicator’s baseline and determines the beginning and end of a certain trend.
🙏 Acknowledgments
First, we would like to thank TradingView & PineCoders for this fantastic platform and technology.
We are also very grateful to our loyal trading community for constantly supporting our efforts.
We are looking forward to continuously improving this indicator for you.
Weighted Harrell-Davis Quantile Estimator with AbsoluteDeviation
QUANTILE ESTIMATORS
Weighted Harrell-Davis Quantile Estimator with Absolute Deviation Fences.
DISCLAIMER:
The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets.
The following indicator was made for NON LUCRATIVE ACTIVITIES and must remain as is, following TradingView's regulations. Use of indicator and their code are published for work and knowledge sharing. All access granted over it, their use, copy or re-use should mention authorship(s) and origin(s).
WARNING NOTICE!
THE INCLUDED FUNCTION MUST BE CONSIDERED FOR TESTING. The models included in the indicator have been taken from open sources on the web and some of them has been modified by the author, problems could occur at diverse data sceneries, compiler version, or any other externality.
Purpose:
Weighted Quantiles or <> are quite difficult to find on must systems, also it's non-weighted approach are rarely used to estimate the location parameter of price distribution WICH IS NOT NORMAL, all this in favour of it's non-robust counterpart, the Arithmetic rolling Mean or <> and it's weighted variants like the WMA, VWAP, etc.
Also, a big drawback from this is that must statistics derived from Normal-Distribution parameter location (the Mean) definitely will not fit for an efficient, nor robust estimation for price distributions, so their moments like the standard deviation, kurtosis, skewness, etc. will not be the better tools to build derived algorithms or technical indicators among price/volume.
In an effort searching better statistical tools for price distributions, I found the excellent work of Andrey Akinshin that took me to port some of their Math research contributions for the compute benchmarking field , and bring it here at the TradingView ecosystem to take a shot at the price distribution crazy fields. For a better detail of what the weighted Harrell-Davis Quantile Estimator can do, who better than drink directly from the source at References:
References:
Weighted Quantile Estimators.
DoubleMAD outlier detector based on the Harrell-Davis quantile estimator.
Unbiased median absolute deviation based on the Harrell-Davis quantile estimator.
Quantile confidence intervals for weighted samples.
Licensing:
This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International Copyright (c) 2021 (CC BY-NC-SA 4.0)
Copyright's & Mentions:
The Gamma Functions & Beta Probability Density Functions C# implementations by the Math.NET Numerics, part of the Math.NET Project.
The Regularized Incomplete (Left) Beta Function C# implementation by the SAMTools, htslib project.
The Weighted Harrell-Davis Quantile estimator ; C# & R implementations by Andrey Akinshin.
External PineScript code, methods, support & consultancy by @PineCoders staff with special mention for:
+ "ma sorter ('sort by array' example)- JD" by @Duyck.
+ Porting, mods, compilation and debugging for this script by @XeL_Arjona for the TradingView's @PineCoders community.
VWMACDV2 w/Intraday Intensity Index Histogram & VBCB Hello traders! In this script i tried to combine Kıvanç Özbilgiç's Volume Based Coloured Bars, Volume Weighted Macd V2 and Intraday Intensity Index developed by Dave Bostian and added to Tradingview by Kıvanç Özbilgiç. Let's see what we got here;
VBCB, Paints candlestick bars according to the volume of that bar. Period is 30 by default. If you're trading stocks, 21 should be better.
Volume Weighted Macd V2, "Here in this version; Exponential Moving Averages used and Weighted by Volume instead of using only vwma (Volume Weighted Moving Averages)." Says, Kıvanç Özbilgiç.
III, "A technical indicator that approximates the volume of trading for a specified security in a given day. It is designed to help track the activity of institutional block traders and is calculated by subtracting the day's high and low from double the closing price, divided by the volume and multiplied by the difference between the high and the low."
*Histogram of vwmacd changes color according to the value of III. (Green if positive, yellow if negative value)*
VWMACD also comes with the values of 21,13,3... Which are fibonacci numbers and that's how i use it. You can always go back to the good old 26,12,9.
Other options according to the fibonacci numbers might be= 21,13,5-13,8,3-13,8,5... (For shorter terms of trading)
Trading combined with the bollinger bands is strongly advised for both VWMACD and III. VBCB is just the candy on top :)
Enjoy!
Volume Weighted Aggregated Premium Index v0.20.2 version of the indicator that determines the aggregate premium, weighted by volume, from all leading derivatives exchanges. The main difference was the change in the volume weighing algorithm from static to real time, and ETH was added to the indicator.
Exchanges:
Binance
OKEx
Huobi
Bybit
FTX
BitMEX
Deribit
CBG Swing HighLow MAThis indicator will show the swing high and lows for the number of bars back. It's very easy to use and shows good support and resistance levels.
I then took it a step further and added a moving average with all the standard types in my indicators:
SMA
EMA
Weighted
Hull
Symmetrical
Volume Weighted
Wilder
Linear Regression
I then added Bollinger Bands to show the standard deviation from the midline.
Finally, I added a simple bar coloring scheme: green if above the upper BB, Red if below and orange if in the middle.
I am just testing this out so please use with caution. If anyone in the community wants to run some backtests, that would be great and we would all appreciate it.
Of course you can keep it all simple and turn off all the moving averages and bollinger bands.
Enjoy! :-)
VWAP Standard Deviation Multi-Time FrameVWAP Standard Deviation Multi-Time Frame indicator shows VWAP , 1 standard deviation price from the VWAP, 2 standard deviation price from the VWAP and 3 standard deviation price from the VWAP
These lines are value regions and usually act as great support and resistance .
For best results allow the VWAP to develop in the beginning of the time frame, for almost about 20% of the total time period
For example, in a daily time frame, wait for about 4hrs for VWAP to develop before using the VWAP and Standard devaitions of VWAP as support and resistance zones
Change the values in timeframe input to use it for intraday, swing and long term trades.
Possible values are based on standard timeframe values 5,15,D,W,M, 12M etc
Volume Weighted Exponential Moving AverageYou might have heard that simple moving average barks twice, then you will also notice that volume weighted moving average is even more horrible.
Thanks to Trading View all I had to do was to replace SMA function with EMA.
VWEMA can be used as an adaptive moving average or even an alternative to VWAP.
CBG MultiAverages ColorsThe latest version of my multiple moving averages. Now includes up to 14 moving averge lines plus a separate slow and fast moving average that can be assigned a different MA type.
In the screen shot is the fast/slow set to Hull with 15/50 periods. It is overlaid on top of my Key Numbers indicator.
7 moving averages in 1 indicator, including the Hull Moving Average .
SMA
EMA
Weighted
Hull
Symetrical
Volume Weighted
Wilder
Linear Regression
Lots of other features like background shading and paint bar colors.
Multiple VWAPAn intraday indicator which plots the 3 different VWAP.
1. D-VWAP shows VWAP from the first candle of the day
2. W-VWAP shows VWAP from the first candle of the week
3. M-VWAP shows VWAP from the first candle of the month
VMACDIntended to be used in exactly the same way as the built-in MACD, but uses volume-weighted moving averages instead. This gives it a tiny edge for spotting high volume breakouts.
Windowed Volume Weighted Moving AverageIntroduction
The concept of windowing was briefly introduced in the Blackman filter post, however windowing is more than just some window functions, and isn't exclusively used in filter design.
Today we will use windowing with the volume weighted moving average, a moving average that weight the price with volume in order to be more reactive when volume is high, that is the moving average is more reactive when the market is more active. The use of windowing in the vwma allow to enhance its performance in the frequency domain which result in a smoother output.
Note that i made a similar indicator long ago, but at that time I was not great at all with math and pinescript in general and the indicator was therefore wrong, i want to remind to the community that i'am not a professional, only an enthusiast, I never claimed to be a master coder and i'am totally open to receive criticism, if I sounded like bragging in the past I apologize, at 20 years old it is still easy to act like a kid, the information contained in my posts is only shared in order to help others but also myself, since sharing is also a way to learn more effectively. That said lets go with the indicator.
Windowing
Windowing consist on applying a window function to a signal, by applying i mostly talk about multiplying, this process is mostly used with windowed sinc filters in order to reduce ripples in the pass/stop band, but can be used with any kind of filters in order to have better frequency domain performance, the only thing we need to do is to multiply the filter weights by a window function.
In order to understand windowing it is useful to visualize this process and understand spectral leakage. Remember that we can describe a signal as the sum of sine/cosine waves of different frequencies, amplitude and phase, leakage is an effect that appear with signals having discontinuities, that is when a signal non periodic.
This figure show a non periodic sine wave of frequency 0.1, a non periodic signal will have is last sample value different from its first sample value, if we where to do its fourier transform we wouldn't end up with a single bin at 0.1 but with more bins, this is spectral leakage, the discontinuities in the signal create additional frequency components. In order to reduce leakage we must make the signal approximately periodic, this is done by making use of window functions.
A window function is symmetric and relatively smooth, all we have to do is to multiply our first non periodic signal with the window function.
We end up with the following windowed signal :
The signal is approximately periodic and leakage has been reduced. Now that we have seen that, it might be useful to see why it is useful in filters.
Remember that the Fourier transform of the filter weights gives us its frequency response, if our weights introduce leakage we end up with ripples, so windowing the filter weights might help reduce the ripples in the frequency response, which result in a smoother filter output.
Volume Weighted Moving Average
A volume weighted moving average is a FIR filter who use volume as filter kernel, therefore the frequency response of this filter always change, it is therefore not wrong to qualify the vwma as an adaptive moving average. Higher volume mean higher weighting of the current closing price value, which therefore produce a more reactive output.
However the smoothness of the moving average is relatively poor.
Windowed Volume Weighted Moving Average
The proposed moving average has a length setting who control the moving average period, and various options that we will describe below. The first option is the type of window, there are many windows, certains more complex than others, here 3 windows are proposed, the famous Blackman window, the Bartlett, and finally the Hanning window, they provide each different level of smoothness. lets compare our moving average with period 100 with a vwma of the same period.
Our moving average in red, and the vwma in blue. As you can see the results are smoother.
The power parameter is used in order to give an even higher weighting to closing prices with high volume, this create a more boxy output. Below is a comparison with a vwma in blue and a powered vwma in red with power = 2 without windowing :
We can then apply a window, here i will choose the Blackman window :
Conclusion
A new moving average based on windowed volume weighting has been proposed. The result are smoother which might therefore reduce whipsaw trades. I wish i could have explained things better, unfortunately windowing isn't something i use much, i wanted to post this moving average earlier this year.
I will be off in France for 1 week, my flight is tomorrow in the morning, therefore i don't think i'll have the possibility to make other posts this year. I want to profit from this occasion to review my year in tradingview.
Many indicators have been posted, some being extremely bad and others really interesting, this year introduced my attempts on estimating the lsma efficiently, the linear channels, an attempt on making lines and remain the first indicator from the v4 i posted if i'am right. Then came the efficient auto-line, who gained some popularity quite fast. Then finally the %G oscillator and the recursive bands where posted, and remain some of the favorites indicators i made. I also wanted to leave this year due to studies, that i totally abandoned, i'am thankful that i chosen to stay.
I also want to express my apologies to any member that i could have offended, i think that i'am not a mean person but i certainly not contest the fact that i'am clumsy, even in my work, however my clumsiness is far greater when it comes to interact with other peoples or a group of peoples, i don't want to hurt anyone, if i made anything that made you feel bad then i'am sincerely sorry, and hope we can start this new year from 0.
Finally i thank the tradingview community for their interest and curiosity, i thank all the great coders who work on making pinescript a better scripting language, i also thank the tradingview staff for their work this year. I wish you all a merry christmas, and an happy new year.
Thanks for reading.
Cuban's Volume-Weighted Anchored Trend with Guppy ModeThis is the first moving average that I've had a crack at. It's a VWMA of sorts that's anchored to significant price events but stays flat during chop.
This moving average essentially ignores most other price action while providing dynamic support and resistance levels, and displaying the underlying trend.
I personally use this moving average in it's singular form on higher timeframes to guide the bias of my low timeframe scalping. Generally, I will curve fit the MA to the recent price action and timeframe.
I've included a guppy function with adjustable lengths to assist defining the current trading range. There is an adaptive mode that will give quicker reversal signals at the sacrifice of increased noise. It works by flipping the source from high to low depending on the trend. I haven't added shading fills to the guppy as I think it takes away too much from the price action, but will add them if there is enough demand.
Enjoy.
EVWMA VWAP Cross Strategy [QuantNomad]Continue to experiement with VWAP and EVWMA.
It seems that just simple crosses between VWAP and EVWMA can be pretty good signals. VWAP is a bit choppy so you can use VWAP smoothing input to smoth it a bit.
Here are few other strategies based on EVWMA:
EVWMA VWAP MACD Strategy
QuantNomad - EVWMA MACD Strategy
QuantNomad - EVWMA Cross StrategyPretty simple EVWMA (Elastic Volume Weighted Moving Average) Cross Strategy. Long on bullish cross, Short on Bearish Crosss.
EVWMA is a quite interesting moving average where period of the MA is defined from volume itself.
It incorporates volume information in a natural and logical way. The eVWMA can be looked at as an approximation to the average price paid per share.
As a volume period you can use sum of the last x bars volumes.
Here is EVWMA as an indicator:
Moving Average CollectionMoving Average Collection (MAC) is here to gather all your MAs EMAs HMAs and WMAs all in one indicator.
With extra features to ensure that user can get the most benefit of moving averages. whether for S/R or setting up EMA and HMA based strategies.
Features:
10 SMA, 10 EMA, 6HMA, 6WMA and 2 Ichimuko Cloud with master switch and multi-timeframe support for each section.
More features will be added...
Combo Strategy 123 Reversal & EMA & Volume Weighting This is combo strategies for get a cumulative signal.
First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.
Second strategy
The related article is copyrighted material from Stocks & Commodities 2009 Oct
WARNING:
- For purpose educate only
- This script to change bars colors.
Volume Weighted Historical Volatility RankExperiment in adding volume weighting to the calculation in determining HV.
See here for HV explanation : www.investopedia.com
--------------------------------------
If you find it useful please consider a tip/donation :
BTC - 3BMEXEDyWJ58eXUEALYPadbn1wwWKmf6sA
--------------------------------------
Directional Momentum Flux StrategyDirectional Momentum Flux (DMF) is a compound indicator designed to surface signals of projected change in directional momentum. The primary goal is to identify possible momentum inflection points and signal them before they happen, which is reached by applying a set of well-known high-level indicators (e.g. DEMA, RSIs, CCIs and VWAP), lower-level indicators (e.g. BOP, PPO and RMOMO), and some special sauce brewed in-house by yours truly.
This strategy is invite-only. Invitations are offered for a one-time fee of $250 payable in several cryptocurrencies (ETH, BTC, DASH, XMR or ZEC). Once you've got an invitation, you will automatically receive updates forever*.
DMF was designed to work across multiple asset classes. Extensive backtesting has been performed over multiple sample series (not just during the bull runs, for example) and against a randomized pool of assets. But don't take my word for it, I've included some time-based backtesting support tools to make it easy-peasy for you to validate the results yourself!
Under the hood, DMF is powered by numerous indicators, including:
✓ Double EMA & Composite SMA;
✓ Double RSI (fast & slow, variable);
✓ Composite StochRSI & VWAP (StochRSI+, two series);
✓ Composite Commodity Channel Index (CCI+, two series);
✓ Volume-Weighted Balance of Power (BOP itself was adapted from BOP_LB, kudos to LazyBear);
✓ Percentage Price Oscillator (PPO, split, two series);
✓ Range-adjusted Momentum Oscillator (RMOMO, my fancy MOM variant);
It crunches all that data and generates signals which are issued in two ways:
✓ Vertical Bands (or VBs) - Entry/Exit windows as vertical bands that remain "lit" (e.g. the background of a series of candles is semi-opaque white) while the top-level signals are showing sufficiently strong BUY signals. These windows are the primary entry/exit targets and can be relied upon with sufficient risk mitigation (e.g. a reasonable stop-loss or other scale-out exit mechanism). A VB followed immediately by an egg is as good as gold.
✓ Eggs - Entry/Exit validation signals that confirm the condition indicated by VBs. A lit VB without an egg in the same or next candle session is considered to be valid , but not safe (see above warning). Waiting for an egg can improve performance at the risk of missing the best possible entry point. Consider your risk tolerance and act accordingly.
Basic Instructions:
✓ Configure The Settings! The defaults are pretty good, but don't be scared to try variations. For example, by default SHORT positions are disabled. You might want to enable them if your risk tolerance allows them. (IMO there's gold on both ends of the rainbow. 🌈)
✓ Pay attention to the VBs. If you see a lit band being placed in an otherwise dark area, it's a projected inflection point. This is expected to be validated and confirmed in the same or immediately following period with an egg. You can enter a LONG position at this time.
✓ Pay attention to the eggs. If you see an egg, it's a confirmation that the VB changes in the same or immediately preceding candle period is valid. If you did not enter or exit your position at the point of the VB shift, now is the time to do so.
✓ Watch for the end of a VB period and be prepared to exit your position quickly as the next egg may be accompanied by a large directional momentum inflection.
Things to Note:
📉 - DMF is designed for day trading with aggressive position TTLs (15m was the upper bound during development and strategy testing). It appears to issue valid signals for other intervals, but it was not designed for >15m and YMMV. Don't go manually opening a LONG with no exit strategy and go to sleep... it probably won't work out to your benefit. You should be prepared to exit positions at any time. (Pro tip: automation is your friend!)
💸 - DMF indicator is not free from risk. As with all investment strategies, it is crucial to exercise caution and only trade with funds you are comfortable losing. DMF does not offer any form of guarantee or warranty, implied or otherwise. If you lose money, your house, your 401K... that's on you. (Pro tip: don't risk anything you're not ready to lose, because losses are part of the game and you WILL have them.)
🤔 - By using this indicator, you understand that any and all risks are the sole and complete responsibility of the end user (yeah, that's you). Don't use it if you're not 100% clear that you know exactly what you're doing. (Pro tip: always ask questions if you're feeling confused.)
⏱ - * Forever in this context means that, where room for improvement exists, I will improve it over time and you'll get all updates until I stop making them. (Pro tip: nobody lives forever.)
VWMA Trend FilterHere's a simple tool for determining long term trend direction using two Volume Weighted Moving Averages (VWMA). The VWMA's emphasis on volume often makes it a better measurement for trend direction than the more popular Exponential Moving Average (EMA).
Trend direction is determined by comparing a fast and slow VWMA. The default length for the fast VWMA is 50 periods, while the slow uses a default length of 200. Both of these lengths can be modified in the input options menu. The default source for the VWMA's is HLC3((high + low + close) / 3).
If the fast VWMA is greater than the slow VWMA, then the trend is bullish and the background color is green. If the fast VWMA is less than the slow VWMA, then it is bearish and the background color is red.
We included an option to change the candle color based on whether the VWMA's indicate a bullish or bearish trend as well.
Overall, this is one of those utility tools that we like to use as an overlay over the main price chart and in conjunction with other signal generating indicators. Its purpose isn't to generate buy and sell signals, but it works well as a visual confirmation tool to help traders gauge trend direction.
Volume Weighted Bollinger (Final, cleaned up visuals)Volume-weighted bollinger (normal stats application of weighting mean) with cleaned up visualization. Shaded area represents1sd-2sd move size for trailing 20 period average on timeframe for individual candles.
Double KAMA + VWMAThis study combines a fast and slow Kaufman Adaptive Moving Averages (KAMA) with a fast and slow Volume-Weighted Moving Average(VWMA).
The KAMA is definitely one of our favorite moving averages because it takes into account volatility and filters out false signals during periods of insignificant or horizontal price movement. This results in more patient, less impulsive trading. At its most basic, the KAMA's value remains relatively close in value to the price when volatility is low then lags slightly behind it during highly volatile movements and larger trends.
We've plotted two Kaufman's Adaptive Moving Averages:
-The first KAMA is the slow KAMA, which we use as a trend filter. It is shown on the graph as the thicker solid line that alternates between green and red. When the trend filter KAMA is bullish, the line turns green. It then turns red when bearish. Users can adjust the lengths of the fast and slow EMA for the KAMA's calculation in the input option menu, but it is important to remember that the number of periods should remain high in comparison to the fast KAMA as this allows it to track long-term price movements and trends.
-We then include a fast KAMA which has shorter EMA Lengths to focus in on movements within a smaller timeframe.
NOTE: The fast KAMA is only plotted when the trend filter KAMA is generating bullish signals. It is shown as the alternating pink and teal line above the main green line. When the fast KAMA is increasing, its line and the area between it and the slow KAMA are filled teal. When the fast KAMA is falling, its line and the area between the fast and slow KAMA lines are colored pink. This helps with timing exits.
Lastly, we've included a fast and slow VWMA to time long entries. These are only plotted when the Trend Filter KAMA is bearish. The fast VWMA is the teal solid line under the trend filter KAMA and the slow VWMA is the pink line. Optimal entries will occur when the fast VWMA crosses above the slow VWMA. When the slow VWMA is greater than the fast VWMA, the area between the two lines is filled red, while the same area is filled teal when the fast VWMA is greater than the slow.
I've included entry signals (shown on the screenshot as the lime green background highlights), but this is the basic version of the indicator. If you're interested in taking a look at the full version with alerts and entry + exit signals, feel free to send us a message!
VWMA/SMA Breakout and Divergence DetectorThis indicator compares four different values :
-Fast Simple Moving Average(SMA)
-Fast Volume Weighted Moving Average(VWMA)
-Slow SMA
-Slow VWMA
Comparing SMA's and VWMA's of the same length is a common trading tactic. Since volume is not taken into consideration when calculating Simple Moving Averages, we can gain valuable insights from the difference between the two lines.
Since volume should be increasing along with an upwards price movement, the VWMA should be greater than the SMA during a volume-supported uptrend. Thus, we can confirm an uptrend if the VWMA remains greater than the SMA. If the VWMA falls under the SMA in the midst of an upwards price movement, however, that indicates bearish divergence. The opposite is true for downtrends. If price is decreasing and volume is decreasing at the same time (as it should), then we can confirm the downtrend.
Interpreting the Graph:
If the slow SMA is greater than the slow VWMA, then the area representing the difference between the two lines is filled in red. If the slow VWMA is greater than the slow SMA, however, the area between the two is filled green.
If the fast SMA is greater than the fast VWMA, then the area between the two dotted lines is filled in red. On the other hand, the area will be filled green if the fast VWMA is greater than the slow SMA.
In addition to spotting divergences and confirming trends, the four lines can be used to spot breakouts. Typically, a VWMA crossover will precede the SMA crossover. When the fast VWMA crosses over the slow VWMA and then a SMA crossover follows shortly after, then it is a hint that a bullish trend is beginning to form.