RSI Graphique and Dashboard MTFMTF RSI Indicator - User Guide
Introduction:
The MTF RSI (Multi-Timeframe Relative Strength Index) Pine Script is designed to provide traders with a comprehensive view of the RSI (Relative Strength Index) across multiple timeframes. The script includes a primary chart displaying RSI values and a dashboard summarizing RSI trends for different time intervals.
Installation:
Copy the provided Pine Script.
Open the TradingView platform.
Create a new script.
Paste the copied code into the script editor.
Save and apply the script to your chart.
Primary Chart:
The primary chart displays RSI values for the selected timeframe (5, 15, 60, 240, 1440 minutes).
different color lines represent RSI values for different timeframes.
Overbought and Oversold Levels:
Overbought levels (70) are marked in red, while oversold levels (30) are marked in blue for different timeframes.
Dashboard:
The dashboard is a quick reference for RSI trends across multiple timeframes.
Each row represents a timeframe with corresponding RSI trend information.
Arrows (▲ for bullish, ▼ for bearish) indicate the current RSI trend.
Arrow colors represent the trend: blue for bullish, red for bearish.
Settings:
Users can customize the RSI length, background color, and other parameters.
The background color of the dashboard can be adjusted for light or dark themes.
Interpretation:
Bullish Trend: ▲ arrow and blue color.
Bearish Trend: ▼ arrow and red color.
RSI values above 70 may indicate overbought conditions, while values below 30 may indicate oversold conditions.
Practical Tips:
Timeframe Selection: Consider the trend alignment across different timeframes for comprehensive market analysis.
Confirmation: Use additional indicators or technical analysis to confirm RSI signals.
Backtesting: Before applying in live trading, conduct thorough backtesting to evaluate the script's performance.
Adjustment: Modify settings according to your trading preferences and market conditions.
Disclaimer:
This script is a tool for technical analysis and should be used in conjunction with other indicators. It is not financial advice, and users should conduct their own research before making trading decisions. Adjust settings based on personal preferences and risk tolerance. Use the script responsibly and at your own risk.
Индикаторы ширины рынка
BTC Price to Hashrate Delta Ratio with MAHistorically, Hashrate and Bitcoin prices have a strong correlation. When hashrate increases more than Bitcoin price, it indicates a rise in Bitcoin price soon.
This indicator uses the formula:
Price/hashrate delta ratio = period price delta / period hashrate delta
Whenever the ratio between the price and hashrate of Bitcoin is positive, it indicates that the price is increasing at a faster rate than the hashrate. This, in turn, means that Bitcoin is becoming more expensive compared to any variations occurring in the hashrate. Using the Price/Hashrate Delta ratio, we can determine whether Bitcoin is overvalued or undervalued in relation to the hashrate. This can be a helpful indicator for assessing the current market conditions.
Value of my assetIndicator Name: Value of my asset
This indicator displays the total value of the asset you hold on a chart. It is particularly useful for tracking the value of your position in real time directly on the chart.
How to use it:
Quantity of the asset in possession: Enter the quantity of the asset you currently hold. By default, this value is 0.
Text color: Choose the color of the text that will be displayed on the chart. By default, this color is white.
Background color: Choose the background color of the label that will be displayed on the chart. By default, this color is blue.
Calculation of the value to display: The value to display is calculated by multiplying the closing value (close) by the quantity of the asset you hold (quantity). This value represents the total value of your position.
Display of the label: A label is displayed on the chart with the symbol of the asset, the quantity you hold, and the total value of your position. This label is updated with each new bar.
Hi-Lo-GaugesIntroducing the 'Hi-Lo-Gauges' indicator, a powerful tool designed to provide a comprehensive visual representation of key price metrics. This indicator leverages up to 8 preset gauges, each catering to a specific aspect of market data:
All-time high and low
Current 52 Weeks high and low
Current Annual High and Low
Current Semi-Annual High and Low
Current Quarterly High and Low
Current Monthly High and Low
Current Weekly High and Low
Current Daily High and Low
Users have the flexibility to choose all 8 or selectively display specific gauges. For each metric, the gauge dynamically adapts, with the low value set as the minimum and the high value as the maximum. Measurement options include utilizing the highest and lowest closes or the literal highest and lowest prices.
The active price of the underlying asset serves as the reference point, allowing users to gauge the percentage move on the scale between the chosen minimum and maximum. Complete customization is at the users' fingertips, enabling them to tailor the indicator's appearance to suit their preferences.
With 'Hi-Lo-Gauges,' traders and analysts can intuitively monitor and interpret diverse price metrics, fostering a deeper understanding of market dynamics and supporting more informed decision-making.
Note: 'Hi-Lo-Gauges' is visible and applicable exclusively on the daily timeframe due to the nature of the metrics used.
TASC 2024.01 Gap Momentum System█ OVERVIEW
TASC's January 2024 edition of Traders' Tips features an article titled “Gap Momentum” by Perry J. Kaufman. The article discusses how a trader might create a momentum strategy based on opening gap data. This script implements the Gap Momentum system presented therein.
█ CONCEPTS
In the article, Perry J. Kaufman introduces Gap Momentum as a cumulative series constructed in the same way as On-Balance Volume (OBV) , but using gap openings (today’s open minus yesterday’s close).
To smoothen the resulting time series (i.e., obtain the " signal line "), the author applies a simple moving average . Subsequently, he proposes the following two trading rules for a long-only trading system:
• Enter a long position when the signal line is moving higher.
• Exit when the signal line is moving lower.
█ CALCULATIONS
The calculation of Gap Momentum involves the following steps:
1. Calculate the ratio of the sum of positive gaps over the past N days to the sum of negative gaps (absolute values) over the same time period.
2. Add the resulting gap ratio to the cumulative time series. This time series is the Gap Momentum.
3. Keep moving forward, as in an N-day moving average.
Drummond Geometry Drummond geometry is a trading method that uses geometric patterns and moving averages to identify market trends and potential reversals. It was developed by Charles Drummond, a Canadian trader and educator1. The main elements of drummond geometry are:
The PLdot, which is the midpoint of the previous bar’s high and low. It represents the current price level and the direction of the trend. If the PLdot is above the current bar, it indicates an uptrend. If the PLdot is below the current bar, it indicates a downtrend.
The Envelopes , which are parallel lines above and below the PLdot, spaced by a certain percentage of the average true range (ATR). They represent the possible range of price movement and the volatility of the market. If the price breaks out of the envelopes, it signals a possible trend change or continuation.
The Energy Points , which are the intersections of the envelopes and the moving averages. They represent the areas of support and resistance, where the price may bounce or break through. If the price crosses an energy point, it signals a possible entry or exit point.
AlgoDude_Volume1. Timeframe Selection (selectedTimeframe):
Allows the user to choose the timeframe for the volume data analysis.
Options range from 1 minute to 1 month, including 1, 3, 5, 15, 30, 45 minutes, 1, 2, 3, 4 hours, and daily, weekly, monthly.
2.Moving Average Length (maLength):
Users can specify the length of the moving average applied to the inverse volume.
The range for this input is from 1 to 200 periods, with a default value of 14.
These inputs provide flexibility in analyzing volume data over various timeframes and smoothing the inverse volume data with a moving average of chosen length.
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
Cumulative New Highs - New LowsIndicator that plots the cumulative number of 52-Week New Highs minus New Lows with an added moving average. Settings allow the choice between S&P 500, Nasdaq 100 or the Overall Market as Index. You can also customize the length of the moving average.
Klinger Oscillator AdvancedThe Klinger Oscillator is not fully implemented in Tradeview. While the description at de.tradingview.com is complete, the implementation is limited to the pure current volume movement. This results in no difference compared to the On Balance Volume indicator.
However, Klinger's goal was to incorporate the trend as volume force in its strength and duration into the calculation. The expression ((V x x T x 100)) for volume force only makes sense as an absolute value, which should probably be expressed as ((V x abs(2 x ((dm/cm) - 1)) x T x 100)). Additionally, there is a need to handle the theoretical possibility of cm == 0.
Since, in general, significantly more trading volume occurs at the closing price than during the day, an additional parameter for weighting the closing price is implemented. In intraday charts, considering the closing price, in my opinion, does not make sense.
The TradeView implementation is displayed on the chart for comparison. Particularly in the analysis of divergence, significant deviations become apparent.
Enhanced McClellan Summation Index
The Enhanced McClellan Summation Index (MSI) is a comprehensive tool that transforms the MSI indicator with Heikin-Ashi visualization, offering improved trend analysis and momentum insights. This indicator includes MACD and it's histogram calculations to refine trend signals, minimize false positives and offer additional momentum analysis.
Methodology:
McClellan Summation Index (MSI) -
The MSI begins by calculating the ratio between advancing and declining issues in the specified index.
float decl = 𝘐𝘯𝘥𝘪𝘤𝘦 𝘥𝘦𝘤𝘭𝘪𝘯𝘪𝘯𝘨 𝘪𝘴𝘴𝘶𝘦𝘴
float adv = 𝘐𝘯𝘥𝘪𝘤𝘦 𝘢𝘥𝘷𝘢𝘯𝘤𝘪𝘯𝘨 𝘪𝘴𝘴𝘶𝘦𝘴
float ratio = (adv - decl) / (adv + decl)
It then computes a cumulative sum of the MACD (the difference between a 19-period EMA and a 39-period EMA) of this ratio. The result is a smoothed indicator reflecting market breadth and momentum.
macd(float r) =>
ta.ema(r, 19) - ta.ema(r, 39)
float msi = ta.cum(macd(ratio))
Heikin-Ashi Transformation -
Heikin-Ashi is a technique that uses a modified candlestick formula to create a smoother representation of price action. It averages the open, close, high, and low prices of the current and previous periods. This transformation reduces noise and provides a clearer view of trends.
type bar
float o = open
float h = high
float l = low
float c = close
bar b = bar.new()
float ha_close = math.avg(b.o, b.h, b.l, b.c)
MACD and Histogram -
The Enhanced MSI incorporates MACD and histogram calculations to provide additional momentum analysis and refine trend signals. The MACD represents the difference between the 12-period EMA and the 26-period EMA of the MSI. The histogram is the visual representation of the difference between the MACD and its signal line.
Options:
Index Selection - Choose from TVC:NYA , NASDAQ:NDX , or TVC:XAX to tailor the MSI-HA to the desired market index.
MACD Settings - Adjust the parameters for the MACD calculation to fine-tune the indicator's responsiveness.
Ratio Multiplier - Apply scaling to the MSI to suit different market conditions and indices.
Benefits of Heikin-Ashi -
Smoothed Trends - Heikin-Ashi reduces market noise, providing a more apparent and smoothed representation of trends.
Clearer Patterns - Candlestick patterns are more distinct, aiding in the identification of trend reversals and continuations.
Utility and Use Cases:
Trend & Momentum Analysis - Utilize the tool's Heikin-Ashi visualization for clearer trend identification in confluence with it's MACD and histogram to gain additional insights into the strength and direction of trends, while filtering out potential false positives.
Breadth Analysis - Explore market breadth through the MSI's cumulative breadth indicator, gauging the overall health and strength of the underlying market.
- Alerts Setup Guide -
The Enhanced MSI is a robust indicator that combines the breadth analysis of the McClellan Summation Index with the clarity of Heikin-Ashi visualization and additional momentum insights from MACD and histogram calculations. Its customization options make it adaptable to various indices and market conditions, offering traders a comprehensive tool for trend and momentum analysis.
buy/sell signals with Support/Resistance (InvestYourAsset) 📣The present indicator is a MACD based buy/sell signals indicator with support and resistance, that can be used to identify potential buy and sell signals in a security's price.
📣It is based on the MACD (Moving Average Convergence Divergence) indicator, which is a momentum indicator that shows the relationship between two moving averages of a security's price.
📣 The indicator also plots support and resistance levels, which can be used to confirm buy and sell signals. The support and resistance can also be used as a stoploss for existing position.
👉 To use the indicator, simply add it to your trading chart. The indicator will plot three sections:
📈 Price and Signals: This section plots the security's price and the MACD buy and sell signals.
📈 MACD Oscillator: This section plots the MACD oscillator, which is a histogram that shows the difference between the two moving averages.
📈 Moving Averages: This section plots the two moving averages that the MACD oscillator is based on.
📈 Support and Resistance: This section plots support and resistance levels, which are calculated based on the security's recent price action.
👉 To identify buy and sell signals, you can look for the following:
📈 Buy signal: When shorter Moving Average crosses over longer Moving Average.
📈 Sell signal: When shorter moving average crosses under longer moving average.
📈 You can also look for divergences between the MACD oscillator and the security's price. A divergence occurs when the MACD oscillator is moving in one direction, but the security's price is moving in the opposite direction. Divergences can be a sign of a potential trend reversal.
👉 To confirm buy and sell signals, you can look for support and resistance levels take a look at below snapshot. If a buy signal occurs at a support level, it is a stronger signal than if it occurs at a random price level. Similarly, if a sell signal occurs at a resistance level, it is a stronger signal than if it occurs at a random price level.
⚡ Here is a example of how to use the indicator to identify buy signal:
☑ Add the indicator to your trading chart.
☑Look for a buy signal when short MA crosses over Long MA.
☑Look for the buy signal to occur at a support level.
☑Enter a long position at the next candle.
☑Place a stop loss order below the support level.
☑Take profit when the MACD line crosses below the signal line, or when the security reaches a resistance level.
⚡ Here is an example of how to use the indicator to identify a sell signal:
☑Add the indicator to your trading chart.
☑Look for a sell signal, when shorter moving average crosses under longer moving average.
☑Look for the sell signal to occur at a resistance level.
☑Enter a short position at the next candle.
☑Place a stop loss order above the resistance level.
☑Take profit when the MACD line crosses above the signal line, or when the security reaches a support level.
✅Things to consider while using the indicator:
📈Look for buy signals in an uptrend and sell signals in a downtrend. This will increase the likelihood of your trades being successful.
📈Place your stop losses below the previous swing low or support for buy signals and above the previous swing high or resistance for sell signals. This will help to limit your losses if the trade goes against you.
📈Consider taking profits at key resistance and support levels. This will help you to lock in your profits and avoid giving them back to the market.
Follow us for timely updates regarding indicators that we may publish in future and give it a like if you appreciate the indicator.
High and low of last D, W, 4W and quaterThis script shows you the Highs and Lows from multiple candels from some different timeframes. They are the 1D, 1W, 4W (a month basically), and 3M (a quater). The indicator offery you many customization option to make it look how you like it best
Multimarket Direction indicatorTrendline trading with resistant and support made by me.
Im bad coder and just jump into the tradingview pine script 1 days before so please don't hates me
- I don't know why my script is ded before lol
Signals to trade up
1. The big candles up cross the ema200 (last 5 candles for confirmation)
2. Wait for showing the up triangle.
3. Lookup the resistant/support line. If near the resistant please consider to wait if it break then join the trade
4. Only out trade when it has a down triagle or the candles has big down candles at the resistant/support line.
That it...
WP_MMThis indicator is set with 3 EMA's:
- EMA9
- EMA20
- EMA50
When EMA9 is up to EMA20 and:
- the distance between them is up to 30 ticks
- both is directional ( diff between current ema and last ema is up to 15 ticks )
the range will be painted in green. And if the EMA 9 is below EMA20 and
the same rules above is true, rthe range will be painted in red
Strengh Candle:
- Candle without huge shadow
- If is bearish minium down shadow
- if is bullish minimum up shadow
OBS: More info inside code comments
Price Deviation
This indicator, named "Price Deviation," is designed to compare the percentage change in the price of the current instrument (e.g., BNBUSDT.P) with a comparison instrument (e.g., BTCUSDT.P) over a specified timeframe. It provides the option to apply smoothing to the data and displays the results as lines on the chart. The blue line represents the percentage change in the current instrument, and the red line represents the percentage change in the comparison instrument. Additionally, labels are created for both instruments, showing their names, with the blue label for the current instrument and the red label for the comparison instrument.
------------
Этот индикатор с названием "Price Deviation" разработан для сравнения процентного изменения цены текущего инструмента (например, BNBUSDT.P) с инструментом сравнения (например, BTCUSDT.P) за определенный временной интервал. Он предоставляет опцию для сглаживания данных и отображает результаты в виде линий на графике. Синяя линия представляет собой процентное изменение цены текущего инструмента, а красная линия - процентное изменение цены инструмента сравнения. Кроме того, создаются метки для обоих инструментов, отображая их названия, с синей меткой для текущего инструмента и красной меткой для инструмента сравнения.
Previous Day High and Low + Separators Daily/WeeklyPrevious Day High and Low + Separators Daily/Weekly is an indicator based on separators of days and weeks and at the same time points out the previous highs and lows, everything is marked by lines, it consists of creating a clean graph and separated by the different trading days, referring to the extreme points created the previous day.
USEAGE
Point to each day of the week at the top of the chart to get a time location in your trading week and day sparation determined by 00:00 of any timezone.
The reference of the previous day's higs and LOWS is vitally important to understand which direction is most likely for the next day, either continuation or reversal.
DETAILS
As you can see you will be able to adapt these lines according to your chart design and with the desired intensity of appearance.
SETTINGS
UTC OFFSET: Determine your TIMEZONE in this section.
DAILY SEPARATOR: You have the option to change the color, style, width and text color.
WEEKLY SEPARATOR: You have the option to change the color, style, width and text color.
PREVIOUS HIGS & LOWS: You have the option to change the color, style, width and text color.
% Above 50 DMADisplays the % of stocks above their 50 day average and the 5 and 20 ema of the indicator. Often the market will trend up when the 5ema is above the 20ema for this indicator, or down when vice versa. The 20% and 80% levels are plotted to show potentially oversold or overbought markets. Select NYSE or Nasdaq in the settings.
Cumulative Net Highs-Lows (4 Week)Plots the cumulative total of net new highs minus lows over the past 4 weeks and the 10 ema of the calculation. Settings allow choice of NYSE and Nasdaq. Signal shading for when the indicator is above the 10 ema, showing a rising trend of net highs-lows. Similar to the TC2000 T2123 indicator.
Dynamic Day Lines-1Dynamic Day Lines. These lines are dynamic and they detect high, low and mid of the day. Above midline, day is bullish and below mid line day is bearish. If price is at high of the day, and starts to move down, I wont be bearish until it breaks the midline and wait patiently.
Enio_SPX_Accumulation/DistributionThis indicator handles the same inputs used for classic Accumulation and Distribution indicators, but performs the calculations in a different way.
This indicator is used to compare the positive volume (up volume) and the number of advancing stocks against the negative volume (down volume) and the number of declining stocks.
This indicator only measures SPX market breadth (Advancing issues, Declining issues) and SPX volume (Up and down volume)so it is for use only with SPX, SPY or MES. It can also be used with ES, but data outside of regular trading hours is not provided, the indicator in those cases will print a block of the same height and same color as the last RTH bar.
When the histogram is positive or green, the bars change to a lighter color if the current bar is less than the average of the last 3 bars. A continued set of bars with a lighter color could mean that the trend is about to change.
When the histogram is negative or red, the bars change to a lighter color if the current bar is greater than the average of the last 3 bars. A continued set of bars with a lighter color could mean that the trend is about to change.
When the histogram height is low, could signal a choppy market (SPX).
The histogram can help indicate a trending market when the opening trend is maintained and the color of the bars does not change, for example, a solid green increasing histogram can indicate a bullish trending market, while a solid red decreasing histogram will indicate a strong bearish trend.
In intraday trading the indicator can signal if the SPX price changes are supported by volume and market breadth and also allows you to see when these changes or trend are weakening.
The change from green (positive) to red (negative) and vice versa should not be taken alone as a buy/sell signal but as a confirmation of signals from other indicators you trust.
Due to the great specific weight that some stocks have within the SPX price calculation, the divergences of this indicator with SPX, can be taken as warning signals, but should not become an element of trading decisions. . You could see a negative histogram while SPX is positive and vice versa.
TPG.Buy sell RSI Scapl XAUThis is a tool that is widely used
Especially for Overbought and Oversold systems, but I have made some changes in this indicator,
How to use it...
I have set it as the default setting
- RSI Length: 6 (<10 for scalping - 5m-15m)
- Overbought: 70
- Oversold: 30
What is unique about this tool?
we can see 3 conditions:
1) RSI Overbought / Oversold with Bullish Engulfing / Bearish Engulfing
2) RSI Overbought / Oversold with Hammer and Shooting Star
3) RSI Overbought / Oversold with 2 Bullish Bars / 2 Bearish Bars
4) RSI Overbought / Oversold with All Patterns at the same time
When the RSI reaches its Oversold line, the code will wait for Bullish Engulfing pattren, when oversold and Bullish engulfing matched, This indicator will generate a buy signal when the condition is met,
and same as for Bear market, When the RSI reaches its Overbought line, the code will wait for Bearish Engulfing pattren, This indicator will generate a sell/exit signal when the condition is met,
2nd condition is that a Hammer candle will be waited for when RSI touches the Overbought line, for Bullish Move
and Shooting Star candle will be waited for when RSI touches the Overbought line, for Bullish Move, for Bearish Move
3rd Condition is also the same as Condition 1 and Condition 2,
When the RSI reaches its Oversold line, the code will wait for 2 Bullish Bars, when oversold and 2 Bullish Bars matched then this indicator will generate a buy signal, and same as for Bear market,
When the RSI reaches its Overbought line, the code will wait for 2 Bearish Bars, when overbought and 2 Bearish Bars matched then this indicator will generate a Sell signal,
4th Condition is that we can use All Conditions at the same time,
- Bullish Engulfing / Bearish Engulfing
- Hammer and Shooting Star
- 2 Bullish Bars / 2 Bearish Bars
Market Internals (TICK, ADD, VOLD, TRIN, VIX)OVERVIEW
This script allows you to perform data transformations on Market Internals, across exchanges, and specify signal parameters, to more easily identify sentiment extremes.
Notable transformations include:
1. Cumulative session values
2. Directional bull-bear Ratios and Percent Differences
3. Data Normalization
4. Noise Reduction
This kind of data interaction is very useful for understanding the relationship between two mutually exclusive metrics, which is the essence of Market Internals: Up vs. Down. Even so, they are not possible with symbol expressions alone. And the kind of symbol expression needed to produce baseline data that can be reliably transformed is opaque to most traders, made worse by the fact that prerequisite symbol expressions themselves are not uniform across symbols. It's very nuanced, and if this last bit was confusing … exactly.
All this to say, rather than forcing that burden onto you, I've baked the baseline symbol expressions into the indicator so: 1) the transform functions consistently ingest the baseline data in the correct format and 2) you don't have to spend time trying to figure it all out. Trading is hard. There's no need to make it harder.
INPUTS
Indicator
Allows you to specify the base Market Internal and Exchange data to use. The list of Market Internals is simplified to their fundamental representation (TICK, ADD, VOLD, TRIN, VIX, ABVD, TKCD), and the list of Exchange data is limited to the most common (NYSE, NASDAQ, All US Stocks). There are also options for basic exchange combinations (Sum or Average of NYSE & NASDAQ).
Mode
Short for "Plot Mode", this is where you specify the bars style (Candles, Bars, Line, Circles, Columns) and the source value (used for single value plots and plot color changes).
Scale
This is the first and second data transformation grouped together. The default is to show the origin data as it might appear on a chart. You can then specify if each bar should retain it's unique value (Bar Value) or be added to a running total (Cumulative). You can also specify if you would like the data to remain unaltered (Raw) or converted to a directional ratio (Ratio) or a percentage (Percent Diff). These options determine the scale of the plot.
Both Ratio and Percent Diff. convert a given symbol into a positive or negative number, where positive numbers are bullish and negative numbers are bearish.
Ratio will divide Bull values by Bear values, then further divide -1 by the quotient if it is less than 1. For example, if "0.5" was the quotient, the Ratio would be "-2".
Percent Diff. subtracts Bear values from Bull values, then divides that difference by the sum of Bull and Bear values multiplied by 100. If a Bull value was "3" and Bear value was "7", the difference would be "-4", the sum would be "10", and the Percent Diff. would be "-40", as the difference is both bearish and 40% of total.
Ratio Norm. Threshold
This is the third data transformation . While quotients can be less than 1, directional ratios are never less than 1. This can lead to barcode-like artifacts as plots transition between positive and negative values, visually suggesting the change is much larger than it actually is. Normalizing the data can resolve this artifact, but undermines the utility of ratios. If, however, only some of the data is normalized, the artifact can be resolved without jeopardizing its contextual usefulness.
The utility of ratios is how quickly they communicate proportional differences. For example, if one side is twice as big as the other, "2" communicates this efficiently. This necessarily means the numerical value of ratios is worth preserving. Also, below a certain threshold, the utility of ratios is diminished. For example, an equal distribution being represented as 0, 1, 1:1, 50/50, etc. are all equally useful. Thus, there is a threshold, above which we want values to be exact, and below which the utility of linear visual continuity is more important. This setting accounts for that threshold.
When this setting is enabled, a ratio will be normalized to 0 when 1:1, scaled linearly toward the specified threshold when greater than 1:1, and then retain its exact value when the threshold is crossed. For example, with a threshold of "2", 1:1 = 0, 1.5:1 = 1, 2:1 = 2, 3:1 = 3, etc.
With all this in mind, most traders will want to set the ratios threshold at a level where accuracy becomes more important than visual continuity. If this level is unknown, "2" is a good baseline.
Reset cumulative total with each new session
Cumulative totals can be retained indefinitely or be reset each session. When enabled, each session has its own cumulative total. When disabled, the cumulative total is maintained indefinitely.
Show Signal Ranges
Because everything in this script is designed to make identifying sentiment extremes easier, an obvious inclusion would be to not only display ranges that are considered extreme for each Market Internal, but to also change the color of the plot when it is within, or beyond, that range. That is exactly what this setting does.
Override Max & Min
While the min-max signal levels have reasonable defaults for each symbol and transformation type, the Override Max and Override Min options allow you to … (wait for it) … override the max … and min … signal levels. This may be useful should you find a different level to be more suitable for your exact configuration.
Reduce Noise
This is the fourth data transformation . While the previous Ratio Norm. Threshold linearly stretches values between a threshold and 0, this setting will exponentially squash values closer to 0 if below the lower signal level.
The purpose of this is to compress data below the signal range, then amplify it as it approaches the signal level. If we are trying to identify extremes (the signal), minimizing values that are not extreme (the noise) can help us visually focus on what matters.
Always keep both signal zones visible
Some traders like to zoom in close to the bars. Others prefer to keep a wider focus. For those that like to zoom in, if both signals were always visible, the bar values can appear squashed and difficult to discern. For those that keep a wider focus, if both signals were not always visible, it's possible to lose context if a signal zone is vertically beyond the pane. This setting allows you to decide which scenario is best for you.
Plot Colors
These define the default color, within signal color, and beyond signal color for Bullish and Bearish directions.
Plot colors should be relative to zero
When enabled, the plot will inherit Bullish colors when above zero and Bearish colors when below zero. When disabled and Directional Colors are enabled (below), the plot will inherit the default Bullish color when rising, and the default Bearish color when falling. Otherwise, the plot will use the default Bullish color for all directions.
Directional colors
When the plot colors should be relative to zero (above), this changes the opacity of a bars color if moving toward zero, where "100" percent is the full value of the original color and "0" is transparent. When the plot colors are NOT relative to zero, the plot will inherit Bullish colors when rising and Bearish colors when falling.
Differentiate RTH from ETH
Market Internal data is typically only available during regular trading hours. When this setting is enabled, the background color of the indicator will change as a reminder that data is not available outside regular trading hours (RTH), if the chart is showing electronic trading hours (ETH).
Show zero line
Similar to always keeping signal zones visible (further up), some traders prefer zooming in while others prefer a wider context. This setting allows you to specify the visibility of the zero line to best suit your trading style.
Linear Regression
Polynomial regressions are great for capturing non-linear patterns in data. TradingView offers a "linear regression curve", which this script is using as a substitute. If you're unfamiliar with either term, think of this like a better moving average.
Symbol
While the Market Internal symbol will display in the status line of the indicator, the status line can be small and require more than a quick glance to read properly. Enabling this setting allows you to specify if / where / how the symbol should display on the indicator to make distinguishing between Market Internals more efficient.
Speaking of symbols, this indicator is designed for, and limited to, the following …
TICK - The TICK subtracts the total number of stocks making a downtick from the total number of stocks making an uptick.
ADD - The Advance Decline Difference subtracts the total number of stocks below yesterdays close from the total number of stocks above yesterdays close.
VOLD - The Volume Difference subtracts the total declining volume from the total advancing volume.
TRIN - The Arms Index (aka. Trading Index) divides the ratio of Advancing Stocks / Volume by the ratio of Declining Stocks / Volume. Given the inverse correlation of this index to market movement, when transforming it to a Ratio or Percent Diff., its values are inverted to preserve the bull-bear sentiment of the transformations.
VIX - The CBOE Volatility Index is derived from SPX index option prices, generating a 30-day forward projection of volatility. Given the inverse correlation of this index to market movement, when transforming it to a Ratio or Percent Diff., its values are inverted and normalized to the sessions first bar to preserve the bull-bear sentiment of the transformations. Note: If you do not have a Cboe CGIF subscription , VIX data will be delayed and plot unexpectedly.
ABVD - The Above VWAP Difference is an unofficial index measuring all stocks above VWAP as a percent difference. For the purposes of this indicator (and brevity), TradingViews PCTABOVEVWAP has has been shortened to simply be ABVD.
TKCD - The Tick Cumulative Difference is an unofficial index that subtracts the total number of market downticks from the total number of market upticks. Where "the TICK" (further up) is a measurement of stocks ticking up and down, TKCD is a measurement of the ticks themselves. For the purposes of this indicator (and brevity), TradingViews UPTKS and DNTKS symbols have been shorted to simply be TKCD.
INSPIRATION
I recently made an indicator automatically identifying / drawing daily percentage levels , based on 4 assumptions. One of these assumptions is about trend days. While trend days do not represent the majority of days, they can have big moves worth understanding, for both capitalization and risk mitigation.
To this end, I discovered:
• Article by Linda Bradford Raschke about Capturing Trend Days.
• Video of Garrett Drinon about Trend Day Trading.
• Videos of Ryan Trost about How To Use ADD and TICK.
• Article by Jason Ruchel about Overview of Key Market Internals.
• Including links to resources outside of TradingView violates the House Rules, but they're not hard to find, if interested.
These discoveries inspired me adopt the underlying symbols in my own trading. I also found myself wanting to make using them easier, the net result being this script.
While coding everything, I also discovered a few symbols I believe warrant serious consideration. Specifically the Percent Above VWAP symbols and the Up Ticks / Down Ticks symbols (referenced as ABVD and TKCD in this indicator, for brevity). I found transforming ABVD or TKCD into a Ratio or Percent Diff. to be an incredibly useful and worthy inclusion.
ABVD is a Market Breadth cousin to Brian Shannon's work, and TKCD is like the 3rd dimension of the TICKs geometry. Enjoy.