DB Support Resistance Levels + Smart Higher Highs and Lower LowsDB Support Resistance Levels + Smart Higher Highs and Lower Lows
The indicator plots historic lines for high, low and close prices shown in settings as "base levels". Users can control the lookback period that is plotted along with an optional multiplier. Traders will notice that the price bounces off these historic base levels. The base levels are shown as light gray by default (customizable in the settings). Users may choose to display base levels by a combination of historic high, low and close values.
On top of the historic base levels, the indicator display higher high and lower low levels from the current bar high/low. Higher highs are shown by default in pink and lower lows by default in yellow. The user can adjust the lookback period for displaying higher highs and the optional multiplier. Only historic values higher than the current bar high are displayed filtering out (by highlighting) the remaining levels for the current bar. Users may choose to use a combination of historic open, low and close values for displaying higher highs. The user can adjust the lookback period for displaying lower lows and the optional multiplier. Only historic values lower than the current bar low are displayed filtering out (by highlighting) the remaining levels for the current bar. Users may choose to use a combination of historic open, low and close values for displaying lower low.
The indicator includes two optional filters for filtering out higher highs and lower lows to focus (highlight) the most relevant levels. The filters include KC and a simple price multiplier filter. The latter is enabled by default and recommended.
The indicator aims to provide two things; first a simple plot of historic base levels and second as the price moves to highlight the most relevant levels for the current price action. While the indicator works on all timeframes, it was tested with the weekly. Please keep in mind adjusting the timeframe may require the lookback settings to be adjusted to ensure the bars are within range.
How should I use this indicator?
Traders may use this indicator to gain a visual reference of support and resistance levels from higher periods of time with the most likely levels highlighted in pink and yellow. Replaying the indicator gives a visual show of levels in action and just how very often price action bounces from these highlighted levels.
Additional Notes
This indicator does increase the max total lines allowed which may impact performance depending on device specs. No alerts or signals for now. Perhaps coming soon...
Pita dan Kanal
SMI Momentum Bollinger Squeeze Signals - TradeUIMomentum Bollinger Squeeze Signals - TradeUI
The Squeeze Momentum Indicator (SMI) uses the principles of the Squeeze Indicator, which is a volatility indicator, and combines them with a momentum calculation to provide a more comprehensive view of the market.
The original Squeeze Indicator uses the relationship between the Bollinger Bands and Keltner Channels to identify periods of low volatility, known as "Squeezes", and potential breakout points. The SMI takes this one step further by adding a momentum calculation, making it a more dynamic tool for trading.
The momentum calculation is based on the rate of change of the asset's price. When the price increases rapidly, it signifies positive momentum, and when the price decreases rapidly, it signifies negative momentum.
Excess Invites Punishment (EIP) by Scipio ProScipio Pro's EIP is a reversal indicator. It is based on two types of evidence.
1) Proof of Fatigue -- The move that triggers the signal is losing momentum
2) Proof of Excess -- The move that triggers the signal is excessive
If both are the case, we get a signal.
The script uses standard deviations and Bollinger Bands for measuring excess and the ATR for the Breakout Continuation Protection (see below). For fatigue, the EIP detects divergences from indicators like OBV, MACD, RSI and more. It expresses these with a number. For example, if the EIP detects 9 bullish divergences, it prints the number 9 below the corresponding candle.
Hesitant Buy and Hesitant Sell mean there may have been a breakout recently, as measured with the ATR, meaning there is an increased likelihood of continuation. These can provide good buys or sells but more caution is warranted. You can adjust the so-called Breakout Continuation Protection in Settings. Doing so may lead to either more or less "hesitant" signals.
The signals don't repaint. Of course, the divergences get recalculated as the market evolves, as they should. But signals like Buy, Sell, Hesitant Buy, and Hesitant Sell never repaint.
The EIP is useful on many different time-frames and with many different assets, be they in stocks or crypto. The images below show results from BTC, MATIC, and S&P 500 over multiple years, both on small and large time-frames.
As always, use at your own risk. Using indicators is no substitute for using one's brain.
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.
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.