Bollinger Bands (Nadaraya Smoothed) | Flux ChartsTicker: AMEX:SPY , Timeframe: 1m, Indicator settings: default
General Purpose
This script is an upgrade to the classic Bollinger Bands. The idea behind Bollinger bands is the detection of price movements outside of a stock's typical fluctuations. Bollinger Bands use a moving average over period n plus/minus the standard deviation over period n times a multiplier. When price closes above or below either band this can be considered an abnormal movement. This script allows for the classic Bollinger Band interpretation while de-noising or "smoothing" the bands.
Efficacy
Ticker: AMEX:SPY , Timeframe: 1m, Indicator settings: Standard Dev: 2; Level 1 : off; Level 2: off; labels: off
Upper Band Key:
Blue: Bollinger No smoothing
Orange: Bollinger SMA smoothing period of 10
Purple: Bollinger EMA smoothing period of 10
Red: Nadaraya Smoothed Bollinger bandwidth of 6
Here we chose periods so that each would have a similar offset from the original Bollinger's. Notice that the Red Band has a much smoother result while on average having a similar fit to the other smoothing techniques. Increasing the EMA's or SMA's period would result in them being smoother however the offset would increase making them less accurate to the original data.
Ticker: AMEX:SPY , Timeframe: 1m, Indicator settings: Standard Dev: 2; Level 1: off; Level 2: off; labels: off
Upper Band Key:
Blue: Bollinger No smoothing
Orange: Bollinger SMA smoothing period of 20
Purple: Bollinger EMA smoothing period of 20
Red: Nadaraya Smoothed Bollinger bandwidth of 6
This makes the Nadaraya estimator a particularly efficacious technique in this use case as it achieves a superior smoothness to fit ratio.
How to Use
This indicator is not intended to be used on its own. Its use case is to identify outlier movements and periods of consolidation. The Smoothing Factor when lowered results in a more reactive but noisy graph. This setting is also known as the "bandwidth" ; it essentially raises the amplitude of the kernel function causing a greater weighting to recent data similar to lowering the period of a SMA or EMA. The repaint smoothing simply draws on the Bollinger's each chart update. Typically repaint would be used for processing and displaying discrete data however currently it's simply another way to display the Bollinger Bands.
What makes this script unique.
Since Bollinger bands use standard deviation they have excess noise. By noise we mean minute fluctuations which most traders will not find useful in their strategies. The Nadaraya-Watson estimator, as used, is essentially a weighted average akin to an ema. A gaussian kernel is placed at the candlestick of interest. That candlestick's value will have the highest weight. From that point the other candlesticks' values effect on the average will decrease with the slope of the kernel function. This creates a localized mean of the Bollinger Bands allowing for reduced noise with minimal distortion of the original Bollinger data.
Volatilité
Crypto Market OverviewCrypto Market Overview
The Crypto Market Overview (CMO) indicator is your one-stop tool for keeping tabs on the cryptocurrency market. It provides a comprehensive snapshot of key data and trends, helping you make informed decisions in the fast-paced world of crypto trading. Here's what this indicator offers:
1. Lookback Period Control:
You can customize the lookback period for percentage change calculations, tailoring it to your specific analysis needs.
2. Currency Selection:
Choose your preferred currency to view market data in your desired denomination.
3. Major Market Cap Data:
Real-time information on Bitcoin (BTC) and Ethereum (ETH) market caps.
Total market capitalization data for the entire crypto market.
4. Stablecoin Market Cap Data:
Keep track of stablecoin market caps, including USDT, USDC, DAI, TUSD, and BUSD.
Get a clear picture of the stablecoin segment of the market.
5. Shitcoin Market Cap Data:
An interesting category that represents the market cap of all cryptocurrencies not classified as major or stable.
6. Dominance Data:
Dominance percentages for BTC, ETH, stablecoins and shitcoins.
Total market dominance, allowing you to gauge the influence of major cryptocurrencies.
7. Rate of Change (RoC) Metrics:
Monitor the RoC for market caps and dominance percentages.
Positive or negative trends are clearly highlighted with color-coded indicators.
8. Intuitive Table Layout:
A user-friendly table layout displays all the data.
Key assets such as Bitcoin and Ethereum are listed along with their market caps and dominance.
9. Color Coding:
Upward and downward trends are easily identifiable with color-coded cells.
A white background with bold text ensures readability.
The Crypto Market Overview indicator is an invaluable tool for cryptocurrency traders and enthusiasts, offering a quick and convenient way to stay updated on market dynamics. It's perfect for making data-driven decisions in the ever-changing world of digital assets.
[MAD] Harmonic Wave Fourier AnalysisThis script uses Fourier Analysis with additional postcalculations to draw a plot which displays the Amplitude-Change of the Fouriers
Parameter Settings:
You can set the number of data points to analyze
the period to check for extremes.
Fourier Transform: The script breaks down the time series data into its frequency components using cosine and sine calculations.
Harmonic Analysis: It calculates the strength and phase of each frequency component, producing harmonic waves.
Amplitude Change: It determines the change in amplitude between peaks and troughs for each harmonic.
Latest Value Extraction: The script selects the middle amplitude change as the latest data point.
High/Low Points: Finds the maximum and minimum amplitude changes over a specified period.
Visualization: It plots the latest amplitude change with a color that indicates its value relative to the identified extremes.
splitted by 3 Blue plots (1/3 1/2 2/3 from min to max)
How to trade?
May go for retests to the blue lines after big moves.
See this script as braindump of an idea, so its just a concept :-)
Expected Move by Option's Implied Volatility High Liquidity
This script plots boxes to reflect weekly, monthly and yearly expected moves based on "At The Money" put and call option's implied volatility.
Symbols in range: This script will display Expected Move data for Symbols with high option liquidity.
Weekly Updates: Each weekend, the script is updated with fresh expected move data, a job that takes place every Saturday following the close of the markets on Friday.
In the provided script, several boxes are created and plotted on a price chart to represent the expected price moves for various timeframes.
These boxes serve as visual indicators to help traders and analysts understand the expected price volatility.
Definition of Expected Move: Expected Move refers to the anticipated range within which the price of an underlying asset is expected to move over a specific time frame, based on the current implied volatility of its options. Calculation: Expected Move is typically calculated by taking the current stock price and applying a multiple of the implied volatility. The most commonly used multiple is the one-standard-deviation move, which encompasses approximately 68% of potential price outcomes.
Example: Suppose a stock is trading at $100, and the implied volatility of its options is 20%. The one-standard-deviation expected move would be $100 * 0.20 = $20.
This suggests that there is a 68% probability that the stock's price will stay within a range of $80 to $120 over the specified time frame. Usage: Traders and investors use the expected move as a guideline for setting trading strategies and managing risk. It helps them gauge the potential price swings and make informed decisions about buying or selling options.There is a 68% chance that the underlying asset stock or ETF price will be within the boxed area at option expiry. The data on this script is updating weekly at the close of Friday, calculating the implied volatility for the week/month/year based on the "at the money" put and call options with the relevant expiry. This script will display Expected Move data for Symbols within the range of JBL-NOTE in alphabetical order.
In summary, implied volatility reflects market expectations about future price volatility, especially in the context of options. Expected Move is a practical application of implied volatility, helping traders estimate the likely price range for an asset over a given period. Both concepts play a vital role in assessing risk and devising trading strategies in the options and stock markets.
Ultimate RSIThis indicator is a customized version of the RSI indicator that by default utilizes Bollinger Bands. It have included two layers of bands, with separate standard deviations. The indicator is fully customizable.
The indicator displays bullish and bearish divergence from price.
You are able to change the moving average that is used to calculate both the RSI itself, as well as the moving average used for the Bollinger Bands.
I have included fills that color the background to indicate various zones of RSI values.
Price tends to either reject or move quickly at these levels.
I have a yellow RSI zone that indicates a sideways market with little to no momentum with default values of 45 to 55. These are areas where trading is stagnant and you should likely avoid placing trades.
There is now an ATR feature to adjust the Bollinger Bands with ATR (Average True Range).
In order to trade with this indicator, you should watch for the white line (RSI) to cross into the Bollinger Bands, then cross over the yellow moving average (Basis line), where you would enter a BUY or SELL.
Watch this indicator in action and look for patterns. Draw vertical lines on the chart where you would have wanted to buy or sell and study this to understand how to make better trading decisions.
NOTE:
While not required in order to use this indicator, it was designed to visually work with another indicator of mine called The Ultimate Buy and Sell Indicator. I recommend using both together as they are a strong pair of indicators that share the same settings. This indicator while it can be used independently can also help you visualize the settings changes made to the other one which are unable to be displayed on the main chart by that indicator.
Automated Algorithmic Trading System with RP DetectionFirst, we use a calculation of "higher highs" and "lower lows" price channels, which we see represented on the chart in purple. These channels provide us with a broad view that helps us identify on the chart where the price has reached significantly higher levels than before during a specific period and lower points than previous levels. As we observe, a channel forms, and when the price approaches or touches this channel initially, it reacts violently. But this is where the magic begins, as we will use these as areas of significant reversal, although they won't be the only filter, as we will need confluence with other patterns once we are in areas of significant reversal to make a buying or selling decision.
Secondly, the algorithm uses a fundamental and precise calculation as it shows us the most important support and resistance levels of the asset, which we observe in two ways on the chart. First, supports are represented in a blue block, and resistances in a red block. These are also grouped in a table by default in the last 5 days, although we can modify these calculations according to our needs in the indicator's configuration.
In addition, our algorithm performs a special calculation of a rational quadratic kernel, estimating the price regression function. This provides us with a clear idea of where the price of the asset is heading and its trend. This channel is always calculated and working optimally within the "higher highs" and "lower lows" channel we reviewed a moment ago, and it provides us with a macro view of the price.
Now, the algorithm uses this last quadratic microchannel to give us some reversal signals within this same microchannel that can be utilized by us for precise scalping entries. Considering the following, as we visualize on the chart:
First, we will explain the Reversal signals. At the top of our quadratic microchannel, the first automated signal is generated, which we will observe as a Reversal and is represented by a parachutist. This occurs when the price breaks the upper microchannel, and we expect a price pullback. A piece of advice: if we are in a resistance area, the price will have more strength to return to the microchannel zone, allowing us to take a short position.
On the other hand, as observed on the chart, the same reversal signal represented by an airplane is generated when there is a downward price break of the microchannel, which makes us expect a pullback back to the channel. In case we are in a support zone, the price's return will gain more strength, enabling us to enter a long position.
As we see in the chart, we have two other types of signals with very complex calculations that the algorithm detects, alerting us about price reversals. The first reversal patterns are shown visually as purple and green flags and are executed when there is a change in the price structure and the price reversal within the microchannel is confirmed. This allows us to have buy and sell operations. The second signals are shown visually as Bear Pattern and Bull Pattern, confirming a pattern when the price does not fall (for bulls) or rise (for bears) below or above a specific level after detecting the "hook." This is explained subtly, as the calculation is very complex, but the effectiveness of these reversals is impressive for working with pullbacks within the microchannel.
Now, let's explain how the grand signal is generated through confluences from all the algorithmic calculations of the indicator:
First, the buy signal is generated when we observe that the Quadratic Channel crosses down our "higher highs" and "lower lows" channel, meaning there is now a cross between channels, and at the same time, we are in a Support Zone. At this moment, when these three confluences are met, it will send us the buy alert that we visually observe as a pile of bills.
Similarly, for the sell signal, it is generated when we observe that the Quadratic Channel crosses up our "higher highs" and "lower lows" channel, meaning there is now a cross between channels, and at the same time, we are in a Resistance Zone. At this moment, when these three confluences are met, it will send us the sell alert that we visually observe as an explosion.
These grand confluence signals are usually of the day trading type since they will be executed in a significant move.
All our indicators come with two types of alerts to automate our trading. The first type of alert will notify us on our devices when a signal of interest occurs on the chart, previously configured by us.
The second type is configured to make our indicators work for us without the need to be present on the chart. This is done with a special programming within the indicator's code, and it will execute automatic buys and sells on our preferred exchange through an alert configured for the 3Commas bot. It will only be necessary to enter our Bot number or Bot ID provided by the 3Commas provider and insert it into the alert. All premium indicators have an explanation in their configuration that will detail where to enter your Bot ID.
ESPAÑOL:
Primero, usamos un cálculo de Canales de Precios "altos mas altos" y "bajos mas bajos", que vemos representados en el gráfico en color morado. Estos canales nos otorgan una amplia visión que nos ayuda a identificar en el gráfico dónde el precio ha alcanzado niveles significativamente más altos que los anteriores durante un período específico y puntos más bajos que los anteriores. Como observamos, se forma un canal en el que, en primer instancia, cuando el precio se acerca o toca este canal, reacciona violentamente. Pero es aquí donde comienza la magia, ya que los usaremos como zonas de gran reversión, aunque no serán el único filtro, ya que necesitaremos que exista confluencia con otros patrones una vez estemos en zonas de gran reversión para tomar una decisión de compra o venta.
En segunda instancia, el algoritmo utiliza un cálculo fundamental y preciso ya que Nos muestra los soportes y resistencias más importantes del activo, que observamos de dos maneras en el gráfico. Primero, están representados en un bloque azul los soportes y en un bloque rojo las resistencias. Estos también se agrupan en una tabla por orden de importancia por defecto en los últimos 5 días, aunque estos cálculos los podremos modificar de acuerdo a nuestras necesidades en la configuración del indicador.
adicional nuestro algoritmo realiza un cálculo especial de un kernel cuadrático racional, que estima la función de regresión del precio. Esto nos proporciona una idea clara de hacia dónde va el precio del activo y su tendencia. Este canal siempre está calculado y trabajando de manera óptima dentro del otro canal de "altos mas altos " y "bajos mas bajos" que revisamos hace unos momentos, y que nos brinda una visión macro del precio.
Ahora bien, el algoritmo utiliza este último micro canal cuadrático para darnos algunas señales de reversión dentro de este mismo micro canal que pueden ser aprovechadas por nosotros para hacer entradas precisas y del tipo scalping. Considerando lo siguiente, como visualizamos en el gráfico:
Primero, explicaremos las señales de Reversión en la parte alta de nuestro micro canal cuadrático, se genera la primera señal automatizada que observaremos como Reversión y está representada con un paracaidista. Esto ocurre cuando el precio rompe el micro canal alto, y esperamos que se genere un pullback del precio. Un consejo: si estamos en un área de resistencia, el precio tendrá más fuerza para regresar a la zona del micro canal, lo que nos permitirá tomar una posición corta.
Por otro lado, como observamos en el gráfico, la misma señal de reversión representada por una avioneta se genera cuando hay una ruptura del precio hacia abajo del micro canal, lo que nos hace esperar un pullback de retorno al canal. En caso de que estemos en una zona dentro del soporte, el retorno del precio tomará más fuerza, permitiéndonos obtener una entrada larga.
Como vemos en el gráfico, tenemos otros dos tipos de señales con cálculos muy complejos que el algoritmo detecta, avisándonos sobre las reversiones del precio. Los primeros patrones de reversión se muestran visualmente como banderas moradas y verdes y se ejecutan cuando hay un cambio en la estructura del precio y se confirma la reversión del precio dentro del micro canal. Esto nos permite tener operaciones de compra y venta. Las segundas señales se muestran visualmente como Bear Pattern y Bull Pattern, confirmando un patrón cuando el precio no vuelve a caer (para alcistas) o subir (para bajistas) por debajo o por encima de un nivel específico después de detectar el "gancho". Esto está explicado de manera sutil, ya que el cálculo es muy complejo, pero la efectividad de estas reversiones es impresionante para trabajar con pullbacks dentro del micro canal.
ahora bien vamos a explicar como se genera la gran señal por confluencias por todos los calculos algoritmicos del indicador:
primero la señal de compra se generá Cuando observamos que el Canal Cuadrático cruza hacia abajo nuestro Canal de bajos mas bajos, es decir ahora hay un cruce entre canales y al mismo tiempo nos encontramos en una Zona de Soporte, en este momento al cumplirse estas tres confluencias nos enviará la alerta de compra que observamos visualmente como un cumulo de billetes.
asi mismo para la venta se generá Cuando observamos que el Canal Cuadrático cruza hacia arriba nuestro Canal de altos mas altos, es decir ahora hay un cruce entre canales y al mismo tiempo nos encontramos en una Zona de Resistencia, en este momento al cumplirse estas tres confluencias nos enviará la alerta de venta que observamos visualmente como una explosión.
estas grandes señales por confluencia suelen ser del tipo day trading ya que se ejecutarán en un gran movimiento.
Todos nuestros indicadores cuentan con dos tipos de alertas para automatizar nuestro trading. El primer tipo de alerta nos avisará en nuestros dispositivos cuando ocurra alguna señal en el grafico y que sea de nuestro interes previamente configurada por nosotros.
La segunda está configurada para que nuestros indicadores trabajen para nosotros sin necesidad de estar presentes en el gráfico, esto con una programacion especial dentro del codigo del indicador y que hará por nosotros compras y ventas automáticas en nuestro Exchange de preferencia mediante una alerta configurada para el bot 3Commas, solo bastará con que pongamos nuestro numero de Bot o Bot ID que da el provedoor de 3Commas y lo insertemos en la alerta, todos los indicadores premium tienen en su configuracion una explicacion que te indicará detalladamente donde poner tus Bot ID.
Monthly beta (5Y monthly) with multi-timeframe supportThe PROPER way to calculate beta for a stock using monthly price returns . None of this nonsense using daily returns and sliding windows as done by other scripts...
Works on any timeframe.
This script has been checked against 100s of stocks on Yahoo finance and Zacks research data and matches 100% (some rounding error as this script is kept updated live on unconfirmed monthly bars).
You can check for yourself:
Zacks fundamentals - beta
The script calculates beta using the Variance-Covariance Method as described on Investopedia
How to calculate Beta
Anticipated Profit Targets (APT)Anticipated Profit Targets (APT)
Purpose:
The Anticipated Profit Targets script is a specialized tool designed to assist traders in visualizing potential exit points for their trades. This is achieved by leveraging the Average True Range (ATR), a renowned measure of market volatility.
How It Works:
ATR Computations: At its core, the script calculates the ATR based on a user-defined number of periods. The ATR captures the range between the high and low prices of an asset over a specific duration, providing a snapshot of its volatility.
Multiplier Application: To fine-tune the profit targets, the ATR is multiplied by a user-defined multiplier. This step adjusts the ATR value, setting the profit targets at a distance from the current price, thus accounting for potential price movements.
Adaptable Timeframes: One of the standout features of this script is its adaptability. Users can select their desired timeframe for the profit target calculations. This flexibility means that a trader can be on a 15-minute chart but visualize profit targets based on the volatility of a 1-hour chart.
Visual Representation: The calculated profit targets are then overlaid onto the current chart. This visual aid provides traders with a clear perspective of potential exit points in relation to ongoing price movements.
Originality and Usefulness:
While the concept of using ATR for setting profit targets isn't new, this script's adaptability across timeframes and its user-centric customization options make it a unique offering. The combination of ATR with dynamic multipliers and timeframe adaptability ensures that traders get a tool tailored to their specific needs, rather than a one-size-fits-all solution.
Usage Guidelines:
After adding the script to the chart, traders can adjust the input parameters to their preferences. The anticipated profit targets will then be displayed, offering potential exit points. It's recommended to use these targets in conjunction with other technical indicators and chart patterns for a holistic trading strategy.
Features:
ATR Periods: The ATR is calculated using a user-defined number of periods. By default, it's set to 14 periods, a standard setting. The ATR gauges the asset's volatility, and adjusting the periods can increase or decrease its sensitivity to recent price fluctuations.
ATR Multiplier: The ATR is multiplied by a user-defined factor to determine the profit targets. With a default multiplier of 1.5, the profit target will be positioned 1.5 times the ATR above (for bullish trades) or below (for bearish trades) the current price.
Target Timeframe: Traders can choose the timeframe for which the profit targets are calculated. This feature enables viewing of profit targets from higher timeframes on the current chart. For instance, while observing a 15-minute chart, one can see the 1-hour profit targets.
Visual Indicators:
1. Two lines are plotted: the bullish target (in green) and the bearish target (in red).
2. At the onset of each new candle in the selected higher timeframe, labels indicating the precise profit target values are displayed.
3. Price scale labels also showcase the profit targets, offering a quick reference for potential exit points.
Customization:
Traders can modify the following parameters:
1. ATR Periods: Adjusting the number of periods can refine the ATR's sensitivity to price changes.
2. Multiplier for ATR: Tweaking this value alters the distance between the profit targets and the current price.
3. Timeframe for Profit Targets: A variety of timeframes are available, granting flexibility in viewing profit targets.
How to Use:
After integrating the script into their chart, traders can modify the input parameters as desired. The anticipated profit targets will then be overlaid on the chart, offering potential exit points. When used alongside other technical indicators and chart patterns, this tool can enhance trading decision-making.
Note: This script is designed for educational purposes and should not be considered as financial advice. Always conduct your own research and consult with a financial advisor before making any trading decisions.
Z-ScoreThe "Z-Score" indicator is a unique and powerful tool designed to help traders identify overbought and oversold conditions in the market. Below is an explanation of its features, usefulness, and what makes it special:
Features:
Z-Score Calculation: The indicator calculates the Z-Score, a statistical measure that represents how far the current price is from the moving average (MA) in terms of standard deviations. It helps identify extreme price movements.
Customizable Parameters: Traders can adjust key parameters such as the Z-Score threshold, the type of MA (e.g., SMA, EMA), and the length of the moving average to suit their trading preferences.
Signal Options: The indicator offers flexibility in terms of signaling. Traders can choose whether to trigger signals when the Z-Score crosses the specified threshold or when it moves away from the threshold.
Visual Signals : Z-Score conditions are represented visually on the chart with color-coded background highlights. Overbought conditions are marked with a red background, while oversold conditions are indicated with a green background.
Information Table: A dynamic information table displays essential details, including the MA type, MA length, MA value, standard deviation, current price, and Z-Score. This information table helps traders make informed decisions.
Usefulness:
Overbought and Oversold Signals: Z-Score is particularly valuable for identifying overbought and oversold market conditions. Traders can use this information to potentially enter or exit positions.
Statistical Analysis: The Z-Score provides a statistical measure of price deviation, offering a data-driven approach to market analysis.
Customization: Traders can customize the indicator to match their trading strategies and preferences, enhancing its adaptability to different trading styles.
Visual Clarity: The visual signals make it easy for traders to quickly spot potential trade opportunities on the price chart.
In summary, the Z-Score indicator is a valuable tool for traders looking to incorporate statistical analysis into their trading strategies. Its customizability, visual signals, and unique statistical approach make it an exceptional choice for identifying overbought and oversold market conditions and potential trading opportunities.
Expected Move by Option's Implied Volatility Symbols: EAT - GBDC
This script plots boxes to reflect weekly, monthly and yearly expected moves based on "At The Money" put and call option's implied volatility.
Symbols in range: This script will display Expected Move data for Symbols within the range of EAT-GDBC in alphabetical order.
Weekly Updates: Each weekend, the script is updated with fresh expected move data, a job that takes place every Saturday following the close of the markets on Friday.
In the provided script, several boxes are created and plotted on a price chart to represent the expected price moves for various timeframes.
These boxes serve as visual indicators to help traders and analysts understand the expected price volatility.
Definition of Expected Move: Expected Move refers to the anticipated range within which the price of an underlying asset is expected to move over a specific time frame, based on the current implied volatility of its options. Calculation: Expected Move is typically calculated by taking the current stock price and applying a multiple of the implied volatility. The most commonly used multiple is the one-standard-deviation move, which encompasses approximately 68% of potential price outcomes.
Example: Suppose a stock is trading at $100, and the implied volatility of its options is 20%. The one-standard-deviation expected move would be $100 * 0.20 = $20.
This suggests that there is a 68% probability that the stock's price will stay within a range of $80 to $120 over the specified time frame. Usage: Traders and investors use the expected move as a guideline for setting trading strategies and managing risk. It helps them gauge the potential price swings and make informed decisions about buying or selling options. There is a 68% chance that the underlying asset stock or ETF price will be within the boxed area at option expiry. The data on this script is updating weekly at the close of Friday, calculating the implied volatility for the week/month/year based on the "at the money" put and call options with the relevant expiry.
In summary, implied volatility reflects market expectations about future price volatility, especially in the context of options. Expected Move is a practical application of implied volatility, helping traders estimate the likely price range for an asset over a given period. Both concepts play a vital role in assessing risk and devising trading strategies in the options and stock markets.
Expected Move by Option's Implied Volatility Symbols: CLFD-EARN This script plots boxes to reflect weekly, monthly and yearly expected moves based on "At The Money" put and call option's implied volatility.
Symbols in range: This script will display Expected Move data for Symbols within the range of CLFD - EARN in alphabetical order.
Weekly Updates: Each weekend, the script is updated with fresh expected move data, a job that takes place every Saturday following the close of the markets on Friday.
In the provided script, several boxes are created and plotted on a price chart to represent the expected price moves for various timeframes.
These boxes serve as visual indicators to help traders and analysts understand the expected price volatility.
Definition of Expected Move: Expected Move refers to the anticipated range within which the price of an underlying asset is expected to move over a specific time frame, based on the current implied volatility of its options. Calculation: Expected Move is typically calculated by taking the current stock price and applying a multiple of the implied volatility. The most commonly used multiple is the one-standard-deviation move, which encompasses approximately 68% of potential price outcomes.
Example: Suppose a stock is trading at $100, and the implied volatility of its options is 20%. The one-standard-deviation expected move would be $100 * 0.20 = $20.
This suggests that there is a 68% probability that the stock's price will stay within a range of $80 to $120 over the specified time frame. Usage: Traders and investors use the expected move as a guideline for setting trading strategies and managing risk. It helps them gauge the potential price swings and make informed decisions about buying or selling options. There is a 68% chance that the underlying asset stock or ETF price will be within the boxed area at option expiry. The data on this script is updating weekly at the close of Friday, calculating the implied volatility for the week/month/year based on the "at the money" put and call options with the relevant expiry.
In summary, implied volatility reflects market expectations about future price volatility, especially in the context of options. Expected Move is a practical application of implied volatility, helping traders estimate the likely price range for an asset over a given period. Both concepts play a vital role in assessing risk and devising trading strategies in the options and stock markets.
ATR SpikeALWAYS TRADE THE DIRECTION OF THE TREND
This indicator is useful for 5-minute Bank Nifty intraday trading.
It compares the Open-Close value for a 5-minute bar with the current ATR value.
When a bar has higher than the ATR value then it means that the current bar has a higher Open-Close than the ATR.
This means that after a period of dull action, some action has taken place.
And more action will follow in the direction of the immediate trend.
It signals the start of momentum which I look for as a intraday trader.
Feel free to experiment and change values as it suits you.
I use it on Bank Nifty only on 5 minute timeframe with 14 period ATR.
Expected Move by Option's Implied Volatility Symbols: A - AZZ
This script plots boxes to reflect weekly, monthly and yearly expected moves based on "At The Money" put and call option's implied volatility.
Symbols in range: This script will display Expected Move data for Symbols within the range of A - AZZ in alphabetical order.
Weekly Updates: Each weekend, the script is updated with fresh expected move data, a job that takes place every Saturday following the close of the markets on Friday.
In the provided script, several boxes are created and plotted on a price chart to represent the expected price moves for various timeframes.
These boxes serve as visual indicators to help traders and analysts understand the expected price volatility.
Definition of Expected Move: Expected Move refers to the anticipated range within which the price of an underlying asset is expected to move over a specific time frame, based on the current implied volatility of its options. Calculation: Expected Move is typically calculated by taking the current stock price and applying a multiple of the implied volatility. The most commonly used multiple is the one-standard-deviation move, which encompasses approximately 68% of potential price outcomes.
Example: Suppose a stock is trading at $100, and the implied volatility of its options is 20%. The one-standard-deviation expected move would be $100 * 0.20 = $20.
This suggests that there is a 68% probability that the stock's price will stay within a range of $80 to $120 over the specified time frame. Usage: Traders and investors use the expected move as a guideline for setting trading strategies and managing risk. It helps them gauge the potential price swings and make informed decisions about buying or selling options. There is a 68% chance that the underlying asset stock or ETF price will be within the boxed area at option expiry. The data on this script is updating weekly at the close of Friday, calculating the implied volatility for the week/month/year based on the "at the money" put and call options with the relevant expiry.
In summary, implied volatility reflects market expectations about future price volatility, especially in the context of options. Expected Move is a practical application of implied volatility, helping traders estimate the likely price range for an asset over a given period. Both concepts play a vital role in assessing risk and devising trading strategies in the options and stock markets.
MA Slope [EMA Magic]█ Overview:
The MA Slope calculates the slope based on a given moving average.
The Moving Average Slope indicator allows you to identify the direction and the strength of a trend.
It calculates the rate of change in percentage based on the user-defined moving average.
█ Calculation: This indicator calculates the slope based on the changes of moving average and normalizes it with Average True Range(ATR).
The default value of ATR is 7.I recommend not changing it unless you know exactly what are you doing.
█ Input Settings:
The settings are divided into three sections:
The first section is for time frame adjustments. Modify it separately from the chart, Allows you to use moving averages from different time frames.
In the second section, you can configure the base calculation,including Moving Average and Average True Range(ATR) settings.
In the third section, you can detect breakout and sudden change signals, which are highlighted in the background of the indicator.
Note that When you change the breakout limit value, it also affects the band limit indicator on your chart.
To avoid signal confusion, use only one at a time.
Here is the example the breakout signals:
█ Usage:
When the slope is increasing, it indicates an uptrend.
When the slope is decreasing, it indicates a downtrend.
When the slope is moving around zero and choppy, it indicates no specific trend or price is in a range zone.
Uptrend and Range Zone example:
Downtrend example:
Slope peaks on extreme levels can signal a potential trend reversal point.
Breakout of the upper or lower bands can be translated into a trading signal.Indicating that price will probably continue to move in the direction of the breakout.
Favor long setups when the slope is increasing or it is positive and favor short setups when the slope is decreasing or it is negative.
Fits with any moving average you use, e.g., EMA, WMA, MA Ribbon, and more.
█ Alert
Alerts are available for both signal conditions.
█ Recap
Take the time to study price movements alongside this indicator for a deeper understanding.Whether you're a novice or experienced trader, this indicator can come helpful
Z-Score - AsymmetrikZ-Score-Asymmetrik User Manual
Introduction
The Z-Score Indicator is a powerful tool used in technical analysis to measure how far a data point is from the mean value of a dataset, measured in terms of standard deviations. This indicator helps traders identify potential overbought or oversold conditions in the market.
This user manual provides a comprehensive guide on how to use the Z-Score Indicator in TradingView.
0. Quickstart
- Set the thresholds based on your asset (number of standard deviations that you consider being extreme for this asset / timeframe).
- Red background indicates a possible overbought situation, green background an oversold one.
- The color and direction of the Z-Score Line acts as a confirmation of the trend reversal.
1. Indicator Overview
The Z-Score Indicator, also known as the Z-Score Oscillator, is designed to display the Z-Score of a selected financial instrument on your TradingView chart. The Z-Score measures how many standard deviations an asset's price is from its mean (average) price over a specified period.
The indicator consists of the following components:
- Z-Score Line: This line represents the Z-Score value and is displayed on the indicator panel.
- Background Color: The background color of the indicator panel changes based on user-defined thresholds.
2. Inputs
The indicator provides several customizable inputs to tailor it to your specific trading preferences:
- Number of Periods: This input allows you to define the number of periods over which the Z-Score will be calculated. A longer period will provide a smoother Z-Score line but may be less responsive to recent price changes.
- Z-Score Low Threshold: Sets the lower threshold value for the Z-Score. When the Z-Score crosses below this threshold, the background color of the indicator panel changes accordingly.
- Z-Score High Threshold: Sets the upper threshold value for the Z-Score. When the Z-Score crosses above this threshold, the background color of the indicator panel changes accordingly.
3. How to Use the Indicator
Here are the steps to use the Z-Score Indicator:
- Adjust Parameters: Modify the indicator's inputs as needed. You can change the number of periods for the Z-Score calculation and set your desired low and high thresholds.
- Interpret the Indicator: Observe the Z-Score line on the indicator panel. It fluctuates above and below zero. Pay attention to the background color changes when the Z-Score crosses your specified thresholds.
4. Interpreting the Indicator
- Z-Score Line: The Z-Score line represents the current Z-Score value. When it is above zero, it suggests that the asset's price is above the mean, indicating potential overvaluation. When below zero, it suggests undervaluation.
- Background Color: The background color of the indicator panel changes based on the Z-Score's position relative to the specified thresholds. Green indicates the Z-Score is below the low threshold (potential undervaluation), while red indicates it is above the high threshold (potential overvaluation).
- Z-Score Line Color: The color of the Z-Score line shows that the Z-Score is trending up compared to its moving average. This can be used as a validation of the background color.
5. Customization Options
You can customize the Z-Score Indicator in the following ways:
- Adjust Inputs: Modify the number of periods and the Z-Score thresholds.
- Change Line and Background Colors: You can customize the colors of the Z-Score line and background by editing the indicator's script.
6. Troubleshooting
If you encounter any issues while using the Z-Score Indicator, make sure to check the following:
- Ensure that the indicator is applied correctly to your chart.
- Verify that the indicator's inputs match your intended settings.
- Contact me for more support if needed
7. Conclusion
The Z-Score Indicator is a valuable tool for traders and investors to identify potential overbought and oversold conditions in the market. By understanding how the Z-Score works and customizing it to your preferences, you can integrate it into your trading strategy to make informed decisions.
Remember that trading involves risk, and it's essential to combine technical indicators like the Z-Score with other analysis methods and risk management strategies for successful trading.
Momentum Madness (AKA: Moms Mad)The "Momentum Madness" indicator is a customizable technical analysis tool designed for TradingView. It aims to help traders assess price momentum and make informed trading decisions. Below is a description of how this indicator works:
Indicator Title and Settings:
The indicator is titled "Momentum Madness" with a short title "Moms Mad."
Users can customize various settings to tailor the indicator to their preferences.
Input Parameters:
Traders can set the lengths (periods) for four different momentum calculations (len1, len2, len3, len4).
They can specify a lookback period for trend direction determination.
Users can choose from three smoothing types (RMA, SMA, EMA) and set the smoothing length (smoothLength).
The indicator offers options to adjust momentum calculations based on volume (useVolumeWeight), RSI (useRSIAdjustment), and MACD (useMACDAdjustment).
If the trend filter is enabled (useTrendFilter), the indicator considers whether the price is above the 200-period SMA.
Traders can incorporate Bollinger Bands adjustments (useBBAdjustment) and set the Bollinger Bands length (bbLength).
A volatility adjustment can be applied (useVolatilityAdjustment), using the Average True Range (ATR) with a specified length (atrLength).
Smoothing Function:
The indicator offers three smoothing options: RMA, SMA, and EMA, allowing users to select their preferred method for smoothing price data.
Momentum Calculations:
The indicator calculates four different momentum values (mom1, mom2, mom3, mom4) by subtracting the current price from historical prices based on the specified lengths.
Enhancement Features:
Users can enhance momentum calculations through volume weighting, RSI adjustment, MACD adjustment, trend filtering, Bollinger Bands adjustment, and volatility adjustment, depending on their preferences.
Trend Direction Detection:
The indicator identifies the trend direction based on the comparison of the current momentum (mom4Smooth) with a momentum value from a specified lookback period. It determines whether the trend is bullish (green), bearish (red), or neutral (no change).
Plots:
The indicator visualizes the four smoothed momentum values (mom1Smooth, mom2Smooth, mom3Smooth, mom4Smooth) as separate plots on the chart, each with its own customizable color.
A zero line is displayed for reference (yellow).
The average momentum (averageMomentumSmooth) is plotted and can be customized with its own color.
The "Momentum 4" plot dynamically changes color based on trend direction (green for bullish, red for bearish).
Fill:
The indicator fills the area between the "Momentum 4" plot and the zero line with a customizable color to highlight bullish or bearish momentum.
Look for crossover events by studying the chart and understanding what they all mean. Happy trading :)
SML SuiteIntroducing the "SML Suite" Indicator
The "SML Suite" is a powerful and easy-to-use trading indicator designed to help traders make informed decisions in the world of financial markets. Whether you're a seasoned trader or a novice, this indicator is your trusty sidekick for evaluating market trends.
Key Features:
Three Moving Averages: The indicator employs three different moving averages, each with a distinct length, allowing you to adapt to various market conditions.
Customizable Parameters: You can easily customize the moving average lengths and source data to tailor the indicator to your specific trading strategy.
Standard Deviation Multiplier: Adjust the standard deviation multiplier to fine-tune the indicator's sensitivity to market fluctuations.
Binary Results: The indicator provides clear binary signals (1 or -1) based on whether the current price is above or below certain bands. This simplifies your decision-making process.
SML Calculation: The SML (Short, Medium, Long) calculation is a smart combination of the binary results, offering you an overall sentiment about the market.
Color-Coded Visualization: Visualize market sentiment with color-coded bars, making it easy to spot trends at a glance.
Interactive Table: A table is displayed on your chart, giving you a quick overview of the binary results and the overall SML sentiment.
With the "SML Suite" indicator, you don't need to be a coding expert to harness the power of technical analysis. Stay ahead of the game and enhance your trading strategy with this user-friendly tool. Make your trading decisions with confidence and clarity, backed by the insights provided by the "SML Suite" indicator.
Volatility Trend (Zeiierman)█ Overview
The Volatility Trend (Zeiierman) is an indicator designed to help traders identify and analyze market trends based on price volatility. By calculating a dynamic trend line and volatility-adjusted bands, the indicator provides visual cues to understand the current market direction, potential reversal points and volatility.
█ How It Works
The indicator uses a weighted moving average of historical prices to create a responsive trend line that is adjusted for volatility using standard deviation. The indicator sets upper and lower bands at intervals of two standard deviations, acting as markers for potential overbought or oversold conditions. Additionally, by comparing current and previous trend line values, the indicator identifies the trend direction, providing crucial insights for traders.
█ How to Use
Trend Identification
Use the trend line to identify the overall market direction. An upward-sloping line indicates an uptrend, while a downward-sloping line indicates a downtrend.
Volatility Assessment
Use the distance between the upper and lower bands to gauge market volatility. Wider bands indicate higher volatility, while narrower bands indicate lower volatility.
Overbought/Oversold
If the price reaches or exceeds the upper or lower bands, it may be in an overbought or oversold condition, respectively.
█ Settings
Trend Control: Adjusts the sensitivity and smoothness of the trend line. Lower values make the trend more responsive, while higher values make it smoother.
Trend Dynamic: Controls how quickly the trend adjusts to price changes. Higher values result in a slower adjustment.
Volatility: Consists of two parts - the scaling factor for volatility and the sensitivity for volatility adjustment. Adjusting these settings alters the distance between the trend lines and the price, as well as how sensitive the bands are to changes in volatility.
Squeeze Control: Influences the degree to which market squeeze is considered in the calculation, with higher values increasing sensitivity.
Enable Scalping Trend: A toggle that, when activated, makes the indicator focus on short-term trends, which is particularly useful for scalping strategies.
█ Related scripts with the same calculation philosophy
TrendCylinder
TrendSphere
Predictive Trend and Structure
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
HTF - Candles with polylines"HTF - Candles with polylines" draws the previous Higher TimeFrame candles with the new feature polylines .
🔶 USAGE
This publication makes it possible to see Higher Time Frame (HTF) candles on current chart, so you can see the bigger picture without switching to a HTF
The current HTF is represented with a dashed-line box, covering the recent HTF open & close
🔹 Examples :
• current timeframe 1 minute, HTF: 4 hour
• current timeframe 15 minutes, HTF: 1 Day
• current timeframe 1 hour, HTF: 1 Week
Enabling " curved " gives a nice visual effect:
"Pine - Apple" 😀
🔶 DETAILS
The candle is made by starting a polyline at the bottom left. It then goes around, connecting the open-high-low-close values while making sure the width/height of the candle correspondends with the current timeframe candles. Arriving at the top left side, the polyline is connected back with the initial start point by setting the "closed" argument of polyline.new to "true".
-> closed (series bool) If true, the drawing will also connect the first point to the last point from the `points` array, resulting in a closed polyline.
🔶 SETTINGS
• HTF + "curved"
• colours
BB phasesThis indicator is designed to visually represent different market phases based on Bollinger Bands (BB) and provide insights into potential bullish and bearish signals. Let's break down what the indicator does:
The indicator smoothly transitions from the "squeeze" phase to "bullish" or "bearish" phases based on specific price conditions. Here's a more detailed explanation of how this transition occurs:
Squeeze Phase: The "squeeze" phase is identified when the closing price is within the range between the upper Bollinger Band (upper BB) and the lower Bollinger Band (lower BB).
Transition to Bullish Phase: The transition from "squeeze" to "bullish" phase occurs when the price closes above the upper BB. The bullish phase will last while the price hasn't closed below the middle BB.
Transition to Bearish Phase: Conversely, the transition from "squeeze" to "bearish" phase occurs when the price closes below the lower BB. The bearish phase will last while the price hasn't closed above the middle BB.
Another feature of the indicator is to display bearish/bullish triangles when the price reintegrate the bollinger bands after it previously breaked it. For example if the price closes below the lower BB and then the next candle in above the lower BB, a bullish triangle will be displayed.
TrendCryptoThe _trendcrypto script is a trading strategy that uses a variety of indicators to identify potential trading opportunities, including the Parabolic SAR, ADX, and RSI.
The script first calculates the RMA, SMA, and trend direction. The RMA is a moving average that is weighted more heavily towards recent prices. The SMA is a simple moving average that gives equal weight to all prices in the period. The trend direction is calculated by comparing the current price to the price a certain number of periods ago.
The script then uses the RMA, SMA, and trend direction to identify potential trading opportunities. If the current price is above the RMA and the trend direction is up, the script will generate a buy signal. If the current price is below the RMA and the trend direction is down, the script will generate a sell signal.
The script also calculates the Parabolic SAR, which is a technical indicator that helps traders identify potential trend reversals. The Parabolic SAR is calculated using a formula that takes into account the high and low prices of a security over a specified period of time.
The script also calculates the ADX, which is a trend strength indicator. The ADX is calculated using a formula that takes into account the difference between the high and low prices of a security, as well as the difference between the closing price and the previous close.
The script also calculates the RSI, which is a momentum indicator that measures the magnitude of recent price changes to evaluate overbought or oversold conditions in the price of a stock or other asset. The RSI is calculated over a specified period of time, and the default value in the code is 14.
The script also allows users to specify a stop loss and take profit level for each trade. The default stop loss level is 4% and the default take profit level is 7%.
Expected Move BandsExpected Moves
The Expected Move of a security shows the amount that a stock is expected to rise or fall from its current market price based on its level of volatility or implied volatility. The expected move of a stock is usually measured with standard deviations.
An Expected Move Range of 1 SD shows that price will be near the 1 SD range 68% of the time given enough samples.
Expected Move Bands
This indicator gets the Expected Move for 1-4 Standard Deviation Ranges using Historical Volatility. Then it displays it on price as bands.
The Expected Move indicator also allows you to see MTF Expected Moves if you want to.
This indicator calculates the expected price movements by analyzing the historical volatility of an asset. Volatility is the measure of fluctuation.
This script uses log returns for the historical volatility calculation which can be modelled as a normal distribution most of the time meaning it is symmetrical and stationary unlike other scripts that use bands to find "reversals". They are fundamentally incorrect.
What these ranges tell you is basically the odds of the price movement being between these levels.
If you take enough samples, 95.5% of the them will be near the 2nd Standard Deviation. And so on. (The 3rd Standard deviation is 99.7%)
For higher timeframes you might need a smaller sample size.
Features
MTF Option
Parameter customization
Candle Pivot and Stop LossThe script plot upside and down side stop loss using pivot point and trure range.
The True Range, representing market volatility, is determined by finding the maximum value among the differences between the previous high-low, high-close, and low-close. The Downside Stop Loss is calculated by adding the True Range to the Pivot Point, while the Upside Stop Loss is calculated by subtracting the True Range from the Pivot Point.
These levels are plotted on the chart in blue (Pivot Point), red (Downside Stop Loss), and green (Upside Stop Loss), providing traders with essential reference points for their trading strategies.
The provided Pine Script calculates key trading levels for the current candle, including the Pivot Point, Downside Stop Loss, and Upside Stop Loss. The Pivot Point is computed as the average of the previous candle's high, low, and close prices.