S&P500 VIX Volatility Warning IndicatorToday I am sharing with the community a volatility indicator that can help you or your algorithms avoid black swan events. Variance is most commonly used in statistics to derive standard deviation (with its square root). It does have another practical application, and that is to identify outliers in a sample of data. Variance in statistics is defined as the squared difference between a value and its mean. Calculating that squared difference means that the farther away the value is from the mean, the more the variance will grow (exponentially). This exponential difference makes outliers in the variance data more apparent.
Why does this matter?
There are assets or indices that exist in the stock market that might make us adjust our trading strategy if they are behaving in an unusual way. In some instances, we can use variance to identify that behavior and inform our strategy.
Is that really possible?
Let’s look at the relationship between VIX and the S&P500 as an example. If you trade an S&P500 index with a mean reversion strategy or algorithm, you know that they typically do best in times of volatility. These strategies essentially attempt to “call bottom” on a pullback. Their downside is that sometimes a pullback turns into a regime change, or a black swan event. The other downside is that there is no logical tight stop that actually increases their performance, so when they lose they tend to lose big.
So that begs the question, how might one quantitatively identify if this dip could turn into a regime change or black swan event?
The CBOE Volatility Index (VIX) uses options data to identify, on a large scale, what investors overall expect the market to do in the near future. The Volatility Index spikes in times of uncertainty and when investors expect the market to go down. However, during a black swan event, the VIX spikes a lot harder. We can use variance here to identify if a spike in the VIX exceeds our threshold for a normal market pullback, and potentially avoid entering trades for a period of time (I.e. maybe we don’t buy that dip).
Does this actually work?
In backtesting, this cut the drawdown of my index reversion strategies in half. It also cuts out some good trades (because high investor fear isn’t always indicative of a regime change or black swan event). But, I’ll happily lose out on some good trades in exchange for half the drawdown. Lets look at some examples of periods of time that trades could have been avoided using this strategy/indicator:
Example 1 – With the Volatility Warning Indicator, the mean reversion strategy could have avoided repeatedly buying this pullback that led to SPXL losing over 75% of its value:
Example 2 - June 2018 to June 2019 - With the Volatility Warning Indicator, the drawdown during this period reduces from 22% to 11%, and the overall returns increase from -8% to +3%
How do you use this indicator?
This indicator determines the variance of the VIX against a long term mean. If the variance of the VIX spikes over an input threshold, the indicator goes up. The indicator will remain up for a defined period of bars/time after the variance returns below the threshold. I have included default values I’ve found to be significant for a short-term mean-reversion strategy, but your inputs might depend on your risk tolerance and strategy time-horizon. The default values are for 1hr VIX data. It will pull in variance data for the VIX regardless of which chart the indicator is applied to.
Disclaimer : Open-source scripts I publish in the community are largely meant to spark ideas or be used as building blocks for part of a more robust trade management strategy. If you would like to implement a version of any script, I would recommend making significant additions/modifications to the strategy & risk management functions. If you don’t know how to program in Pine, then hire a Pine-coder. We can help!
Meanreversion
Deviation BandsThis indicator plots the 1, 2 and 3 standard deviations from the mean as bands of color (hot and cold). Useful in identifying likely points of mean reversion.
Default mean is WMA 200 but can be SMA, EMA, VWMA, and VAWMA.
Calculating the standard deviation is done by first cleaning the data of outliers (configurable).
TradeChartist Actuator™TradeChartist Actuator is an extremely functional indicator that converts the price action volatility and momentum into a meaningful trading system (based on user defined Standard Deviation Factor), that consists of expanding/contracting Volatility Range Bands, Dynamic Trend Support/Resistance Bands and 2 types of Breakout Signals in a visually stunning design. The script also neatly packs in ZigZag & manual/automatic Fibonacci Retracement tools, option to filter the signals using an external filter and other useful extras like ™TradeChartist Dollar Candles and much more.
===================================================================================================================
™TradeChartist Actuator User Manual
█ Actuator Range Bands
Actuator Range Bands consists of a Mean line, an Upper Band and a Lower Band which are based on user defined Standard Deviation Factor (Default - 1.618, Min - 0.5, Max - 2). The 1.618 factor works extremely well as the unnecessary volatility data of the bands are eliminated by Actuator's logic. In my personal tests, 1.618 works consistently better than any other value in visually showcasing the true volatility range. By eliminating the unnecessary volatility data from the original non-stabilized bands, Actuator helps detect price momentum by detecting two types of breakouts.
Bands Breakout - Filtered
When the price breaks out of the upper or lower band after a trend, there is a strong possibility of a reversal especially when the volatility expansion/contraction takes place. This is detected using a built in filter with the Filtered Bands Breakout and the user can choose to use the closing price or High/Low price as the trigger for breakouts. This trade setup is very useful especially at zones where the Actuator Range Bands contract or squeeze after an expansion as shown in the OANDA:XAUUSD 1hr chart below.
Also, after a consistent expansion of the bands with price trending in the upper channel or the lower channel, users can spot good profit taking or Short trade opportunities with confirmation of overbought price and if possible a strong bear divergence as show in the BINANCE:LUNAUSDTPERP 1hr chart below.
It can be seen from the chart above that even though Actuator is designed to detect Extreme Bands Breakout using High/Low price, it is done with a little bit of filtering by the script logic and hence didn't generate a Bear signal at the lower band support zone.
Mean Breakout - Filtered
In most Mean Reversion models, mostly oscillators, the mean plays an important role in helping traders predict the price dynamic, but it also presents a challenge whether that mean will act as support or resistance so the trader can take a position that will have a high probability of success. Filtered Mean Breakout helps exactly to identify the price dynamic at the mean zone and helps reduce the dilemma. Actuator uses Volatility Trend and Momentum of the price action at mean to determine Bull/Bear breakouts. Following NASDAQ:AAPL 1hr chart shows an example of 2 instances of Filtered Mean Breakout detection, one bull and one bear and further area where no Breakout was detected in spite of price crossing the mean.
This Breakout type is really helpful in spotting early moves and also reduces the high volatility risk of Extreme Bands Breakout in some cases.
===================================================================================================================
█ External Filter
Actuator breakout signals can be further filtered using the feature of connecting an external signal as a trade filter.
External filter like RSI , MACD etc. can be used to filter breakouts by connecting to ™TradeChartist Actuator under ╔═══ 𝗣𝗹𝘂𝗴 𝗙𝗶𝗹𝘁𝗲𝗿 𝗵𝗲𝗿𝗲 ═══ 🔌 dropdown by enabling 𝐔𝐬𝐞 𝐄𝐱𝐭𝐞𝐫𝐧𝐚𝐥 𝐅𝐢𝐥𝐭𝐞𝐫.
To get the external filter to work, 𝐒𝐢𝐠𝐧𝐚𝐥 𝐓𝐲𝐩𝐞 must be set right. For plots that are non oscillatory like Moving Averages, Super Trend etc., choose type as Non Oscillatory and for Oscillators like RSI , CCI , MACD etc., choose type as Oscillatory .
For Oscillators, levels must be specified for 𝐎𝐬𝐜𝐢𝐥𝐥𝐚𝐭𝐨𝐫 𝐁𝐮𝐥𝐥 𝐅𝐢𝐥𝐭𝐞𝐫 𝐯𝐚𝐥𝐮𝐞 and 𝐎𝐬𝐜𝐢𝐥𝐥𝐚𝐭𝐨𝐫 𝐁𝐞𝐚𝐫 𝐅𝐢𝐥𝐭𝐞𝐫 𝐯𝐚𝐥𝐮𝐞, especially if the Oscillator doesnt have 0 as midline, like RSI . Even for 0 mid oscillators like CCI , filter levels like 100/-100 work effectively to filter noise.
Use 𝐁𝐮𝐥𝐥/𝐁𝐞𝐚𝐫 𝐁𝐚𝐜𝐤𝐠𝐫𝐨𝐮𝐧𝐝 𝐅𝐢𝐥𝐥 under Actuator Visuals section to paint the trade zones background. It helps visually see the effect of filters on the breakout entries and also the trade performance.
The following chart shows the Filter settings with ™TradeChartist Momentum Drift Oscillator connected to Actuator as Oscillatory signal with filter values 0.
The two example charts of 1hr BINANCE:BTCUSDT below shows the difference in Actuator signals based on Oscillatory signal from ™TradeChartist Momentum Drift Oscillator and the difference can be seen from the highlighted Bull/Bear Background Fill.
Without External Filter
With External Filter
===================================================================================================================
█ Dynamic Trend Support/Resistance Bands
In addition to Volatility Range Bands, Actuator also plots Dynamic Trend Support and Resistance bands that are more sensitive to price action and helps the user determine growing support/resistance which is indicated by coloured dots. These dots normally appear when the Support or Resistance stays at the same level for a few bars and change between Bull and Bear colours based on how the price interacts with them as shown below.
===================================================================================================================
█ Useful Trade Tools
™TradeChartist Dollar Candles
Dollar Candles help detect the volatility exhaustion prices and plots $ signs to help the trader take profits or move stop loss levels to secure gains. The $ signs do not appear for every trade zone, but whenever price hits a critical level, it shows up above price bar (for Bull trend) or below price bar (for Bear trend) in real time. Users can also set alerts for Dollar Candles with Once Per Bar setting. The Daily NASDAQ:TSLA chart below shows the Dollar Candles on both Bull and Bear trends.
It is important to note that taking pockets of profits on a leveraged trade position or moving up stop loss to maximize trend gains at $ candles will help increase Average Profitability Per Trade (APPT) .
Bull/Bear Background Fill
Bull/Bear Background Fill paints the trade zones in Bull and Bear colours. This helps visualize the difference in trade zones when testing various settings and also helps analyze past performance of Actuator Signals with or without the use of External Filter.
Entry Stop Loss Reference
Reference zone for stop loss has always been a tricky one for traders. Using a fixed percentage stop at entry may not be best during high volatility moves. Over the extensive period of Actuator testing, a simple solution to this problem was found. The previous trend's Range Bands Mean Line served as a perfect reference point for Entry Stop. Also while analysing this Mean line, it was found to be a perfect horizontal support/resistance line and also helped detect unproductive trades. The example 15m chart of NASDAQ:AMD shows how the Entry Stop Loss Reference performed.
Stop Line Touch Points plot orange touch points on the Stop Line whenever the price hits it during the trade.
Actuator Colour Bars
Actuator Colour Bars paints the Momentum Strength on the price bars. This helps visually see the price bars venturing into the Overbought or the Oversold zones. Also, this feature also helps spot divergences as higher highs or lower lows with less intense Bull/Bear colour than the previous high/low shows diminishing momentum as shown in the 1h chart of OANDA:GBPJPY below.
===================================================================================================================
█ ZigZag & Fibonacci Toolkit
Actuator plots developing and completed ZigZags based on Bull and Bear trend depending on the Breakout Type and Breakout Price from the settings.
Option to enable or disable 𝐙𝐢𝐠𝐙𝐚𝐠 𝐂𝐨𝐧𝐧𝐞𝐜𝐭𝐨𝐫 which can be helpful for Harmonic traders.
Option to display 𝐙𝐢𝐠𝐙𝐚𝐠 𝐇𝐢𝐠𝐡𝐬/𝐋𝐨𝐰𝐬 and 𝐑𝐒𝐈 𝐚𝐭 𝐇𝐢𝐠𝐡𝐬/𝐋𝐨𝐰𝐬 in one of two styles.
Two types of Fibonacci to choose from - 𝐀𝐮𝐭𝐨-𝐅𝐢𝐛𝐬 and 𝐅𝐢𝐛𝐬 𝐛𝐚𝐬𝐞𝐝 𝐨𝐧 𝐋𝐨𝐨𝐤𝐛𝐚𝐜𝐤.
𝐀𝐮𝐭𝐨-𝐅𝐢𝐛𝐬 option plots Auto Fibonacci levels based on Bull/Bear trend depending on user specified Breakout Type and Breakout Price.
𝐅𝐢𝐛𝐬 𝐛𝐚𝐬𝐞𝐝 𝐨𝐧 𝐋𝐨𝐨𝐤𝐛𝐚𝐜𝐤 plots Fibonacci levels based on the highest high and lowest low of the lookback period (𝐃𝐚𝐲𝐬 or 𝐂𝐚𝐧𝐝𝐥𝐞𝐬).
Fibonacci levels can be reversed by enabling 𝐑𝐞𝐯𝐞𝐫𝐬𝐞 from settings.
Enabling 𝐂𝐮𝐫𝐫𝐞𝐧𝐭 𝐏𝐫𝐢𝐜𝐞 𝐅𝐢𝐛 𝐋𝐚𝐛𝐞𝐥 displays the current Fib level of the developing price bar.
Option to customize Fib levels and colours.
4hr chart of BINANCE:BTCUSDT showing Auto Fibonacci levels, Zig-Zag with Trend High/Lows, Zig-Zag connectors with Fib Ratios and RSI at Trend High/Low prices.
Note:
If momentum doesn't slow down, the fibs can extend beyond 1 and may continue way beyond 4.618 fib level. These are quite rare depending on how distant the near high/low is based.
ZigZag and Fibonacci are good reference indicators and should always be used as confirmations rather than standalone indicators.
===================================================================================================================
█ Actuator Colour Scheme
Actuator employs 3 built in colour schemes namely Chilli , Flame and Sublime Grayscale and a versatile colour scheme Custom which enables the user to customise the colour combinations of the components of the Actuator script.
===================================================================================================================
█ Alerts
Alerts can be created for the following.
Actuator Bull Breakout Signal - Once Per Bar Close
Actuator Bear Breakout Signal - Once Per Bar Close
Actuator Long Dollar - Take Profit - Once Per Bar
Actuator Short Dollar - Take Profit - Once Per Bar
Actuator Stop Line Hit - Once Per Bar
Note: The script doesn't repaint, so the alerts can be used with confidence. To check this, users can do bar replays to check if the plots and markers stay in the same place.
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
TradeChartist Mean Momentum Drift Oscillator (MMDO)™TradeChartist Mean Momentum Drift Oscillator (MMDO) is the Oscillator version of the ™TradeChartist Mean Momentum Drift Bands (MMDB) indicator with some added visual features to spot Momentum, divergences and Price action using ™TradeChartist Zone Visualizer model.
===================================================================================================================
Features of ™TradeChartist MMDO
==============================
Price zone detection using ™TradeChartist Zone Visualizer model.
No User input required.
3 Visual colour schemes - Chilli, Flame and Custom.
Clear Visualization of Overbought and Oversold zones.
Colour Bars based on Momentum strength.
MDDO highs and lows tracker helps detect divergences.
===================================================================================================================
Example Charts
1. MMDO used along with ™TradeChartist MMDB (Mean Momentum Drift Bands) on 4hr chart of BINANCE:BTCUSDT
2. MMDO on 1hr chart of OANDA:EURUSD to confirm Drift Bands breakout entries on MMDB
3. MMDO on 1hr chart of BINANCE:LUNAUSDT
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
34 EMA BandsThis is quite a simple script, just plotting a 34EMA on high's and low's of candles. Appears to work wonders though, so here it is.
There is some //'d code which I haven't finished working on, but it looks to be quite similar to Bollinger Bands, just using different math rather than standard deviations from the mean.
The bands itself is pretty self explanatory, price likes to use it as resistance when under it, it can trade inside it and it can use the upper EMA as support when in a strong upward trend.
Augmented Dickey–Fuller (ADF) mean reversion testThe augmented Dickey-Fuller test (ADF) is a statistical test for the tendency of a price series sample to mean revert .
The current price of a mean-reverting series may tell us something about the next move (as opposed, for example, to a geometric Brownian motion). Thus, the ADF test allows us to spot market inefficiencies and potentially exploit this information in a trading strategy.
Mathematically, the mean reversion property means that the price change in the next time period is proportional to the difference between the average price and the current price. The purpose of the ADF test is to check if this proportionality constant is zero. Accordingly, the ADF test statistic is defined as the estimated proportionality constant divided by the corresponding standard error.
In this script, the ADF test is applied in a rolling window with a user-defined lookback length. The calculated values of the ADF test statistic are plotted as a time series. The more negative the test statistic, the stronger the rejection of the hypothesis that there is no mean reversion. If the calculated test statistic is less than the critical value calculated at a certain confidence level (90%, 95%, or 99%), then the hypothesis of a mean reversion is accepted (strictly speaking, the opposite hypothesis is rejected).
Input parameters:
Source - The source of the time series being tested.
Length - The number of points in the rolling lookback window. The larger sample length makes the ADF test results more reliable.
Maximum lag - The maximum lag included in the test, that defines the order of an autoregressive process being implied in the model. Generally, a non-zero lag allows taking into account the serial correlation of price changes. When dealing with price data, a good starting point is lag 0 or lag 1.
Confidence level - The probability level at which the critical value of the ADF test statistic is calculated. If the test statistic is below the critical value, it is concluded that the sample of the price series is mean-reverting. Confidence level is calculated based on MacKinnon (2010) .
Show Infobox - If True, the results calculated for the last price bar are displayed in a table on the left.
More formal background:
Formally, the ADF test is a test for a unit root in an autoregressive process. The model implemented in this script involves a non-zero constant and zero time trend. The zero lag corresponds to the simple case of the AR(1) process, while higher order autoregressive processes AR(p) can be approached by setting the maximum lag of p. The null hypothesis is that there is a unit root, with the alternative that there is no unit root. The presence of unit roots in an autoregressive time series is characteristic for a non-stationary process. Thus, if there is no unit root, the time series sample can be concluded to be stationary, i.e., manifesting the mean-reverting property.
A few more comments:
It should be noted that the ADF test tells us only about the properties of the price series now and in the past. It does not directly say whether the mean-reverting behavior will retain in the future.
The ADF test results don't directly reveal the direction of the next price move. It only tells wether or not a mean-reverting trading strategy can be potentially applicable at the given moment of time.
The ADF test is related to another statistical test, the Hurst exponent. The latter is available on TradingView as implemented by balipour , QuantNomad and DonovanWall .
The ADF test statistics is a negative number. However, it can take positive values, which usually corresponds to trending markets (even though there is no statistical test for this case).
Rigorously, the hypothesis about the mean reversion is accepted at a given confidence level when the value of the test statistic is below the critical value. However, for practical trading applications, the values which are low enough - but still a bit higher than the critical one - can be still used in making decisions.
Examples:
The VIX volatility index is known to exhibit mean reversion properties (volatility spikes tend to fade out quickly). Accordingly, the statistics of the ADF test tend to stay below the critical value of 90% for long time periods.
The opposite case is presented by BTCUSD. During the same time range, the bitcoin price showed strong momentum - the moves away from the mean did not follow by the counter-move immediately, even vice versa. This is reflected by the ADF test statistic that consistently stayed above the critical value (and even above 0). Thus, using a mean reversion strategy would likely lead to losses.
Percentile Rank [racer8]The Percentile is a mathematical tool developed in the field of statistics. It determines how a value compares to a set of values.
There are many applications for this like ...
... determining your rank in your college math class
... your rank in terms of height, weight, economic status, etc.
... determining the 3-month percentile of the current stock price (which is what this indicator performs)
This indicator calculates the percentile rank for the current stock price for n periods.
For example, if the stock's current price is above 80% of the previous stock's prices over a 100-period span, then it has a percentile rank of 80.
For traders, this is extremely valuable information because it tells you if the current stock price is overbought or oversold.
If the stock's price is in the 95th percentile, then it is highly likely that it is OVERBOUGHT, and that it will revert back to the mean price.
Helplful TIP: I recommend that you set the indicator to look back over at LEAST 100 periods for accuracy!
Thanks for reading! 👍
Volume Breakout (ValueRay)Easy visuals on, if volume is way over average. Good for Mean Reverting. Higher Volume tends to higher breakout chances.
Please whisper me for for ideas how to make this better. Its a very simple script, but got some alpha. If you know how to improve, let me know and i will code it into.
Bitcoin - CME Futures Friday Close
This indicator displays the weekly Friday closing price according to the CME trading hours (Friday 4pm CT).
A horizontal line is displayed until the CME opens again on Sunday 5pm CT.
This indicator is based on the thesis, that during the weekend the Bitcoin price tends to mean reverse to the CME closing price of the prior Friday. The level can also act as support/resistance. This indicator gives a visualization of this key level for the relevant time window.
Furthermore the indicator helps to easily identify, if there is an up or down gap in the CME Bitcoin contract.
Roc Mean Reversion (ValueRay)This Indicator shows the Absolute Rate of Change in correlation to its Moving Average.
Values over 3 (gray dotted line) can savely be considered as a breakout; values over 4.5 got a high mean-reverting chance (red dotted line).
This Indicator can be used in all timeframes, however, i recommend to use it <30m, when you want search for meaningful Mean-Reverting Signals.
Please like, share and subscribe. With your love, im encouraged to write and publish more Indicators.
Percentile - Price vs FundamentalsThis is done in the same lines of below scripts
Drawdown-Price-vs-Fundamentals
Drawdown-Range
Instead of using drawdown, here we are only plotting percentile of drawdown. Also added few more fundamental stats to the indicator. Also using part of the code from Random-Color-Generator/ to automatically generate colors. This in turn uses code from @RicardoSantos for convering color based on HSL to RGB
This is how the study can be used:
Study plots percentile of price and each of the listed fundamentals based on history. History can be chose All time or particular window. If any fundamental or price is near 100 - which means it is nearer to its peak. And if something is near its bottom, it is nearer to its 0th percentile.
Price of the stock is considered undervalued based on historical levels when it is below most of the fundamentals. Price is considered overvalued based on historical levels when it is above all the fundamentals. Please note, being undervalued does not guarantee immediate mean reversion. Stocks can stay undervalued for prolonged time and can go further down. Similarly overvalued stock can stay overvalued for prolonged time before correcting itself or justifying the position. Hence, further discretion needs to be used while using this study.
Few examples:
AMZN seems to be trading in range and so are the fundamentals:
MSFT at peak along with half of the fundamentals. But, debt levels are going up along with margins reducing.
LPX is trading at 15% discount whereas most of the fundamentals are at the peak.
FLGT price seems to have gone down further whereas fundamentals look pretty healthy.
MA Visualizer™TradeChartist MA Visualizer is a Moving Average based indicator aimed to visualize price action in relation to the Moving Average in a visually engaging way.
===================================================================================================================
█ MA Visualizer Features
11 different Moving Averages to choose from the settings to visualize based on MA Visualizer Length (Default - 55 period SMA).
2 Smoothing options (default - 0, 0 uses MA length as Smoothing factor, 1 uses no Smoothing).
4 colour themes to choose from and option to adjust Visualizer Vibrance.
█ Example Charts
1. 1hr chart of OANDA:XAUUSD using 55 period WMA.
2. 15m chart of OANDA:EURUSD using 144 period Tillson T3 MA.
3. 4 hr chart of OANDA:US30USD using 55 period SMMA.
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
TradeChartist Vitality™TradeChartist Vitality is a visual indicator that uses both Mean Reversion and Trend Following models to visually show the vitality of Bulls and Bears on chart based on only one factor - Sensitivity in relation to the Vital Support/Resistance derived from the Vitality Bands, Price Momentum and Volatility.
===================================================================================================================
™TradeChartist Vitality Features:
=============================
Vitality Bands comprising of Vitality Mean and 5 Bull/Bear Limits. These are determined using the user defined Sensitivity from the settings (Very Low, Low, Optimal, High). Higher the sensitivity, shorter the trend and lower the Risk/Reward ratio.
Vital Support and Resistance that decide the Bull and Bear Vitality using colour coded markers on top and bottom of the chart, based on the trend.
Information table that shows the Bull/Bear Vitality, RSI and Price information of the Vitality Mean, Bull Limits 1-5 and Bear Limits 1-5. These prices are colour coded green or red based on the real time closing price trading above or below.
Bull and Bear markers appear after the confirmation of the trend change at the start of the trend.
Option to plot Pivot Points (Traditional and Fibonacci) automatically or based on user defined time frame. These are really helpful in determining the developing price dynamic based on Ranging/Squeezing/Expanding Pivot Points.
Bar Colouring based on Bull/Bear Vitality.
4 Colour Themes for the Bands visuals.
$ signs to help users spot potential zones to Take Profit/Move SL. The $ signs appear above/below the price bars based on the trend at zones of potential price exhaustion, critical support/resistance and other factors.
Vitality Bands Transparency adjustment and Custom colour option for Pivot Points.
Alerts can be created for the following.
Long - Alerts when Bull signal is generated. Use Once Per Bar Close
Long Take Profit - Alerts when $ signs are plotted during Bull Zone. Use Once Per Bar
Short - Alerts when Bear signal is generated. Use Once Per Bar Close
Short Take Profit - Alerts when $ signs are plotted during Bear Zone. Use Once Per Bar
Test of Mean - Alerts when price tests the Volatizer Mean line. Use Once Per Bar
Note : The script doesn't repaint, so the alerts can be used with confidence. To check this, users can do bar replay to check if the plots and markers stay in the same place.
===================================================================================================================
The indicator can be used for trade entries with filter combinations or can be used as standalone Visualizer for trend confirmations, levels etc.
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
TradeChartist Volatizer™TradeChartist Volatizer (Volatility Visualizer) is an exceptionally well designed script that helps visualize Price Volatility and Momentum with the help of various Visual components including Volatizer Bands and Mean line, Support/Resistance levels, Trade Signals and much more. Volatizer's ability to filter trades based on Volatizer Bands, initial Support/Resistance breach, along with the use of External Filter makes it an extremely functional and a useful indicator in addition to its visually engaging design.
===================================================================================================================
™𝗧𝗿𝗮𝗱𝗲𝗖𝗵𝗮𝗿𝘁𝗶𝘀𝘁 𝗩𝗼𝗹𝗮𝘁𝗶𝘇𝗲𝗿 𝗨𝘀𝗲𝗿 𝗠𝗮𝗻𝘂𝗮𝗹
======================================
𝗩𝗼𝗹𝗮𝘁𝗶𝘇𝗲𝗿 𝗕𝗮𝗻𝗱𝘀
Volatizer Bands comprises of an Upper Band, a Lower Band and a Mean line, that form the important components of this script. These bands are based on consolidation of various factors including comparison of volatility and Higher Time Frame (HTF) Momentum with that of the chart time frame. This helps visualize relative Volatility of the chart's price action in relation to the bands and the mean line. The width and the acceleration of the bands depend upon two of the only user inputs required in this script. They are
Volatizer Length - This is the lookback length required to plot the strength of the price action. This length also determines the Volatizer Levels and Fills that help visualize Volatility and Momentum of the asset observed/traded. Higher the length, longer the trend and higher the Risk:Reward ratio
Sensitivity - Users can choose one of 3 Sensitivity options ( Low , Optimal , High ) to adjust the degree of sensitivity of the Bands' reaction to the price action. High Sensitivity Bands react quicker to the price action based on underlying logic.
Example : 1hr chart of BINANCE:ETHUSDT using 24/High on the left and 24/Low on the right.
𝗩𝗼𝗹𝗮𝘁𝗶𝘇𝗲𝗿 𝗠𝗲𝗮𝗻
Volatizer mean is a critical component of the Bands as it can determine the nature of the price action based on how the price tests the Volatizer Mean. When the price is extremely volatile or trending and when it is influenced by Bull or Bear momentum, the Mean line can be the magnet for Pull Backs or Throw Backs. Mean Touch Points can be enabled or disabled from the settings.
Example - 1hr chart of BINANCE:ETHUSDT clearly showing the use of the Mean line and Orange Mean Touch Points.
Example - 1hr chart of BINANCE:ETHUSDT with Volatizer Levels/Fills enabled on the left and disabled on the right.
𝗜𝗻𝗶𝘁𝗶𝗮𝗹 𝗦𝘂𝗽𝗽𝗼𝗿𝘁/𝗥𝗲𝘀𝗶𝘀𝘁𝗮𝗻𝗰𝗲 𝗟𝗲𝘃𝗲𝗹𝘀
Volatizer plots automatic Initial Support/Resistance Levels when this option is enabled. This is based on the user input of Length and Sensitivity.
Example - 1hr chart of BINANCE:BTCUSDT with Initial Support/Resistance Levels enabled. Initial range for support/resistance is shown on the chart.
𝗣𝗿𝗼𝗳𝗶𝘁 𝗧𝗮𝗸𝗶𝗻𝗴 𝗭𝗼𝗻𝗲𝘀
Volatizer uses a clever logic that helps detect volatility exhaustion prices and plots $ signs to help the trader take profits or move stop loss levels to secure gains or to exit trade position. This option can be enabled or disabled by checking or unchecking Display Profit Taking Zones . These zones can also be important support/resistance zones based on the trend volatility and momentum.
Example - 1hr chart of BINANCE:BTCUSDT (Setting - 24/Low) showing $ signs to help traders. (Green $ for Bull Zones and Red $ for Bear Zones)
𝗧𝗿𝗮𝗱𝗲 𝗦𝗶𝗴𝗻𝗮𝗹𝘀 𝗮𝗻𝗱 𝗧𝗿𝗮𝗱𝗲 𝗙𝗶𝗹𝘁𝗲𝗿𝘀
The script can also be used to plot Trade Signals automatically with or without the use of Trade Filters. When the price shows bullish or bearish momentum when the price crosses above or below the mean, Bull or Bear plot appears on the chart to signal potential trend change. These signals can be filtered using one, two or all three filters listed below.
Filter Initial S/R Level Breakouts - Plots Signals only when the initial Support/Resistance levels get breached.
Filter using Volatizer Bands - Plots Signals only when the Upper/Lower bands get breached.
External Filter - Plots Signals only if crossover/breakout criteria of External Filter (Oscillatory or Non-Oscillatory Signal) is satisfied.
Example Charts for Trade Signals/ Filters using 1hr chart of NASDAQ:AMD (Setting - 24/Optimal)
1. Trade Signals without any filter
2. Trade Signals using Initial S/R Level Breakout Filter only
3. Trade Signals using Volatizer Bands Filter only
4. Trade Signals using External Filter - MDO (144) with 0 Filter values along with other 2 built in filters
𝗔𝗹𝗲𝗿𝘁𝘀
Alerts can be created using Trading View's Alert Creation box by choosing one of the following Volatizer Conditions.
Long - Alerts when Bull signal is generated. Use Once Per Bar Close
Long Take Profit - Alerts when $ signs are plotted during Bull Zone. Use Once Per Bar
Short - Alerts when Bear signal is generated. Use Once Per Bar Close
Short Take Profit - Alerts when $ signs are plotted during Bear Zone. Use Once Per Bar
Test of Mean - Alerts when price tests the Volatizer Mean line. Use Once Per Bar
Note: The indicator doesn't repaint even though a potential repaint warning appears when creating alerts. This can be confirmed by doing bar replay with vertical lines at various lines and trend change zones to get confidence using the indicator. The vertical lines will stay in the same place on both current time and when running a bar replay.
𝗩𝗼𝗹𝗮𝘁𝗶𝘇𝗲𝗿 𝗩𝗶𝘀𝘂𝗮𝗹𝘀
Visual settings like Colour scheme, Colour Bars, Fill Transparency and Initial Support/Resistance Linewidth can be adjusted/changed from the settings under Volatizer Visuals section.
𝗛𝗼𝘄 𝘁𝗼 𝘂𝘀𝗲 𝗩𝗼𝗹𝗮𝘁𝗶𝘇𝗲𝗿 𝗟𝗲𝗻𝗴𝘁𝗵 𝗮𝗻𝗱 𝗦𝗲𝗻𝘀𝗶𝘁𝗶𝘃𝗶𝘁𝘆 𝗲𝗳𝗳𝗲𝗰𝘁𝗶𝘃𝗲𝗹𝘆
1. As mentioned in the manual above, higher the length, longer the trend and higher the Risk:Reward ratio.
2. Sensitivity affects the frequency of the signals in general. Low Sensitivity will generate less frequent signals and High Sensitivity will generate more frequent signals as the Sensitivity affects how quickly the Bands react to the price action.
3. As a rule of thumb, it is recommended to use relevant numbers that seem to work well as Volatizer Length. These can be Fibonacci numbers like 5, 8 , 13, 21, 34, 55, 89, 144 etc. These can also be chart timeframe multipliers that relate to Higher Time Frame (HTF). For example, using 24 on 1hr chart will help see Volatizer Bands based on Daily volatility and momentum, 72 on 15m chart for 4hr trend and so on.
===================================================================================================================
There are several combinations of settings that can be tested on the asset traded based on timeframe and risk/reward expectations. The indicator can be used for trade entries with filter combinations or can be used as standalone Visualizer for trend confirmations, levels etc.
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
HYE Combo Market [Indicator] (Vwap Mean Reversion+Trend Hunter)Indicator version of the strategy:
* Alerts added.
TIPS AND WARNINGS
1-) The standard settings of this combo script is designed and tested with daily timeframe. For lower timeframes, you should change the indicator settings and find the best value for yourself.
2-) Only the mean vwap line is displayed on the graph. For a detailed view, you can delete the "//" marks from the plot codes in the script code.
3-) This is an indicator for educational and experimental purposes. It cannot be considered as investment advice. You should be careful and make your own risk assessment when opening real market trades using this indicator.
TradeChartist Catalyst™TradeChartist Catalyst is an elegant script that combines Catalyst Trade Bands and automatic ZigZag/Fibonacci plots using an original logic to help users interact in a visually engaging and meaningful way with the charts.
===================================================================================================================
™TradeChartist Catalyst features
=============================
1. Catalyst Trade Bands
Catalyst Trade Bands comprises Equilibrium or Mean Bands, Inner Bands, Outer Bands and a Overall Mean Line. Catalyst Trade Bands help visualize the price action in relation to the Equilibrium Bands and clearly show how far away from the mean the current price is. The Trade Bands are of two types - Normal and Weighted. Weighted Bands are very sensitive to price action and a higher Bands length is recommended.
Simple 144 vs Weighted 144 Trade Bands
2. Equilibrium Touch Points
Every time the price touches the Equilibrium, an orange touch point appears on the chart. Normally, the Equilibrium line, for an optimal sample, acts as support or resistance. Price breaching or failing this line usually signals a Pull Back, a Throw Back or a Trend Change based on how the price interacts with it. This can be used with a secondary confirmation like RSI, Stochastic etc. For example, if the price falls back significantly only to touch the Equilibrium Line and fails to test the Overall Mean Line when Stochastic is below 30, this could mean a strong Pull Back rather than a Trend Change as shown in the example chart below.
When price fails the Equilibrium Bands, the fill colour of the Equilibrium bands changes to Bearish colour. If the Overall Mean line is below the Equilibrium bands and is in a reasonable distance, Mean will act as support as shown in the example below. Price failing the mean will test Inner Bands and strong bear momentum could take price to Outer Bands and beyond.
All the components of the Catalyst Trade Bands including the Touch Points can be enabled or disabled from the settings.
3. ZigZag & Fibonacci
Catalyst automatically plots ZigZag and Auto Fibonacci Retracement based on an intelligent logic and can be tweaked by changing the Zigzag & Auto-Fibs Factor from the settings. It also plots Fib ratios and connectors along with price highs and lows of ZigZag. The ratios can be especially useful to visually detect harmonic patterns and also serves as a useful feature for Fibonacci traders.
4. Fibonacci Customisation
Catalyst users can customise Fibonacci type and levels, including levels colour from Catalyst settings. In addition to Auto-Fibs, users can also plot Fibonacci levels based on Days or Candles lookback. This is a very useful feature if the user wants to override Auto-Fibs to suit his/her needs. Users can also reverse the Fibonacci Levels by enabling Reverse from settings.
In the following example chart of OANDA:USDCAD , Fibonacci levels based on 10 days lookback is plotted.
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
TradeChartist Trend Splitter ™TradeChartist Trend Splitter is a visual Trend spotting script based on two simple models fused together - Dynamic Volatility Bands and Dynamic Mean Bands. The fusion of these two models based on user defined parameters of length, Volatility Risk and Mean Bands type, along with optional Trend Splitter color bars and Trend background split will make it visually engaging for any trader to understand the price action.
===================================================================================================================
Trend Splitter User Manual
========================
Trend Splitter settings has option to enable and disable the Volatility Bands and also the Mean Bands.
Under each heading, user can adjust the parameters to suit the trading style, based on time-frame traded.
Volatility Bands track the price action based on volatility trend lookback (Default - 55, MIn - 5, Max - 337) and also uses a Detector plot based on user defined risk (Default is 2.618, Min - 0.618, Max - 5) to continuously track the price action.
Mean Bands track the Mean values of the price action based on TradeChartist's original Mean Reversion Model based on one of 4 time tested Fib Lengths (Default - 55, Options - 55, 89, 144, 233, 337) and detects the price testing of Mean using Orange touchpoints.
Using Price Action in relation to both Volatility Bands and the Mean Bands, the script creates Mean Bands filtered Trend splits that plot Bull or Bear Trend background.
The Mean Bands Filter can be disabled for Trend Splits by just disabling Mean Bands from the settings. Also the option to display Trend Split background can also be enabled or disabled from the settings.
The settings also includes a useful feature to enable or disable coloured price bars using one of 3 colour themes.
Users can create alerts for Price testing mean, Bull and Bear trends using Long or Short from Trend Splitter's Alert Condition.
The indicator doesn't repaint even though a potential repaint warning appears when creating alerts. This can be confirmed by doing bar replay with vertical lines at various lines and trend change zones to get confidence using the indicator. The vertical lines will stay in the same place on both current time and when running a bar replay.
===================================================================================================================
Example Charts
1. 5m chart of BINANCE:AXSUSDTPERP using Trend Splitter (144, 2.618, Normal, 55) and TradeChartist Momentum Drift Oscillator (144 with Drift Visualizer). The Trend Splitter and MDO combo work brilliantly on Lower Time Frames and even on 15s/30s charts with MDO length of 144.
Best Practice - Always wait for a very long trend (over 337 bars on both MDO and Trend Splitter before taking a reverse trend trade at either Exhaustion or Super OB/OS zones of MDO) when using very low time-frames.
2. 5m chart of NYSE:PLTR using Trend Splitter (144, 3.618, Normal, 55) connected to TradeChartist Fib Master to plot Automatic Fibs. Just use Trend Identifier of Trend Splitter from Fib Master signal dropdown from settings, having both scripts active on chart.
3. Daily chart of OANDA:XAUUSD using Trend Splitter (using only Mean Bands - Weighted/144) to spot areas of support and resistance at Mean Bands.
Best Practice - Mean Bands can also act as confirmation indicator when used with other Trading View Indicators like RSI, Stohastic, Bollinger Bands etc.
4. Daily chart of COINBASE:ETHUSD using Trend Splitter (55, 0.618, Weighted, 55) connected to TradeChartist Plug and Trade to show Trend Splitter based Entries with Targets and Past Performance to assess the settings parameters in Trend Splitter. Just use Trend Identifier of Trend Splitter from Plug and Trade signal dropdown from settings, having both scripts active on chart.
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
3x Linear Regression3x Linear Regression indicator.
Using the inputs you can define your deviation levels.
You can turn on labels to show the sigma next to each line
You should be familiar with the concept of Standard Deviation to properly interpreter this indicator. The main concept is that price likes to stay at the mean and returns to the mean when it has deviated.
I would also advice to look up Mean Regression theory.
Indicator can be used on all timeframes. I would advice to always look at HTF so you know the bigger picture.
Find the start of a range and change the period of this indicator so it starts at that point in time.
HYE Mean Reversion SMAIndicator version of the strategy "HYE Mean Reversion SMA "
"Long", "Short", "Exit Long" and "Exit Short" alarms added.
Use with "Once Per Bar Close".
GMS: GW-VWAPAlright, as per usual with these, I end up adapting an existing indicator to what I want to accomplish. So this is based off the built in VWAP indicator. I added in the gummy worm to easily identify the trend, as well as the related bands to identify potential areas to either reverse position or to trim an existing one.
The middle part of the bands are the gummy worm version of VWAP. It is the VWAP using the high and another VWAP using the low. The black line is HL2 VWAP (technically 3 VWAPs).
The bands follow what I was mentioning above. So the outer most part of the bands are the high & low VWAP (with the same multiplier) and the inner bands are the HL2 VWAP.
Of course you can set whatever input source you want for these. The default is how I use it. If you want to get rid of the bar color just go to the indicator settings and un-select it at the bottom.
Source code is open so feel free to poke around.
Hope this helps,
Andre
(FireflyTA) Market Flow COG (Oscillator)Market Flow COG (Oscillator)
Market Flow COG in the "Oscillator" version gives you an aggregated score (bullishness vs. bearishness) based on market flow analysis. I'm using my own definition of market flow since I'm actively doing scientific research on that topic and developing concepts and tools around it.
This indicator is best used together with Market Flow COG (Overlay) , which is also public.
----------------------
About Market Flow
The market flow is a concept describing the directional force driving price movement that a market experiences based on term-specific (short-, mid- and long-term) momentum as well as dynamic range support and resistance.
In a strong uptrend for example, market flow is upwards, so dynamic range S&R (i.e. Bollinger Bands) is flowing upwards, too. This is increasing the probability to see continuation after dips. In a shifting trend, it is possible to observe market flow still continuing upwards, because the the flow is only changing slowly. Momentum takes a while to run out and exert pressure into the other direction. This phenomenon can be observed on all timeframes in high-volume markets, even more so on the higher timeframes.
Given the complex nature of market flow , there is still a lack of tools available to properly examine it and to derive appropriate trading decisions.
----------------------
About Market Flow COG
This indicator calculates a score that indicates where price is in relation all the different COGs (described below). This information is multiplied by a weight depending on the various trends price is in, i.e. a HTF uptrend makes it more likely to see price deviating from the mean to the upside, so the score is not as bearish when price is doing so.
This score is an assessment of how bullish or bearish the market is depending on mean reversion probabilities. If you use this indicator together with the Overlay version of this script, you can visualize where appropriate mean reversion targets are in case score hits very high or low levels. This way, it is possible to supplement your own research and improve your strike rate with your setups. But keep in mind that this indicator is not supposed to be used to derive trading decisions without doing proper interpretation work on the price action itself. It is supposed to help you find evidence supporting your own ideas.
----------------------
About "Center of Gravity"
Included as a module in the "Overlay" version of this script - but also being used in the calculations of this script.
The COG is an entity that is pulling price back to it frequently (this is why it is called Center of Gravity) as the law of mean reversion dictates. Mean reversion can be loosely broken up into mean reversion on multiple timeframes, and the COGs are included for ULT (ultra low, 15-60m), L (low, 1h-4h), M (medium, 6h-12H) and H (higher, 1D+) timeframes. As this entity is a new development in TA there is still a lack of scientific evidence that it is reliable. However, if you look at the charts, you will notice that price action will respect this entity and circle around it on the appropriate timeframes most of the time.
The COG is similar to a Bollinger Band, it is using volatility as its main component. However, COGs are aggregated entities looking at more timeframes at the same time, so besides the Time X Volatility perspective that is provided by Bollinger Bands, this entity adds a third dimension by looking at multiple timeframes. The COG is the mean of all the BBs that are included in the calculation, which can be a large number. This makes a COG a meta-analytic entity that is more sensitive to market price action.
The COG helps you in identifying how far and for how long price has been overextended to one side beyond the means. In theory, the probabilities increase dramatically to see a mean reversion to the COG. Watching price interacting with the COG should make clear that the correlations are significant, however there might be differences based on the markets used. The COGs have primarily been tested with the BTCUSD market and for crypto in general.
A way to trade based on COGs is to look for weakness (if price is above the COG) or strength (if price is below the COG) in price action while it is approaching S&R. If signs of accumulation or distribution arise, and the distance to the COG is meaningful (as well as being maintained for a few candles), it can provide additional backing for your long/short scalping and swing trading ideas. I'd recommend to always use the COG in combination with your knowledge on price action.
By using all COGs at the same time for ULTF, LTF, MTF and HTF you can get a feeling for where price is in the context overall market flow .
----------------------
Candle Colorization
This script has an optional feature that lets you colorize the candles depending on certain score tresholds you can change manually in the indicator UI. Don't take these as signals, but rather as a possibility to become aware of when price is deviating far from the means.
----------------------
How to Use
You can find in-depth tutorials on how to use this indicator by browsing the links and resources in my signature.
(FireflyTA) Adaptive RangeThe "Adaptive Range" tool consists of 3 modules that allow simple and advanced range S&R, trend and volatility analysis.
S&R Bands
Are similar to Bollinger Bands but calculated differently. They are more adaptive than traditional Bollinger Bands and take in more data to calculate more reliable S&R.
Center of Gravity
The COG is a 3-dimensional entity and a powerful target of short-term mean reversion. In contrast to a simple moving average for example, this indicator takes in multiple timeframes and multiple volatility metrics (stdev) besides the usual time dimension (length). Whenever price gaining a distance to the COG, expect a move back to it when it is showing weakness at significant S&R.
Adaptive SuperRange
The SuperRange is based on the COG and shows an outlier area which has a strong probability of rejecting price, catapulting it back to the COG. It is unaffected by the timeframe used and can only be customized by adjusting the length and stdev values.
Peak Reversal v2This is a brand new version of my Peak Reversal indicator. As with the older version, the idea behind this indicator is simple: identify potential price reversal areas, and identifying markets which are trending. In this new version I focused on improving on the old concept, but introduced a bunch of features heavily inspired by Adam Grimes' ideas from The Art and Science of Trading. (I also blatantly stole the way he colors candles outside of the bands. Sorry.)
As you can see below this indicator gives traders a plethora of tools to judge whether a market is trending, and might be mean reverting soon.
Follow me, join my group, like the script. You know the drill.
Basic functions:
You have a triplet of Keltner (ATR-based) bands in Peak Reversal. They are defined by a multiplier and an EMA, which is referred to as "the mean". There's a tight, normal, and an extreme band. The multiplier defines how far apart your bands are. By default the indicator uses 1.125, 2.25, and 3.375. The tight band is off by default, but you can turn it on in the options. The mean is also off by default. This is more a personal preference thing for me, because I happen to use a different indicator to show a couple of moving averages.
Band crosses:
Peak Reversal can indicate whenever price crosses one of the bands. This can help traders identify points where a mean reversal play could be an option. Triangles indicate these crosses. New in version 2 is the ability to choose which of the bands to use to show these crosses. If you are more of an aggressive trader, you might find it better to show tight band crosses. If you are looking for more extreme market conditions, then choose extreme. The default is "normal".
Free bars:
Indicating free bars is also a concept from the book. A "free bar" is one which stands "freely" above the bands, which means its low price is completely outside of the bands. It can be argued that a freely standing bar is an even more extreme mean deviation, than just a band cross. Traders can gain an additional advantage studying the markets this way. Free bars are not shown by default, when on, a star shape on the candles indicates free bars. Both band crosses and free bars can be shown at the same time, but there might be overlap.
Deviations:
Also based on a concept from The Art and Science of Trading, is an indication of price "deviations". You will notice that when a candle "touches" a band (high and close above band), its colored. The idea here is to show traders when a market is in motion, but also when a mean reversal might be coming next. To accomplish this, the more colors deviate, the darker the color is. The idea here is also simple, the more price deviates off the mean, the likelier it is to return to it. This uses three different shades to show these deviations. 1-2 is one shade, 3-4 another, and upwards of 5 there's only the darkest shade. I didn't make extensive studies, which color for how many candles would be appropriate to use, but I do believe it doesn't matter that much in usage. It's clear what traders gain from using this information: more deviation, the likelier a snapback becomes.
Advanced mode:
Last but not least, I decided to add an advanced mode for advanced traders. This does nothing more than flip all colors and shapes upside down. Everything that is red, becomes green. The idea is where some traders say "buy low, sell high" (standard mode), other traders might say "buy high, sell higher" (advanced mode). See for yourself, which one you like better.