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.
Meanreversion
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.
HYE Combo Market [Strategy] (Vwap Mean Reversion + Trend Hunter)In this strategy, I used a combination of trend hunter and vwap mean reversion strategies that I published before.
Trend Hunter Strategy:
Mean Reversion Vwap Strategy:
The results are quite impressive, especially for bitcoin.
While the hodl return for bitcoin was 13419%, the strategy's return in the same period was about 5 times (65000%) of this.
s3.tradingview.com
In this combo strategy, I made some changes to the original settings of the strategies used together and added some more new features.
Trend Hunter Strategy Settings: (Original / Combo)
- Slow Tenkansen Period : 9 / 9
- Slow Kijunsen Period : 26 / 13
- Fast Tenkansen Period : 5 / 3
- Fast Kijunsen Period : 13 / 7
- BB Length : 20 / 20
- BB Stdev : 2 / 2
- TSV Length : 13 / 20
- TSV Ema Length : 7 / 7
* I also added a "vidya moving average" to be used as a confirmation tool to open a long position. (Candle close must be above the vidya line.)
Vwap Mean Reversion Strategy Settings: (Original / Combo)
- Small Vwap : 2 / 8
- Big Vwap : 5 / 10
- Percent Below to Buy : 3 / 2
- RSI Period : 2 / 2
- RSI Ema Period : 5 / 5
- Maximum RSI Level for Buy : 30
* I also added a "mean vwap line" to be used for exits in this part of the strategy. In the original version, when small vwap crossovers big vwap, we close the position, but in this strategy we will wait for the close above the mean vwap.
TIPS AND WARNINGS
1-) The standard settings of this combo strategy is designed and tested with daily timeframe. For lower timeframes, you should change the strategy 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 strategy code.
3-) This is a strategy 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 strategy.
________________________________________________________
Bu stratejide, daha önce yayınladığım trend avcısı ve vwap ortalamaya geri dönüş stratejilerinin bir kombinasyonunu kullandım.
Sonuçlar özellikle bitcoin için oldukça etkileyici.
Bitcoin için hodl getirisi %13419 iken, stratejinin aynı dönemdeki getirisi bunun yaklaşık 5 katı (%65000) idi.
Bu kombo stratejide, birlikte kullanılan stratejilerin orijinal ayarlarında bazı değişiklikler yaptım ve bazı yeni özellikler ekledim.
Trend Avcısı Strateji Ayarları: (Orijinal / Combo)
- Yavaş Tenkansen Periyodu : 9 / 9
- Yavaş Kijunsen Periyodu : 26 / 13
- Hızlı Tenkansen Periyodu : 5 / 3
- Hızlı Kijunsen Periyodu : 13 / 7
- BB Uzunluğu : 20 / 20
- BB Standart Sapması : 2 / 2
- TSV Uzunluğu : 13 / 20
- TSV Ema Uzunluğu : 7 / 7
* Ayrıca long pozisyon açmak için onay aracı olarak kullanılmak üzere "vidya hareketli ortalama" ekledim. (Mum kapanışı vidya çizgisinin üzerinde olmalıdır.)
Vwap Ortalamaya Dönüş Stratejisi Ayarları: (Orijinal / Combo)
- Küçük Vwap : 2 / 8
- Büyük Vwap : 5 / 10
- Alış İçin Gerekli Fark Oranı : 3 / 2
- RSI Periyodu : 2 / 2
- RSI Ema Periyodu: 5 / 5
- Alış için gerekli maksimum RSI seviyesi : 30
* Stratejinin bu bölümünde pozisyondan çıkışlar için kullanılacak bir "ortalama vwap çizgisi" de ekledim. Orijinal versiyonda, küçük vwap, büyük vwap'ı yukarı kestiğinde pozisyonu kapatıyoruz, ancak bu stratejide, ortalama vwap'ın üzerindeki kapanışı bekleyeceğiz.
İPUÇLARI VE UYARILAR
1-) Bu birleşik stratejinin standart ayarları, günlük zaman dilimi ile tasarlanmış ve test edilmiştir. Daha düşük zaman dilimleri için strateji ayarlarını değiştirmeli ve kendiniz için en iyi değeri bulmalısınız.
2-) Grafikte sadece ortalama vwap çizgisi görüntülenir. Ayrıntılı bir görünüm için strateji kodundaki "plot" ile başlayan satırlarda grafikte görünmesini istediğiniz özelliğin önündeki "//" işaretlerini silebilirsiniz.
3-) Eğitim ve deneysel amaçlı bir stratejidir. Yatırım tavsiyesi olarak değerlendirilemez. Bu stratejiyi kullanarak gerçek piyasa işlem açarken dikkatli olmalı ve kendi risk değerlendirmenizi yapmalısınız.
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.
TradeChartist Intensity Pro™TradeChartist Intensity Pro is a visual indicator that comes with 5 Visual Themes and Auto-fibs feature that helps traders with Entry/Exit and levels confirmation based on where the price is, in relation to the Orange Price Equilibrium line and the 5 zones of Bull/Bear limits that fade into the top or bottom outer space.
™TradeChartist Intensity is an original Mean Reversion Model that requires no user input and Intensity Pro incorporates User adjustable Auto-Fibs and manual Fibonacci retracement feature and plots customisable Fib levels along with prices.
======================================================================================
Intensity Pro Features
Orange Mean Equilibrium Line
Bull and Bear Intensity Bands
5 Visual Themes
Trend based Bar Colours
Auto Fibonacci Levels
Custom Auto-Fib Levels
Fibonacci Levels based on Days or Bars Lookback
Current Fib Level label
High and Low Plots
Take Profit Bars
======================================================================================
Example Charts:
1. 4hr BTC-USDT
2. SPX Daily
3. EUR-USD 1hr
======================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
======================================================================================
This is not a free to use indicator. Get in touch with me (PM me directly if you would like trial access to test the indicator)
Premium Scripts - Trial access and Information
Trial access offered on all Premium scripts.
PM me directly to request trial access to the scripts or for more information.
======================================================================================
Hurst ExponentMy first try to implement Full Hurst Exponent.
The Hurst exponent is used as a measure of long-term memory of time series. It relates to the autocorrelations of the time series and the rate at which these decrease as the lag between pairs of values increases
The Hurst exponent is referred to as the "index of dependence" or "index of long-range dependence". It quantifies the relative tendency of a time series either to regress strongly to the mean or to cluster in a direction.
In short, depending on the value you can spot the trending / reversing market.
Values 0.5 to 1 - market trending
Values 0 to 0.5 - market tend to mean revert
Hurst Exponent is computed using Rescaled range (R/S) analysis.
I split the lookback period (N) in the number of shorter samples (for ex. N/2, N/4, N/8, etc.). Then I calculate rescaled range for each sample size.
The Hurst exponent is estimated by fitting the power law. Basically finding the slope of log(samples_size) to log(RS).
You can choose lookback and sample sizes yourself. Max 8 possible at the moment, if you want to use less use 0 in inputs.
It's pretty computational intensive, so I added an input so you can limit from what date you want it to be calculated. If you hit the time limit in PineScript - limit the history you're using for calculations.
####################
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
ema exhaustion (exa)The exa is an oscillator that combines fisher transform with distance from moving average and it is based on a theory that exhaustion can be derived from how far price is able to extend from a moving average, on average.
The fisher transform converts price into a gaussian normal distribution, also known as a bell curve {1}. A normal distribution is a type of probability distribution for a real-valued random variable {2}. Applying this method to the price of an asset can help to identify probabilities, but it will never identify certainties.
‘exa’ is an abbreviation for ema exhaustion. It can be used to identify when price is probable to revert to the mean but I prefer using it to confirm entries that are signaled following a reversion to the mean (aka buying the dip in bull markets). When price gets oversold into support, in a bull trend, then that can provide a good opportunity to enter long. However that isn’t necessarily the case when the same metrics indicate oversold conditions in a bear trend. In this situation the exa is best suited for identifying profit taking opportunities on shorts.
The default settings are a 9 lookback period and a 50 ema. By default signals will be derived from how far price is from the 50 ema relative to the probable distribution of the last 9 periods. If the exa is above 2, or below -2, then the price is in the 80th percentile of the prior 9 candles. Being outside of 3, or -3, represents the 90th percentile and 4, or -4, represents the 95th percentile.
Those ranges will never indicate a necessity of reverting to the mean, but they will indicate a higher and higher probability. I prefer to use this oscillator in combination with an indicator(s) that identifies the trend. When the oscillator reaches -2 in a bull trend then it can confirm long entry signals, whereas if it reaches +2 in a bull trend then it can be used to confirm signals to take profit.
Crossovers are especially significant because they indicate a shift in the tide. When the exa reaches 2 without crossing over then it is very much in a position to move to 3 or 4+. When it crosses above 2 then it is an indication that price is extended from the mean and exhausted.
This is certainly not a situation that implies price will revert to the mean, it simply provides confirmation.
The default settings are what I have been finding most effective personally, however that is mostly a function of the trend following tools that I use. The same principles should apply with all settings and I would encourage users to experiment with various lookback periods and emas.
{1} www.investopedia.com
{2} en.wikipedia.org
Simple Hurst Exponent [QuantNomad]This is a simplified version of the Hurst Exponent indicator.
In the meantime, I'm working on the full version. It's computationally intensive, so it's a challenge to squeeze it to PineScript limits. It will require some time to optimize it, so I decided to publish a simplified version for now.
The Hurst exponent is used as a measure of long-term memory of time series. It relates to the autocorrelations of the time series, and the rate at which these decrease as the lag between pairs of values increases
The Hurst exponent is referred to as the "index of dependence" or "index of long-range dependence". It quantifies the relative tendency of a time series either to regress strongly to the mean or to cluster in a direction.
In short depend on value you can spot trending / reversing market.
Values 0.5 to 1 - market trending
Values 0 to 0.5 - market tend to mean revert
####################
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
GMS: SuperDuperTrend IndicatorFinally, I'm posting this!
Okay so here's the deal. This is my variation of a supertrend indicator... in the sense that the colors and levels will swap back and forth like a traditional supertrend but these are obviously bands... The only possible adjustments are which moving average you want to use, it's length, the ATR length, and of course the input price.
Blue bands are support, red bands are resistance. As soon as you break support (blue) you will see the resistance (red) pop up and vice versa. It is possible to see both at the same time, that just indicates a range bound situation.
I really like this to a) identify trend and b) trade within the trend. So there are two ways to interpret this...
1. Trade with the trend - long on a breakout or short on a breakdown.
2. Trade within the trend - buy the dip within the uptrend or short the rip within a downtrend.
These levels could also be decent places to look to set stop losses too.
Personally I like the second method of trading within the trend, after all it is your friend... most of the time lol
The default settings are what I use and they tend to work on anytime frame, chart type, or market. But as always tinker with it a bit to find where and when it works best for you!
Hope this helps,
Andre
Coefficient of Variation - EMA and SMA StDevYet another way to try and measure volatility. An alternative to using ATR is Standard Deviation, it can be used to measure volatility or what is also known as risk. SD measures how dispersed or far away the data is from the mean. It's commonly seen in risk management formulas or portfolio diversification formulas. The problem however is that the numbers that ATR and SD give off from one equity might not be relative to others or its own past. For example, SPY can give a large number despite not being as volatile as other equities while others being compared to can have smaller volatility numbers and still be more volatile looking.
A solution I thought of is to use percentages that are relatable to different equities. I found out another name for this idea comes from statistics and is known as coefficient of variation, also known as relative standard deviation. This helps see the volatility as a percentage and not just a number that only relates to what is being seen at the moment. I put in a border line on the zero level to see where zero is at but also to edit in case there is such a thing as a percentage number that can be too high or too low for volatility to be looked at if needed. The average and standard deviation formulas can use either simple moving average or exponential moving average.
VPR Grid█ OVERVIEW
Official release of VPR Grid, a mean reverting, trend discovering tool meant to protect capital and find high probability entries.
What this indicator is meant to be used for:
Mean reverting trades
Entries or exits for either swing trades or scalps
Traditional and cryptocurrency markets
Low and high timeframe setups
Sentiment checks
Options to configure:
Optionally use volume in analysis
Use intraday, daily, weekly, or month calculation + choose how many periods of each
Moving average length. This is best kept on the lower end for cryptocurrencies, with respect for volatility
Grid spacing: a purely comestic option that should help with viewing the indicator.
The most important thing to use VPR effectively is to use its settings. The flexibility of VPR Grid is given through its settings. The development that went towards mean reversion and trend discovering means it is a hybrid of fading and trend following tools.
This is a paid premium indicator; please DM me for access. See the images below for examples/explanations on the indicator. Take note of the indicator arguments and which settings were used for a certain timeframe or asset class.
Ark Crypto HeatlineThis is the 'on chart' indicator. See also "Ark Crypto Heatband" indicator for a side-by-side BTC view, without a re-scaled line.
The crypto landscape is largely dominated by BTC and characterised by cyclical stages with varying degrees of mean reversion.
To understand what stage of the cycle we are currently experiencing, it is useful to examine to what degree the current price has extended beyond the long term average that BTC has established. This is true even when analysing other crypto assets as BTC is the dominant force in the crypto asset class.
This indicator uses the 1400 period daily SMA , which is broadly the 200 period weekly SMA. This can be configured, but historically has represented a baseline to which BTC commonly returns.
The graph plots current price in terms of multiples of this long term average. Traditionally, at multiples beyond 10, BTC is considered overextended with a higher likelihood of trending towards the mean thereafter. Colors indicate the extent of price extension.
Where the indicator is applied to non BTCUSD pairs, a smoothed conversion is applied, seeking to superimpose the BTC long period SMA onto the current chart.
The indicator specifically references BTC by default on all charts, as it is designed to use BTC as general purpose indication of where crypto as a whole currently sits. Accordingly the indicator is only to be used on crypto charts.
For best results on BTC, using BNC:BLX will give the longest historical view.
Ark Crypto HeatbandThe crypto landscape is largely dominated by BTC and characterised by cyclical stages with varying degrees of mean reversion.
To understand what stage of the cycle we are currently experiencing, it is useful to examine to what degree the current BTC price has extended beyond a long term average. This is true even when analysing other crypto assets and helpful to view side by side.
This indicator uses the 1400 period daily SMA, which is broadly the 200 period weekly SMA. This can be configured, but historically has represented a baseline to which BTC commonly returns.
The graph plots current price in terms of multiples of this long term average. Traditionally, at multiples beyond 10, BTC is considered overextended with a higher likelihood of trending towards the mean thereafter. Colors indicate the extend of price extension.
The indicator specifically references BTC by default on all charts as it is designed to use BTC as general purpose indication of where crypto as a whole currently sits. Accordingly the indicator is only to be used on crypto charts.