Shark Price & Bar Prediction
### Description for TradingView
**Shark Price & Bar Prediction Indicator**
The "Shark Price & Bar Prediction" indicator is designed to provide traders with insights into potential price movements based on local extremes in price action. Utilizing Volume Spread Analysis (VSA), this script identifies key price levels and generates predictive targets for bullish and bearish trends.
#### Features:
- **Local Extremes Detection**: Automatically finds the highest and lowest points within a specified prediction period.
- **Price Prediction**: Calculates potential bullish and bearish targets using Fibonacci levels.
- **Visual Signals**: Displays buy and sell signals directly on the chart, making it easy to identify entry points.
- **Customizable Settings**: Users can adjust the prediction period and confidence threshold to suit their trading style.
### How to Use:
1. **Settings**: Adjust the following inputs according to your preferences:
- **Prediction Period**: Set the number of bars to look back for local extremes.
- **Confidence Threshold**: Define the confidence level for predicting price targets.
- **Show Additional Labels**: Toggle additional labels for more detailed information on the chart.
2. **Interpreting Signals**:
- **Buy Signal**: When the closing price exceeds the bullish target, an upward arrow will appear below the bar, indicating a potential buying opportunity.
- **Sell Signal**: When the closing price falls below the bearish target, a downward arrow will appear above the bar, suggesting a potential selling opportunity.
3. **Visual Indicators**:
- The highest point is marked with a 🔴 **red circle**, while the lowest point is marked with a 🟢 **green circle**.
- Bullish targets are represented by a 🔵 **blue line**, and bearish targets are represented by a 🟣 **purple line**.
### Объяснение на русском
**Индикатор Прогнозирования Цены и Баров Shark**
Индикатор "Shark Price & Bar Prediction" предназначен для предоставления трейдерам информации о потенциальных ценовых движениях на основе локальных экстремумов в ценовом действии. Используя анализ объема и спреда (VSA), этот скрипт определяет ключевые уровни цен и генерирует прогнозные цели для бычьих и медвежьих трендов.
#### Особенности:
- **Обнаружение Локальных Экстремумов**: Автоматически находит максимальные и минимальные точки в заданный период прогнозирования.
- **Прогнозирование Цены**: Вычисляет потенциальные бычьи и медвежьи цели с использованием уровней Фибоначчи.
- **Визуальные Сигналы**: Отображает сигналы покупки и продажи непосредственно на графике, что облегчает определение точек входа.
- **Настраиваемые Параметры**: Пользователи могут регулировать период прогнозирования и уровень уверенности в соответствии со своим стилем торговли.
### Как использовать:
1. **Настройки**: Отрегулируйте следующие параметры в соответствии с вашими предпочтениями:
- **Период Прогнозирования**: Установите количество баров для поиска локальных экстремумов.
- **Порог Уверенности**: Определите уровень уверенности для прогнозирования ценовых целей.
- **Показать Дополнительные Метки**: Включите дополнительные метки для более детальной информации на графике.
2. **Интерпретация Сигналов**:
- **Сигнал Покупки**: Когда цена закрытия превышает бычью цель, под баром появится стрелка вверх, указывающая на потенциальную возможность покупки.
- **Сигнал Продажи**: Когда цена закрытия падает ниже медвежьей цели, над баром появится стрелка вниз, предлагающая потенциальную возможность продажи.
3. **Визуальные Индикаторы**:
- Максимальная точка обозначена 🔴 **красным кругом**, а минимальная точка — 🟢 **зеленым кругом**.
- Бычьи цели представлены 🔵 **синей линией**, а медвежьи цели — 🟣 **пурпурной линией**.
Ratio de avance/retroceso
Nifty Top Gainers/Losers [ar]Nifty Top Gainers/Losers - Real-time Market Performance Tracker
A powerful indicator that monitors and displays real-time performance of 40 major Nifty stocks in a clean, organized table format. Perfect for traders seeking instant market breadth insights.
Key Features:
• Dynamic advances/declines counter at the top
• Real-time percentage change calculations
• Color-coded display (green for gainers, red for losers)
• Customizable reference points (Previous Day Close/Today's Open)
• Optional background color based on market breadth
• Flexible top gainers/losers limit setting
Customization Options:
- Adjust colors for gainers and losers
- Set transparency for background
- Modify the number of top performers to display
- Add/remove symbols from the watchlist
- Choose calculation reference (Previous Day Close/Today's Open)
Ideal for:
- Day traders monitoring market momentum
- Investors tracking sector rotation
- Analysts studying market breadth
- Portfolio managers seeking quick market overview
This indicator helps identify market leaders and laggards at a glance, making it an essential tool for informed trading decisions.
Implied Leverage Ratio Between Current Symbol and BTCThis script calculates and visualizes the implied leverage ratio between the current symbol and Bitcoin (BTC). The implied leverage ratio is computed by comparing the cumulative price changes of the two symbols over a defined number of candles. The results provide insights into how the current symbol performs relative to BTC in terms of bullish (upward) and bearish (downward) movements.
Features
Cumulative Up and Down Ratios:
The script calculates the cumulative price increase (up) and decrease (down) ratios for both the current symbol and BTC. These ratios are based on the percentage changes relative to each candle's opening price.
Implied Leverage Ratio:
For bullish movements, the cumulative up ratio of the current symbol is divided by BTC's cumulative up ratio.
For bearish movements, the cumulative down ratio of the current symbol is divided by BTC's cumulative down ratio.
These values reflect the implied leverage of the current symbol relative to BTC in both directions.
Customizable Comparison Symbol:
By default, the script compares the current symbol to BINANCE:BTCUSDT. However, you can specify any other symbol to tailor the analysis.
Interactive Visualization:
Green Line: Represents the ratio of cumulative up movements (current symbol vs. BTC).
Red Line: Represents the ratio of cumulative down movements (current symbol vs. BTC).
A horizontal zero line is included for reference, ensuring the chart always starts from zero.
How to Use
Add this script to your chart from the Pine Editor or the public library.
Customize the number of candles (t) to define the period over which cumulative changes are calculated.
If desired, replace the comparison symbol with another asset in the input settings.
Analyze the green and red lines to identify relative strength and implied leverage trends.
Who Can Benefit
Traders and Analysts: Gain insights into the relative performance of altcoins, stocks, or other instruments against BTC.
Leverage Seekers: Identify assets with higher or lower implied leverage compared to Bitcoin.
Market Comparisons: Understand how various assets react to market movements relative to BTC.
This tool is particularly useful for identifying potential outperformers or underperformers relative to Bitcoin and can guide strategic decisions in trading pairs or market analysis.
Open-Close Absolute Difference with Threshold CountsThe Open-Close Absolute Difference with Threshold Counts indicator is a versatile tool designed to help traders analyze the volatility and price movements within any given timeframe on their charts. This indicator calculates the absolute difference between the open and close prices for each bar, providing a clear visualization through a color-coded histogram.
Key features include:
• Timeframe Flexibility: Utilizes the current chart’s timeframe, whether it’s a 5-minute, hourly, or daily chart.
• Custom Thresholds: Allows you to set up to four custom threshold levels (Thresholds A, B, C, and D) with default values of 10, 15, 25, and 35, respectively.
• Period Customization: Enables you to define the number of bars (N) over which the indicator calculates the counts, with a default of 100 bars.
• Visual Threshold Lines: Plots horizontal dashed lines on the histogram representing each threshold for easy visual reference.
• Dynamic Counting: Counts and displays the number of times the absolute difference is less than or greater than each threshold within the specified period.
• Customizable Table Position: Offers the flexibility to position the results table anywhere on the chart (e.g., Top Right, Bottom Left).
How It Works:
1. Absolute Difference Calculation:
• For each bar on the chart, the indicator calculates the absolute difference between the open and close prices.
• This difference is plotted as a histogram:
• Green Bars: Close price is higher than the open price.
• Red Bars: Close price is lower than the open price.
2. Threshold Comparison and Counting:
• Compares the absolute difference to each of the four thresholds.
• Determines whether the difference is less than or greater than each threshold.
• Utilizes the ta.sum() function to count occurrences over the specified number of bars (N).
3. Results Table:
• Displays a table with three columns:
• Left Column: Counts where the absolute difference is less than the threshold.
• Middle Column: The threshold value.
• Right Column: Counts where the absolute difference is greater than the threshold.
• The table updates dynamically and can be positioned anywhere on the chart according to your preference.
4. Threshold Lines on Histogram:
• Plots horizontal dashed lines at each threshold level.
• Each line is color-coded for distinction:
• Threshold A: Yellow
• Threshold B: Orange
• Threshold C: Purple
• Threshold D: Blue
How to Use:
1. Add the Indicator to Your Chart:
• Open the Pine Editor on TradingView.
• Copy and paste the provided code into the editor.
• Click “Add to Chart.”
2. Configure Settings:
• Number of Bars (N):
• Set the period over which you want to calculate the counts (default is 100).
• Thresholds A, B, C, D:
• Input your desired threshold values (defaults are 10, 15, 25, 35).
• Table Position:
• Choose where you want the results table to appear on the chart:
• Options include “Top Left,” “Top Center,” “Top Right,” “Bottom Left,” “Bottom Center,” “Bottom Right.”
3. Interpret the Histogram:
• Observe the absolute differences plotted as a histogram.
• Use the color-coded bars to quickly assess whether the close price was higher or lower than the open price.
4. Analyze the Counts Table:
• Review the counts of occurrences where the absolute difference was less than or greater than each threshold.
• Use this data to gauge volatility and price movement intensity over the specified period.
5. Visual Reference with Threshold Lines:
• Refer to the horizontal dashed lines on the histogram to see how the absolute differences align with your thresholds.
Example Use Case:
Suppose you’re analyzing a 5-minute chart for a particular stock and want to understand its short-term volatility:
• Set the Number of Bars (N) to 50 to analyze the recent 50 bars.
• Adjust Thresholds based on the typical price movements of the stock, e.g., Threshold A: 0.5, Threshold B: 1.0, Threshold C: 1.5, Threshold D: 2.0.
• Position the Table at the “Top Right” for easy viewing.
By doing so, you can:
• Quickly see how often the stock experiences significant price movements within 5-minute intervals.
• Make informed decisions about entry and exit points based on the volatility patterns.
• Customize the thresholds and periods as market conditions change.
Benefits:
• Customizable Analysis: Tailor the indicator to fit various trading styles and timeframes.
• Quick Visualization: Instantly assess market volatility and price movement direction.
• Enhanced Decision-Making: Use the counts and visual cues to make more informed trading decisions.
• User-Friendly Interface: Simple configuration and clear display of information.
Note: Always test the indicator with different settings to find the configuration that best suits your trading strategy. This indicator should be used as part of a comprehensive analysis and not as the sole basis for trading decisions.
ADI Market Internals MatrixUsage
This script is designed for use during market hours but is particularly useful in the last trading hour—a period known for increased volatility and volume as traders close positions and make final decisions for the day.
Trend Analysis
The histogram provides a quick visual reference for the market's direction based on USI:ADD and $VOLSPD. A predominance of green bars suggests a bullish trend, while red bars indicate bearish conditions based on the BIAS EMA.
Volatility Assessment
The VIX label gives a quick glance at the user-inputted VIX pivot, aiding in volatility assessment and bias determination.
Features
VIX Label: Changes color (red/green) to indicate a bullish or bearish bias based on the user's input for the VIX pivot.
EMA Calculations: Calculates the EMAs for USI:ADD and $VOLSPD based on custom input, which helps determine the market trend.
Trend Determination: Identifies the close value of USI:ADD and $VOLSPD and whether they are above or below their respective EMAs.
Loopback Period: Calculates how far to look back to determine the trend, adjustable by the user.
Market Hours Control: Includes an input (startTime) for specifying when the histogram should start and end (9:30 AM to 4:00 PM EST).
Histogram Coloring
Green: Indicates a bullish trend (above the specified EMA length).
Red: Indicates a bearish trend (below the specified EMA length).
Gray: Indicates a neutral trend.
Customization
Users can adjust the script's sensitivity by changing the length for the EMAs, vixThreshold, startTime, and loopbackPeriod to fit their trading style or market conditions.
Note
Always use this tool in conjunction with other technical analysis tools and ensure proper risk management strategies are employed.
NSE Market Breadth based on 4% Advance & DeclineThis indicator displays a ratio count of NSE (India) stocks advancing or declining by 4% daily.
Market breadth provides insights into the participation of stocks in a market's movement.
Various interpretations of market breadth exist, including gauging the quantity of new highs and new lows or evaluating up and down volume. Nevertheless, all breadth indicators fundamentally stem from the same basic concept, which can be expressed mathematically as the number of advancing & declining stocks.
Thus, a count or ratio of advancing & declining stock objectively depicts the participation of stocks in an index or stock universe.
A 4% advance or decline shows a significant range expansion.
⦿ The script calculates advances as a ratio of the daily percentage change ≥ 4% & the total number of stocks.
⦿ Declines are calculated as a ratio of the daily percentage change < -4% & the total number of stocks.
⦿ Net breadth is simply calculated by subtracting the declines from the advances. (4% up - 4% down). This depicts whether the day was bearish or bullish.
Green area depicts the 4% advances.
Red area depicts the 4% declines.
The table provides the actual values for the Advances, declines & the net breadth for the day.
There is an option to turn on dark mode in the settings.
There is an option to display only the net breadth .
You can turn on the Expanded mode for the table which will display the data for the past week.
Among other options, you can choose to not display colors in the table .
There is an option plot ' comfort' levels ' of +/- 10 also.
Interpretation
A market where advances are more than declines is indicative of a healthy bull market. But extreme breadth can signal exhaustion, often leading to a reversal. This is true in case of advances as well as declines.
If a market continues to rise while breadth does not increase, this is considered a divergence, which frequently leads to a reversal of the prevailing trend.
Dependency:
The script uses the Pine Seeds service to import custom data hosted in a GitHub repository and accesses it via TradingView as the frontend. So, the number of bars appearing on charts is fully dependent on the amount of historical data available. Any error or omission, if there, is a reflection of the hosted data, & not that of TradingView.
Limitations:
Such data has some limitations, like it can only be updated at EOD (End-of-Day), & only daily-based timeframes can be applied to such data. Irrespective of the intraday changes, only the last saved value on the chart is seen. So, it's best to use this script as EOD, rather than intraday.
At the time of publication of this script, historical data was available till the year 2004.
The universe of stocks chosen for the data is all stocks with latest Close >= 1 and Market Cap > 10.
Credits:
NSE Market Breadth data is from Chhirag_Kedia , & the Pine seeds are courtesy of EquityCraze
Broad market index / quantifytools- Overview
Broad market index is a market breadth based oscillator, depicting broad market trend by analysing ratio between symbols moving up and symbols moving down in a given market. When market breadth is positive, more symbols are going up and when negative, more symbols are going down. As markets tend to correlate, broad market trend dictates likely path for all individual symbols that make up the market.
This tool provides market breadth for US equities (based on NYSE advancers - decliners) and ability to build two custom breadth baskets with up to 39 symbols included in each. Market breadth can be customized with variety of smoothing options, weighting and threshold modes to find most optimal rules for trend following. Performance of the model is reflected on metrics showing percentage of up/down moves during bullish/bearish states.
Example
↑ 63% = 63% of price moves during positive breadth state are to the upside
↓ 59% = 59% of price moves during negative breadth state are to the downside
Breadth state is colorized on line and chart according to its state (negative/positive/equilibrium) and direction (trending up/down). Upper and lower bands depict historical turning points in breadth for identifying extremes in broad market trend. Triangles mark breadth thrusts, in other words abnormally large moves in breadth at either upper or lower extreme. Breadth thrusts can serve as early signs of broad market trend reverting.
- Concept and features
By default, market breadth is calculated based on NYSE advancers - decliners, usable for all major indices that depict broad markets in US equities (SP500, QQQ, IWM). Users can also build 2 custom breadth baskets consisting of up to 39 symbols for defining broad market on other asset classes, such as cryptocurrencies. Custom baskets are suitable for any chart that fairly represents a market as a whole.
Example
Basket consisting of cryptocurrencies = Use on CRYPTOCAP:TOTAL (all cryptocurrencies aggregated)
Basket consisting of healthcare stocks = Use on AMEX:XLV (healthcare sector ETF)
Breadth line can be further refined using various smoothing options (SMA, EMA, HMA, RMA, WMA), threshold method and weights. By default, threshold (dividing line between bullish and bearish states) is set to fixed at 0, depicting an equilibrium where equal amount of symbols are going up and down.
Threshold mode can also be set to Dynamic, switching threshold to a moving average of the breadth line. Fundamental functionality still remains, breadth line above threshold marks bullish state and below threshold marks bearish state. Difference here is that the threshold no longer depicts a point of equilibrium, but simply a smoothed version of the breadth line itself, which can catch turns in broad market trend earlier.
Breadth basket can be adjusted to volatility of the viewed chart, causing an overstating of breadth on high volatility and understating on low volatility. Weighting takes into account magnitude of up/down moves, which can provide better relevance for trend following purposes.
- Practical guide
Example #1 : Broad market trend
The utility of market breadth is based on the idea that markets correlate and individual symbols making up the market will eventually join the broad market trend. With this in mind, going against broad market is like swimming upstream, it's going to be the hard way. A well performing basket with clear skew for upside and downside on respective breadth states can be used to form directional bias for trades and risk on/off regimes for investing.
Example #2 : Broad market reversals
Thrusts signify two things: a historical extreme in breadth and an aggressive move to the opposite direction. Thrusts are valuable clues for exhaustion in broad market trend, potentially leading to a reversal.
Example #3 : Breadth/price divergences
Market breadth and price diverging signify events where most symbols that make up the market are going one way but a few high weight symbols (big tech for SP500) are going the other way. In other words, only a few symbols are moving the market while general interest and intention is to the other direction. Divergences in breadth and price are not ideal for sustainable trend and can be expected to eventually revert to the direction of broad market.
ATR/DTR with Custom Timeframes and DTR % [Kow]the usage of ATR (Average True Range) and DTR (Daily True Range) with custom timeframes, including the calculation of DTR percentage. These indicators are commonly used in technical analysis, particularly in stock, futures, and forex markets.
ATR (Average True Range)
Definition:
ATR is an indicator that measures market volatility, often used for setting stop-loss orders or identifying changes in market volatility.
Calculation Method:
ATR is the average of the True Range (TR) over a specified period. TR is the greatest of the following: current high minus current low, the absolute value of the current high minus the previous close, and the absolute value of the current low minus the previous close.
ATR = (Previous ATR * (n-1) + Current TR) / n, where n is the chosen time period (e.g., 14 days).
Custom Timeframes:
You can choose any timeframe for calculating ATR, such as 10 days, 30 days, or whatever suits your analysis.
DTR (Daily True Range)
Definition:
DTR is similar to ATR but considers only the volatility of a single trading day.
Calculation Method:
DTR is the range between the highest and lowest price of a single day, or the greatest range involving the previous day’s close.
DTR Percentage:
DTR percentage is the ratio of the day's DTR to the previous day's closing price.
DTR% = (DTR / Previous Day’s Close) * 100%
Practical Application
Choose Timeframe:
Select an appropriate timeframe for calculating ATR based on your trading strategy. Short-term traders might choose shorter periods, while long-term investors might opt for longer ones.
Calculate ATR and DTR:
Use historical price data to calculate ATR for your selected timeframe.
For DTR, simply calculate the range for the current day.
Analysis and Application:
Use ATR to set stop-loss points or identify changes in market volatility.
Use DTR and DTR% to analyze the volatility of the market on a given day.
These metrics can help you make better trading decisions, like when to enter or exit the market.
Auto Fibonacci Retracement // Atilla YurtsevenOverview:
This Pine Script™ is a specialized tool for traders, designed to automatically plot Fibonacci retracement levels over a user-defined date range in trading charts. It also indicates the extent of price retracement within these levels.
Key Features:
Date Range Customization: Users can specify the start and end dates to focus the analysis on a particular trading period.
Dynamic Fibonacci Levels: The script includes various Fibonacci ratios (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), with the flexibility to enable or disable individual levels.
Visual Customization: Each Fibonacci level can be customized for color and line style (solid, dotted, dashed). Labels for each level are also configurable.
Retracement Measurement: The script not only draws the Fibonacci levels but also measures and displays how much the price has retraced within these levels.
Extension and Additional Options: Users have options to extend the Fibonacci lines and additional features such as using close values, trend drawing, date range display, and more.
Technical Insights:
The script identifies high and low values within the selected time frame, assessing the market's trend direction.
Within the specified date range, this script effortlessly plots the Fibonacci levels automatically, bringing clarity and precision to your market analysis as it unfolds.
The tool's adaptability makes it suitable for various trading styles and chart preferences.
Intended Use:
This script is particularly valuable for technical analysts and traders who use Fibonacci retracements to identify potential support and resistance areas and understand the depth of market corrections or rallies.
Disclaimer:
This Pine Script™ is offered 'as is', without any guarantees or warranties. It is intended for informational purposes and should not be taken as investment advice. Atilla Yurtseven, the creator of this script, assumes no responsibility for any financial losses or gains that may result from its usage. Users should perform their own due diligence and consult with professional advisors before making any investment decisions.
Remember to follow and comment!
Trade smart, stay safe
Atilla Yurtseven
Short Term IndeXThe Short-Term Index (STIX) is a simple market indicator designed to assess short-term overbought or oversold conditions in the stock market. Leveraging a combination of advancing and declining issues, STIX provides valuable insights into market sentiment and potential reversals. To enhance its interpretability and reveal the underlying trend with greater clarity, STIX has been refined through a Heiken-Ashi transformation, ensuring a smoother representation of market dynamics.
Calculation and Methodology:
stix = ta.ema(adv / (adv + dec) * 100, len)
STIX is calculated by dividing the difference between the sum of advancing issues (ADV) by the total number of issues traded (ADV + DEC). This quotient is multiplied by 100 to express the result as a percentage. The STIX index ranges from 0 to 100, where extreme values indicate potential overbought (mainly above 60) or oversold (mainly below 40) market conditions.
Heiken-Ashi Transformation:
By applying a Heiken-Ashi transformation to STIX, the indicator gains improved visual clarity and noise reduction. This transformation enhances the ability to identify trend shifts and potential reversal points, making it an even more valuable tool for traders and investors.
Utility and Use Cases:
-The Short-Term Index (STIX) offers a range of practical applications-
1. Overbought/Oversold Conditions: STIX provides a clear indication of short-term overbought or oversold conditions, helping traders anticipate potential market reversals.
2. Reversal Points: STIX can help pinpoint potential reversal points in short-term market trends, providing traders with opportunities to enter or exit positions.
3. Trend Analysis: By observing STIX values over time, traders can assess the strength and sustainability of short-term trends, aiding in trend-following strategies.
The Short-Term Index (STIX), enhanced by its Heiken-Ashi transformation, equips traders and investors with a tool for assessing short-term market conditions, confirming price movements, and identifying potential reversal points. Its robust methodology and refined presentation contribute to a more comprehensive understanding of short-term market dynamics, enabling traders to make well-informed trading decisions.
See Also:
- Other Market Breadth Indicators-
Bolton-Tremblay IndexThe Bolton-Tremblay Index (BOLTR) is a dynamic cumulative advance-decline indicator which incorporates the count of unchanged issues as a fundamental element. This index serves as a valuable tool for identifying shifts in market trends and gauging the overall strength or weakness of the market. To enhance its effectiveness and reveal underlying trends, BOLTR has been refined through a Heiken-Ashi transformation, resulting in a smoother and more insightful representation.
Calculation and Methodology:
r = (adv - dec) / unch
var float bt = na
bt := r > 0 ? nz(bt ) + math.sqrt(math.abs(r)) : nz(bt ) - math.sqrt(math.abs(r))
The BOLTR index is derived from a calculation involving three essential components: advancing issues (ADV), declining issues (DEC), and securities with unchanged closing prices (UNC). By formulating the ratio (ADV - DEC) / UNC, BOLTR captures the relationship between market movements and unchanged securities. This ratio then dictates whether the BOLTR index increases or decreases in the following period. If the ratio is positive, the index advances, and if negative, it retreats. This iterative process yields a cumulative index that reflects the evolving dynamics of market trends.
Heiken-Ashi Transformation:
The addition of a Heiken-Ashi transformation imparts a smoothing effect to the BOLTR index, revealing the underlying trend with greater clarity. This transformation diminishes noise and fluctuations, making it easier to identify meaningful shifts in market sentiment and overall market health.
Utility and Use Cases:
-The Bolton-Tremblay Index offers a range of applications that contribute to informed decision-making-
1. Trend Analysis: BOLTR provides insights into the changing trends of the market, helping traders and investors identify potential shifts in market sentiment.
2. Market Strength Assessment: By considering advancing, declining, and unchanged issues, BOLTR offers a comprehensive assessment of market strength and potential weaknesses.
3. Divergences: Traders can use BOLTR to detect divergences between price movements and the cumulative advance-decline dynamics, potentially signaling shifts in market direction.
The Bolton-Tremblay Index offers a versatile toolset for interpreting market trends, evaluating market health, and making better informed trading decisions.
See Also:
- Other Market Breadth Indicators-
Price Deviation Indicator (PDI)Management
The Price Deviation Indicator (PDI) was developed by "DimArt". This indicator allows you to determine the percentage deviation of the price from its average value over a certain period of time. The larger the deviation, the higher the histogram on the indicator chart. The PDI indicator can be useful for identifying a trend reversal in combination with other technical indicators, such as RSI, MACD, and others. For example, if the RSI and MACD indicators show the beginning of a possible trend reversal, using the PDI indicator can confirm this signal by showing the deviation of the current price from the average price. This can help the trader make more accurate trading decisions based on a strong signal.
Description
To calculate the values of the "Price Deviation Indicator" (PDI), we use the following steps:
• Determine the "Period" variable, which specifies the number of bars used to calculate the average price. (Default value is 20)
• Calculate the average price over the specified period using the "sma()" (simple moving average) function.
• Calculate the percentage difference between the current price and the average price using the formula: ((close - avg_price) / avg_price) * 100 .
• Set levels to change the color of the histogram based on price deviation from the average value. "Histogram Color" is a parameter to customize the color of the histogram based on deviation levels. By default, if the deviation is more than 5%, the histogram will be red; if it is less than -5%, it will be green, and for all other deviations, it will be blue. However, this parameter can be changed to other values.
• Draw a histogram of price change relative to the average value. The "Style" parameter allows you to choose the style of the indicator (histogram). By default, the "Histogram" style is set, but you can also select "Line on Close" or "Line on Open".
Application of the Indicator
The PDI indicator is based on the assumption that the price of any asset always tends to its mean value. Using PDI on higher timeframes allows you to determine the overall market trend, whereas on smaller timeframes, situations can be found when the price is in negative territory, and the histogram starts to smoothly transition from negative to positive value. This can be a signal to buy, as the price is likely in an oversold condition and ready to change its trend. On the other hand, if the strength of the price slows down or begins to approach 0, this may indicate that the asset is overbought and starting to turn towards oversold, which is a signal to sell. A beautiful feature of the PDI indicator is its simplicity and conciseness, which allows you to quickly and easily identify a trend change and make trading decisions based on a strong signal.
Conclusion
The "Price Deviation Indicator" (PDI) can be useful in analyzing price movements in the market. It allows you to calculate the relative difference between the current price and the average price, allowing you to identify market saturation and change in trend. The indicator can be used in technical analysis to make decisions about buying or selling assets on the exchange. It can also be useful for traders of different levels of experience, as its settings can be adapted depending on the user's needs and requirements. Overall, this indicator is one of the tools that can help in analyzing price and volumes to determine possible investment prospects in assets.
Market Internal TrendMIT - Market Internal Trend
I've developed what I consider to be the best market internals, market breadth indicator on Trading View to date :)
Market internals (sometimes referred to as Market Breadth) are built-in indicators of the market, there are the following main indicators:
TICK - Uptick or downtick transaction of market (NYSE/NASDAQ)
ADD - Advancing or declining issues/stocks of the market
VOLD - Up volume or down volume of the issues/stocks of the market
TRIN - Trend of market based on ADD and VOLD
VIX - Volatility of the market
PCN - Options market puts vs calls
What makes this different?
This single compact indicator delivers an "eyes on glass" style presentation to detail extreme movements of TICK, sentiment analysis of ADD and VOLD as well as their trends and report when the market is most likely balanced or an in imbalance. No need to study multiple clouds and amassing a ton of different charts all with similar indicator setups and candle analysis in the heat of the moment.
Use this to determine the overall initial trend at open, watching for imbalance and extreme movement on TICK as a signal to prepare for potential trades. The metrics table is useful to see where potential rejections/bounces may occur on the volatility index.
Extreme tick closures (see below) can provide excellent trim or exit signals for existing trades depending on the market structure of the day (trending or ranging).
How To Use
The main histogram represents the highs and lows of TICK, anything within the +/- $500 region is most likely normal movement while anything outside of that will brighten in color and indicates potential larger reactions. Extreme highs and lows will be represented by white diamonds by default, closures are indicated by bright colored crosses at $0. Price levels should be noted on the securities being traded during TICK extreme movement, these usually act as dynamic support and resistance from my observations but your results may vary (please share in comments your experiences!).
There is a smoothed trend line over the histogram, by default it's white in color, and this represents simply a trend of TICK closures - when it's trending down the market should be following in kind and vice versa; adjust the smoothing length in settings to suit your trading style.
The center line will have colored dots, by default yellow for balanced markets or white for imbalanced markets. When the market is in an imbalance that's when trending moves have been observed and balanced markets are usually choppy with sideways price action not suitable for quick scalp type trading styles.
The upper colored band represents the market overall advancing or declining issues/stocks within the market, by default green tones are bullish for a advancing market and red tones represent bearish market - the brighter the tone the strong the sentiment. There are triangles at all times above this band and that represents a smoothed trend status as compared to the current amount of stocks in advance or decline, if the smoothed trend is above then it's potentially a signal of reversal (red triangles over green band would be bearish reversal and vice versa).
The lower colored band works the exact same as the upper band but it tracks the up and down volume of the issues/stocks within the market, it utilizes the same color and triangle logics as the upper band.
Markets
Currently this will present internals data for NYSE and NASDAQ, I'm still researching other markets internals and their particulars.
The signals on this indicator will best apply to SPY, QQQ, ES, NQ or highly liquid ETFs largely affected by NYSE or NASDAQ - individual stocks may have mixed results depending on how they're moving with major indexes so keep that in mind when watching for sympathy moves with the indicator.
Usage Conditions
All of the market internals are fantastic indicators when day trading, I've had great success on 1-15 minute and even higher for scalps or intra-day swings. Observing the middle dots will save those of you that struggle in choppy markets from being too aggressive when opportunities don't exist.
Use the triangles, diamonds, dots and crosses to your advantage to manage your scalps and intra-day swings, or gain an edge in preparation for entering trades!
I hope this indicator is a benefit to all for day trading, provide any feedback or feature requests in the comments.
Deemer Breakaway Momentum ThrustBreakaway momentum is a "breadth thrust" coined by Walter Deemer in the 1970s that occurs when the ten-day total advances on the NYSE are greater than 1.97 times the ten-day total NYSE declines.
This indicator calculates the ratio and plots it as a histogram. The 1.97 threshold is also plotted as a horizontal line. Anytime the histogram gets above the line Breakaway Momentum has occurred.
This is a rare signal that has only happened 25 times since 1945.
TICK IndicatorSimilar to the USI:ADD index, the NYSE TICK index measures the number of stocks with in the index with positive ticks versus negative ticks. Levels such as +/- 1000 or +/- 2000 can be considered as areas of overbought and oversold.
Improved Lowry Up-Down Volume + Stocks Indicatordocs.cmtassociation.org
In Paul F. Desmond's award winning paper in 2002 entitled "Identifying Bear Market Bottoms and New Bull Markets", he proposed an indicator for panic buying and selling that can be used to determine major market bottoms.
The paper explains that in major bear markets, you should have at least one, or more than one multiple 90% down days. Recoveries out of bear markets, or beginnings of new bull markets, should have at least one of the following conditions:
1) At least one 90% up volume day
2) At least two back-to-back 80% up volume days
Up and Down volume are defined as:
1) 90% up volume - defined as 90% up volume / total volume (or 10% down volume / total volume)
2) 90% down volume - defined as 90% down volume / total volume (or 10% up volume / total volume)
Several scripts exist in Tradingview to show this indicator for Up and Down volume, along with arrows or indicators for green up days or red down days.
However, this script is an improved version as it allows you the option to customize a couple parameters:
1) You may chose whether you'd like to use volume or stocks - sometimes it's better to have confluence between volume and actual stocks at the 90% threshold
2) You may chose the exchanges to consider - in the paper the NYSE is discussed, but this allows the expansion into NYSE, NASDAQ, DOW, and even a combined NYSE + NASDAQ + DOW indicator
3) It uniquely codes in the ability to plot a buy signal for both 90% up days, but also two back-to-back 80% up days - which is in the spirit of the original paper
I hope you enjoy this script and please let me know if you'd like me to make any modifications or additions.
Thank you, sincerely,
Jim Bosse
Advance Decline IndexIn index investment, the USI:ADD is the Advance Decline Index that can be plotted in most charting platforms. Just like there is a volatility index for most major indeces (VIX, VOLQ) and even for Apple (CBOE:VXAPL), USI:ADD also has variations specific for the index you are analyzing (SPX: ADD, NASDAQ: ADDQ).
The USI:ADD index is a measurement of stocks in the index that are advancing (bullish) minus those that are declining (bearish), the exact formula being $ADV minus $DECL.
The basic idea of how to use the ADD index is that when the value is above 1000 it is considered overbought. Conversely, when the value is below -1000 it is considered oversold. When the value is near the medium line, it is not a good idea to trade as it is considered to be in a choppy market.
This script attempts to identify the correct Advance Decline Index for the index you are analyzing. It will plot the overbought and oversold levels that are applicable to the ADD line. If you are analyzing a stock, it will use the most appropriate ADD line for that stock sector or exchange.
Walter Deemer Market Breadth Breakaway MomentumThis indicator is based on long time market analysts Walter Deemer's research. Below is a summary of what the indicator is used for. In short it can be used to spot market reversals.
In short, when the 10 day NYSE Advance:Decline ratio breaches 1.97, the market has achieved break away momentum. When the 20 day ratio achieves a 1.72 ratio this can be a "good" signal even if when the 10 day has not achieved a 1.97 ratio.
In addition to the NYSE, you can toggle NASDAQ, AMEX, or the average of the three.
You can read more about it here: walterdeemer.com
"Downside momentum usually peaks at the end of a decline, as prices cascade into a primary low. On the upside, though, momentum peaks at the beginning of an advance, then gradually dissipates as the advance goes on, and the more powerful the momentum at the move's beginning, the stronger the overall move; REALLY strong momentum is found only at the beginning of a REALLY strong move: a new bull market or a new intermediate leg up within a bull market. We coined the term "breakaway momentum" in the 1970's to describe this REALLY powerful upside momentum. The following is a review of what it is and how it is typically generated.
Breakaway momentum (some people call it a "breadth thrust") occurs when ten-day total advances on the NYSE are greater than 1.97 times ten-day total NYSE declines. It is a relatively uncommon phenomenon...24 times it has occurred since World War II (an average of once every 3 1/2 years). Cyclical bull markets, though, are traditionally heralded by breakaway momentum, so we are hopeful that it will be generated this time around, too.
....The real trick in generating breakaway momentum? It's not a lot of advances; it's a lack of declines."
Market Breadth RatiosThis indicator provides breadth ratios for various indices/exchanges based on the up/down volume.
Breadth ratios included for NYSE, NASDAQ, AMEX, DJIA, ARCA, and and average.
Very straight forward to use, if the ratios is above 2, stocks should be in uptrend, below -2 stocks should trend down. In between 2 and -2 is going to be a choppy market.
Correction TerritoryA simple indicator showing how much percentage has been corrected since a recent highest high.
You can set 3 horizontal line to compare with past correction rates.
直近の最高値からの調整率を表示するインジケーターです。
過去の調整規模との比較のため、3本の水平線も設定可能です。
TEWY - Breadth Based Bar ColorNSE:BANKNIFTY1!
⚠ Important: Before going into details of this script, in order to best use this indicator it is VERY VERY important to make some changes to the chart settings as mentioned below.
• REMOVE CANDLE BORDERS from Symbol settings
• CHANGE WICK COLOR to white/black/gray based on the chart theme you use, from Symbol settings
Make sure you have these settings done.
Detail about this indicator
1. This indicator is used to identify the trend based on the momentum of the counter selected.
2. This indicator is calculated differently for indices NSE:NIFTY and NSE:BANKNIFTY. As I take high weightage stock under these indices to get overall indices momentum.
3. I have used the rate of change and RSI of it to calculate momentum.
4. I would typically use this indicator to see momentum on the Monthly and Weekly first and daily timeframe to get proper entry.
5. Also please try to stay in the long position more than the short position as we all know that, the imminent nature of the market is to go upward only.
6. Please try to keep base inputs as defaults, though it allows you to change input parameters like changing the length of momentum indicator or bar color options. Below is the description of each input
• Smoothen: It changes source from CLOSE to OHLC4.
• Signal Length: It's the length(no of candles) for which the momentum is calculated. Like for RSI the default period/length is 14 or for Moving Average indicator default period/length is 9, I simply use 20 as the default length
• Timeframe: If you want to calculate momentum based on the momentum of different time frames.
• Change bar Color: Use the toggle to change the color of the bar. You can uncheck it so that no bar color is changed if you need so
• Set Bar Color Dynamically: With this even though the oscillator is in opposite direction to the trend it takes the candle close into consideration and sets bar color accordingly.
Always respect RISKS and follow stop loss.
Let's understand how to take a position using this indicator
• Long position:-
• If the latest candle color is GREEN and its preceding candle color is RED, then go long in the counter with the strict stop loss(SL) 1% below the preceding RED colored candle.
• Once you are in a long position, trail stop loss(SL) below each red candle you see on the chart.
• Exit strictly if initial SL or trailing SL is hit. And re-create long positions once you see the next green candle.
• Short Position:-
• If the latest candle color is RED and its preceding candle color is GREEN, then go short IF RED COLORED CANDLE LOW IS TAKEN OUT. Exit short once you see a green colored candle.
• Exit strictly if you see a GREEN-colored candle and create a long position.
If you are really interested and need access to this indicator please DM me.
I have given a sample illustrational image below, which should help you understand this indicator.
Best of luck
SPX Intraday Mood IndicatorThe SPX Intraday Mood Indicator tries to gauge the intraday market direction of the S&P 500 (SPX) by focusing on internal market data.
Based on the 0DTE Mood Indicator concept. Overall strength/weakness is converted into a directional Mood Percentage which can help with choosing a trade type.
Use at your own risk and discretion. Potential trade ideas offer no guarantees. Intraday Charts Only. Turn off extended hours data. Only works on SPX.
This first version is untested and I am only sharing it to gather feedback on its accuracy, use at your own risk.