Purple CloudThe above lines calculate several intermediate values used in the indicator's calculations. Here's a breakdown of each variable:
a1: Represents a modified Exponential Moving Average (EMA) of the high price series, subtracted by a Simple Moving Average (SMA) of the low price series.
a2: Takes the square root of the lowest value between the highest close price over the last 200 bars and the current close price, multiplied by a1.
b1: Represents a modified EMA of the low price series, subtracted by an SMA of the high price series.
b2: Takes the square root of the highest value between the lowest close price over the last 200 bars and the current close price, multiplied by b1.
c1: Represents the square root of a2 multiplied by b2.
These lines create multiple plots using the plot function. Each plot represents a displaced version of c1 by a certain multiple of the Average True Range (ATR) multiplied by a constant factor (0.1, 0.2, 0.3, etc.). The transparency (transp) is set to 100 for all plots.
Bantlar ve Kanallar
Psychological levels (Bank levels) PsychoLevels v3 - TartigradiaPsychological levels (Bank levels) plots the closest "round" price levels above and below current price, based on neuroscience research of how humans intuitively calculate in logarithms.
Psychological levels, also called bank levels, are "round" price numbers, by truncating after the nth leftmost digits, around which price often experience resistance or support, because traders and investors tend to set orders around these round numbers.
The calculation done here is fully automatic and dynamic, contrary to other similar scripts, this one uses a mathematical calculation that extracts the 1, 2 or 3 leftmost digits and calculate the previous and next level by incrementing/decrementing these digits. This means it works for any symbol under any price range.
This approach is based on neuroscience research, which found that human brains intuitively approximate numbers on a logarithmic scale, adults and children alike, and similarly to macaques, for more info see Numerical Cognition , Weber-Fechner Law , Zipf law .
For example, if price is at 0.0421, the next major price level is 0.05 and medium one is 0.043. For another asset currently priced at 19354, the next and previous major price levels are 20000 and 10000 respectively, and the next/previous medium levels are 20000 and 19000, and the next/previous weak levels are 19400 and 19300.
IMPORTANT: Please enable "Scale price chart only" in the chart's scale's options, as otherwise major levels may make the chart's scale very small and hard to read.
How it works
At any time, there are 3 levels of strength (1 leftmost digit, 2 leftmost digits, 3 leftmost digits) represented by different sizes, and 3 directional levels for each of these strengths (level above, level below, and half-level) represented by different colors and positions, around current price.
Indeed, contrary to other similar price levels scripts, we do not plot ALL price levels at all times, because otherwise the chart becomes wayyy too cluttered, and also it's highly processing intensive to plot so many lines. So we here use a dynamical approach: we plot only the relevant levels, the closest ones according to current price.
Hence, when a level disappears, it does not mean that it does not exist anymore, but simply that we are not drawing it right now because it is not pertinent for the current price movement (ie, too far away).
Breakouts can be detected in two different ways depending on if SMA is set to a value higher than 1 or not: if SMA == 1, then there is no smoothing, so the levels adapt instantaneously to the current price, so to detect breakout, you should refer to the levels at the previous tick and whether they were broken by current tick's price; if SMA > 1, then there is some smoothing, and so the levels will stay in-place even if there is a breakout, so it's easier to spot breakouts without having to look at the previous ticks, but on the other hand you won't see the new levels for the new price range until after a few more ticks for the smoothing window to adapt. Hence, by default, smoothing is disabled, so that you can see the currently pertinent levels at all time, even right after or during a breakout.
By default, the strong above level is in green, strong below level is in red, medium above level is in blue, medium below level is in yellow, and weak levels aren't displayed but can be. Half levels are also displayed, in a darker color. Strong levels are increments of the first leftmost digit (eg, 10000 to 20000), medium levels are increments of the second leftmost digit (eg, 19000 to 20000), and weak levels of the third leftmost digit (eg, 19100 to 19200). Instead of plotting all the psychological levels all at once as a grid, which makes the chart unintelligible, here the levels adapt dynamically around the current price, so that they show the above/below/half levels relatively to the current price.
Indeed, "half-levels" are also displayed (eg, medium level can also display 19500 instead of only 19000 or 20000). This was made because otherwise the gap between two levels was too big, especially for the strongest levels (eg, there was no major level between 20000 and 30000, but with a half-step we also get a half-level at 25000, and empirically price tends to respect these half levels - I also tried quarter levels but empirically the results were not good). In addition to this hard-coded half-level, you can also create more subdivisions (eg, quarter levels) by setting the simple moving average to a value higher than 1.
The script can be made to run on the daily timeframe whatever the current chart's timeframe is, to reduce the variability in levels, to make it less noisy than intraday price movement. But by default, the chart resolution is used, because I empirically found that the levels found with this indicator work on all time resolutions quite well.
The step can be adjusted to increase the gap between levels, eg, if you want to display one every 2 levels then input step = 2 (eg, 22000, 24000, 26000, etc), or if you want to display quarter levels, input 0.25 (eg, 22000, 22250, 22500, etc). The default values should fit most use cases and cover most psychological levels.
How to read
Focust first on bigger dotted levels, they are stronger and more likely to cause a rebound or a major event or price to stay at this level.
Remember that it's not enough to just look at levels, the context is important, because levels have various effects depending on current price movement: if price is above a level, the level is a support on which price can rebound; if price is below a level, the level is a resistance on which price can rebound (or break); and finally sometimes price also stays hovering around a level for some time.
Levels closer to 9 are less weaker, and levels closer to 0 are stronger, according to Zipf law. This is now reflected since v3 in the transparency, levels that are closer to 9 will be more transparent.
The switch in color for the same level illustrates how a level switches from being a support to a resistance and inversely. Eg, if a major level turns from green to red, then it changed from being a resistance (above) to a support (below).
As is well known in trading, longer standing levels are stronger. This indicator provides a direct illustration: in practice, the number of consecutive dots on the same line influences the strength of the level: the longer the chain of dots, the more you can expect this price level to be significant. The length does not mean the level will necessarily hold, but that other traders are likely to monitor if it holds, and if not then price will break down. Hence, longer levels are good spots to place stop losses, or to enter trades depending on your strategy. In general, a single dot is not enough to consider a level significant, but 2 or more is a good enough level, and 10+ is a strong level. Intuitively, this makes sense, and is what pro traders do: the longer a level is tested, the stronger it is. This indicator can visually represent this intuition and allows to use it as a more systematic trading signal.
Motivation
I initially made the first version of the PsychoLevels indicator mainly to train with PineScript, but I found it surprisingly accurate to define levels that are respected by price movements. So I guess it can be useful for new traders and experienced traders alike, as it's easy to forget that psychological levels can often be as strong if not stronger than technical levels. It can also be used to quickly screen other minor assets for trading opportunities. For example, a hybrid strategy would be to manually define levels on BTCUSD but using this script to automatically define levels in crypto altcoins and quickly screen them for a trade opportunity that can be greater than with BTCUSD but with the same trend.
Personally, although initially I did not believe an automated tool would work well for this purpose, I could now empirically verify that it is quite reliable for the purpose of detecting levels, and so I use it all the time to find the levels automatically and help me monitor them like a hawk, so that I only have to draw uber major levels, the ones that last between cycles and that are hard to autodetect, but otherwise all daily/weekly levels are usually covered. However, trendlines must still be drawn manually or with another indicator (but note that up to now I have found none that worked well enough), as PsychoLevels only draws levels (ie, horizontal lines, not oblique ones!).
Differences with the previous version PsychoLevels v2
price levels now have a transparency according to their importance for the human brain: numbers closer to 9 are weaker, and numbers closer to 0 are stronger and represent a major psychological threshold (eg, that's why prices marked as $9.99 sell better than $10.00). This option can be disabled to get the exact same behavior as v2.
modularized and typed code
PsychoLevels v2 can be found here:
Multi-Indicator Confluence Signals *LITE*Description:
Introducing the Multi-Indicator Confluence Signals (MICS), a comprehensive trading tool designed to simplify the process of analyzing multiple technical indicators and uncluttering your screen!
You are able to select various pre-existing indicators, including Stochastic, RSI, MACD, EMA, DMI, Bollinger Bands, and a our own custom signal we created using only price action calculations which will provide a streamlined view of the market, allowing traders to focus on speed, trade execution, strategy, and chart reading.
We do this by converting the input from the above popular technical indicators and generate clear long and short signals by placing green(long) and/or red(short) arrows directly on the chart.
You also have the option to choose which indicators you want to show on the screen and also the option to choose long and/or short signals.
The values we have chosen to generate the signals can be seen in each of the respective indicator input (i) tab in the inputs options.
Here are some examples:
Stoch Long
Will turn on green arrow signals to inform you the smoothed, 14 period stochastic line has crossed over 20.
Stoch short
Will turn on red arrow signals to inform you the smoothed, 14 period stochastic line has crossed under 80.
MA long
Will turn on green arrow signals to inform you when the moving average of the last 21 bars has become larger than the moving average of the last 50 bars.
MA short
Will turn on red arrow signals to inform you when the moving average of the last 21 bars has become smaller than the moving average of the last 50 bars.
RSI Long
Will turn on green arrow signals to inform you when the 14 period rsi value has crossed under 70.
RSI short
Will turn on red arrow signals to inform you when the 14 period rsi value has crossed over 30.
Go from this (Imagine your own drawings+the above indicators):
To this! (Only long signals displayed)
Features :
Consolidated signals:
The MICS identifies bull and bearish signals from multiple indicators and presents them in a visual arrow pointing manner, enabling traders to quickly assess potential trade opportunities.
Unique price action arrows:
The price action arrows in the MICS trading tool are a unique feature that distinguish it from traditional technical indicators.
These arrows are generated solely based on recent price movement and are calculated using an algorithm that analyzes the strength of recent price action.
The algorithm also considers factors such as the length and intensity of the trend, as well as any notable support or resistance levels.
When the 'Price Action Long' or 'Price Action Short' options are enabled, the MICS will display green or red arrows respectively, indicating potential bullish or bearish signals.
These arrows complement the signals generated by other pre-existing technical indicators in the MICS .
Clutter-free charting:
By removing the need to display individual indicators on the chart, the MICS helps create a cleaner workspace, promoting better focus and decision-making.
Confluence-based trading:
The MICS is not designed to be used as a standalone trading system.
Instead, traders should utilize the signals as confluences to complement their pre-existing trade ideas, leading to more robust and well-informed strategies.
Mashup of Indicators:
Each indicator has its own strengths and weaknesses, but by combining them, the MICS can provide a more comprehensive view of the market.
For example, Stochastic and RSI are commonly used to measure overbought and oversold conditions, while MACD and EMA are used to identify trend direction. DMI, on the other hand, is used to gauge the strength of a trend, while Bollinger Bands can be used to identify potential breakouts.
By combining the signals from these indicators, the MICS can provide traders with a more nuanced view of the market, allowing them to make better-informed trading decisions, quickly!
How They Work Together:
The MICS generates signals by analyzing the input from each individual indicator.
If the majority of the indicators show a bullish trend, the MICS will display this by showing the indicators you selected in the settings with green long arrows, indicating a potential long trade.
Conversely, if the majority of the indicators show a bearish trend, the MICS will display red short arrows, indicating a potential short trade.
In addition, the MICS uses a unique price action signal generated solely based on recent price movement, calculated using an algorithm that analyzes the strength of recent price action.
This price action signal is a distinguishing feature of the MICS and complements the signals generated by the pre-existing technical indicators.
What Makes the MICS Original?
What makes the MICS unique is its emphasis on providing a clutter-free charting experience.
By displaying only clear long and short signals directly on the chart based on your own selection in the settings, the MICS eliminates the need to have multiple indicators cluttering the screen, allowing traders to concentrate on making informed decisions, quickly!
This price action signal is a also unique feature that sets the MICS apart from other technical indicators.
TrueLevel BandsTrueLevel Bands is a powerful trading indicator that employs linear regression and standard deviation to create dynamic, envelope-style bands around the price action of a financial instrument. These bands are designed to help traders identify potential support and resistance levels, trend direction, and volatility.
The TrueLevel Bands indicator consists of multiple envelope bands, each constructed using different timeframes or lengths, and a multiple (mult) factor. The multiple factor determines the width of the bands by adjusting the number of standard deviations from the linear regression line.
Key Features of TrueLevel Bands
1. Multi-Timeframe Analysis: Unlike traditional moving average-based indicators, TrueLevel Bands allow traders to incorporate multiple timeframes into their analysis. This helps traders capture both short-term and long-term market dynamics, offering a more comprehensive understanding of price behavior.
2. Customization: The TrueLevel Bands indicator offers a high level of customization, allowing traders to adjust the lengths and multiple factors to suit their trading style and preferences. This flexibility enables traders to fine-tune the indicator to work optimally with various instruments and market conditions.
3. Adaptive Volatility: By incorporating standard deviation, TrueLevel Bands can automatically adjust to changing market volatility. This feature enables the bands to expand during periods of high volatility and contract during periods of low volatility, providing traders with a more accurate representation of market dynamics.
4. Dynamic Support and Resistance Levels: TrueLevel Bands can help traders identify dynamic support and resistance levels, as the bands adjust in real-time according to price action. This can be particularly useful for traders looking to enter or exit positions based on support and resistance levels.
5. The "Global Trend Line" refers to the average of the bands used to indicate the overall trend.
Why TrueLevel Bands are Different from Classic Moving Averages
TrueLevel Bands differ from conventional moving averages in several ways:
1. Linear Regression: While moving averages are based on simple arithmetic means, TrueLevel Bands use linear regression to determine the centerline. This offers a more accurate representation of the trend and helps traders better assess potential entry and exit points.
2. Envelope Style Bands: Unlike moving averages, which are single lines, TrueLevel Bands form envelope-style bands around the price action. This provides traders with a visual representation of potential support and resistance levels, trend direction, and volatility.
3. Multi-Timeframe Analysis: Classic moving averages typically focus on a single timeframe. In contrast, TrueLevel Bands incorporate multiple timeframes, enabling traders to capture a broader understanding of market dynamics.
4. Adaptive Volatility: Traditional moving averages do not account for changing market volatility, whereas TrueLevel Bands automatically adjust to volatility shifts through the use of standard deviation.
The TrueLevel Bands indicator is a powerful, versatile tool that offers traders a unique approach to technical analysis. With its ability to adapt to changing market conditions, provide multi-timeframe analysis, and dynamic support and resistance levels, TrueLevel Bands can serve as an invaluable asset to both novice and experienced traders looking to gain an edge in the markets.
Variance WindowsJust a quick trial at using statistical variance/standard deviation as an indicator. The general idea is that higher variance in the short term tends to indicate more volatility/movement. The other thing is that it can help set probabilistic boundaries for movements (e.g., if you set the bars to be 2 standard deviations, you are visualizing a range that denotes a 95% probability window).
I haven't really tried forming any sort of strategies around this indicator, but there are a few potential possibilities for its usability.
Generally speaking, the magnitude of the standard deviation (relative to the price) is small when the market is consolidating. It is larger when the market is trending up or own.
If the long term variance and the short-term variance are close to each other in scale, the trend is strong. Otherwise, the trend is weak. Note that I am only saying that the "trend" is strong , not that it is necessarily positive. this could be an up-trend, down-trend, or a sideways trend.
When the magnitudes of the variances are changing from very similar to very different (usually it's the long-term variance getting much larger than the short-term one), that's an indication that the previous trend is coming to an end.
Typically, it's the long-term variance that is bigger than the short-term. However, when you see them cross where the short-term is bigger or even much bigger than the long-term, it's indicative of a spike event (more often than not, one that is not favorable if you are holding any position on a given security).
Because you have probabilistic windows based on some n standard deviations from the midline (which in this version, I've used a ZLEMA as that midline), those boundaries could possibly be used to set stop-loss limits and the like.
There's nothing too complicated or deep about this particular indicator. All I'm really doing is assuming that we are dealing with a Gaussian random process. I am actually using EMA as my mean computation, even though for a proper Gaussian variance calculation, I should be using SMA. When I used SMA, though, it felt a lot more sensitive to noise, which made it feel less usable. In any case, it's just a simple first trial in many years after not having even looked at Pine Script to finally messing around with it again. Open to a litany of criticisms as I'm sure there will be many that are rightly deserved. Otherwise, happy scalping to thee.
LeafAlgo ProThis indicator utilizes signals generated from a normalized consensus of one of the four following consensus strategies: Oscillator Consensus, Moving Average Consensus, Democratic Fib Consensus, and an Ichimoku Cloud Consensus. When the values of the individual consensus are normalized, they can be utilized as an oscillator with a range of 0-100. The range of 0-100 can be broken down into zones where if the oscillator breaks through the different thresholds and meets the directional filter requirements, a signal is generated for strong buy, buy, sell, and strong sell with respect to which underlying threshold is breached.
Oscillator:
The Oscillator setting consists of the Average Directional Index (ADX) set as a value instead of +/- and is not used in the scoring to gather consensus. Rather, a value of 25 or above is used to confirm the trend regardless of positive or negative. The Chande Momentum Oscillator (CMO), Detrended Price Oscillator (DPO), Momentum, Rate of Change (ROC), Relative Strength Index (RSI), True Strength Index (TSI), and Volume Oscillator are used in the Oscillator table for a consensus value and given a + or - depending on the condition being met. The conditions and weighting are as follows:
-- CMO > or < 0, given a weight of +/- 2
-- DPO > or < 0, given a weight of +/- 2
-- Momentum > or < 0, given a weight of +/- 2
-- ROC > or < 0, given a weight of +/- 2
-- RSI > or < 50, given a weight of +/- 1
-- TSI Value Line > or < 0, given a weight of +/- 1
-- TSI Signal Line > or < 0, given a weight of +/- 1
-- Volume Osc. > or < 0, given a weight of +/- 2
Moving Average:
For the Moving Average Ribbon/Multi-MA setting the user is able to determine the type of MA for 11 moving averages. The type selection consists of EMA, DEMA, TEMA, SMA, RMA, VWMA, WMA, SMMA, and a Hull MA. The preset values for the 11 moving averages are 5, 7, 10, 14, 21, 26, 50, 75, 100, 150, and 200. The consensus conditions and weighting are as follows:
-- If MA(1 through 10) < or > the price source, given a weight of +/- 1
-- If MA(11) < or > the price source, given a weight of +/- 2
DFMA:
The Democratic Fibonacci Moving Average setting is derived from our indicator of the same name. The source for the DFMA can be chosen by the user, but the SMA lengths are predetermined in Fibonacci intervals from 3 to 233. The DFMA line itself is determined by finding the average value of these 10 Fibonacci MA lengths. The consensus conditions and weighting are as follows:
-- If Fib. MA (3-233) < or > the source, given a weight of +/- 1
-- If DFMA value < or > the source, given a weight of +/- 2.
Ichimoku:
The Ichimoku setting values a handful of conditions using the Tenkan-sen/Conversion Line, Kijun-sen/Base Line, Senkou-span A and B, and the Chikou-span, each of which are given their standard values of 9, 26, 52, and 26, respectively, but can be changed in the user settings if desired. As opposed to the other tables, there are fewer conditions to be met and given values to. All of the conditions are given the same weighting (+/- 1). The conditions are as follows:
-- Kijun-sen < or > the source
-- Tenkan-sen < or > the source
-- Kijun-sen > or < the Chikou-span
-- Tenkan-sen > or < the Kijou-sen
-- Senkou Span A > or < Senkou Span B
Dynamic Bar Coloring
The bar coloring is based on the values of the underlying consensus oscillator.
-- If the consensus value >= 75 coloring= "Lime"
-- If the consensus value is between 55 and 70, coloring= "Green"
-- If the consensus value is between 45 and 55, coloring= "Yellow"
-- If the consensus value is between 30 and 45, coloring= "Orange"
-- If consensus value is <= 30, coloring= "Red"
Regression Channels
The visible channel utilizes a basis line of a quadratic regression line. The quadratic regression is well suited for determining (and predicting) trends. Calculating the regression involves five summation equations that utilize the bar index (x1), the price source (defaulted to ohlc4), the desired length, and the square of x1. Determining the coefficient values requires an additional step that factors in the simple moving average of the source, bar index, and squared bar index. The envelopes that are formed around the regression line are a multiple of that regression line using the high/low range of the price. This envelope can be used to determine points of interest where the price may break through, consolidate at, or reverse from. The channels should be used in conjunction with the signals generated to determine if the signal is valid.
Note past performance is not indicative of future results. This is meant to be used as a tool, and the signals generated by this script should be confirmed with other technical analysis.
BB Squeeze + SuperTrend + Keltner ChannelBollinger Bands and Keltner Channel are two of my favorite channels. When you use them correctly, they can bring great help to your trading.
I like to use Bollinger Bands and Keltner Channels to identify when you can trade and when you can not trade, which is also known as the "squeeze".
When the opening of the Bollinger Bands is very small, it is a range that you can enter a trade, the range is called "Squeeze Zone" or "Trade zone".
When the opening of the Bollinger Bands is very large, it is a range that you cannot enter a trade, because the market fluctuates big when BB's opening is large.
I use two ways to identify when the Bollinger Bands's opening is very small or large, one is the Bollinger Bands entering Keltner Bands and one is using specific ATR ranges,. The first one allows you to identify when the market is squeezing and the second one allows you to identify when the market has entered Squeeze zone, that is, the market is already in a trading range suitable for entering a trade.(see chart.)
When the market is squeezed and you enter the trade, you can also use ATR as the stop loss price of the trade, I recommend using 2 ATR as your stop loss, and I also display them on the chart (see chart).
In addition, I also added SuperTrend to this indicator. SuperTrend is a very suitable for identifying trends. You can use SuperTrend to help you identify whether to go long or short.
This is how I use this indicator(See chart):
1.Only trade when market is in Squeeze Zone. (Thick yellow line in chart)
2.When entry a trade, use 2 ATR as stop loss. (Label in Chart)
3.Use Super trend to know to go long or short.
4.Keltner Channel helps to know when the market is squeezing. (Thin yellow line in chart.)
======== 中文說明 (Chinese Explanation) ========
Bollinger Bands(布林帶)跟 Keltner Channel(肯特納通道)是我最喜歡的兩個通道,當你正確使用它們時,它們可以替你的交易帶來非常大的幫助。
我喜歡用 Bollinger Bands 跟 Keltner Channel 來識別何時可以交易,何時不能交易,這個又稱做“擠壓操作”。當布林帶的開口很小時,便是可以交易的區間,而當布林帶的開口很大時,對我來說此時就是不可以交易的區間,因為此時市場的波動很大。
我使用兩種方式來識別當布林帶開口很小的時候,一種是布林帶進入肯特納通道,一種則使用特定的ATR範圍,前者可以讓你識別市場正在擠壓,後者則可以識別市場已經進入擠壓區間,也就是市場已經處於適合進入交易的交易區間。
當市場進入擠壓之後,而你也進入了交易,你還可以使用ATR來作為交易的止損價格,我建議使用2個ATR 來當作你的止損,而我也將他們顯示在圖表上了(見圖表)。
另外,我還在這個指標中加入了 SuperTrend(超級趨勢),SuperTrend 是一個非常適合用來辨別趨勢的指標,你可以使用 SuperTrend 來幫助你識別要做多還是做空。
這是我使用該指標的方式(見圖表):
1.僅在市場處於交易區間時進行交易。 (圖中黃色粗線)
2.入場時,使用2個ATR作為止損。 (圖表中的標籤)
3.使用超級趨勢知道做多或做空。
4.Keltner Channel 有助於了解市場何時擠壓。 (圖表中的黃色細線。)
Trend Reversal Buy and sell signalAlways check the previous candle before you enter a trade. If the previous candle is colored in yellow then there's a higher probability. Do not enter if the signal candle body size is too small compared to the previous one.
Advanced Trend Channel Detection (Log Scale)The Advanced Trend Channel Detection (Log Scale) indicator is designed to identify the strongest trend channels using logarithmic scaling. It does this by calculating the highest Pearson's R value among all length inputs and then determining which length input to use for the selected slope, average, and intercept. The script then draws the upper and lower deviation lines on the chart based on the selected slope, average, and intercept, and optionally displays the Pearson's R value.
To use this indicator, you will need to switch to logarithmic scale. There are several advantages to using logarithmic scale over regular scale. Firstly, logarithmic scale provides a better visualization of data that spans multiple orders of magnitude by compressing large ranges of values into a smaller space. Secondly, logarithmic scale can help to minimize the impact of outliers, making it easier to identify patterns and trends in the data. Finally, logarithmic scale is often utilized in scientific contexts as it can reveal relationships between variables that may not be visible on a linear scale.
If the trend channel does not appear on the chart, it may be necessary to scroll back to view historical data. The indicator uses past price data to calculate the trend channel, so if there is not enough historical data visible on the chart, the indicator may not be able to identify the trend channel. In this case, the user should adjust the chart's timeframe or zoom out to view more historical data. Additionally, the indicator may need to be recalibrated if there is a significant shift in market conditions or if the selected length input is no longer appropriate.
Average Trend with Deviation Bands v2TL;DR: An average based trend incl. micro trend spotting and multiple display options.
This script is basically an update of my "Average Trend with Deviation Bands" script. I made the following changes:
Not an overlay anymore - The amount of drawn lines makes the chart pretty messy. That's why I moved it to a pane. If you preferred the overlay you can use my "Average Trend with Deviation Bands" script. *This is also the reason why I publish this script instead of updating the existing one.
I added an EMA to represent the price movement instead of candles
I added a signal (SMA) to spot micro trends and early entry/exit signals
I added the option to switch between a "line view" which shows the average trend and deviation bands and an "oscillator view" which shows an oscillator and histogram (MACD style)
General usage:
1. The white line is the average trend (which is an average of the last N bars open, close, high, low price).
2. Bands around the average trend are standard deviations which can be adjusted in the options menu and are only visible in "lines view". Basically they are like the clouds in the Ichimoku Cloud indicator - In big deviation bands the price movement needs more "power" to break through the average trend and vice versa.
3. Indicator line (blue line) - This is the EMA which represents the price. Crossing the average trend from below indicates an uptrend and vice versa (crossing from above indicates a down trend).
4. Signal line (red line) - This is a smoothed version of the indicator line which can be used to predict the movement of the price when crossed by the indicator line (like at MACD and many other indicators).
Oscillator usage:
When switched to "oscillator view" the indicator line oscillates around a zero line which can be seen as the average trend. The usage is basically the same as described above. However there is also the histogram which shows the difference between the indicator and signal. Of course the histogram can be deactivated. Additionally a color filling can be added to easily spot entry/exit signals.
As always: Code is free do whatever you like. If you have any questions/comments/etc. just drop it in the comment section.
Adaptive Momentum Channel - [Volume Filter]The Adaptive Momentum Channel with Volume Filter (Adaptive MCVF) is an indicator that utilizes an adaptive RSI to adjust its sensitivity based on the market conditions. The RSI component of the indicator calculates the standard deviation and mean deviation of RSI values and uses these to calculate the adaptive RSI. The volume filter component of the indicator filters the adaptive RSI based on the volume average, allowing the indicator to identify trend changes and filter out market noise.
The indicator plots the upper and lower bands of the Adaptive MCVF, which are calculated by taking the moving average of the filtered RSI and applying an offset based on the standard deviation. A fast moving average is also plotted, which can be used to identify short-term changes in the trend.
The Adaptive MCVF also includes a divergence identification feature, which can be used to identify potential trend changes. The indicator plots regular bullish and bearish divergences, as well as hidden bullish and bearish divergences.
This is a variant of my previous MCVF indicator, this one simply allows you to take the standard deviation of the momentum and use it to make the indicator a bit more adaptive!
I made it protected to hide the standard deviation math and the auto divergence code.
You can always use this indicator by pressing "favorite";)
Volume Channel - [With Volume Filter]The indicator calculates two volume-weighted moving averages (VWMA) using different lengths, and filters them based on a moving average of volume. The filtered VWMA values are then plotted on the chart as lines, representing the fast and slow moving averages. In addition, upper and lower bands are calculated based on the slow VWMA and plotted as lines on the chart.
The fast and slow VWMA lines can be used to identify trends in the market. When the fast VWMA is above the slow VWMA, it is an indication of an uptrend, and when the fast VWMA is below the slow VWMA, it is an indication of a downtrend. The position of the VWMA lines relative to the upper and lower bands can also be used to identify potential trade signals.
When the price is near the upper band, it indicates that the market is overbought, and when the price is near the lower band, it indicates that the market is oversold. Traders can use these signals to enter or exit trades.
The indicator also includes a volume filter, which means that the VWMA values are only calculated when the volume is above a certain moving average of volume. This helps to filter out noise in the market and provide more accurate signals.
Explanation for each parameter
vwmaLength1: This is the length of the fast volume-weighted moving average (VWMA) used in the calculation. The default value is 10, and it can be adjusted by the user.
vwmaLength2: This is the length of the slow volume-weighted moving average (VWMA) used in the calculation. The default value is 25, and it can be adjusted by the user.
bandLength: This is the length of the moving average used to calculate the upper and lower bands. The default value is 34, and it is not adjustable by the user.
volumeFilterLength: This is the length of the moving average of volume used as a filter for the VWMA calculation. The default value is 5, and it can be adjusted by the user.
src: This is the input source for the VWMA calculation. The default value is close, which means the indicator is using the closing price of each bar. However, the user can select a different input source by changing this parameter.
filteredVwma1: This is the filtered VWMA calculated based on the volume filter and the fast VWMA length. It is plotted as a line on the chart and can be used to identify short-term trends.
filteredVwma2: This is the filtered VWMA calculated based on the volume filter and the slow VWMA length. It is plotted as a line on the chart and can be used to identify long-term trends.
ma: This is the moving average of the filtered slow VWMA values, which is used to calculate the upper and lower bands. It is plotted as a line on the chart.
offs: This is the offset used to calculate the upper and lower bands. It is based on the standard deviation of the filtered slow VWMA values and is multiplied by 1.6185 * 3. It is plotted as a line on the chart.
up: This is the upper band calculated as the moving average plus the offset. It is plotted as a line on the chart and can be used to identify overbought conditions.
dn: This is the lower band calculated as the moving average minus the offset. It is plotted as a line on the chart and can be used to identify oversold conditions.
Matrix Momentum Expansion [IkkeOmar]The indicator consists of several features:
Candlestick chart: The indicator plots a candlestick chart based on the input parameters of the user. The candlesticks are colored blue or orange depending on whether the closing price is above or below the upper and lower bands.
Support and Resistance levels: The indicator also plots support and resistance levels based on the CCI (Commodity Channel Index) of the asset's price. These levels are dynamic and change based on the user's input parameters.
Momentum: The indicator calculates the momentum of the market based on the smoothed and standard deviation of the asset's price. It uses this momentum to calculate upper and lower bands that are plotted on the chart.
Warning signals: The indicator can also be used to identify potential warning signals. When the closing price of the asset moves above the upper band, it could indicate that the market is overbought and a potential reversal could occur. Conversely, when the closing price moves below the lower band, it could indicate that the market is oversold and a potential reversal could occur.
Contractions and expansions in the bands can provide important information to traders about potential price movements.
When the bands contract, it indicates that the market is experiencing low volatility and the price is likely to move sideways. During these periods, traders may look for other signals, such as support and resistance levels or price patterns, to determine potential entry and exit points.
On the other hand, when the bands expand, it indicates that the market is experiencing high volatility and the price is likely to move in a particular direction. Traders can use this information to identify potential trend reversals or continuation patterns. When the upper and lower bands move further apart, it indicates that the trend is becoming stronger, while when they move closer together, it indicates that the trend may be weakening.
When the price moves outside of the bands, it can also provide important information to traders. If the price moves above the upper band, it could indicate that the market is overbought and a potential reversal could occur. Conversely, if the price moves below the lower band, it could indicate that the market is oversold and a potential reversal could occur.
Very important note!
When you see contractions, please understand that it's a wonderful opportunity to pivot into position to catch a good trade because we will see an expansion after!
The Trend SetterThe "Trend Setter" script is a technical indicator that combines several other indicators to identify trends and potential entry points in the market. It is designed to work with various financial markets, including stocks, forex, and futures, and can be used on any timeframe.
The script uses the TTM Squeeze indicator, Bollinger Bands, Keltner Channels, CCI, and Parabolic SAR to identify trends and potential entry points. The TTM Squeeze is a custom indicator that identifies periods of low volatility, while the Bollinger Bands and Keltner Channels are used to identify potential breakouts. The CCI is used to identify potential overbought and oversold conditions, and the Parabolic SAR is used to identify potential trend reversals.
The TTM Squeeze indicator is a combination of Bollinger Bands and Keltner Channels. The indicator creates a "squeeze" when the Bollinger Bands move inside the Keltner Channels. This indicates a period of low volatility and is often followed by a period of increased volatility or a breakout. The script uses this information to identify potential trading opportunities.
The Bollinger Bands are a popular indicator used to identify potential breakouts. They consist of a moving average (the basis) and two standard deviation lines (the upper and lower bands). When the price moves outside the bands, it is considered a potential breakout.
Keltner Channels are similar to Bollinger Bands but are based on the Average True Range (ATR) instead of standard deviation. They consist of an exponential moving average (the basis) and two lines that are offset from the basis by a multiple of the ATR. When the price moves outside the channels, it is considered a potential breakout.
The CCI (Commodity Channel Index) is used to identify potential overbought and oversold conditions. It measures the difference between the typical price (the average of the high, low, and close) and a moving average of the typical price. The result is then divided by a multiple of the mean deviation. When the CCI moves above a certain threshold, it is considered overbought, and when it moves below a certain threshold, it is considered oversold.
The Parabolic SAR (Stop and Reverse) is used to identify potential trend reversals. It consists of a series of dots that appear above or below the price, depending on the direction of the trend. When the price crosses the dots, it is considered a potential reversal.
The script plots arrow shapes on the chart to indicate long and short entry points, and can also generate alerts to notify the user of potential trading opportunities. The script uses the various indicators to determine the potential entry points based on the current market conditions.
Overall, the script is designed to help traders identify potential trading opportunities and make more informed trading decisions. However, as with any trading strategy or indicator, it is important to thoroughly test and validate the approach before using it in a live trading environment. Traders should also consider their risk tolerance and other factors before making any trades based on the indicator.
In assembling the different indicators in this script, there is a specific rationale for each one's inclusion, and how they work together to create a comprehensive trading strategy.
The TTM Squeeze indicator is used as a primary filter to identify periods of low volatility, as these are often followed by high volatility and potential breakouts. Bollinger Bands and Keltner Channels are then used to identify potential breakouts, with the former representing the upper and lower boundaries of price action and the latter representing the average price range. The inclusion of both indicators helps to confirm potential breakouts and provide a more comprehensive view of price action.
The CCI indicator is used as a momentum indicator to confirm potential trend reversals, by identifying overbought and oversold conditions. This is important because while breakouts can be identified using the TTM Squeeze and Bollinger Bands/Keltner Channels, they do not necessarily indicate the direction of the breakout. The CCI helps to confirm whether the price is overbought or oversold, and can indicate potential reversals or continuations of the trend.
Finally, the Parabolic SAR is used as a trend-following indicator to identify potential trend reversals, by placing dots above or below the price depending on the direction of the trend. This helps to identify potential reversal points in the trend and can be used in conjunction with other indicators to confirm potential entry and exit points.
In summary, the combination of these indicators is designed to provide a comprehensive view of the market, identifying periods of low volatility, potential breakouts, momentum changes, and trend reversals. By providing clear entry and exit points, the script aims to help traders make more informed trading decisions and improve their overall trading performance.
Moving Average Zone Indicator (MAZI) *LITE*MAZI
Description : The MAZI (Moving Average Zone Indicator) is a slow updating moving average calculation of key high and low points in the market, which is a unique approach to sampling moving averages.
The indicator tracks only the key candles that provide good information about price movement, which distinguishes it from other moving average indicators that record a new data point with every bar that prints.
The length of the MAZI is determined by the number of key price points to reference in the average equation, not the number of candles to look at.
The value of the MAZI is fixed at 21.
The MAZI uses specific candle conditions to sample the highs and lows of specific candles to calculate the top and bottom moving averages.
If the close of a candle is lower than the close of the previous two candles, the high of the previous candle is recorded as a potential pivot value.
If the close of a candle is higher than the close of the previous two candles, the low of the previous candle is recorded as a potential pivot value.
These pivot values are then used to calculate the top and bottom moving averages which are smoothed using a simple moving average of length 9.
The upper and lower bounds of the moving average zone are calculated as one and two standard deviations away from the moving averages, respectively.
The MAZI provides a unique perspective on price movement that can help traders identify key zones of support and resistance.
The MAZI’s equation gives traders 5 crucial points of interest: the direction of the zone, the top of the zone, the middle of the zone, the bottom of the zone, and the height of the zone.
How to use each point of interest
The Direction :
Because we don’t use every candle for input into our calculations, the direction of the indicator will not change with insignificant moves in the markets allowing you to catch when something is a pull back vs when it is a real direction change.
We have also included 3 easy to read colors allowing you to gauge when direction is going down, flat, or up, by alternating the color of the zone between red, white, and green respectively.
The Top of the Zone :
The top of the zone represents where price would be expected to not go over given the length of the bars being calculated. So this tells you that if the zone is red and the highs are not breaking over the top of the zone, the market is behaving as expected and it should continue down.
On the other hand, if price does break over the top of the zone it signifies stronger than expected buying power and price movement.
The strongest indication of strong upward movement is when the top of the zone becomes an area of price support.
So when you see a candle come down from above the zone and turn around near the top of the zone there is likely a strong upward move coming.
Unless there is a very strong trend it is best to only take this trade the first time price breaks the top side and forms support.
On a range day this is not likely to happen multiple times in a row without price testing the bottom side in between.
The Middle of the Zone :
The middle of the zone is used as a general no trade zone.
Because price is inbetween where the expected high and low of price should be there is no good indicator of which way price will break out.
That does not mean you cannot find worthwhile patterns in the middle of the zone but as a general rule and a very good rule for beginner traders is to avoid entering a trade inside the zone all together.
The Bottom of the Zone :
The bottom of the zone is used similarly to the top of the zone. If the zone is green and lows are not going below the bottom of the zone the shows you that sellers are not breaking below the expected price and therefore you can expect the price to continue moving up.
On the other hand if price breaks below the low part of the zone then it shows you that sell’s have pushed price below the expected low and therefore is currently under strong selling pressure.
The strongest signal for a big downward move is when the low of the zone (the expected bottom of where price should be given the length of the indicator) turns into a resistance area for price.
When a candle comes up from underneath the zone and fails to break into the zone and starts to drop again, that is the best signal for a big downward move.
Unless there is a very strong trend it is best to only take this trade the first time price breaks the bottom side and forms resistance.
On a range day this is not likely to happen multiple times in a row without price testing the top side in between.
The Size of the Zone :
The size of the zone is very important to keep in mind when gauging profit targets and stop loss levels.
When the market is forming trending patterns the height of the zone will grow.
When the market is showing signs of ranging it will start to shrink.
In other words the smaller the zone the smaller your profit target should be (and the tighter stop you should have).
A zone with a large height shows that we have much larger moves requiring wider stops and its more likely to hit larger profit targets.
MESThe Double Bollinger Bands strategy is a trend-following strategy that aims to identify high-probability trading opportunities in trending markets. The strategy involves using two sets of Bollinger Bands with different standard deviation values to identify potential entry and exit points.
Bollinger Bands are a technical analysis tool that consists of three lines plotted on a price chart: a simple moving average (SMA) in the middle, and an upper and lower band that are each a certain number of standard deviations away from the SMA. The standard deviation value determines the width of the bands, with a larger deviation resulting in wider bands.
In this indicator, the first set of Bollinger Bands is calculated using a length of 20 bars and a standard deviation of 2, while the second set uses a length of 20 bars and a standard deviation of 3. The bands are plotted on the price chart along with the SMA for each set.
The buy signal is generated when the price falls below the lower band of the second set of Bollinger Bands (the 3-standard deviation band) and then rises above the lower band of the first set (the 2-standard deviation band). This is interpreted as a potential reversal point in a downtrend and a signal to enter a long position.
Conversely, the sell signal is generated when the price rises above the upper band of the second set of Bollinger Bands and then falls below the upper band of the first set. This is interpreted as a potential reversal point in an uptrend and a signal to enter a short position.
To make it easier to identify buy and sell signals on the price chart, the indicator plots triangles above the bars for sell signals and below the bars for buy signals.
Overall, the Double Bollinger Bands strategy can be a useful tool for traders who want to follow trends and identify potential entry and exit points. However, as with any trading strategy, it is important to backtest and thoroughly evaluate its performance before using it in live trading.
Mean ReversionThe "Mean Reversion" indicator in this script is a popular trading strategy that is based on the concept that over time, prices tend to move back towards their mean or average. This trading strategy seeks to identify instances where the price has deviated significantly from its mean and therefore presents an opportunity to profit from its eventual reversion to the mean.
The script calculates the distance between the current price and the EMA using the ATR, which is a measure of volatility. By multiplying the ATR by a specified factor, the script establishes a distance between the current price and the EMA. If the price falls below this distance, it triggers a potential buy signal, indicating that the price may be oversold and due for a rebound.
The script also uses Bollinger Bands to help identify potential buying and selling opportunities. The Bollinger Bands are a technical indicator that measures the volatility of an asset by plotting two standard deviations away from a moving average. When the price moves outside of the Bollinger Bands, it can indicate that the asset is overbought or oversold, potentially triggering a buy or sell signal.
The script's "buySignal" variable is triggered when the price is below the EMA by the specified ATR distance and also falls below the lower Bollinger Band. Conversely, the "sellSignal" variable is triggered when the price is above the EMA by the specified ATR distance and also rises above the upper Bollinger Band.
The script plots the EMA, Bollinger Bands, and the buy and sell signals on the chart for easy visualization. Additionally, the script includes alerts that can be set up to notify the user when a buy or sell signal is triggered, so that they can act on the information in a timely manner.
In summary, this script is a Mean Reversion indicator that aims to identify potential opportunities to buy or sell assets based on deviations from their mean price using a combination of the ATR, EMA, and Bollinger Bands.
MACD (KST Based) V2This is the next version of the original indicator:
To anyone unfamiliar with KST, it is a cousin of RSI. Basically, this indicator is analyzed like we would analyze charts using Stochastic RSI. It is basically an "energy oscillator".
This indicator considers price with the theory of relativity.
Relativity works this way: A downward moving MACD means that price velocity is slowing down. An upward moving one means that price is accelerating .
KST-Based MACD is all about relative performance. Exponential charts behave identically to horizontal ones.
Compare SPX and SPX/CURRCIR and see for yourself.
Just like the classic MACD, bear/bull signals appear on the histogram.
A band is drawn around the MACD, which is useful to pinpoint overbought/oversold conditions / squeezes.
It is also very useful for pinpointing / confirming divergences.
Tread lightly, for this is hallowed ground.
-Father Grigori
P.S. This is version 2 of the original one. Custom formulae are used all around this indicator. Basically, every formula has been reimagined for it to work in super-long-term timeframes. This indicator, compared to the previous one, doesn't ignore any chart data. It takes every single candle into consideration.
P.S.2. Pro tip: Use two separate windows, one with KST-MACD and one with KST-Histogram, just like in the cover.
Vollinger BandsI'm happy to present to you... VOLLINGER BANDS. Loosely based on bollinger bands, this indicator uses the new Up/Down Volume indicator from tradingview, which I have add moving averages, and a width calculation between them to determine squeeze. Essentially I have created a volume squeeze bollinger band derivative, hence the term "Vollinger Band".
The bands are NOT a deviation of any middle line or moving average, but rather their own moving averages of the volume delta, respectively.
Blue background = Volume Squeeze (vollinger bands width is less than the squeeze strength line), meaning consolidation, and a big move may happen soon.
Top line = A moving average of the Up Volume delta
Bottom line = A moving average of the Down Volume delta
Vol MA = the moving average length of both the top/bottom line
> If you zoom in, you can see a white line, which is the squeeze represented as a single line, calculated using bollinger bands width. The squeeze strength is a moving average of the squeeze line, which then determines if the width is below that moving average, then the squeeze will occur (white line below purple)
The bands are colored based on the sum of the Up/Down volume over the specified number of bars (preset at 5). If the volume is more buying than selling over that amount of bars, then the line is colored green, and vice versa.
Keltner Trend V3It's just a simple keltner trend with options added to:
Eradicate repainting
more MAs
Json alerts (useful for bots)
I recommend using "open" option for all sources if you are going to use it with a bot, or if you want to be safe and enter with confirmations. Using the default settings would also show you all the entries without repainting as it uses high and low prices to check breakouts and not solely the close price (which is generally a false representative in historic analysis).
My favorite lengths are 7, 14, and 21. There is no specific reason, they just seem to work well most of the time. You can (and should) optimize it to your purposes.
Thanks to the original author @jaggedsoft this script is just a improved version of theirs.
FibonRSI / ErkOziHello,
This software is a technical analysis script written in the TradingView Pine language. The script creates a trading indicator based on Fibonacci retracement levels and the RSI indicator, providing information about price movements and asset volatility by using Bollinger Bands.
There are many different scripts in the market that draw RSI and Fibonacci retracement levels. However, this script was originally designed by me and shared publicly on TradingView.
***The indicator uses RSI (Relative Strength Index) and Bollinger Bands (BB) as the basis for the FibonRSI strategy. RSI measures the strength of a price movement, and BB measures the volatility of an asset. The FibonRSI strategy is based on the idea that the Fibonacci ratios and RSI can be used to predict a asset's price retracement levels.
***The script allows for various parameters to be adjusted. Users can specify the price source type and adjust the periods for RSI and Bollinger Bands. The standard deviation number for Bollinger Bands can also be customized.
***The script calculates the current RSI indicator position and the basic, upper, and lower levels of Bollinger Bands. It then calculates and draws the Fibonacci retracement levels. The color of the RSI line is determined by the upper and lower distribution levels of Bollinger Bands. Additionally, the color of the Fibonacci retracement levels can also be customized by the user.
***This script can be used to determine potential buy and sell signals using Fibonacci retracement levels and RSI. For example, when the RSI is oversold and the price is close to a Fibonacci retracement level, it can be interpreted as a buying opportunity. Similarly, when the RSI is overbought and the price is close to a Fibonacci retracement level, it can be interpreted as a selling opportunity.
***The script takes input parameters such as the price source used for calculation, the period for the RSI indicator, the period for the Moving Average in Bollinger Bands, and the number of standard deviations used in Bollinger Bands.
***The script's conditions include elements such as calculating the current position of the RSI indicator, calculating the upper and lower Bollinger Bands, calculating the dispersion factor, and calculating Fibonacci levels.
***The parameters in the code can be adjusted for calculation, including the price type used, the RSI period, the Moving Average period for BB, and the standard deviation count for BB. After this, the current position of the RSI, Moving Average, and standard deviation for BB are calculated. After calculating the upper and lower BB, the levels above and below the average are calculated using a specific dispersion constant.
CONDITIONS FOR THE SCRIPT
current_rsi = ta.rsi(src, for_rsi) // Current position of the RSI indicator
basis = ta.ema(current_rsi, for_ma)
dev = for_mult * ta.stdev(current_rsi, for_ma)
upper = basis + dev
lower = basis - dev
dispersion = 1
disp_up = basis + (upper - lower) * dispersion
disp_down = basis - (upper - lower) * dispersion
// Fibonacci Levels
f100 = basis + (upper - lower) * 1.0
f78 = basis + (upper - lower) * 0.78
f65 = basis + (upper - lower) * 0.65
f50 = basis
f35 = basis - (upper - lower) * 0.65
f23 = basis - (upper - lower) * 0.78
f0 = basis - (upper - lower) * 1.0
***When calculating Fibonacci levels, the distance between the average of BB and the upper and lower BB is used. These levels are 0%, 23.6%, 35%, 50%, 65%, 78.6%, and 100%. Finally, the RSI line that changes color according to a specific RSI position, Fibonacci levels, and BB are visualized. Additionally, the levels of 70, 30, and 50 are also shown.
The script then sets the color of the RSI position according to the EMA and draws Bollinger Bands, RSI, Fibonacci levels, and the 70, 30, and 50 levels.
In conclusion, this script enables traders to analyze market trends and make informed decisions. It can also be customized to suit individual trading strategies.
This script analyzes the RSI indicator using Bollinger Bands and Fibonacci levels. The default settings are 14 periods for RSI, 233 periods and 2 standard deviations for BB. The MA period inside BB is selected as the BB period and is used when calculating Fibonacci levels.
***The reason for selecting these settings is to provide enough time for BB period to confirm a possible trend. Additionally, the MA period inside BB is matched with the BB period and used when calculating Fibonacci levels.
***Fibonacci levels are calculated from the distance between the upper and lower bands of BB and show how RSI movement is related to these levels. Better results can be achieved when RSI periods are set to Fibonacci numbers such as 21, 55, and 89. Therefore, the use of Fibonacci numbers is recommended when adjusting RSI periods. Fibonacci numbers are among the technical analysis tools that can capture the reflection of naturally occurring movements in the market. Therefore, the use of Fibonacci numbers often helps to better track fluctuations in the market.
Finally, the indicator also displays the 70 and 30 levels and the middle level (50) with Fibonacci levels drawn in circles. Changing these settings can help optimize the Fibonacci levels and further improve the indicator.
Thank you in advance for your suggestions and opinions......
Donchian Channel Oscillator (DonOsc) Preface
DonOsc stands for Donchian Channel Oscillator. This channel envelopes all prices, so if you set the height of the channel to 100 percent, you can plot the prices as percent in between, creating this sub-pane oscillator. For clarity the example chart shows a Donchian channel in the main-pane with the same look-back as the DonOsc, this way you can see how both are related.
Price River
Not only the close is plotted, but also the high and the low of the bar. Thus you get a structure that can be associated with a river, streaming from left to right, in which the price moves between the left bank (i.e. the plotted highs) and the right bank (i.e. the plotted lows), which meanders between the high border (100%) and the low border (0%) of the oscillator. The surface of the price river is gray. The price line is blue when up and dark red when down. The river has also color patches dark red, light red, blue and aqua. Stochastic patches; up: aqua, down: light red
If you look at the price river, you may notice that the price line is closer to the left bank (highs) when moving up and to the right bank (lows) when moving down. Because this phenomenon is used in the stochastic indicator, I named these stochastic patches. These are depicted on the wide side for visibility, so the aqua patches are to the right of the price line and the light-red patches to the left.
Widening patches; up: blue, down: red
If you look at tops or bottoms in bar charts, you may notice that long bars (wide range) tend to be there. You may say that prices turn with a ‘range bang’. This causes a widening of the price river, depicted as a patch on the wide side.
Channel Features
High (76.4 %) and low (23.6 %) Fibonacci levels.
In the oscillator there is no need to calculate Fibonacci levels, we can just plot them. If the price is above 50% the low level is shown with a green color, when below the high level with a pink color. When the price river crosses a level a ‘near border’ highlighter will flash, lime near the high border and orange near the low one.
New high and new low markers.
A flaw in the oscillator is that is doesn’t show actual new lows and new highs in the Donchian Channel, because everything is made relative. This is ‘repaired’ by adding markers, dark red for new low depicted between the high fib and border, blue for new high depicted between low fib and border. Used are the same colors as in the widening patches, because new highs and lows also lead to widening of the actual Channel.
Uptrend and downtrend highlighters.
If in the actual Channel the bars run in the upper half, an uptrend is happening as long as these remain there, a downtrend when the bars remain in the lower half. In the oscillator a yellow highlighter flashes when the price is higher than 50%, a red highlighter below 50%.
Interpretation of the DonOsc
This sub-pane indicator provides a wealth of useful information about what is going on in the market. First of all you immediately see whether there is an up or down trend and whether these lead to new highs or lows. Second of all you can estimate the importance of price movements in the context of the look-back period. Thirdly the width of the price river reveals the emotions in the market. The higher the emotions run, the more risk is involved in a postilion in the charted instrument.
Settings of the DonOsc
Look-back settings.
By default the script sets the look-back, depending on the time frame. This overrules the standard manual setting. If you switch this off, the manual setting will work. A feed-back label can by shown which informs about the current setting.
Smoothing
This concerns the price river. Default is 2, if you increase this setting, the river will loose its touch with the channel borders. O.t.o.h. the river wil be wider and better visible. Maximum setting is 5.
Colors
The momentum colors set both the river widening patches and new high and low markers.
Take care, Eykpunter.
SuperTrend with Chebyshev FilterModified Super Trend with Chebyshev Filter
The Modified Super Trend is an innovative take on the classic Super Trend indicator. This advanced version incorporates a Chebyshev filter, which significantly enhances its capabilities by reducing false signals and improving overall signal quality. In this post, we'll dive deep into the Modified Super Trend, exploring its history, the benefits of the Chebyshev filter, and how it effectively addresses the challenges associated with smoothing, delay, and noise.
History of the Super Trend
The Super Trend indicator, developed by Olivier Seban, has been a popular tool among traders since its inception. It helps traders identify market trends and potential entry and exit points. The Super Trend uses average true range (ATR) and a multiplier to create a volatility-based trailing stop, providing traders with a dynamic tool that adapts to changing market conditions. However, the original Super Trend has its limitations, such as the tendency to produce false signals during periods of low volatility or sideways trading.
The Chebyshev Filter
The Chebyshev filter is a powerful mathematical tool that makes an excellent addition to the Super Trend indicator. It effectively addresses the issues of smoothing, delay, and noise associated with traditional moving averages. Chebyshev filters are named after Pafnuty Chebyshev, a renowned Russian mathematician who made significant contributions to the field of approximation theory.
The Chebyshev filter is capable of producing smoother, more responsive moving averages without introducing additional lag. This is possible because the filter minimizes the worst-case error between the ideal and the actual frequency response. There are two types of Chebyshev filters: Type I and Type II. Type I Chebyshev filters are designed to have an equiripple response in the passband, while Type II Chebyshev filters have an equiripple response in the stopband. The Modified Super Trend allows users to choose between these two types based on their preferences.
Overcoming the Challenges
The Modified Super Trend addresses several challenges associated with the original Super Trend:
Smoothing: The Chebyshev filter produces a smoother moving average without introducing additional lag. This feature is particularly beneficial during periods of low volatility or sideways trading, as it reduces the number of false signals.
Delay: The Chebyshev filter helps minimize the delay between price action and the generated signal, allowing traders to make timely decisions based on more accurate information.
Noise Reduction: The Chebyshev filter's ability to minimize the worst-case error between the ideal and actual frequency response reduces the impact of noise on the generated signals. This feature is especially useful when using the true range as an offset for the price, as it helps generate more reliable signals within a reasonable time frame.
The Great Replacement
The Modified Super Trend with Chebyshev filter is an excellent replacement for the original Super Trend indicator. It offers significant improvements in terms of signal quality, responsiveness, and accuracy. By incorporating the Chebyshev filter, the Modified Super Trend effectively reduces the number of false signals during low volatility or sideways trading, making it a more reliable tool for identifying market trends and potential entry and exit points.
In-Depth Guide to the Modified Super Trend Settings
The Modified Super Trend with Chebyshev filter offers a wide range of settings that allow traders to fine-tune the indicator to suit their specific trading styles and objectives. In this section, we will discuss each setting in detail, explaining its purpose and how to use it effectively.
Source
The source setting determines the price data used for calculations. The default setting is hl2, which calculates the average of the high and low prices. You can choose other price data sources such as close, open, or ohlc4 (average of open, high, low, and close prices) based on your preference.
Up Color and Down Color
These settings control the color of the trend line when the market is in an uptrend (up_color) and a downtrend (down_color). You can customize these colors to your liking, making it easier to visually identify the current market trend.
Text Color
This setting controls the color of the text displayed on the chart when using labels to indicate trend changes. You can choose any color that contrasts well with your chart background for better readability.
Mean Length
The mean_length setting determines the length (number of bars) used for the Chebyshev moving average calculation. A shorter length will make the moving average more responsive to price changes, while a longer length will produce a smoother moving average. It is crucial to find the right balance between responsiveness and smoothness, as a too-short length may generate false signals, while a too-long length might produce lagging signals. The default value is 64, but you can experiment with different values to find the optimal setting for your trading strategy.
Mean Ripple
The mean_ripple setting influences the Chebyshev filter's ripple effect in the passband (Type I) or stopband (Type II). The ripple effect represents small oscillations in the frequency response, which can impact the moving average's smoothness. The default value is 0.01, but you can experiment with different values to find the best balance between smoothness and responsiveness.
Chebyshev Type: Type I or Type II
The style setting allows you to choose between Type I and Type II Chebyshev filters. Type I filters have an equiripple response in the passband, while Type II filters have an equiripple response in the stopband. Depending on your preference for smoothness and responsiveness, you can choose the type that best fits your trading style.
ATR Style
The atr_style setting determines the method used for calculating the Average True Range (ATR). By default (false), it uses the traditional high-low range. When set to true, it uses the absolute difference between the open and close prices. You can choose the method that works best for your trading strategy and the market you are trading.
ATR Length
The atr_length setting controls the length (number of bars) used for calculating the ATR. Similar to the mean_length, a shorter length will make the ATR more responsive to price changes, while a longer length will produce a smoother ATR. The default value is 64, but you can experiment with different values to find the optimal setting for your trading strategy.
ATR Ripple
The atr_ripple setting, like the mean_ripple, influences the ripple effect of the Chebyshev filter used in the ATR calculation. The default value is 0.05, but you can experiment with different values to find the best balance between smoothness and responsiveness.
Multiplier
The multiplier setting determines the factor by which the ATR is multiplied before being added
Super Trend Logic and Signal Optimization
The Modified Super Trend with Chebyshev filter is designed to minimize false signals and provide a clear indication of market trends. It does so by using a combination of moving averages, Average True Range (ATR), and a multiplier. In this section, we will discuss the Super Trend's logic, its ability to prevent false signals, and the early warning crosses added to the indicator.
Super Trend Logic
The Super Trend's logic is based on a combination of the Chebyshev moving average and ATR. The Chebyshev moving average is a smooth moving average that effectively filters out market noise, while the ATR is a measure of market volatility.
The Super Trend is calculated by adding or subtracting a multiple of the ATR from the Chebyshev moving average. The multiplier is a user-defined value that determines the distance between the trend line and the price action. A larger multiplier results in a wider channel, reducing the likelihood of false signals but potentially missing out on valid trend changes.
Preventing False Signals
The Super Trend is designed to minimize false signals by maintaining its trend direction until a significant change in the market occurs. In a downtrend, the trend line will only decrease in value, and in an uptrend, it will only increase. This helps prevent false signals caused by temporary price fluctuations or market noise.
When the price crosses the trend line, the Super Trend does not immediately change its direction. Instead, it employs a safety logic to ensure that the trend change is genuine. The safety logic checks if the new trend line (calculated using the updated moving average and ATR) is more extreme than the previous one. If it is, the trend line is updated; otherwise, the previous trend line is maintained. This mechanism further reduces the likelihood of false signals by ensuring that the trend line only changes when there is a significant shift in the market.
Early Warning Crosses
To provide traders with additional insight, the Modified Super Trend with Chebyshev filter includes early warning crosses. These crosses are plotted on the chart when the price crosses the trend line without the safety logic. Although these crosses do not necessarily indicate a trend change, they can serve as a valuable heads-up for traders to monitor the market closely and prepare for potential trend reversals.
In conclusion, the Modified Super Trend with Chebyshev filter offers a significant improvement over the original Super Trend indicator. By incorporating the Chebyshev filter, this modified version effectively addresses the challenges of smoothing, delay, and noise reduction while minimizing false signals. The wide range of customizable settings allows traders to tailor the indicator to their specific needs, while the inclusion of early warning crosses provides valuable insight into potential trend reversals.
Ultimately, the Modified Super Trend with Chebyshev filter is an excellent tool for traders looking to enhance their trend identification and decision-making abilities. With its advanced features, this indicator can help traders navigate volatile markets with confidence, making more informed decisions based on accurate, timely information.