Advanced Volatility-Adjusted Momentum IndexAdvanced Volatility-Adjusted Momentum Index (AVAMI)
The AVAMI is a powerful and versatile trading index which enhances the traditional momentum readings by introducing a volatility adjustment. This results in a more nuanced interpretation of market momentum, considering not only the rate of price changes but also the inherent volatility of the asset.
Settings and Parameters:
Momentum Length: This parameter sets the number of periods used to calculate the momentum, which is essentially the rate of change of the asset's price. A shorter length value means the momentum calculation will be more sensitive to recent price changes. Conversely, a longer length will yield a smoother and more stabilized momentum value, thereby reducing the impact of short-term price fluctuations.
Volatility Length: This parameter is responsible for determining the number of periods to be considered in the calculation of standard deviation of returns, which acts as the volatility measure. A shorter length will result in a more reactive volatility measure, while a longer length will produce a more stable, but less sensitive measure of volatility.
Smoothing Length: This parameter sets the number of periods used to apply a moving average smoothing to the AVAMI and its signal line. The purpose of this is to minimize the impact of volatile periods and to make the indicator's lines smoother and easier to interpret.
Lookback Period for Scaling: This is the number of periods used when rescaling the AVAMI values. The rescaling process is necessary to ensure that the AVAMI values remain within a consistent and interpretable range over time.
Overbought and Oversold Levels: These levels are thresholds at which the asset is considered overbought (potentially overvalued) or oversold (potentially undervalued), respectively. For instance, if the AVAMI exceeds the overbought level, traders may consider it as a possible selling opportunity, anticipating a price correction. Conversely, if the AVAMI falls below the oversold level, it could be seen as a buying opportunity, with the expectation of a price bounce.
Mid Level: This level represents the middle ground between the overbought and oversold levels. Crossing the mid-level line from below can be perceived as an increasing bullish momentum, and vice versa.
Show Divergences and Hidden Divergences: These checkboxes give traders the option to display regular and hidden divergences between the AVAMI and the asset's price. Divergences are crucial market structures that often signal potential price reversals.
Index Logic:
The AVAMI index begins with the calculation of a simple rate of change momentum indicator. This raw momentum is then adjusted by the standard deviation of log returns, which acts as a measure of market volatility. This adjustment process ensures that the resulting momentum index encapsulates not only the speed of price changes but also the market's volatility context.
The raw AVAMI is then smoothed using a moving average, and a signal line is generated as an exponential moving average (EMA) of this smoothed AVAMI. This signal line serves as a trigger for potential trading signals when crossed by the AVAMI.
The script also includes an algorithm to identify 'fractals', which are distinct price patterns that often act as potential market reversal points. These fractals are utilized to spot both regular and hidden divergences between the asset's price and the AVAMI.
Application and Strategy Concepts:
The AVAMI is a versatile tool that can be integrated into various trading strategies. Traders can utilize the overbought and oversold levels to identify potential reversal points. The AVAMI crossing the mid-level line can signify a change in market momentum. Additionally, the identification of regular and hidden divergences can serve as potential trading signals:
Regular Divergence: This happens when the asset's price records a new high/low, but the AVAMI fails to follow suit, suggesting a possible trend reversal. For instance, if the asset's price forms a higher high but the AVAMI forms a lower high, it's a regular bearish divergence, indicating potential price downturn.
Hidden Divergence: This is observed when the price forms a lower high/higher low, but the AVAMI forms a higher high/lower low, suggesting the continuation of the prevailing trend. For example, if the price forms a lower low during a downtrend, but the AVAMI forms a higher low, it's a hidden bullish divergence, signaling the potential continuation of the downtrend.
As with any trading tool, the AVAMI should not be used in isolation but in conjunction with other technical analysis tools and within the context of a well-defined trading plan.
볼래틸리티
Average Range PercentageIt is indicator for average percent range (range from high to low of stock/index price) of N days,
This will help to find high percentage moving stock/index for intraday.
Spinn: SuperStopAdaptive Trailing Stop-Loss Indicator
This indicator will be beneficial for traders who have already opened a position and are looking to maximize their profits but are uncertain about the optimal time to exit. It provides clear and adaptive stop-loss levels based on market data, especially in highly volatile markets. It offers the ability to close trades automatically (through the use of web-hooks).
The algorithm is based on using the Average True Range (ATR) to set stop-loss levels. The scaling factor allows you to adjust the optimal distance from the stop-loss line to the price line.
A unique feature of this indicator is that the user can set the target timeframe (Target TF). This means that instead of just using the current chart's timeframe, you can set a multiplier or choose the target timeframe manually. This offers the ability to analyze volatility across different timeframes, which can be valuable for various trading strategies.
The timeframe multiplier is a highlight of this indicator. When switching the current timeframe, there is no need to manually change the target timeframe - this is very convenient.
The ability for automatic alerts when the price touches or crosses stop-loss levels is included.
--
Индикатор адаптивных плавающих Стоп-лоссов
Индикатор будет полезен для трейдеров, которые уже открыли сделку и хотят максимизировать свою прибыль, но не уверены в оптимальном моменте для выхода. Он предоставляет четкие и адаптивные уровни стоп-лоссов, основанные на рыночных данных, особенно при высокой волатильности. Дает возможность закрывать сделки в автоматическом режиме (через использование веб-хуков).
Алгоритм основан на использовании среднего истинного диапазона (ATR) для определения уровней стоп-лоссов. Коэффициент масштабирования дает возможность настроить оптимальное расстояние от линии стоп-лосса до линии цены.
Особенность индикатора в том, что пользователь может настроить целевой таймфрейм (Target TF). Это значит, что вместо того чтобы просто использовать текущий таймфрейм графика, можно установить множитель или выбрать целевой таймфрейм вручную. Это дает возможность анализировать волатильность на разных временных рамках, что может быть полезно для различных торговых стратегий.
Множитель таймфрейма - это фишка данного индикатора. При переключении текущего таймфрейма не придется вручную менять целевой таймфрейм - это очень удобно.
Предусмотрена возможность автоматических оповещений при касании или пересечении уровней стоп-лоссов.
Multi Kernel Regression [ChartPrime]The "Multi Kernel Regression" is a versatile trading indicator that provides graphical interpretations of market trends by using different kernel regression methods. It's beneficial because it smoothes out price data, creating a clearer picture of price movements, and can be tailored according to the user's preference with various options.
What makes this indicator uniquely versatile is the 'Kernel Select' feature, which allows you to choose from a variety of regression kernel types, such as Gaussian, Logistic, Cosine, and many more. In fact, you have 17 options in total, making this an adaptable tool for diverse market contexts.
The bandwidth input parameter directly affects the smoothness of the regression line. While a lower value will make the line more sensitive to price changes by sticking closely to the actual prices, a higher value will smooth out the line even further by placing more emphasis on distant prices.
It's worth noting that the indicator's 'Repaint' function, which re-estimates work according to the most recent data, is not a deficiency or a flaw. Instead, it’s a crucial part of its functionality, updating the regression line with the most recent data, ensuring the indicator measurements remain as accurate as possible. We have however included a non-repaint feature that provides fixed calculations, creating a steady line that does not change once it has been plotted, for a different perspective on market trends.
This indicator also allows you to customize the line color, style, and width, allowing you to seamlessly integrate it into your existing chart setup. With labels indicating potential market turn points, you can stay on top of significant price movements.
Repaint : Enabling this allows the estimator to repaint to maintain accuracy as new data comes in.
Kernel Select : This option allows you to select from an array of kernel types such as Triangular, Gaussian, Logistic, etc. Each kernel has a unique weight function which influences how the regression line is calculated.
Bandwidth : This input, a scalar value, controls the regression line's sensitivity towards the price changes. A lower value makes the regression line more sensitive (closer to price) and higher value makes it smoother.
Source : Here you denote which price the indicator should consider for calculation. Traditionally, this is set as the close price.
Deviation : Adjust this to change the distance of the channel from the regression line. Higher values widen the channel, lower values make it smaller.
Line Style : This provides options to adjust the visual style of the regression lines. Options include Solid, Dotted, and Dashed.
Labels : Enabling this introduces markers at points where the market direction switches. Adjust the label size to suit your preference.
Colors : Customize color schemes for bullish and bearish trends along with the text color to match your chart setup.
Kernel regression, the technique behind the Multi Kernel Regression Indicator, has a rich history rooted in the world of statistical analysis and machine learning.
The origins of kernel regression are linked to the work of Emanuel Parzen in the 1960s. He was a pioneer in the development of nonparametric statistics, a domain where kernel regression plays a critical role. Although originally developed for the field of probability, these methods quickly found application in various other scientific disciplines, notably in econometrics and finance.
Kernel regression became really popular in the 1980s and 1990s along with the rise of other nonparametric techniques, like local regression and spline smoothing. It was during this time that kernel regression methods were extensively studied and widely applied in the fields of machine learning and data science.
What makes the kernel regression ideal for various statistical tasks, including financial market analysis, is its flexibility. Unlike linear regression, which assumes a specific functional form for the relationship between the independent and dependent variables, kernel regression makes no such assumptions. It creates a smooth curve fit to the data, which makes it extremely useful in capturing complex relationships in data.
In the context of stock market analysis, kernel regression techniques came into use in the late 20th century as computational power improved and these techniques could be more easily applied. Since then, they have played a fundamental role in financial market modeling, market prediction, and the development of trading indicators, like the Multi Kernel Regression Indicator.
Today, the use of kernel regression has solidified its place in the world of trading and market analysis, being widely recognized as one of the most effective methods for capturing and visualizing market trends.
The Multi Kernel Regression Indicator is built upon kernel regression, a versatile statistical method pioneered by Emanuel Parzen in the 1960s and subsequently refined for financial market analysis. It provides a robust and flexible approach to capturing complex market data relationships.
This indicator is more than just a charting tool; it reflects the power of computational trading methods, combining statistical robustness with visual versatility. It's an invaluable asset for traders, capturing and interpreting complex market trends while integrating seamlessly into diverse trading scenarios.
In summary, the Multi Kernel Regression Indicator stands as a testament to kernel regression's historic legacy, modern computational power, and contemporary trading insight.
Webby's Tight IndicatorWebby's Tight Indicator is used to measure a securities volatility relative to itself over time. This is achieved by taking the average of three short term ATR's (average true range) and creating a ratio versus three longer term ATR's.
Mike Webster recently stated he is using the 3,5,8 for the short term ATR's and the 55,89,144 for the long term ATR's. All of the ATR lengths are part of the Fibonacci sequence.
The ratio of the ATR's is then calculated and plotted as a histogram with 0 representing the ATR's being equal. As a stocks short term ATR contracts the histogram will rise above 0 meaning volatility in the short term is contracting relative to long term volatility. On the other hand if the short ATR's are expanding versus the long term ATR's the histogram will fall below 0 and turn red, signifying short term volatility is greater than long term volatility.
The easy visualization of this indicator allows you to quickly see when a stock is in a tight range and could be ready for a potential breakout to the long side or breakdown to the short side.
In this example we see tight price action with a blue histogram followed by volatility to the upside coinciding with a breakout.
In this example we see volatility expanding as a stock continues to fall.
To help differentiate between trending contraction or expansion and just short term blips 5-day exponential moving average of the ratio is also plotted on the histogram and dynamically changes colors as it rises and falls.
Indicator options include:
Change histogram colors
Choose ema line width
Price Exhaustion IndicatorThe Price Exhaustion Indicator (PE) is a powerful tool designed to identify trends weakening and strengthening in the financial markets. It combines the concepts of Average True Range (ATR), Moving Average Convergence Divergence (MACD), and Stochastic Oscillator to provide a comprehensive assessment of trend exhaustion levels. By analyzing these multiple indicators together, traders and investors can gain valuable insights into potential price reversals and long-term market highs and lows.
The aim of combining the ATR, MACD, and Stochastic Oscillator, is to provide a comprehensive analysis of trend exhaustion. The ATR component helps assess the volatility and range of price movements, while the MACD offers insights into the convergence and divergence of moving averages. The Stochastic Oscillator measures the current price in relation to its range, providing further confirmation of trend exhaustion. The exhaustion value is derived by combining the MACD, ATR, and Stochastic Oscillator. The MACD value is divided by the ATR value, and then multiplied by the Stochastic Oscillator value. This calculation results in a single exhaustion value that reflects the combined influence of these three indicators.
Application
The Price Exhaustion Indicator utilizes a unique visual representation by incorporating a gradient color scheme. The exhaustion line dynamically changes color, ranging from white when close to the midline (40) to shades of purple as it approaches points of exhaustion (overbought at 100 and oversold at -20). As the exhaustion line approaches the color purple, this represents extreme market conditions and zones of weakened trends where reversals may occur. This color gradient serves as a visual cue, allowing users to quickly gauge the strength or weakness of the prevailing trend.
To further enhance its usability, the Price Exhaustion Indicator also includes circle plots that signify potential points of trend reversion. These plots appear when the exhaustion lines cross or enter the overbought and oversold zones. Red circle plots indicate potential short entry points, suggesting a weakening trend and the possibility of a downward price reversal. Conversely, green circle plots represent potential long entry points, indicating a strengthening trend and the potential for an upward price reversal.
Traders and investors can leverage the Price Exhaustion Indicator in various ways. It can be utilized as a trend-following tool, or a mean reversion tool. When the exhaustion line approaches the overbought or oversold zones, it suggests a weakening trend and the possibility of a price reversal, helping identify potential market tops and bottoms. This can guide traders in timing their entries or exits in anticipation of a trend shift.
Utility
The Price Exhaustion Indicator is particularly useful for long-term market analysis, as it focuses on identifying long-term market highs and lows. By capturing the gradual weakening or strengthening of a trend, it assists investors in making informed decisions about portfolio allocation, trend continuation, or potential reversals.
In summary, the Price Exhaustion Indicator is a comprehensive and visually intuitive tool that combines ATR, MACD, and Stochastic Oscillator to identify trend exhaustion levels. By utilizing a gradient color scheme and circle plots, it offers traders and investors valuable insights into potential trend reversals and long-term market highs and lows. Its unique features make it a valuable addition to any trader's toolkit, providing a deeper understanding of market dynamics and assisting in decision-making processes. Please note that future performance of any trading strategy is fundamentally unknowable, and past results do not guarantee future performance.
Kalman Filtered ROC & Stochastic with MA SmoothingThe "Smooth ROC & Stochastic with Kalman Filter" indicator is a trend following tool designed to identify trends in the price movement. It combines the Rate of Change (ROC) and Stochastic indicators into a single oscillator, the combination of ROC and Stochastic indicators aims to offer complementary information: ROC measures the speed of price change, while Stochastic identifies overbought and oversold conditions, allowing for a more robust assessment of market trends and potential reversals. The indicator plots green "B" labels to indicate buy signals and blue "S" labels to represent sell signals. Additionally, it displays a white line that reflects the overall trend for buy signals and a blue line for sell signals. The aim of the indicator is to incorporate Kalman and Moving Average (MA) smoothing techniques to reduce noise and enhance the clarity of the signals.
Rationale for using Kalman Filter:
The Kalman Filter is chosen as a smoothing tool in the indicator because it effectively reduces noise and fluctuations. The Kalman Filter is a mathematical algorithm used for estimating and predicting the state of a system based on noisy and incomplete measurements. It combines information from previous states and current measurements to generate an optimal estimate of the true state, while simultaneously minimizing the effects of noise and uncertainty. In the context of the indicator, the Kalman Filter is applied to smooth the input data, which is the source for the Rate of Change (ROC) calculation. By considering the previous smoothed state and the difference between the current measurement and the predicted value, the Kalman Filter dynamically adjusts its estimation to reduce the impact of outliers.
Calculation:
The indicator utilizes a combination of the ROC and the Stochastic indicator. The ROC is smoothed using a Kalman Filter (credit to © Loxx: ), which helps eliminate unwanted fluctuations and improve the signal quality. The Stochastic indicator is calculated with customizable parameters for %K length, %K smoothing, and %D smoothing. The smoothed ROC and Stochastic values are then averaged using the formula ((roc + d) / 2) to create the blended oscillator. MA smoothing is applied to the combined oscillator aiming to further reduce fluctuations and enhance trend visibility. Traders are free to choose their own preferred MA type from 'EMA', 'DEMA', 'TEMA', 'WMA', 'VWMA', 'SMA', 'SMMA', 'HMA', 'LSMA', and 'PEMA' (credit to: © traderharikrishna for this code: ).
Application:
The indicator's buy signals (represented by green "B" labels) indicate potential entry points for buying assets, suggesting a bullish trend. The white line visually represents the trend, helping traders identify and follow the upward momentum. Conversely, the sell signals (blue "S" labels) highlight possible exit points or opportunities for short selling, indicating a bearish trend. The blue line illustrates the bearish movement, aiding in the identification of downward momentum.
The "Smoothed ROC & Stochastic" indicator offers traders a comprehensive view of market trends by combining two powerful oscillators. By incorporating the ROC and Stochastic indicators into a single oscillator, it provides a more holistic perspective on the market's momentum. The use of a Kalman Filter for smoothing helps reduce noise and enhance the accuracy of the signals. Additionally, the indicator allows customization of the smoothing technique through various moving average types. Traders can also utilize the overbought and oversold zones for additional analysis, providing insights into potential market reversals or extreme price conditions. Please note that future performance of any trading strategy is fundamentally unknowable, and past results do not guarantee future performance.
[Rygel] Dual time frame Bollinger Bands with signals and alertsThis indicator displays two Bollinger Bands coming from two different time frames, chart's current one and a higher one.
It analyzes these two Bollinger Bands data and combines them with RSI, MFI and MACD divergences and SuperTrend to identify areas of opportunity where price is the most likely to be at a local top or bottom.
It uses probabilistic data, the Bollinger Bands, to identify convergence areas where the price is statistically overbought or oversold simultaneously at two different time frames, it then looks for signs of a trend exhaustion, using RSI, MFI and MACD divergences, and finally it looks for an early confirmation of a trend reversal, using SuperTrend data with aggressive settings.
This indicator does not produce buy and sell signals. You won't get a buy for every sell or a sell for every buy. In a bearish trend, you may get multiple consecutive bullish signals and in a bullish trend multiple bearish signals.
It is meant to help you to identify and to alert you about areas of opportunity where you could, for instance, consider taking some profits or opening a trade.
It is meant to support your investment or trading decisions, not to induce them.
SIGNALS
This indicator generated multiple types of signals. Diamonds are better than squares. Colored ones are better than grey ones.
Green square: a bullish signal confirmed by a regular divergence
Red square: a bearish signal confirmed by a regular divergence
Blue square: a bullish signal confirmed by a hidden divergence (disabled by default as these signals are less reliable)
Orange square: a bearish signal confirmed by a hidden divergence (disabled by default as these signals are less reliable)
Diamonds: same as the square signals but the signal is forming a divergence with a previous one. Diamond signals are always stronger (i.e. more reliable) than square signals.
Grey signals: same as the previous ones but for weaker signals. These signals appear when price in the current time frame is overbought or oversold but only close to be at the higher timeframe. (disabled by default as these signals are less reliable)
When a weak signal follows a strong one and creates a MACD divergence with it, it will be considered as a strong signal and displayed as a colored signal, even when weak signals are disabled.
When a strong signal follows a weak one, forming a MACD divergence, it will be shown as a diamond signal, even when weak signals are disabled.
Most reliable signals are green and red diamonds.
SETTINGS
Bollinger Bands
Source: the source used to calculate the Bollinger Bands ("close" by default)
Length: the moving-average length of the Bollinger Bands (20 by default)
You will most likely have no need to change these settings. If you're wondering what they actually do, you should most likely not touch them.
Main channel standard deviation: the standard deviation used to calculate the classical Bollinger Bands channel. (2.0 by default)
Outer bands standard deviation: additional channels outside the main one, using a larger standard deviation. (3.0 by default)
Theoretically, with a 1.0 standard deviation, around 68% of the price action should be contained within the Bollinger Bands.
With a 2.0 standard deviation, around 95%.
With a 3.0 standard deviation, around 99.7%.
With a 4.0 standard deviation, around 99.99%.
But as security prices returns have no actual statistical distribution, these probabilities don't strictly apply to Bollinger Bands. According to Wikipedia, studies have found that with a 2.0 standard deviation, only about 88% (85–90%) of the price data remain with the Bollinger Bands, instead of the theoretical 95%.
The higher you set the values, the less signals you'll get.
You should most likely keep the main channel standard deviation between 2 and 3 and add between +0.5 and +1 for the outer bands.
Most commonly used value for Bollinger Bands is 2.0.
Current time frame
Show current time frame Bollinger Bands: these are the Bollinger Bands you're used to. (enabled by default)
Show current time frame outer bands: add two additional bands outside the main channel using a larger standard deviation. (enabled by default)
Higher time frame
Show higher time frame Bollinger Bands: display secondary Bollinger Bands from a higher time frame. Time frames are configured in the below "Time frames" section. (enabled by default)
Show higher time frame outer bands: add two additional bands outside the main channel using a larger standard deviation (enabled by default)
Overbought and oversold
Show oversold and overbought background: add a background to the higher time Bollinger Bands whose color depends on the dual time frame Bollinger Bands oversold / overbought status. (enabled by default)
Asset is considered overbought/oversold when its price is outside of the Bollinger Bands' main channel.
Asset is considered strongly overbought/oversold when its price is outside of the Bollinger Bands' outer bands.
Dark red: both time frame are overbought (outside the main channel)
Red: one time frame is strongly overbought (outside the outer bands) and the other one is overbought (outside the main channel)
Bright red: both time frame are strongly overbought (outside the outer bands)
Dark green: both time frame are oversold (outside the main channel)
Green: one time frame is strongly oversold (outside the outer bands) and the other one is oversold (outside the main channel)
Bright green: both time frame are strongly oversold (outside the outer bands)
Signals
Show signals: display signals when an area of opportunity is detected. Read the introduction and the Signals section for more information. (enabled by default)
Show weak signals: display signals although at the higher time frame price is not yet overbought or oversold but close to be (disabled by default)
Divergences
Use MACD for divergences (enabled by default)
Use MFI for divergences (enabled by default)
Use RSI for divergences (enabled by default)
At least one source of divergences must be enabled for signals to work.
Enable hidden divergences: signals don't use hidden divergences by default as they generate more false positives than regular divergences. You can enable them to get more signals, it can be especially useful at high time frames (like weekly, monthly, etc.) where signals are rarer. (disabled by default)
Show divergences: draw MACD, MFI and RSI divergences on the chart. (disabled by default)
Green: regular bullish divergence
Red: regular bearish divergence
Blue: hidden bullish divergence
Orange: hidden bearish divergence
Confirmation
Confirmation speed: a faster confirmation speed will generate more false positive signals, a slower one will produce delayed but more reliable signals.
Fastest: don't wait for a SuperTrend confirmation, only wait for a divergence confirmation. Lot of false positives.
Fast: wait for a fast SuperTrend confirmation (SuperTrend factor = 1).
Medium: wait for a slower but more reliable SuperTrend confirmation (SuperTrend factor = 2). Fewer false positives but more lagging signals.
Slow: wait for an even slower but very reliable SuperTrend confirmation (SuperTrend factor = 3). Very few false positives but very late signals.
Time frames
You can define the higher time frames you wish to use here.
Default values try to adhere to a x6 to x8 ratio, x4 to x12 at maximum.
Some pairs are more significant than others, like 4 hour + daily, daily + weekly and weekly + monthly.
1 second: 10 seconds
5 seconds: 30 seconds
10 seconds: 1 minute
15 seconds: 2 minutes
30 seconds: 3 minutes
1 minute: 10 minutes
2 minutes: 15 minutes
3-4 minutes: 30 minutes
5-9 minutes: 45 minutes
10-11 minutes: 1 hour
12-14 minutes: 1 hour
15-29 minutes: 2 hours
30-44 minutes: 4 hours
45-59 minutes: 6 hours
1 hour: 8 hours
2 hours: 12 hours
3 hours: 1 day
4-5 hours: 1 day
6-7 hours: 2 days
8-11 hours: 3 days
12-23 hours: 4 days
1 day: 1 week
2 days: 2 weeks
3 days: 3 weeks
4 days: 1 month
5 days: 1 month
6 days: 1 month
1 week: 1 month
2 weeks: 2 months
3 weeks: 3 months
1 month: 6 months
2 months: 9 months
3 months: 12 months
4 months: 15 months
5 months: 21 months
6 months: 24 months
Time frames use the TradingView units:
s = seconds
h = hours
D = days
W = weeks
M = months
no unit = minutes
Time frame strings follow these rules:
They are composed of the multiplier and the time frame unit, e.g., “1S”, “30” (30 minutes), “1D” (one day), “3M” (three months).
The unit is represented by a single letter, with no letter used for minutes: “S” for seconds, “D” for days, “W” for weeks and “M” for months.
When no multiplier is used, 1 is assumed: “S” is equivalent to “1S”, “D” to “1D, etc. If only “1” is used, it is interpreted as “1min”, since no unit letter identifier is used for minutes.
There is no “hour” unit; “1H” is not valid. The correct format for one hour is “60” (remember no unit letter is specified for minutes).
The valid multipliers vary for each time frame unit:
- For seconds, only the discrete 1, 5, 10, 15 and 30 multipliers are valid.
- For minutes, 1 to 1440.
- For days, 1 to 365.
- For weeks, 1 to 52.
- For months, 1 to 12.
Styles
You can configure the appearance of the Bollinger Bands, the overbought / oversold background, the divergences and the signals here.
Advanced - MACD
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - MFI
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - RSI
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
Advanced - SuperTrend
Settings used for the MACD divergences. You most likely won't need to change these values, especially if you need them to be explained.
ALERTS
Any signal: a bullish or bearish signal has been detected.
Bullish signal: a bullish signal has been detected.
Bullish signal with divergence: a bullish signal forming a divergence with a previous bullish signal has been detected.
Bearish signal: a bearish signal has been detected.
Bearish signal with divergence: a bearish signal forming a divergence with a previous bearish signal has been detected.
Overbought/oversold = asset price is outside of the Bollinger Bands' main channel.
Strongly overbought/oversold = asset price is outside of the Bollinger Bands' outer bands.
Current time frame - Entering overbought: asset is now overbought at the current time frame.
Current time frame - Exiting overbought: asset is not overbought anymore at the current time frame.
Current time frame - Entering strongly overbought: asset is now strongly overbought at the current time frame.
Current time frame - Exiting strongly overbought: asset is not strongly overbought anymore at the current time frame.
Current time frame - Entering oversold: asset is now oversold at the current time frame.
Current time frame - Exiting oversold: asset is not oversold anymore at the current time frame.
Current time frame - Entering strongly oversold: asset is now strongly oversold at the current time frame.
Current time frame - Exiting strongly oversold: asset is not strongly oversold anymore at the current time frame.
Higher time frame - Entering overbought: asset is now overbought at the higher time frame.
Higher time frame - Exiting overbought: asset is not overbought anymore at the higher time frame.
Higher time frame - Entering strongly overbought: asset is now strongly overbought at the higher time frame.
Higher time frame - Exiting strongly overbought: asset is not strongly overbought anymore at the higher time frame.
Higher time frame - Entering oversold: asset is now oversold at the higher time frame.
Higher time frame - Exiting oversold: asset is not oversold anymore at the higher time frame.
Higher time frame - Entering strongly oversold: asset is now strongly oversold at the higher time frame.
Higher time frame - Exiting strongly oversold: asset is not strongly oversold anymore at the higher time frame.
Dual time frame - Entering overbought: asset is now overbought at current and higher time frames.
Dual time frame - Exiting overbought: asset is not overbought anymore at current and higher time frames.
Dual time frame - Entering oversold: asset is now oversold at current and higher time frames.
Dual time frame - Exiting oversold: asset is not oversold anymore at current and higher time frames.
Dual time frame - Entering strongly overbought: asset is now strongly overbought at current and higher time frames.
Dual time frame - Exiting strongly overbought: asset is not strongly overbought anymore at current and higher time frames.
Dual time frame - Entering strongly oversold: asset is now strongly oversold at current and higher time frames.
Dual time frame - Exiting strongly oversold: asset is not strongly oversold anymore at current and higher time frames.
ABOUT THE HIGHER TIME FRAME BOLLINGER BANDS
Using a classical higher time frame Bollinger Bands would produce lagging data. For instance, if we are using a weekly BB at the daily time frame, we'll have to wait up to 7 days for the weekly bar to close to get the actual final weekly BB values. Instead, this indicator generates real time higher time frame Bollinger Bands by multiplying the moving average length of the Bollinger Bands by the higher time frame / current time frame ratio. For instance, a weekly BB in the daily time frame will use a x7 ratio (i.e. a 20 * 7 = 140 days MA BB).
It produces slightly different but very similar bands that are as meaningful and can be used in real time at lower time frames.
Alternatives would have been to wait up to seven days for signals to be finalized, which would have render them meaningless. Or to use previous week data, which would have made the signal inaccurrate.
To sum up, weekly Bollinger Bands use a 20 weeks moving average updated one time a week. In the daily time frame, this indicator also use a 20 weeks (140 days) moving average but updated daily instead of weekly.
A comparison between a traditional higher time frame Bollinger Bands vs the ones used by this indicator:
Blue and orange lines are the actual weekly BBs, grey ones are the daily updated ones.
ABOUT THE DIVERGENCES
This indicator uses the same divergences algorithm as my other indicators:
- RSI with divergences
- MACD with divergences
- Trend Reversal Indicator
You'll find more information about this algorithm on my RSI page.
Excalibur Trading System [Dare]✦ INTRODUCTION
The core goal in the Excalibur Trading System is attaining an optimal entry - fading the masses, selling others' buys, buying others' sells, and trading along true tops and bottoms where price manipulation commonly occurs. Executions are most successful intraday and when aligned with HTF price action while still maintaining a systematic approach in analysis and risk management. Use of this tool is not recommended for the uninitiated trader; it takes intense focus, dedicated practice, and unwavering confidence to wield this successfully. Please go through the guide I’ve provided which contains comprehensive coverage of all the elements below which, in the context of this post, are meant to depict a general idea of what the indicator is meant to accomplish.
✦ INDICATOR DETAILS
System Overview
System Components
Indicator Settings
Plotting Interpretation
Postscript
✦ SYSTEM OVERVIEW
Type of System
This is a mechanical system which requires zero discretion. While trading with an objective approach offers several advantages, it's important to note that it is not foolproof. Market conditions can change, and indicators can provide false signals. The accuracy is not 100% and even following it perfectly, as with any strategy, one will incur losses.
Objective Decision-making - No emotional bias, no fear.
Consistent - A repeatable approach that eliminates impulsivity.
Easily tested - Strategy performance can be measured universally no matter who is using it, in both forward and backtesting.
No Guesswork - Provides specific entry and exit signals with a systematic procedure.
Predefined Rules - Controls risk and enforces discipline.
Simple and Clear - Reduces complexity and confusion.
Performance in Various Market Conditions
Excalibur is meant to catch reversals and second-stage continuations, but trending days should be avoided. It has been tested and used in live market conditions in Index Futures, during the regular NY Session, on the 1m Timeframe, targeting ≥2.5RR Ratio. Outcomes will vary by trader due to factors such as risk tolerance, entry opportunities taken, human error and psychological barriers. Historical performance is not a guarantee of future results.
✦ SYSTEM COMPONENTS
Setup Schematic
The premise for all setups is the same. We are identifying manipulation above a previous high (bearish) or below a previous low (bullish) in anticipation of a reversal. This indicator is meant to be used as a measuring tool to quantify that manipulation taking place using Hi's and Lo's as identified by the Bar , which is based on a standard deviation calculation. The Fu tag is meant to be used to find Divergence at custom pivots, not predetermined lookback periods - this is similar to SMT - Smart Money Technique, but this Divergence references bodies vs. wicks and the execution of the trade is at the extreme pivot vs. the weak pivot.
Using the Bar as a guide, the trader will set the Hi/Lo tags and the indicator will automatically calculate the Threshold, the point beyond which one’s Entry resides when Divergence is also present. A valid entry plots as a Polaris star below (bullish) and above (bearish) the current bar in their respective scenarios.
Bullish Setup
(1) Place the Lo tag at the current threshold as signified by the Bar.
(2) Search for Divergence with price action below that threshold by using the Fu tag at extreme bodies of recent swing lows.
(3) Wait for a bullish Entry to plot, confirmed at candle close.
Bearish Setup
(1) Place the Hi tag at the current threshold as signified by the Bar.
(2) Search for Divergence with price action above that threshold by using the Fu tag at extreme bodies of recent swing highs.
(3) Wait for a bearish Entry to plot, confirmed at candle close.
The indicator collects the OHLC values of the target asset candles based on the trader’s Hi/Lo placement, compares them to up to two assets, and plots an entry depending on the context of the setup. The entry method, like the setup composition, is based on minute Divergences in price between the assets and other criteria related to how the candles close relative to each other.
✦ INDICATOR SETTINGS
Options
This line controls the colors of the Polaris (✦) and the squares in the Manipulation Bar. Manipulation can be measured using either mathematical calculation (ᴀʟᴘʜᴀ) or OHLC data-points (ʙᴇᴛᴀ). The Polaris denotes a time and price of possible reversal at an extreme low or high - deselect this line to hide it.
⋆ This line controls colors of the Tags and Candles - Bullish, Bearish, and All. To customize, switch to ᴄᴜsᴛᴏᴍ. If the Divergence Candles are not consistently visible, change the Visual Order to Front on the chart by selecting the indicator Title then More. To hide, deselect this line.'
The third and fourth lines controls the visibility of the Manipulation Bar, Matrix Tags, Advisor Arrows and Invalidation Labels.
Time
By default, the times for Hi, Lo and Fu are set to 09:00, 09:30 and 09:15 respectively. The date will need to be manually adjusted at the beginning of each trading day.
Price
By default, the charted Asset is assumed to be ES1! (E-Mini S&P 500 Continuous Contract) . If the trader would like to chart a different Asset, be sure to adjust Assets I and II to valid comparisons so that the indicator can accurately detect price divergences.
Risk
Input the account size and percentage one intends to risk. To pyramid, indicate the quantity the position to be divided into. In MT4 or 5, right-click a symbol then Specification. The Contract Size field contains the Units per Lot. Use the various options to customize the table format and visibility.
The tooltips (i) will be available in the UI in case the trader will ever need to refer to them for the information above.
✦ PLOTTING INTERPRETATION
Matrix Tags
Guided by the manipulation bar, the trader will use Hi and Lo tags to measure the manipulation threshold. The Fu tag measures either bullish or bearish divergences depending on the placement of the Hi/Lo tags.
Manipulation Bar
The squares plotted together form a bar and indicate whether a candle is or isn’t plotting a new manipulation threshold (creating a new Hi or Lo ). The trader should always use the current Hi or Lo .
Advisor Arrows
The arrows are meant to signify a possible valid entry in the temporary period of time between the candle open and close. They give advance notice that the trader should be looking for divergences using the Fu tag to attain a confirmed entry (Polaris) on that particular candle as it is forming.
Entry Signal
The Polaris denotes a time and price of trade execution. As long as the Matrix tags are placed correctly, this is a valid signal to place a position in the direction indicated. Entry price is at the candle close, regardless of the next candle’s open price.
Risk Labels and Table
This is an automatic calculation for Stop placement based on average true range (valid only for indices with a 0.25pt tick value. A future version may allow for customization of this feature for assets not based on ticks, like forex pairs). The table (by default at the bottom right) will display the trader's position size based on the inputs.
Divergence Candles
Using the Fu tag, the trader can select swing highs and lows to determine if divergence is occurring above and below them, respectively. Divergence is maintained as long as the colored candles are printed consecutively. Referring to the charts of Assets I and II in a separate layout window is recommended but not required.
✦ POSTSCRIPT
I forged this sword, Excalibur, in pursuit of my highest aspiration - to create a legacy and provide a gift to my friends, family, and all those burdened by obligations that limit them from living what they would consider to be a fulfilling life. Those free to pursue the ambitions they truly value are the ones who change their communities and even the world for the better.
~Dare.
ATR VisualizerAdvance Your Market Analysis with the True Range Indicator
The True Range Indicator is a sophisticated screener meticulously developed to bolster your trading execution by presenting an exceptional understanding of the market direction. The centerpiece of this instrument is a distinctive candle configuration depicting the Average True Range (ATR) and the Bear/Bull range. However, it traverses beyond the conventional channels to offer specific market settings to boost your trading decisions.
User-Defined Settings
Broadly, the indicator offers five dynamic settings:
Bear/Bull Range
The Bear/Bull Range outlines the ATR for each candle type - bearish and bullish - and then smartly opts for the pertinent one based on the prevalent market circumstances. This feature aids in comparing the range of bullish and bearish candlesticks, which deepens your understanding of the price action and volatility.
Bearish Range
The Bearish Range isolates and computes the ATR for bearish candles solely. Utilizing this option spots the bear-dominated periods and provides insights about potential market reversals or downward continuations.
Bullish Range
Opposite to the Bearish Range, the Bullish Range setting tabulates the ATR exclusively for bullish candles. It assists in tracking the periods when bulls control, enlightening traders about the possibility of upward continuations or trend reversals.
Average Range
The Average Range provides an unbiased measure of range without prioritizing either bull or bear trends. This model is ideal for traders looking for a holistic interpretation of market behavior, regardless of direction.
Cumulative Average Range
Equally significant is the Cumulative Average Range which calculates the aggregate moving average of the true ranges for an expressed period. This setting is extremely valuable when evaluating the long-term volatility and spotting potential breakouts.
Dual Candle Configuration
Going a step ahead, the True Range Indicator uniquely offers the possibility to incorporate more than one candle estimate on your screen. This ensures simultaneous analysis of multiple market dynamics, thereby enhancing your trading precision multifold.
Concluding Thoughts
In essence, the True Range Indicator is an indispensable companion for traders looking to not only leverage market volatility but also make educated predictions. Equipped with an array of insightful market settings and the ability to display dual candle estimates on-screen, you can customize the functionality to suit your unique trading style and magnify your market performance dramatically.
Simple Grid Lines VisualizerAbout Grid Bots
A grid bot is a type of trading bot or algorithm that is designed to automatically execute trades within a predefined price range or grid. It is commonly used in markets that exhibit ranging or sideways movement, where prices tend to fluctuate within a specific range without a clear trend.
The grid bot strategy involves placing a series of buy and sell orders at regular intervals within the predefined price range or grid. The bot essentially creates a grid of orders, hence the name. When the price reaches one of these levels, the bot will execute the corresponding trade. For example, if the price reaches a predefined lower level, the bot will buy, and if it reaches a predefined upper level, it will sell.
The purpose of the grid bot strategy is to take advantage of the price oscillations within the range. As the price moves up and down, the bot aims to generate profits by buying at the lower end of the range and selling at the higher end. By repeatedly buying and selling at these predetermined levels, the bot attempts to capture gains from the price fluctuations.
About this Script
Simple Grid Lines Visualizer is designed to assist traders in visualizing and implementing automated price grids on their charts. With just a few inputs, this script generates gridlines based on your specified top price, bottom price, and the number of grids or profit per grid.
How it Works:
Specify Top and Bottom Prices: Start by setting the top and bottom prices that define the range within which the gridlines will be generated. These prices can be based on support and resistance levels, historical data, or any other factors you consider relevant to your analysis.
Determine Grid Parameters: Choose either the number of grids or profit per grid, depending on your preference and trading strategy. If you select the number of grids, the script will evenly distribute the gridlines within the specified price range. Alternatively, if you opt for profit per grid, the script will calculate the price increment required to achieve your desired profit level per grid.
Note that when choosing Profit per Grid , an approximation usually is performed, as all grid lines must be evenly distributed. To achieve that, the script computes the grid distance using the mean price between top and bottom, then computes how many of those complete distances may enter the entire range, and lastly, creates a grid with evenly distributed distances as close as possible to the previously computed.
Customize Styling and Display: Adjust the line color, line style, transparency, and other visual aspects to ensure clear visibility on your charts.
Analyze and Trade: Once the gridlines are plotted on your chart, carefully observe how the market interacts with them. The gridlines can act as reference points for potential support and resistance levels, as well as simple buy/sell orders for a trading bot.
Try to find gridlines that intersect prices as frequently as possible from one to another.
A grid with too many lines will make lots of potential trades, but the amount traded will be minimal (as the total amount invested is divided over the number of grids).
A grid with too few lines will make lots of profits with each trade, but the trades will be less likely to occur (depending on the top/bottom distance).
This tool aims to help visually which grid parameters seem to optimize this problem.
Future versions may include automatic profit computation.
Dynamic Trend RipperThe "Dynamic Trend Ripper" indicator is designed to identify dynamic support and resistance levels based on exponential moving averages (EMA) and the average true range (ATR). It aims to assist traders in identifying potential trading opportunities by visualizing dynamic support and resistance areas on the price chart. Think of it as more of overbought or oversold areas then true support and resistance,
The indicator calculates two sets of EMAs: two for the top cloud and two for the bottom cloud. The lengths of these EMAs are determined by user-defined input parameters. Additionally, the indicator uses the ATR to adjust the EMAs, enhancing their effectiveness as dynamic support and resistance levels.
The top cloud is formed by adding the ATR to the top fast EMA and subtracting the ATR from the top slow EMA. The bottom cloud is formed by subtracting the ATR from the bottom fast EMA and adding the ATR to the bottom slow EMA.
The indicator plots the dynamic OB (Overbought) level, which is the top fast EMA plus the ATR multiplied by the OBOS multiplier. It also plots the dynamic OS (Oversold) level, which is the top slow EMA minus the ATR multiplied by the OBOS multiplier. These levels are visualized using colored lines on the chart.
The top fast EMA, top slow EMA, bottom fast EMA, and bottom slow EMA are also plotted on the chart. The area between the top slow EMA and top fast EMA is filled with a color, forming the top cloud. The area between the bottom fast EMA and bottom slow EMA is filled with another color, forming the bottom cloud. The color of the clouds changes based on the relationship between the top fast EMA and top slow EMA. If the Regular Fast EMA is greater than the Regular slow EMA, indicating a bullish trend, the clouds are displayed in green. Otherwise, if the top fast EMA is less than the top slow EMA, indicating a bearish trend, the clouds are displayed in red.
The indicator can be used to identify potential support and resistance zones where the price may encounter obstacles or reverse its direction. Traders can look for price interactions with the dynamic support and resistance levels, as well as the OB and OS levels, to make trading decisions. For example, a trader might consider entering a short trade when the price approaches the top cloud, or a long trade when the price bounces off the bottom cloud.
By incorporating the ATR, which measures volatility, the indicator adjusts the EMAs to adapt to changing market conditions. Traders can watch for price reactions or reversals near these levels to gauge potential overextension or exhaustion in the price movement. I'm not going to claim this as my own idea, but I will say that I came up with this version myself. I haven't seen anyone else take this approach which is why I think it can be revolutionary to trading.
EXTREME OVERBOUGHT/SOLD BANDS
ATR-ADJUSTED EMA'S
Z-Score Heikin-Ashi TransformedThe Z-Score Heikin-Ashi Transformed (𝘡 𝘏-𝘈) indicator is a powerful technical tool that combines the principles of Z-Score and Heikin Ashi to provide traders with a smoothed representation of price movements and a standardized measure of market volatility.
The 𝘡 𝘏-𝘈 indicator applies the Z-Score calculation to price data and then transforms the resulting Z-Scores using the Heikin Ashi technique. Understanding the individual components of Z-Score and Heikin Ashi will provide a foundation for comprehending the methodology and unique features of this indicator.
Z-Score:
Z-Score is a statistical measure that quantifies the distance between a data point and the mean, relative to the standard deviation. It provides a standardized value that allows traders to compare different data points on a common scale. In the context of the 𝘡 𝘏-𝘈 indicator, Z-Score is calculated based on price data, enabling the identification of extreme price movements and the assessment of their significance.
Heikin Ashi:
Heikin Ashi is a popular charting technique that aims to filter out market noise and provide a smoother representation of price trends. It involves calculating each candlestick based on the average of the previous candle's open, close, high, and low prices. This approach results in a chart that reduces the impact of short-term price fluctuations and reveals the underlying trend more clearly.
Methodology:
The 𝘡 𝘏-𝘈 indicator starts by calculating the Z-Score of the price data, which provides a standardized measure of how far each price point deviates from the mean. Next, the resulting Z-Scores are transformed using the Heikin Ashi technique. Each Z-Score value is modified according to the Heikin Ashi formula, which incorporates the average of the previous Heikin Ashi candle's open and close prices. This transformation smooths out the Z-Score values and reduces the impact of short-term price fluctuations, providing a clearer view of market trends.
This tool enables traders to identify significant price movements and assess their relative strength compared to historical data. Positive transformed Z-Scores indicate that prices are above the average, suggesting potential overbought conditions, while negative transformed Z-Scores indicate prices below the average, suggesting potential oversold conditions. Traders can utilize this information to identify potential reversals, confirm trend strength, and generate trading signals.
Utility:
The indicator offers valuable insights into price volatility and trend analysis. By combining the standardized measure of Z-Score with the smoothing effect of Heikin Ashi, traders can make more informed trading decisions and improve their understanding of market dynamics. 𝘡 𝘏-𝘈 can be used in various trading strategies, including identifying overbought or oversold conditions, confirming trend reversals, and establishing entry and exit points.
Note that the 𝘡 𝘏-𝘈 should be used in conjunction with other technical indicators and analysis tools to validate signals and avoid false positives. Additionally, traders are encouraged to conduct thorough backtesting and experimentation with different parameter settings to optimize the effectiveness of the indicator for their specific trading approach.
Key Features:
Optional Reversion Doritos
Adjustable Reversion Threshold
2 Adjustable EMAs
Example Charts:
See Also:
On Balance Volume Heikin-Ashi Transformed
Moving Average-TREND POWER v2.0-(AS)HELLO:
-This indicator is a waaaay simpler version of my other script - Moving Average-TREND POWER v1.1-(AS).
HOW DOES IT WORK:
-Script counts number of bars below or above selected Moving Average (u can se them by turning PLOT BARS on). Then multiplies number of bars by 0.01 and adds previous value. So in the uptrend indicator will be growing faster with every bar when price is above MA. When MA crosess price Value goes to zero so it shows when the market is ranging.
If Cross happens when number of bars is higher than Upper threshold or below Lower threshold indicator will go back to zero only if MA crosses with high in UPtrend and low in DNtrend. If cross happens inside THSs Value will be zero when MA crosses with any type of price source like for example (close,high,low,ohlc4,hl etc.....).This helps to get more crosess in side trend and less resets during a visible trend
HOW TO SET:
Just select what type of MA you want to use and Length. Then based on your preference set values of THSs'
OTHER INFORMATIONS:
-Script was created and tested on EURUSD 5M.
-For bigger trends choose slowerMAs and bigger periods and the other way around for short trends (FasterMAs/shorter periods)
-Below script code you can find not used formulas for calculating indicator value(thanks chat GPT), If you know some pinescript I encourage you to try try them or maybe bulid better ones. Script uses most basic one.
-Pls give me some feedback/ideas to improve and check out first version. Its way more complicated for no real reason but still worth to take a look'
-Also let me know if you find some logical errors in the code.
Enjoy and till we meet again.
Moving Average - TREND POWER v1.1- (AS)0)NOTE:
This is first version of this indicator. It's way more complicated than it should be. Check out Moving Average-TREND POWER v2.1-(AS), its waaaaay less complicated and might be better.Enjoy...
1)INTRODUCTION/MAIN IDEA:
In simpliest form this script is a trend indicator that rises if Moving average if below price or falling if above and going back to zero if there is a crossover with a price. To use this indicator you will have to adjust settings of MAs and choose conditions for calculation.
While using the indicator we might have to define CROSS types or which MAs to use. List of what cross types are defined in the script and Conditiones to choose from.The list will be below.
2) COMPOSITION:
-MA1 can be defined by user in settings, possible types: SMA, EMA, RMA, HMA, TEMA, DEMA, LSMA, WMA.
-MA2 is always ALMA
3) OVERLAY:
Default is false but if you want to see MA1/2 on chart you can change code to true and then turn on overlay in settings. Most plot settings are avalible only in OV=false.
if OV=true possible plots ->MA1/2, plotshape when choosen cross type
if OV=false -> main indicator,TSHs,Cross counter
4)PRESETS :
Indicator has three modes that can be selected in settings. First two are presets and do not require selecting conditions as they set be default.
-SIMPLE - most basic
-ABSOLUTE - shows only positive values when market is trending or zero when in range
-CUSTOM - main and the most advanced form that will require setting conditions to use in calculating trend
4.1)SIMPLE – this is the most basic form of conditions that uses only First MA. If MA1 is below selected source (High/Low(High for Uptrend and Low for DNtrend or OHLC4) on every bar value rises by 0.02. if it above Low or OHLC4 it falls by 0.02 with every bar. If there is a cross of MA with price value is zero. This preset uses CROSS_1_ULT(list of all cross types below)
4.2) ABSOLUTE – does not show direction of the trend unlike others and uses both MA1 and MA2. Uses CROSS type 123_ULT
4.3) CUSTOM – here we define conditions manually. This mode is defined in parts (5-8 of description)
5)SETTINGS:
SOURCE/OVERLAY(line1) – select source of calculation form MA1/MA2, select for overlay true (look point 3)
TRESHOLDS(line2). – set upper and lower THS, turn TSHs on/off
MA1(line3) – Length/type of MA/Offset(only if MA type is LSM)
MA2(line4) – length/offset/sigma -(remember to set ma in the way that in Uptrend MA2MA1 in DNtrend)
Use faster MA types for short term trends and slower types / bigger periods for longer term trends, defval MA1/2 settings
are pretty much random so using them is not recomended.
CROSSshape(line5) – choose which cross type you want to plot on chart(only in OV=true) or what type you want to use in counting via for loops,
CROSScount(line6) – set lookback for type of cross choosen above
BOOLs in lines 5 and 6 - plotshape if OV=true/plot CROSScount histogram (if OV=false)
Lines 7 and 8 – PRESET we want to use /SRC for calculation of indicator/are conditions described below/which MAs to use/Condition for
reducing value t 0 - (if PRESET is ABSOLUTE or SIMPLE only SRC should be set(Line 8 does not matter if not CUSTOM))
5)SOURCE for CONDS:
Here you can choose between H/L and OHLC. If H/L value grow when MAlow. If OHLC MAOHLC. H/L is set by default and recommended. This can be selected for all presets not only CUSTOM
6)CROSS types LIST:
“1 means MA1, 2 is MA2 and 3 I cross of MA1/MA2. L stands for low and H for high so for example 2H means cross of MA2 and high”
NAME -DEFINITION Number of possible crosses
1L - cross of MA1 and low 1
1H - cross of MA1 and high 1
1HL - cross of MA1 and low or MA1 and high 2 -1L/1H
2L - cross of MA2 and low 1
2H - cross of MA2 and high 1
2HL - cross of MA2 and low or MA1 and high 2 -2L/2H
12L - cross of MA1 and low or MA2 and low 2 -1L/2L
12H - cross of MA1 and high or MA2 and high 2 -1H/2H
12HL - MA1/2 and high/low 4 -1H/1L/2H/2L
3 -cross of MA1 and MA2 1
123HL -crosses from 12HL or 3 5 -12HL/3
1_ULT - cross of MA1 with any of price sources(close,low,high,ohlc4 etc…)
2_ULT - cross of MA2 with any of price sources(close,low,high,ohlc4 etc…)
123_ULT – all crosses possible of MA1/2 (all of the above so a lot)
7)CRS CONDS:
“conditions to reduce value back to zero”
>/< - 0 if indicator shows Uptrend and there’s a cross with high of selected MA or 0 if in DNtrend and cross with low. Better for UP/DN trend detection
ALL – 0 if cross of MA with high or low no matter the trend, better for detecting consolidation
ULT – if any cross of selected MA, most crosses so goes to 0 most often
8)MA selection and CONDS:
-MA1: only MA1 is used,if MA1 below price value grows and the other way around
MA1price =-0.02
-MA2 – only MA2 is used, same conditions as MA1 but using MA2
MA2price =-0.02
-BOTH – MA1 and MA2 used, grows when MA1 if below, grows faster if MA1 and MA2 are below and fastest when MA1 and MA2 are below and MA2price=-0.02
-MA1 and MA2 >price=-0.03
-MA1 and MA2 ?price and MA2>MA1=-0.04
9)CONDITIONS SELECTION SUMMARRY:
So when CUSTOM we choose :
1)SOURCE – H/L or OHLC
2)MAs – MA1/MA2/BOTH
3)CRS CONDS (>/<,ALL,ULT)
So for example...
if we take MA1 and ALL value will go to zero if 1HL
if MA1 and >/< - 0 if 1L or 1H (depending if value is positive or negative).(1L or 1H)
If ALL and BOTH zero when 12HL
If BOTH and ULT value goes back to zero if Theres any cross of MA1/MA2 with price or cross of MA1 and MA2.(123_ULT)
If >/< and BOTH – 0 if 12L in DNtrend or 12H if UPtrend
10) OTHERS
-script was created on EURUSD 5M and wasn't tested on different markets
-default values of MA1/MA2 aren't optimalized so do not
-There might be a logical error in the script so let me know if you find it (most probably in 'BOTH')
-thanks to @AlifeToMake for help
-if you have any ideas to improve let me know
-there are also tooltips to help
ATR DeltaThe ATR Delta indicator is based on the concept of Average True Range (ATR), which reflects the average price range over a specified period. By calculating the difference between current and previous ATR values, the ATR Delta provides valuable insights into volatility shifts in the market. This information can help traders identify periods of heightened or diminished price movement, enabling them to adjust their strategies accordingly.
The ATR Delta indicator consists of two main calculations:
-- ATR Calculation : The Average True Range (ATR) is calculated using the specified length parameter. It measures the average price range (including gaps) during that period. A larger ATR value indicates higher volatility, while a smaller value indicates lower volatility.
-- ATR Delta Calculation : The ATR Delta is calculated by subtracting the ATR value of the previous bar from the current ATR value. This calculation captures the change in volatility between the two periods, providing a measure of how volatility has evolved.
Positive ATR Delta values indicate an increase in volatility compared to the previous period. It suggests that price movements have expanded, potentially indicating a more active market. On the other hand, negative ATR Delta values indicate a decrease in volatility compared to the previous period. It suggests that price movements have contracted, potentially signaling a calmer or range-bound market.
The ATR Delta indicator uses coloration to visually represent the relationship between the ATR Delta, zero, and a signal line:
-- Green color is assigned when the ATR Delta is positive, above the signal line, and increasing. This coloration suggests a scenario of higher volatility, as the market is experiencing upward momentum in price swings.
-- Red color is assigned when the ATR Delta is negative, below the signal line, and decreasing. This coloration suggests a scenario of lower volatility, as the market is experiencing downward momentum in price swings.
-- Gray color is assigned for other cases when the ATR Delta and signal line relationship does not meet the above conditions.
These colors are reflected in the columns of the ATR Delta as well as the bar coloration.
The ATR Delta indicator includes a signal line, which acts as a reference for interpreting the ATR Delta values. The signal line is calculated as a moving average (EMA) of the ATR Delta over a specified length. It helps smooth out the ATR Delta fluctuations, providing a clearer indication of the underlying trend in volatility changes. When the ATR Delta crosses above the signal line, it may suggest a potential increase in volatility, indicating a market that is becoming more active. Conversely, when the ATR Delta crosses below the signal line, it may suggest a potential decrease in volatility, indicating a market that is becoming less active.
The coloration of the signal line in the ATR Delta indicator helps to differentiate between positive and negative values and provides further insight into market sentiment. When the signal line is positive, indicating increasing volatility, it is colored lime. This color choice reinforces the bullish sentiment and signifies potential opportunities for trend continuation or breakouts. On the other hand, when the signal line is negative, indicating decreasing volatility, it is colored fuchsia. This color choice highlights the bearish sentiment and suggests potential range-bound or consolidation periods. These colors are reflected in the background of the indicator.
The ATR Delta indicator offers several potential applications for traders:
-- Volatility Analysis : The ATR Delta is invaluable for understanding and analyzing volatility dynamics in the market. Traders can observe the changes in ATR Delta values and use them to assess the current level of price movement. This information can help determine the appropriate strategies and risk management approaches.
-- Breakout Strategies : Traders often use the ATR Delta to identify periods of increased volatility, which frequently accompany breakouts. By monitoring the ATR Delta, traders can anticipate potential price breakouts and adjust their entry and exit levels accordingly.
-- Trend Confirmation : Combining the ATR Delta with trend-following indicators allows traders to validate the strength of a trend. Higher ATR Delta values during an uptrend may indicate stronger momentum and a higher likelihood of continuation. Conversely, lower ATR Delta values during a downtrend may suggest a potential consolidation phase or trend reversal.
Limitations :
-- Lagging Indicator : The ATR Delta indicator is based on historical data and calculates the difference between current and previous ATR values. As a result, it may lag behind real-time market conditions. Traders should be aware of this delay and consider it when making trading decisions. It is advisable to combine the ATR Delta with other indicators or price action analysis for a more comprehensive assessment of market conditions.
-- Parameter Sensitivity : The ATR Delta indicator's effectiveness can be influenced by the selection of its parameters, such as the length of the ATR and signal line. Different market conditions may require adjustments to these parameters to better capture volatility changes. Traders should carefully test and optimize the indicator's parameters to align with the characteristics of the specific market or asset they are trading.
-- Market Regime Changes : The ATR Delta indicator assumes that volatility changes occur gradually. However, in rapidly changing market regimes or during news events, volatility can spike or drop abruptly, potentially rendering the indicator less effective. Traders should exercise caution and consider using additional tools or techniques to identify and adapt to such market conditions.
The ATR Delta indicator is a valuable tool for traders seeking to analyze and monitor volatility dynamics in the market. By calculating the difference between current and previous ATR values, it provides insights into changes in price movement and helps identify periods of increased or decreased volatility. Traders can leverage the ATR Delta to fine-tune their strategies, validate trend strength, and identify potential breakout opportunities. However, it is essential to recognize the limitations of the indicator, including its lagging nature and sensitivity to parameter selection. By combining the ATR Delta with other technical analysis tools and applying sound risk management practices, traders can enhance their decision-making process and potentially improve their trading outcomes.
Force Index with ATR channels-----------------------------------------------------------------
General Description:
This indicator multiplies the change of closing price for any bar by volume during that bar and plots an exponential moving average of the result. It is excellent for analyzing volume, deeper than simply looking at volume bars.
The cool thing about this particular version of the Force Index is that Average True Range (ATR) channels have been added to turn it into an excellent tool for identifying intermediate tops and bottoms. Force Index with ATR channels does not catch all turns, but the ones it identifies deserve very serious attention.
The indicator works on any market, any instrument, any timeframe, and any market condition.
-----------------------------------------------------------------
How it works:
Calculation:
Force Index = {Close (current period) - Close (prior period)} x Volume (current period)
If we smooth the indicator with a moving average the indicator gives much better trading signals.
Force Index(smoothed) = X-period EMA of Force Index
Changing the EMA length changes the focus of Force Index. Longer-term 13-bar EMA of Force Index helps identify intermediate trend reversals. Shorter-term 2-bar EMA helps identify market extremes.
The indicator also has the option to plot ATR channels to Force Index. Whenever the Force Index rises above or falls below its 3-ATR channel, it signals that the ticker has reached an area of an unsustainable extreme. That’s where rallies and declines become exhausted and prices tend to reverse. This is one of very few tools that are equally efficient in calling both top and bottom areas. This indicator places a red dot above the plot when the EMA of Force Index rises above the 3-ATR channel. It places a green dot underneath the plot when that EMA declines below the 3-ATR channel.
These signals work especially well on higher timeframes, weekly charts for example. Of course, you are welcome to experiment with them in any timeframe.
-----------------------------------------------------------------
Options/adjustments for this indicator:
* EMA Period of Force Index
* EMA Period for ATR calculations
* Plot ATRs?
* Plot ATR Signals?
REVE Cohorts - Range Extension Volume Expansion CohortsREVE Cohorts stands for Range Extensions Volume Expansions Cohorts.
Volume is divided in four cohorts, these are depicted in the middle band with colors and histogram spikes.
0-80 percent i.e. low volumes; these get a green color and a narrow histogram bar
80-120 percent, normal volumes, these get a blue color and a narrow histogram bar
120-200 percent, high volume, these get an orange color and a wide histogram bar
200 and more percent is extreme volume, maroon color and wide bar.
All histogram bars have the same length. They point to the exact candle where the volume occurs.
Range is divided in two cohorts, these are depicted as candles above and below the middle band.
0-120 percent: small and normal range, depicted as single size, square candles
120 percent and more, wide range depicted as double size, rectangular candles.
The range candles are placed and colored according to the Advanced Price Algorithm (published script). If the trend is up, the candles are in the uptrend area, which is above the volume band, , downtrend candles below in the downtrend area. Dark blue candles depict a price movement which confirms the uptrend, these are of course in the uptrend area. In this area are also light red candles with a blue border, these depict a faltering price movement countering the uptrend. In the downtrend area, which is below the volume band, are red candles which depict a price movement confirming the downtrend and light blue candles with a red border depicting price movement countering the downtrend. A trend in the Advanced Price Algorithm is in equal to the direction of a simple moving average with the same lookback. The indicator has the same lagging.as this SMA.
Signals are placed in the vacated spaces, e.g. during an uptrend the downtrend area is vacated.
There are six signals, which arise as follows:
1 Two blue triangles up on top of each other: high or extreme volume in combination with wide range confirming uptrend. This indicates strong and effective up pressure in uptrend
2 Two pink tringles down on top of each other: high or extreme volume in combination with wide range down confirming downtrend. This indicates strong and effective down pressure in downtrend
3 Blue square above pink down triangle down: extreme volume in combination with wide range countering uptrend. This indicates a change of heart, down trend is imminent, e.g. during a reversal pattern. Down Pressure in uptrend
4 Pink square below blue triangle up: extreme volume in combination with wide range countering downtrend. This indicates a change of heart, reversal to uptrend is imminent. Up Pressure in downtrend
5 single blue square: a. extreme volume in combination with small range confirming uptrend, b. extreme volume in combination with small range countering downtrend, c. high volume in combination with wide range countering uptrend. This indicates halting upward price movement, occurs often at tops or during distribution periods. Unresolved pressure in uptrend
6 Single pink square: a extreme volume in combination with small range confirming downtrend, b extreme volume in combination with small range countering uptrend, c high volume in combination with wide range countering downtrend. This indicated halting downward price movement. Occurs often at bottoms or during accumulation periods. Unresolved pressure in downtrend.
The signals 5 and 6 are introduced to prevent flipping of signals into their opposite when the lookback is changed. Now signals may only change from unresolved in directional or vice versa. Signals 3 and 4 were introduced to make sure that all occurrences of extreme volume will result in a signal. Occurrences of wide volume only partly lead to a signal.
Use of REVE Cohorts.
This is the indicator for volume-range analyses that I always wanted to have. Now that I managed to create it, I put it in all my charts, it is often the first part I look at, In my momentum investment system I use it primarily in the layout for following open positions. It helps me a lot to decide whether to close or hold a position. The advantage over my previous attempts to create a REVE indicator (published scripts), is that this version is concise because it reports and classifies all possible volumes and ranges, you see periods of drying out of volume, sequences of falter candles, occurrences of high morning volume, warning and confirming signals.. The assessment by script whether some volume should be considered low, normal, high or extreme gives an edge over using the standard volume bars.
Settings of REVE Cohorts
The default setting for lookback is ‘script sets lookback’ I put this in my indicators because I want them harmonized, the script sets lookback according to timeframe. The tooltip informs which lookback will be set at which timeframe, you can enable a feedback label to show the current lookback. If you switch ‘script sets lookback’ off, you can set your own preferred user lookback. The script self-adapts its settings in such a way that it will show up from the very first bar of historical chart data, it adds volume starting at the fourth bar.
You can switch off volume cohorts, only range candles will show while the middle band disappears. Signals will remain if volume is present in the data. Some Instruments have no volume data, e.g. SPX-S&P 500 Index,, then only range candles will be shown.
Colors can be adapted in the inputs. Because the script calculates matching colors with more transparency it is advised to use 100 percent opacity in these settings.
Take care, Eykpunter
Smooth Trail V1Please, enjoy your new game changing tradingview indicator, may I present you: the Smooth Trail (first version).
The Smooth Trail is an indicator that works just like a super trend, but it has a completely different usage and potential.
The super trend works following the price and displaying a line that uses the ATR to determine how far it has to be from the actual price, and many new trader like to use the indicator thanks to his easy readability and the buy sell signals that it shows, unfortunately this is not the best usage of the indicator and it often leads to lose money on the markets.
The main characteristics that this indicator has is that, not like the normal super trend, it follow the trend the better adapting itself in the retracement phases.
The second feature that dictate the best usage of this indicator, is that it shows a zone in which to buy or sell to have the best risk to reward ratio.
The indicator also works as dynamic level of support and resistance and can be used the best for trend following strategies to maximize the profits.
The first input, the multiplier, is used to determine how many times the ATR has to be added or subtracted in order to plot the indicator.
The second input, the length, is used to determine how many candle the indicator and the ATR have to consider for the calculation.
The third and last input, the zone width, is used to calculate the width of the zone displayed by the indicator, and is the factor that will be multiplied to the ATR, this means that if you leave the settings as default, the zone will be 1 ATR or 34 candle width.
This indicator is great to use in confluence with other indicator or with various candlestick pattern.
VIX Monitor [Zero54]NSE:BANKNIFTY1!
This is a simple but invaluable tool for both day traders and positional traders. VIX is about market expectations of volatility
The VIX is a very good and sound measure of risk in the markets. It gives these stock traders who are in intraday trading and short term traders an idea of whether the volatility is going up or going down in the market. They can calibrate their strategy accordingly. When the volatility is likely to shoot up sharply, the intraday traders run the risk of stop losses getting triggered quickly. Hence they can either reduce their leverage or they can widen their stop losses accordingly.
Also if you notice VIX is a very good and reliable gauge of index movement. If you plot the VIX and the Nifty movement you will see a clear negative correlation in the charts itself. Markets typically tend to peak out when the VIX is bottoming out and the markets tend to bottom out when the VIX is peaking out. This is a useful input for index trades.
You can use this simple indicator to monitor VIX real time. You can use it for short time frame intraday and also multi-hour, multi-day charts. You can also plot a moving average to gauge the VIX trend.
Also is the ability to monitor, Nifty and BankNifty the same way you are able to monitor the VIX (as explained above). The overall market moves in correlation with these main Indexes. So if you are trading a specific counter, you can also keep an eye on the index to get an idea where the counter may be going next.
The source code is open, please feel to modify or re-use as you feel it’s necessary. Any changes, improvements, bugs, please let me know.
Please like/boost this indicator and also add your comments, if you find it useful.
VIX, ATR, and Volatility Indicatorhere what the indictor do !
The "VIX, ATR, and Volatility Indicator" combines the Volatility Index (VIX), Average True Range (ATR), and moving averages to provide insights into market volatility.
VIX (Volatility Index):
The VIX measures the expected volatility in the market over the next 30 days. A higher VIX value indicates increased market volatility, while a lower value suggests lower volatility.
ATR (Average True Range):
The ATR is a technical indicator that measures the average range between high and low prices over a specified period. It provides a sense of the market's volatility by considering price movements. Higher ATR values indicate greater volatility, while lower values indicate lower volatility.
Moving Averages:
The indicator calculates both an Exponential Moving Average (EMA) and Simple Moving Average (SMA) with a specific period (e.g., 50).
Moving averages smooth out price data to identify trends and potential areas of support or resistance.
Volatility Detection:
By comparing the current closing price to the EMA and SMA, the indicator determines if there is high volatility.
If the current closing price is higher than either the EMA or SMA, it indicates potential high volatility.
Visualization:
The VIX and ATR are typically plotted on the chart, providing a visual representation of market volatility and price range.
Additionally, markers or labels may be used to highlight periods of high volatility when the current price exceeds the moving averages.
what are the VIX and ATR
Volatility Index (VIX):
Monitor the VIX value from financial platforms or market data providers. A higher VIX value indicates increased market volatility, suggesting potential trading opportunities. Conversely, a lower VIX value indicates lower volatility, which may influence your trading strategy.
Average True Range (ATR):
Calculate the ATR manually or use charting platforms that provide ATR as an indicator.
Plot the ATR on your trading chart to visualize the range of price movements.
Determine suitable entry and exit points based on ATR values. For example, higher ATR values may indicate larger potential price swings, while lower ATR values may suggest a more stable market.
how it work
Fetching VIX Data:
The request.security function is used to fetch the daily VIX data from the "CBOE:VIX" symbol. It retrieves the closing price of the VIX for each day.
Calculating ATR:
The ta.atr function calculates the Average True Range (ATR) with a period of 14. ATR measures the average range between the high and low prices over the specified period, providing an indication of market volatility.
Calculating Moving Averages:
Two types of moving averages are calculated: Exponential Moving Average (EMA) and Simple Moving Average (SMA). Both moving averages are calculated using a period of 50, but you can adjust the period as needed.
The ta.ema function calculates the Exponential Moving Average, which places greater weight on recent prices.
The ta.sma function calculates the Simple Moving Average, which gives equal weight to all prices in the period.
Identifying High Volatility:
The indicator determines if there is high volatility by comparing the current closing price to both the EMA and SMA.
If the current closing price is higher than either the EMA or SMA, the isHighVolatility variable is set to true, indicating potential high volatility.
Plotting the Indicators:
The VIX and ATR are plotted using the plot function, assigning colors and line widths for visual differentiation.
The plotshape function is used to plot markers below the bars to indicate highly volatile periods. The isHighVolatility variable determines when the markers appear.
ATR Momentum [QuantVue]ATR Momentum is a dynamic technical analysis tool designed to assess the momentum of a securities price movement. It utilizes the comparison between a faster short-term Average True Range (ATR) and a slower long-term ATR to determine whether momentum is increasing or decreasing.
This indicator visually represents the momentum relationship by plotting both ATR values as lines on a chart and applying color fill between the lines based on if momentum is increasing or decreasing.
When the short-term ATR is greater than the long-term ATR, representing increasing momentum, the area between them is filled with green.
Conversely, when the short-term ATR is less than the long-term ATR line, the area between them is filled with red. This red fill indicates decreasing momentum.
Don't hesitate to reach out with any questions or concerns.
We hope you enjoy!
Cheers.
[SMT] Buy & Sell Renko Based - AlertsThis is a custom indicator that implements a trading strategy based on Renko charts, but they can be used on regular candlestick charts and on any time frame. Renko charts are known for filtering market noise and displaying price movements in a clearer way. However, it is important to note that this indicator is provided for educational and informational purposes only and is not a guarantee of profitable returns.
Features:
- The indicator uses Renko charts to generate buy and sell signals.
- Renko bricks are built based on a predefined price variation, rather than time.
- The length of the Average True Range (ATR) used to calculate Renko bricks can be customized.
- Buy signals are generated when the price crosses below the current Renko brick.
- Sell signals are generated when the price crosses above the current Renko brick.
- Entry points are marked with "Buy" and "Sell" arrows on the chart.
It is essential to emphasize that no indicator or trading strategy guarantees profitable results. The financial market is complex and subject to unpredictable changes. It is recommended to perform additional tests and analysis before using this indicator on a real trading account.
Always remember to manage your risks properly and consider other factors such as fundamental analysis and market conditions when making trading decisions. The use of this indicator is entirely the user's responsibility.
DISCLAIMER: This indicator is not financial advice and should not be interpreted as such. Always consult with a qualified financial professional before making any investment decisions.