Volatility IndicatorThe volatility indicator presented here is based on multiple volatility indices that reflect the market’s expectation of future price fluctuations across different asset classes, including equities, commodities, and currencies. These indices serve as valuable tools for traders and analysts seeking to anticipate potential market movements, as volatility is a key factor influencing asset prices and market dynamics (Bollerslev, 1986).
Volatility, defined as the magnitude of price changes, is often regarded as a measure of market uncertainty or risk. Financial markets exhibit periods of heightened volatility that may precede significant price movements, whether upward or downward (Christoffersen, 1998). The indicator presented in this script tracks several key volatility indices, including the VIX (S&P 500), GVZ (Gold), OVX (Crude Oil), and others, to help identify periods of increased uncertainty that could signal potential market turning points.
Volatility Indices and Their Relevance
Volatility indices like the VIX are considered “fear gauges” as they reflect the market’s expectation of future volatility derived from the pricing of options. A rising VIX typically signals increasing investor uncertainty and fear, which often precedes market corrections or significant price movements. In contrast, a falling VIX may suggest complacency or confidence in continued market stability (Whaley, 2000).
The other volatility indices incorporated in the indicator script, such as the GVZ (Gold Volatility Index) and OVX (Oil Volatility Index), capture the market’s perception of volatility in specific asset classes. For instance, GVZ reflects market expectations for volatility in the gold market, which can be influenced by factors such as geopolitical instability, inflation expectations, and changes in investor sentiment toward safe-haven assets. Similarly, OVX tracks the implied volatility of crude oil options, which is a crucial factor for predicting price movements in energy markets, often driven by geopolitical events, OPEC decisions, and supply-demand imbalances (Pindyck, 2004).
Using the Indicator to Identify Market Movements
The volatility indicator alerts traders when specific volatility indices exceed a defined threshold, which may signal a change in market sentiment or an upcoming price movement. These thresholds, set by the user, are typically based on historical levels of volatility that have preceded significant market changes. When a volatility index exceeds this threshold, it suggests that market participants expect greater uncertainty, which often correlates with increased price volatility and the possibility of a trend reversal.
For example, if the VIX exceeds a pre-determined level (e.g., 30), it could indicate that investors are anticipating heightened volatility in the equity markets, potentially signaling a downturn or correction in the broader market. On the other hand, if the OVX rises significantly, it could point to an upcoming sharp movement in crude oil prices, driven by changing market expectations about supply, demand, or geopolitical risks (Geman, 2005).
Practical Application
To effectively use this volatility indicator in market analysis, traders should monitor the alert signals generated when any of the volatility indices surpass their thresholds. This can be used to identify periods of market uncertainty or potential market turning points across different sectors, including equities, commodities, and currencies. The indicator can help traders prepare for increased price movements, adjust their risk management strategies, or even take advantage of anticipated price swings through options trading or volatility-based strategies (Black & Scholes, 1973).
Traders may also use this indicator in conjunction with other technical analysis tools to validate the potential for significant market movements. For example, if the VIX exceeds its threshold and the market is simultaneously approaching a critical technical support or resistance level, the trader might consider entering a position that capitalizes on the anticipated price breakout or reversal.
Conclusion
This volatility indicator is a robust tool for identifying market conditions that are conducive to significant price movements. By tracking the behavior of key volatility indices, traders can gain insights into the market’s expectations of future price fluctuations, enabling them to make more informed decisions regarding market entries and exits. Understanding and monitoring volatility can be particularly valuable during times of heightened uncertainty, as changes in volatility often precede substantial shifts in market direction (French et al., 1987).
References
	
•	Bollerslev, T. (1986). Generalized Autoregressive Conditional Heteroskedasticity. Journal of Econometrics, 31(3), 307-327.
	
•	Christoffersen, P. F. (1998). Evaluating Interval Forecasts. International Economic Review, 39(4), 841-862.
	
•	Whaley, R. E. (2000). Derivatives on Market Volatility. Journal of Derivatives, 7(4), 71-82.
	
•	Pindyck, R. S. (2004). Volatility and the Pricing of Commodity Derivatives. Journal of Futures Markets, 24(11), 973-987.
	
•	Geman, H. (2005). Commodities and Commodity Derivatives: Modeling and Pricing for Agriculturals, Metals and Energy. John Wiley & Sons.
	
•	Black, F., & Scholes, M. (1973). The Pricing of Options and Corporate Liabilities. Journal of Political Economy, 81(3), 637-654.
	
•	French, K. R., Schwert, G. W., & Stambaugh, R. F. (1987). Expected Stock Returns and Volatility. Journal of Financial Economics, 19(1), 3-29.
"implied"に関するスクリプトを検索
Z-Score Financial Market Conditions | JeffreyTimmermansZ-Score Financial Market Conditions 
The Z-Score Financial Market Conditions indicator is a cutting-edge tool for measuring financial market stress and relaxation by combining eight critical financial metrics into a single composite Z-score. This dynamic indicator provides traders and analysts with actionable insights into the overall state of the financial markets, enabling informed decision-making across various trading and investment systems.
 Purpose of the Indicator 
This indicator serves as a comprehensive gauge of financial market conditions, offering a clear visualization of whether the markets are in a state of stress (elevated risks) or relaxation (normalized conditions). The Z-Score Financial Market Conditions tool is particularly effective for:
 
 Macro-Level Risk Assessment:  Identifying periods of high market stress or calmness.
 Trend Following Systems:  Gauging the market's underlying conditions to validate trends.
 Mean Reversion Strategies:  Using extreme Z-score levels to detect potential reversals.
 Portfolio Risk Management:  Adjusting asset exposure based on market-wide financial conditions.
 
This indicator works exclusively on the 1-day timeframe, as it is calibrated to analyze daily changes in the financial metrics that drive market behavior.
 The Eight Key Components and Their Importance 
The composite Z-score integrates the Z-scores of the following eight financial metrics. These metrics have been selected for their complementary insights into various aspects of financial market conditions:
 VIX (S&P 500 Volatility Index) 
 
 Reflects implied volatility in the U.S. equity market.
 High VIX values indicate increased uncertainty and risk aversion among market participants.
 
 MOVE (US Treasury Bond Volatility Index) 
 
 Captures volatility in U.S. Treasury bonds.
 Essential for understanding risk in fixed-income markets, which significantly impact broader economic conditions.
 
 ICE BofA High Yield Option Adjusted Spread (BAMLH0A0HYM2) 
 
 Measures the risk premium for high-yield corporate bonds.
 Rising spreads suggest increased credit risk and potential economic stress.
 
 ICE BofA Corporate Index Option Adjusted Spread (BAMLC0A0CM) 
 
 Tracks credit spreads in the investment-grade bond market.
 Helps evaluate the health of higher-quality corporate debt, a key indicator of financial stability.
 
 ICE BofA US High Yield Index Spread (BAMLH0A0HYM2) 
 
 Focuses on high-yield U.S. corporate bonds.
 Provides localized insights into U.S. credit conditions and risk levels.
 
 CDS (Credit Default Swap Spreads) 
 
 Measures the cost of insuring against bond defaults.
 Rising CDS spreads signal growing concern over creditworthiness, often a leading indicator of financial stress.
 
 Global Bond Spread (AGG) 
 
 Represents global fixed-income spreads.
 Offers a broader perspective on international financial conditions beyond the U.S. market.
 
 TED Spread (Treasury-EuroDollar Spread) 
 
 The difference between interbank lending rates and short-term U.S. Treasury yields.
 Widely regarded as an indicator of systemic risk in the banking sector.
 
 Features and Improvements 
This script builds upon the original concept by introducing advanced features to enhance its precision and usability:
 Lookback Period Adjustment 
 
 A customizable lookback period for Z-score calculations (default: 160 days).
 Allows for greater flexibility in adapting to different market conditions.
 
 Moving Average (MA) Smoothing 
 
 Optional smoothing of Z-scores using an exponential moving average (EMA) for enhanced clarity.
 Default smoothing length: 8 days.
 
 Individual Component Visibility 
 
 Plots for individual Z-scores can be enabled or disabled to focus on specific metrics.
 
 Dynamic Background Coloring 
 
 Visual cues to indicate bullish (green) or bearish (red) financial conditions based on the composite Z-score.
 
 Custom Inputs 
 
 Toggle on/off for each financial metric to tailor the indicator to specific use cases.
 Customizable parameters for smoothing and moving averages.
 
 Applications 
This indicator is versatile and can be effectively used in various trading systems and strategies:
 
 Long-Term Investment Decision-Making:  Assess macroeconomic trends for portfolio rebalancing.
 Systematic Trading:  Incorporate market conditions into algorithmic models to enhance robustness.
 Volatility-Based Strategies:  Use Z-score fluctuations to anticipate periods of market turbulence or calm.
 
 Credits 
This indicator was inspired by and builds upon the work of  TomasOnMarkets . While incorporating significant enhancements, it acknowledges the foundational concepts provided by this original source. Thank you for sharing your input on this important indicator. We are honored to use it and to further improve upon it.
 -Jeffrey
Hybrid Adaptive Double Exponential Smoothing🙏🏻 This is  HADES (Hybrid Adaptive Double Exponential Smoothing) : fully data-driven & adaptive exponential smoothing method, that gains all the necessary info directly from data in the most natural way and needs no subjective parameters & no optimizations. It gets applied to data itself -> to fit residuals & one-point forecast errors, all at O(1) algo complexity. I designed it for streaming high-frequency univariate time series data, such as medical sensor readings, orderbook data, tick charts, requests generated by a backend, etc.
 The HADES method is: 
 fit & forecast = a + b * (1 / alpha + T - 1) 
 T = 0  provides in-sample fit for the current datum, and  T + n  provides forecast for  n  datapoints. 
 y  = input time series
a  = y, if no previous data exists
b  = 0, if no previous data exists
otherwise:
 a = alpha * y + (1 - alpha) * a 
b = alpha * (a - a ) + (1 - alpha) * b 
 alpha = 1 / sqrt(len * 4)
len = min(ceil(exp(1 / sig)), available data)
sig = sqrt(Absolute net change in y / Sum of absolute changes in y)  
For the start datapoint when both numerator and denominator are zeros, we define 0 / 0 = 1
...
The same set of operations gets applied to the data first, then to resulting fit absolute residuals to build prediction interval, and finally to absolute forecasting errors (from one-point ahead forecast) to build forecasting interval:
 prediction interval = data fit +- resoduals fit * k 
forecasting interval = data opf +- errors fit * k 
where  k  = multiplier regulating intervals width, and  opf  = one-point forecasts calculated at each time t
...
 How-to: 
0) Apply to your data where it makes sense, eg. tick data;
1) Use power transform to compensate for multiplicative behavior in case it's there;
2) If you have complete data or only the data you need, like the full history of adjusted close prices: go to the next step; otherwise, guided by your goal & analysis, adjust the 'start index' setting so the calculations will start from this point;
3) Use prediction interval to detect significant deviations from the process core & make decisions according to your strategy;
4) Use one-point forecast for nowcasting;
5) Use forecasting intervals to ~ understand where the next datapoints will emerge, given the data-generating process will stay the same & lack structural breaks.
I advise  k  = 1 or 1.5 or 4 depending on your goal, but 1 is the most natural one.
...
 Why exponential smoothing at all? Why the double one? Why adaptive? Why not Holt's method? 
1) It's O(1) algo complexity & recursive nature allows it to be applied in an online fashion to high-frequency streaming data; otherwise, it makes more sense to use other methods;
2) Double exponential smoothing ensures we are taking trends into account; also, in order to model more complex time series patterns such as seasonality, we need detrended data, and this method can be used to do it;
3) The goal of adaptivity is to eliminate the window size question, in cases where it doesn't make sense to use cumulative moving typical value;
4) Holt's method creates a certain interaction between level and trend components, so its results lack symmetry and similarity with other non-recursive methods such as quantile regression or linear regression. Instead, I decided to base my work on the original double exponential smoothing method published by Rob Brown in 1956,  here's the original source , it's really hard to find it online. This cool dude is considered the one who've dropped exponential smoothing to open access for the first time🤘🏻
 R&D; log & explanations 
 If you wanna read this, you gotta know, you're taking a great responsability for this long journey, and it gonna be one hell of a trip hehe 
Machine learning, apprentissage automatique, машинное обучение, digital signal processing, statistical learning, data mining, deep learning, etc., etc., etc.: all these are just artificial categories created by the local population of this wonderful world, but what really separates entities globally in the Universe is solution complexity / algorithmic complexity.
In order to get the game a lil better, it's gonna be useful to read the  HTES  script description first. Secondly, let me guide you through the whole R&D; process.
To discover (not to invent) the fundamental universal principle of what exponential smoothing really IS, it required the review of the whole concept, understanding that many things don't add up and don't make much sense in currently available mainstream info, and building it all from the beginning while avoiding these very basic logical & implementation flaws.
Given a complete time t, and yet, always growing time series population that can't be logically separated into subpopulations, the very first question is, 'What amount of data do we need to utilize at time t?'. Two answers: 1 and all. You can't really gain much info from 1 datum, so go for the second answer: we need the whole dataset.
So, given the sequential & incremental nature of time series, the very first and basic thing we can do on the whole dataset is to calculate a cumulative , such as cumulative moving mean or cumulative moving median.
Now we need to extend this logic to exponential smoothing, which doesn't use dataset length info directly, but all cool it can be done via a formula that quantifies the relationship between alpha (smoothing parameter) and length. The popular formulas used in mainstream are:
 alpha = 1 / length
alpha = 2 / (length + 1) 
The funny part starts when you realize that Cumulative Exponential Moving Averages with these 2 alpha formulas Exactly match Cumulative Moving Average and Cumulative (Linearly) Weighted Moving Average, and the same logic goes on:
 alpha = 3 / (length + 1.5) , matches Cumulative Weighted Moving Average with quadratic weights, and
 alpha = 4 / (length + 2) , matches Cumulative Weighted Moving Average with cubic weghts, and so on...
It all just cries in your shoulder that we need to discover another, native length->alpha formula that leverages the recursive nature of exponential smoothing, because otherwise, it doesn't make sense to use it at all, since the usual CMA and CMWA can be computed incrementally at O(1) algo complexity just as exponential smoothing.
From now on I will not mention 'cumulative' or 'linearly weighted / weighted' anymore, it's gonna be implied all the time unless stated otherwise.
What we can do is to approach the thing logically and model the response with a little help from synthetic data, a sine wave would suffice. Then we can think of relationships: Based on algo complexity from lower to higher, we have this sequence: exponential smoothing @ O(1) -> parametric statistics (mean) @ O(n) -> non-parametric statistics (50th percentile / median) @ O(n log n). Based on Initial response from slow to fast: mean -> median Based on convergence with the real expected value from slow to fast: mean (infinitely approaches it) -> median (gets it quite fast).
Based on these inputs, we need to discover such a length->alpha formula so the resulting fit will have the slowest initial response out of all 3, and have the slowest convergence with expected value out of all 3. In order to do it, we need to have some non-linear transformer in our formula (like a square root) and a couple of factors to modify the response the way we need. I ended up with this formula to meet all our requirements:
 alpha = sqrt(1 / length * 2) / 2 
which simplifies to:
 alpha = 1 / sqrt(len * 8) 
  
^^ as you can see on the screenshot; where the red line is median, the blue line is the mean, and the purple line is exponential smoothing with the formulas you've just seen, we've met all the requirements.
Now we just have to do the same procedure to discover the length->alpha formula but for double exponential smoothing, which models trends as well, not just level as in single exponential smoothing. For this comparison, we need to use linear regression and quantile regression instead of the mean and median.
Quantile regression requires a non-closed form solution to be solved that you can't really implement in Pine Script, but that's ok, so I made the tests using Python & sklearn:
paste.pics
^^ on this screenshot, you can see the same relationship as on the previous screenshot, but now between the responses of quantile regression & linear regression.
I followed the same logic as before for designing alpha for double exponential smoothing (also considered the initial overshoots, but that's a little detail), and ended up with this formula:
 alpha = sqrt(1 / length) / 2 
which simplifies to:
 alpha = 1 / sqrt(len * 4) 
Btw, given the pattern you see in the resulting formulas for single and double exponential smoothing, if you ever want to do triple (not Holt & Winters) exponential smoothing, you'll need  len * 2 , and just  len * 1  for quadruple exponential smoothing. I hope that based on this sequence, you see the hint that Maybe 4 rounds is enough.
 Now since we've dealt with the length->alpha formula, we can deal with the adaptivity part. 
Logically, it doesn't make sense to use a slower-than-O(1) method to generate input for an O(1) method, so it must be something universal and minimalistic: something that will help us measure consistency in our data, yet something far away from statistics and close enough to topology.
There's one perfect entity that can help us, this is fractal efficiency. The way I define fractal efficiency can be checked at the very beginning of the post, what matters is that I add a square root to the formula that is not typically added. 
As explained in the description of my metric  QSFS , one of the reasons for  SQRT-transformed  values of fractal efficiency applied in moving window mode is because they start to closely resemble normal distribution, yet with support of (0, 1). Data with this interesting property (normally distributed yet with finite support) can be modeled with the beta distribution. 
Another reason is, in infinitely expanding window mode, fractal efficiency of every time series that exhibits randomness tends to infinitely approach zero,  sqrt-transform  kind of partially neutralizes this effect. 
Yet another reason is, the square root might better reflect the dimensional inefficiency or degree of fractal complexity, since it could balance the influence of extreme deviations from the net paths. 
And finally, fractals exhibit power-law scaling -> measures like length, area, or volume scale in a non-linear way. Adding a square root acknowledges this intrinsic property, while connecting our metric with the nature of fractals.
---
I suspect that, given analogies and connections with other topics in geometry, topology, fractals and most importantly positive test results of the metric, it might be that the sqrt transform is the fundamental part of fractal efficiency that should be applied by default. 
Now the last part of the ballet is to convert our fractal efficiency to  length  value. The part about inverse proportionality is obvious: high fractal efficiency aka high consistency -> lower window size, to utilize only the last data that contain brand new information that seems to be highly reliable since we have consistency in the first place. 
The non-obvious part is now we need to neutralize the side effect created by previous sqrt transform: our length values are too low, and  exponentiation  is the perfect candidate to fix it since translating fractal efficiency into window sizes requires something non-linear to reflect the fractal dynamics. More importantly, using  exp()  was the last piece that let the metric shine, any other transformations & formulas alike I've tried always had some weird results on certain data. 
That  exp()  in the len formula was the last piece that made it all work both on synthetic and on real data.
  
^^ a standalone script calculating optimal dynamic window size
Omg, THAT took time to write. Comment and/or text me if you need
...
 "Versace Pip-Boy, I'm a young gun coming up with no bankroll" 👻
∞
CSP Key Level Finder This script is designed for option sellers, particularly those using strategies like cash-secured puts (CSPs), to help automate the process of identifying key levels in the market. The core functionality is to calculate a specific price level where a 5% return can be achieved based on the historical volatility of the underlying asset. This level is visually plotted on a chart to guide traders in making more informed decisions without manually calculating the thresholds themselves.
The script incorporates implied volatility (IV) data to determine the volatility rank of the asset and calculates historical volatility (HV) based on price movements. These volatility measures help assess market conditions. The resulting key level is drawn as a line on the chart, along with a label that includes relevant information about volatility, making it easier for traders to evaluate potential option selling strategies.
Additionally, the script includes user input options, allowing users to control when to display the key level on the chart, offering flexibility based on individual needs. Overall, the script provides a visual aid for option sellers to streamline the process of identifying attractive entry points.
Digital Clock with Market Status and AlertsDigital Clock with Market Status and Alerts - 日本語解説は下記
Overview:
The Digital Clock with Market Status and Alerts indicator is designed to display the current time in various global time zones while also providing the status of major financial markets such as Tokyo, London, and New York. This indicator helps traders monitor the open and close times of different markets and alerts them when a market opens. Customizable options are provided for table positioning, background, text colors, and font size.
Key Features:
Real-Time Digital Clock: The indicator shows the current time in your selected time zone (Asia/Tokyo, America/New_York, Europe/London, Australia/Sydney). The time updates in real-time and includes hours, minutes, and seconds, providing a convenient and accurate way to monitor time across different trading sessions.
Global Market Status: Displays the open or closed status of major financial markets.
・Tokyo Market: Open from 9:00 AM to 3:00 PM (JST).
・London Market: Open from 16:00 to 24:00 during summer time and from 17:00 to 1:00 during winter time (JST).
・New York Market: Open from 21:00 to 5:00 during summer time and from 22:00 to 6:00 during winter time (JST).
Customizable Display:
・Background Color: The indicator allows you to set the background color for the clock display, while the leftmost empty cell can be independently customized with its own background color for table alignment.
・Clock and Market Status Colors: Separate color options are available for the clock text, market status during open, and market status during closed periods.
・Text Size: You can adjust the size of the text (small, normal, large) to fit your preferences.
・Table Position: You can position the digital clock and market status table in different locations on the chart: top left, top center, top right, bottom left, bottom center, and bottom right.
Alerts for Market Opening: The indicator will trigger alerts when a market (Tokyo, London, or New York) opens, notifying traders in real-time. This can help ensure that you don't miss any important market openings.
How to Use:
Setup:
Apply the Indicator: Add the Digital Clock with Market Status and Alerts indicator to your chart. Customize the time zone, text size, background colors, and table position based on your preferences.
Monitor Market Status: Watch the market status displayed for Tokyo, London, and New York to keep track of market openings and closings in real-time.
Receive Alerts: The indicator provides built-in alerts for market openings, helping you stay informed when a key market opens for trading.
Time Monitoring:
・Real-Time Clock: The current time is displayed with hours, minutes, and seconds for accurate tracking. The clock updates every second and reflects the selected time zone.
・Global Time Zones: Choose your desired time zone (Tokyo, New York, London, Sydney) to monitor the time most relevant to your trading strategy.
Market Status:
・Tokyo Market: The status will display "Tokyo OPEN" when the Tokyo market is active, and "Tokyo CLOSED" when it is outside of trading hours.
・London Market: Similarly, the indicator will show "London OPEN" or "London CLOSED" depending on whether the London market is currently active.
・New York Market: The New York market status follows the same structure, showing "NY OPEN" or "NY CLOSED."
Customization:
・Table Positioning: Easily move the table to the desired location on the chart to avoid overlap with other chart elements. The leftmost empty cell helps with alignment.
・Text and Background Color: Adjust the text and background colors to suit your personal preferences. You can also set independent colors for open and closed market statuses to easily distinguish between them.
Cautions and Disclaimer:
・Indicator Modifications: This indicator may be updated without prior notice, which could change or remove certain features.
・Trade Responsibility: This indicator is a tool to assist your trading, but responsibility for all trades remains with you. No guarantee of profit or success is implied, and losses can occur. Use it alongside your own analysis and strategy.
Digital Clock with Market Status and Alerts - 解説と使い方
概要:
Digital Clock with Market Status and Alerts インジケーターは、さまざまな世界のタイムゾーンで現在の時刻を表示し、東京、ロンドン、ニューヨークなどの主要な金融市場のステータスを提供します。このインジケーターにより、複数の市場のオープンおよびクローズ時間をリアルタイムで監視でき、市場がオープンする際にアラートを受け取ることができます。テーブルの位置、背景色、テキストカラー、フォントサイズなどのカスタマイズが可能です。
主な機能:
リアルタイムデジタル時計: 選択したタイムゾーン(東京、ニューヨーク、ロンドン、シドニー)の現在時刻を表示します。リアルタイムで更新され、時間、分、秒を正確に表示します。
世界の市場ステータス: 主要な金融市場のオープン/クローズ状況を表示します。
・東京市場: 午前9時~午後3時(日本時間)。
・ロンドン市場: 夏時間では16時~24時、冬時間では17時~1時(日本時間)。
・ニューヨーク市場: 夏時間では21時~5時、冬時間では22時~6時(日本時間)。
カスタマイズ可能な表示設定:
・背景色: 時計表示の背景色を設定できます。また、テーブルの左側に空白のセルを配置し、独立した背景色を設定することでテーブルの配置調整が可能です。
・時計と市場ステータスの色: 時計テキスト、オープン市場、クローズ市場の色を個別に設定できます。
・テキストサイズ: 小、標準、大から選択し、テキストサイズをカスタマイズ可能です。
・テーブル位置: デジタル時計と市場ステータスのテーブルをチャートのさまざまな場所(左上、中央上、右上、左下、中央下、右下)に配置できます。
市場オープン時のアラート: 市場(東京、ロンドン、ニューヨーク)がオープンするときにアラートを発し、リアルタイムで通知されます。これにより、重要な市場のオープン時間を逃さないようサポートします。
使い方:
セットアップ:
インジケーターを適用: チャートに「Digital Clock with Market Status and Alerts」インジケーターを追加し、タイムゾーン、テキストサイズ、背景色、テーブル位置を好みに応じてカスタマイズします。
市場ステータスを確認: 東京、ロンドン、ニューヨークの市場ステータスをリアルタイムで表示し、オープン/クローズ時間を把握できます。
アラートを受け取る: 市場オープン時のアラート機能により、重要な市場のオープンを見逃さないように通知が届きます。
時間管理:
・リアルタイム時計: 現在の時刻が秒単位で表示され、選択したタイムゾーンに基づいて正確に追跡できます。
・グローバルタイムゾーン: 東京、ニューヨーク、ロンドン、シドニーなど、トレードに関連するタイムゾーンを選択して監視できます。
市場ステータス:
・東京市場: 東京市場が開いていると「Tokyo OPEN」と表示され、閉じている場合は「Tokyo CLOSED」と表示されます。
・ロンドン市場: 同様に、「London OPEN」または「London CLOSED」が表示され、ロンドン市場のステータスを確認できます。
・ニューヨーク市場: ニューヨーク市場も「NY OPEN」または「NY CLOSED」で現在の状況が表示されます。
カスタマイズ:
・テーブル位置の調整: テーブルの位置を簡単に調整し、チャート上の他の要素と重ならないように配置できます。左側の空白セルで位置調整が可能です。
・テキストと背景色のカスタマイズ: テキストと背景の色を自分の好みに合わせて調整できます。また、オープン時とクローズ時の市場ステータスを区別するため、独立した色設定が可能です。
注意事項と免責事項:
・インジケーターの変更: このインジケーターは、予告なく変更や機能の削除が行われる場合があります。
・トレード責任: このインジケーターはトレードをサポートするツールであり、トレードに関する全責任はご自身にあります。利益を保証するものではなく、損失が発生する可能性があります。自分の分析や戦略と組み合わせて使用してください。
Composite Momentum█ Introduction
The Composite Momentum Indicator is a tool we came across that we found to be useful at detecting implied tops and bottoms within quick market cycles. Its approach to analyzing momentum through a combination of moving averages and summation techniques makes it a useful addition to the range of available indicators on TradingView.
█ How It Works
This indicator operates by calculating the difference between two moving averages—one fast and one slow, which can be customized by the user. The difference between these two averages is then expressed as a percentage of the fast moving average, forming the core momentum value which is then smoothed with an Exponential Moving Average is applied. The smoothed momentum is then compared across periods to identify directional changes in direction
Furthermore, the script calculates the absolute differences between consecutive momentum values. These differences are used to determine periods of momentum acceleration or deceleration, aiming to establish potential reversals.
In addition to tracking momentum changes, the indicator sums positive and negative momentum changes separately over a user-defined period. This summation is intended to provide a clearer picture of the prevailing market bias—whether it’s leaning towards strength or weakness.
Finally, the summed-up values are normalized to a percentage scale. This normalization helps in identifying potential tops and bottoms by comparing the relative strength of the momentum within a given cycle.
█ Usage
This indicator is primarily useful for traders who focus on detecting quick cycle tops and bottoms. It provides a view of momentum shifts that can signal these extremes, though it’s important to use it in conjunction with other tools and market analysis techniques. Given its ability to highlight potential reversals, it may be of interest to those who seek to understand short-term market dynamics.
█ Disclaimer
This script was discovered without any information about its author or original intent but was nonetheless ported from its original format that is available publicly. It’s provided here for educational purposes and should not be considered a guaranteed method for market analysis. Users are encouraged to test and understand the indicator thoroughly before applying it in real trading scenarios.
IV Rank Oscillator by dinvestorqShort Title: IVR OscSlg
 Description: 
The IV Rank Oscillator is a custom indicator designed to measure and visualize the Implied Volatility (IV) Rank using Historical Volatility (HV) as a proxy. This indicator helps traders determine whether the current volatility level is relatively high or low compared to its historical levels over a specified period.
 Key Features :
Historical Volatility (HV) Calculation: Computes the historical volatility based on the standard deviation of logarithmic returns over a user-defined period.
IV Rank Calculation: Normalizes the current HV within the range of the highest and lowest HV values over the past 252 periods (approximately one year) to generate the IV Rank.
IV Rank Visualization: Plots the IV Rank, along with reference lines at 50 (midline), 80 (overbought), and 20 (oversold), making it easy to interpret the relative volatility levels.
Historical Volatility Plot: Optionally plots the Historical Volatility for additional reference.
Usage:
 IV Rank : Use the IV Rank to assess the relative level of volatility. High IV Rank values (close to 100) indicate that the current volatility is high relative to its historical range, while low IV Rank values (close to 0) indicate low relative volatility.
Reference Lines: The overbought (80) and oversold (20) lines help identify extreme volatility conditions, aiding in trading decisions.
 Example Use Case: 
A trader can use the IV Rank Oscillator to identify potential entry and exit points based on the volatility conditions. For instance, a high IV Rank may suggest a period of high market uncertainty, which could be a signal for options traders to consider strategies like selling premium. Conversely, a low IV Rank might indicate a more stable market condition.
 Parameters: 
HV Calculation Length: Adjustable period length for the historical volatility calculation (default: 20 periods).
This indicator is a powerful tool for options traders, volatility analysts, and any market participant looking to gauge market conditions based on historical volatility patterns.
Global Financial IndexIntroducing the "Global Financial Index" indicator on TradingView, a meticulously crafted tool derived from extensive research aimed at providing the most comprehensive assessment of a company's financial health, profitability, and valuation. Developed with the discerning trader and investor in mind, this indicator amalgamates a diverse array of financial metrics, meticulously weighted and balanced to yield optimal results.
 Financial Strength: 
Financial strength is a cornerstone of a company's stability and resilience in the face of economic challenges. It encompasses various metrics that gauge the company's ability to meet its financial obligations, manage its debt, and generate sustainable profits. In our Global Financial Index indicator, the evaluation of financial strength is meticulously crafted to provide investors with a comprehensive understanding of a company's fiscal robustness. Let's delve into the key components and the rationale behind their inclusion:
1. Current Ratio:
 
 The Current Ratio serves as a vital indicator of a company's liquidity position by comparing its current assets to its current liabilities.
 A ratio greater than 1 indicates that the company possesses more short-term assets than liabilities, suggesting a healthy liquidity position and the ability to meet short-term obligations promptly.
 By including the Current Ratio in our evaluation, we emphasize the importance of liquidity management in sustaining business operations and weathering financial storms.
 
2. Debt to Equity Ratio:
 
 The Debt to Equity Ratio measures the proportion of a company's debt relative to its equity, reflecting its reliance on debt financing versus equity financing.
 A higher ratio signifies higher financial risk due to increased debt burden, potentially leading to liquidity constraints and solvency issues.
 Incorporating the Debt to Equity Ratio underscores the significance of balancing debt levels to maintain financial stability and mitigate risk exposure.
 
3. Interest Coverage Ratio:
 
 The Interest Coverage Ratio assesses a company's ability to service its interest payments with its operating income.
 A higher ratio indicates a healthier financial position, as it implies that the company generates sufficient earnings to cover its interest expenses comfortably.
 By evaluating the Interest Coverage Ratio, we gauge the company's capacity to manage its debt obligations without compromising its profitability or sustainability.
 
4. Altman Z-Score:
 
 The Altman Z-Score, developed by Edward Altman, is a composite metric that predicts the likelihood of a company facing financial distress or bankruptcy within a specific timeframe.
 It considers multiple financial ratios, including liquidity, profitability, leverage, and solvency, to provide a comprehensive assessment of a company's financial health.
 The Altman Z-Score categorizes companies into distinct risk groups, allowing investors to identify potential warning signs and make informed decisions regarding investment or credit exposure.
 By integrating the Altman Z-Score, we offer a nuanced perspective on a company's financial viability and resilience in turbulent market conditions.
 
 Profitability Rank: 
Profitability rank is a crucial aspect of investment analysis that evaluates a company's ability to generate profits relative to its peers and industry benchmarks. It involves assessing various profitability metrics to gauge the efficiency and effectiveness of a company's operations and management. In our Global Financial Index indicator, the profitability rank segment is meticulously designed to provide investors with a comprehensive understanding of a company's profitability dynamics. Let's delve into the key components and rationale behind their inclusion:
1. Return on Equity (ROE):
 
 Return on Equity measures a company's net income generated relative to its shareholders' equity.
 A higher ROE indicates that a company is generating more profits with its shareholders' investment, reflecting efficient capital utilization and strong profitability.
 By incorporating ROE, we assess management's ability to generate returns for shareholders and evaluate the overall profitability of the company's operations.
 
2. Gross Profit Margin:
 
 Gross Profit Margin represents the percentage of revenue retained by a company after accounting for the cost of goods sold (COGS).
 A higher gross profit margin indicates that a company is effectively managing its production costs and pricing strategies, leading to greater profitability.
 By analyzing gross profit margin, we evaluate a company's pricing power, cost efficiency, and competitive positioning within its industry.
 
3. Operating Profit Margin:
 
 Operating Profit Margin measures the percentage of revenue that remains after deducting operating expenses, such as salaries, rent, and utilities.
 A higher operating profit margin signifies that a company is efficiently managing its operating costs and generating more profit from its core business activities.
 By considering operating profit margin, we assess the underlying profitability of a company's operations and its ability to generate sustainable earnings.
 
4. Net Profit Margin:
 
 Net Profit Margin measures the percentage of revenue that remains as net income after deducting all expenses, including taxes and interest.
 A higher net profit margin indicates that a company is effectively managing its expenses and generating greater bottom-line profitability.
 By analyzing net profit margin, we evaluate the overall profitability and financial health of a company, taking into account all expenses and income streams.
 
 Valuation Rank: 
Valuation rank is a fundamental aspect of investment analysis that assesses the attractiveness of a company's stock price relative to its intrinsic value. It involves evaluating various valuation metrics to determine whether a stock is undervalued, overvalued, or fairly valued compared to its peers and the broader market. In our Global Financial Index indicator, the valuation rank segment is meticulously designed to provide investors with a comprehensive perspective on a company's valuation dynamics. Let's explore the key components and rationale behind their inclusion:
1. Price-to-Earnings (P/E) Ratio:
 
 The Price-to-Earnings ratio is a widely used valuation metric that compares a company's current stock price to its earnings per share (EPS).
 A lower P/E ratio may indicate that the stock is undervalued relative to its earnings potential, while a higher ratio may suggest overvaluation.
 By incorporating the P/E ratio, we offer insight into market sentiment and investor expectations regarding a company's future earnings growth prospects.
 
2. Price-to-Book (P/B) Ratio:
 
 The Price-to-Book ratio evaluates a company's market value relative to its book value, which represents its net asset value per share.
 A P/B ratio below 1 may indicate that the stock is trading at a discount to its book value, potentially signaling an undervalued opportunity.
 Conversely, a P/B ratio above 1 may suggest overvaluation, as investors are paying a premium for the company's assets.
 By considering the P/B ratio, we assess the market's perception of a company's tangible asset value and its implications for investment attractiveness.
 
3. Dividend Yield:
 
 Dividend Yield measures the annual dividend income received from owning a stock relative to its current market price.
 A higher dividend yield may indicate that the stock is undervalued or that the company is returning a significant portion of its profits to shareholders.
 Conversely, a lower dividend yield may signal overvaluation or a company's focus on reinvesting profits for growth rather than distributing them as dividends.
 By analyzing dividend yield, we offer insights into a company's capital allocation strategy and its implications for shareholder returns and valuation.
 
4. Discounted Cash Flow (DCF) Analysis:
 
 Discounted Cash Flow analysis estimates the present value of a company's future cash flows, taking into account the time value of money.
 By discounting projected cash flows back to their present value using an appropriate discount rate, DCF analysis provides a fair value estimate for the company's stock.
 Comparing the calculated fair value to the current market price allows investors to assess whether the stock is undervalued, overvalued, or fairly valued.
 By integrating DCF analysis, we offer a rigorous framework for valuing stocks based on their underlying cash flow generation potential.
 
Earnings Transparency:
Mitigating the risk of fraudulent financial reporting is crucial for investors. The indicator incorporates the Beneish M-Score, a robust model designed to detect earnings manipulation or financial irregularities. By evaluating various financial ratios and metrics, this component provides valuable insights into the integrity and transparency of a company's financial statements, aiding investors in mitigating potential risks.
Overall Score:
The pinnacle of the "Global Financial Index" is the Overall Score, a comprehensive amalgamation of financial strength, profitability, valuation, and manipulation risk, further enhanced by the inclusion of the Piotroski F-Score. This holistic score offers investors a succinct assessment of a company's overall health and investment potential, facilitating informed decision-making.
The weighting and balancing of each metric within the indicator have been meticulously calibrated to ensure accuracy and reliability. By amalgamating these diverse metrics, the "Global Financial Index" empowers traders and investors with a powerful tool for evaluating investment opportunities with confidence and precision.
 This indicator is provided for informational purposes only and does not constitute financial advice, investment advice, or any other type of advice. The information provided by this indicator should not be relied upon for making investment decisions. Trading and investing in financial markets involves risk, and you should carefully consider your financial situation and consult with a qualified financial advisor before making any investment decisions. Past performance is not necessarily indicative of future results. The creator of this indicator makes no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability with respect to the indicator or the information contained herein. Any reliance you place on such information is therefore strictly at your own risk. By using this indicator, you agree to assume full responsibility for any and all gains and losses, financial, emotional, or otherwise, experienced, suffered, or incurred by you.
Volumetric Fair Value Gaps [AlgoAlpha]🎯 Introducing the  Volumetric Fair Value Gaps by AlgoAlpha  🎯
Embrace the power of volume and price action with the Volumetric Fair Value Gaps (VFVG) indicator, designed meticulously by AlgoAlpha. This innovative tool enhances your charting capabilities by highlighting fair value gaps in real-time, facilitating superior market entry and exit decisions. 🚀📈
 🔍 Key Features: 
🔹  Fair Value Gap Detection:  Utilizes price action and volume to identify significant fair value gaps, offering potential high-probability trading opportunities. 
🔹  Adjustability:  Customize the sensitivity with 'FVG Noise Reduction Length' and 'Noise Reduction Factor' to match the volatility and characteristics of the asset being traded.
🔹  Visual Appeal:  Displays bullish gaps in a soothing Bullish Color and bearish gaps in a striking Bearish Color, making it easy to spot and analyze trends on the fly.
🔹  Overlay Feature:  Plots directly on the price chart for seamless integration and analysis.
 🌟 Quick Guide to Using the Volumetric Fair Value Gaps Indicator: 
🛠  Add the Indicator:  Add the indicator to favourites and set it up with your desired settings.
📊  Market Analysis:  Watch for the appearance of colored boxes (blue for bearish, gray for bullish) which represent the fair value gaps. These are high-probability areas for reversals or continuations. FVGs with higher volume are implied to induce a stronger reaction on price.
🔔  Alerts:  Set up alerts to notify you when new gaps are detected, ensuring you never miss out on potential trades!
 🛠 How It Works: 
The Volumetric Fair Value Gaps (VFVG) indicator identifies significant price gaps that are not just based on price action but are also substantiated by volume, which are often overlooked in typical analyses. It operates by comparing the current candle’s price range against historical averages and is calculated over a user-defined period, displayed with volume for further insights. For a gap to be recognized as significant (either bullish or bearish), it must exceed a certain size relative to these averages, which can be adjusted for sensitivity using the provided settings. Bullish gaps are identified when the current low is higher than the second previous high after surpassing the threshold, and bearish gaps are marked when the current high is below the second previous low, similarly surpassing the threshold. This dual-confirmation (volume and price deviation) approach minimizes false signals and enhances the reliability of identified gaps.
Maximize your trading strategy with the VFVG Indicator by AlgoAlpha and turn those gaps into opportunities! 🌈✨
Volatility Filter v2VF v2 is a new iteration of my tool designed for traders who wish to gain a deeper understanding of market dynamics, specifically to distinguish periods of high volatility, which often correspond to strong market trends. By identifying these periods, traders can make more informed decisions, potentially leading to better trading outcomes.
 Understanding Market Volatility: 
At the heart of this script lies the concept of market volatility, a statistical measure reflecting the degree of variation in trading prices. Volatility is pivotal for traders; it provides insights into the market's emotional state, indicating periods of uncertainty or confidence. High volatility often correlates with strong trends, making it a critical indicator for trend-followers. By identifying when volatility crosses a certain threshold, traders can discern whether the market is likely to be in a trending phase or a more subdued, range-bound state.
 How the Script Works: 
The core functionality of the script revolves around a signal line that oscillates around a zero threshold. When the signal line is above zero, it indicates increased market volatility, suggesting the presence of a trend. The farther the oscillator deviates from zero, the stronger the implied trend. This mechanism enables traders to visually gauge market conditions and adjust their strategies accordingly.
 Controlling the Indicator: 
To cater to diverse trading styles and preferences, the script is equipped with several customizable settings:
     Filter Threshold:  This 'zero line' acts as the baseline for distinguishing between different volatility regimes. Crossing this threshold is a primary signal for changes in market volatility.
     Moving Average Type:  With over 30 types of moving averages to choose from, traders can select the one that best fits their analysis style. Each type offers a different perspective on price data, allowing for a tailored approach to trend identification.
     Colorize Indicator:  This feature enhances the visual representation of the indicator, making it easier to interpret. When enabled, the oscillator's color intensity varies with its proximity to the extremes, providing a quick visual cue about trend strength.
  
 Advanced Settings – Length and Multiplier: 
The script introduces an innovative approach to time frame analysis through its length and multiplier settings:
     Length:  This parameter sets the base period for all metrics within the script, similar to traditional indicators.
     Multiplier:  This unique feature differentiates the script by incorporating three distinct timeframes into the analysis: a lower timeframe, the main (current) timeframe, and a higher timeframe. The multiplier adjusts these timeframes relative to the main one. For instance, with a daily main timeframe and a multiplier of 2, the lower timeframe would be 12 hours, and the higher timeframe would be 2 days. This tri-timeframe approach aims to provide a more comprehensive volatility assessment.
  
 Volatility Filter Indicators Section: 
The script utilizes nine different, undisclosed metrics within its volatility filter. Traders have the flexibility to enable or disable these metrics based on their preferences, allowing for a customizable trading experience. Additionally, the script offers alert functionality for when the indicator crosses the threshold, either upwards or downwards, facilitating timely decision-making.
 P.S 
With better understanding of markets over time, I designed a new iteration of my volatility filter indicator. The second version provides faster, more precise way to analyze markets, but I also wanted to keep my first version untouched in case if some people find it better for their purposes. As I mentioned above, this version is calculated in a very different way from a previous one, so if you never tried it you can do it  here
Market Internals & InfoThis script provides various information on Market Internals and other related info. It was a part of the Daily Levels script but that script was getting very large so I decided to separate this piece of it into its own indicator. I plan on adding some additional features in the near future so stay tuned for those!
The script provides customizability to show certain market internals, tickers, and even Market Profile TPO periods. 
Here is a summary of each setting:
 NASDAQ and NYSE Breadth Ratio 
- Ratio between Up Volume and Down Volume for NASDAQ and NYSE markets. This can help inform about the type of volume flowing in and out of these exchanges.
 Advance/Decline Line (ADL) 
The ADL focuses specifically on the number of advancing and declining stocks within an index, without considering their trading volume.
Here's how the ADL works:
It tracks the daily difference between the number of stocks that are up in price (advancing) and the number of stocks that are down in price (declining) within a particular index.
The ADL is a cumulative measure, meaning each day's difference is added to the previous day's total.
If there are more advancing stocks, the ADL goes up.
If there are more declining stocks, the ADL goes down.
By analyzing the ADL, investors can get a sense of how many stocks are participating in a market move.
Here's what the ADL can tell you:
Confirmation of Trends: When the ADL moves in the same direction as the underlying index (e.g., ADL rising with a rising index), it suggests broad participation in the trend and potentially stronger momentum.
Divergence: If the ADL diverges from the index (e.g., ADL falling while the index is rising), it can be a warning sign. This suggests that fewer stocks are participating in the rally, which could indicate a weakening trend.
Keep in mind:
The ADL is a backward-looking indicator, reflecting past market activity.
It's often used in conjunction with other technical indicators for a more complete picture.
 TRIN Arms Index 
The TRIN index, also called the Arms Index or Short-Term Trading Index, is a technical analysis tool used in the stock market to gauge  market breadth and sentiment. It essentially compares the number of advancing stocks (gaining in price) to declining stocks (losing price) along with their trading volume.
Here's how to interpret the TRIN:
High TRIN (above 1.0): This indicates a weak market where declining stocks and their volume are dominating the market. It can be a sign of a potential downward trend.
Low TRIN (below 1.0): This suggests a strong market where advancing stocks and their volume are in control. It can be a sign of a potential upward trend.
TRIN around 1.0: This represents a more balanced market, where it's difficult to say which direction the market might be headed.
Important points to remember about TRIN:
It's a short-term indicator, primarily used for intraday trading decisions.
It should be used in conjunction with other technical indicators for a more comprehensive market analysis. High or low TRIN readings don't guarantee future price movements.
 VIX/VXN 
VIX and VXN are both indexes created by the Chicago Board Options Exchange (CBOE) to measure market volatility. They  differ based on the underlying index they track:
VIX (Cboe Volatility Index): This is the more well-known index and is considered the "fear gauge" of the stock market. It reflects the market's expectation of volatility in the S&P 500 index over the next 30 days.
VXN (Cboe Nasdaq Volatility Index): This is a counterpart to the VIX, but instead gauges volatility expectations for the Nasdaq 100 index over the coming 30 days. The tech-heavy Nasdaq can sometimes diverge from the broader market represented by the S&P 500, hence the need for a separate volatility measure.
Both VIX and VXN are calculated based on the implied volatilities of options contracts listed on their respective indexes. Here's a general interpretation:
High VIX/VXN: Indicates a high level of fear or uncertainty in the market, suggesting investors expect significant price fluctuations in the near future.
Low VIX/VXN: Suggests a more complacent market with lower expectations of volatility.
Important points to remember about VIX and VXN:
They are forward-looking indicators, reflecting market sentiment about future volatility, not necessarily current market conditions.
High VIX/VXN readings don't guarantee a market crash, and low readings don't guarantee smooth sailing.
These indexes are often used by investors to make decisions about portfolio allocation and hedging strategies.
 Inside/Outside Day 
This provides a quick indication of it we are still trading inside or outside of yesterdays range and will show "Inside Day" or "Outside Day" based upon todays range vs. yesterday's range.
 Custom Ticker Choices 
Ability to add up to 5 other tickers that can be tracked within the table
 Show Market Profile TPO 
This only shows on timeframes less than 30m. It will show both the current TPO period and the remaining time within that period.
 Table Customization 
Provided drop downs to change the text size and also the location of the table.
BTC Supply in Profits and Losses (BTCSPL) [AlgoAlpha]Description:
🚨The BTC Supply in Profits and Losses (BTCSPL) indicator, developed by AlgoAlpha, offers traders insights into the distribution of  INDEX:BTCUSD   addresses between profits and losses based on  INDEX:BTCUSD   on-chain data.
Features:
🔶Alpha Decay Adjustment: The indicator provides the option to adjust the data against Alpha Decay, this compensates for the reduction in clarity of the signal over time.
  
🔶Rolling Change Display: The indicator enables the display of the rolling change in the distribution of Bitcoin addresses between profits and losses, aiding in identifying shifts in market sentiment.
  
🔶BTCSPL Value Score: The indicator optionally displays a value score ranging from -1 to 1, traders can use this to carry out strategic dollar cost averaging and reverse dollar cost averaging based on the implied value of bitcoin.
  
🔶Reversal Signals: The indicator gives long-term reversal signals denoted as "▲" and "▼" for the price of bitcoin based on oversold and overbought conditions of the BTCSPL.
  
🔶Moving Average Visualization: Traders can choose to display a moving average line, allowing for better trend identification.
How to Use ☝️ (summary):
 
 Alpha Decay Adjustment: Toggle this option to enable or disable Alpha Decay adjustment for a normalized representation of the data.
 Moving Average: Toggle this option to show or hide the moving average line, helping traders identify trends.
 Short-Term Trend: Enable this option to display the short-term trend based on the Aroon indicator.
 Rolling Change: Choose this option to visualize the rolling change in the distribution between profits and losses.
 BTCSPL Value Score: Activate this option to show the BTCSPL value score, ranging from -1 to 1, 1 implies that bitcoin is extremely cheap(buy) and -1 implies bitcoin is extremely expensive(sell).
 Reversal Signals: Gives binary buy and sell signals for the long term
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
 
  
  
[blackcat] L1 Visual Volatility IndicatorHey there! Let's get into the details about dynamic rate indicators, how they work, their importance, usage, and benefits in trading.
Dynamic rate indicators are essential in trading as they help traders assess the volatility and risk level of the market, so they can make the right trading strategies and risk management measures.
When it comes to the importance of dynamic rate indicators, they provide critical information about market volatility, which is super important for traders. Traders can use this information to understand the risk level of the market, determine market stability and instability, and adjust trading strategies based on volatility changes.
Now let's talk about the usage of dynamic rate indicators. They have different usage times for different trading strategies and market environments. Generally, when market volatility is low, traders can take advantage of the opportunity to do trend tracking or oscillating trades. When market volatility is high, traders can take a more conservative approach, such as using stop-loss orders or reducing position sizes.
Using dynamic rate indicators can bring several benefits. First, they can help traders evaluate the risk level of the market, so they can develop suitable risk management strategies. Traders can adjust stop-loss and take-profit levels based on changes in volatility to control risk. Second, dynamic rate indicators provide information about market trends and price fluctuations, helping traders make wiser trading decisions. Traders can determine entry and exit points based on the signals of dynamic rate indicators. Lastly, dynamic rate indicators play a significant role in option pricing. Implied volatility helps traders evaluate option prices and market expectations for future volatility, so they can carry out option trades or hedging operations.
In conclusion, dynamic rate indicators are essential for traders as they help assess market volatility and risk levels, develop suitable trading strategies and risk management measures, and increase trading success and profitability. Remember that different indicators are suitable for different types of markets, so it is essential to choose the right one for your specific trading needs.
This indicator is a powerful tool for traders who want to stay ahead of the market and make informed trading decisions. By analyzing trends in volatility, this indicator can provide valuable insights into market sentiment and help traders identify potential trading opportunities.
One of the key advantages of the   L1 Visual Volatility Indicator is its ability to adapt to changing market conditions. The channel structure it constructs based on ATR characteristics provides a framework for tracking volatility that can be adjusted to different timeframes and asset classes. This allows traders to customize the indicator to their specific needs and trading style, making it a versatile tool for a wide range of trading strategies.
Another advantage of this indicator is its use of gradient colors to differentiate between Bullish and Bearish volatility. This provides a visual representation of market sentiment that can help traders quickly identify potential trading opportunities and make informed decisions. Additionally, the use of Fibonacci's long-term moving average to define the sideways consolidation area provides a reliable framework for identifying key levels of support and resistance, further enhancing the indicator's usefulness in trading.
In conclusion, the   L1 Visual Volatility Indicator is a powerful tool for traders looking to stay ahead of the market and make informed trading decisions. Its ability to adapt to changing market conditions and use of gradient colors to differentiate between Bullish and Bearish volatility make it a versatile and effective tool for a wide range of trading strategies. By incorporating this indicator into their trading arsenal, traders can gain valuable insights into market sentiment and improve their chances of success in the markets.
L&S Volatility Index Refurbished█ Introduction
This is my second version of the L&S Volatility Index, hence the name "Refurbished".
The first version can be found at this link:
The reason I released a separate version is because I rewrote the source code from scratch with the aim of both improving the indicator and staying as close as possible to the original concept.
I feel that the first version was somewhat exotic and polluted in relation to the indicator originally described by the authors.
In short, the main idea remains the same, however, the way of presenting the result has been changed, reiterating what was said.
█ CONCEPTS
The L&S Volatility Index measures the volatility of price in relation to a moving average.
The indicator was originally described by Brazilian traders Alexandre Wolwacz (Stormer) and Fábio Figueiredo (Vlad) from L&S Educação Financeira.
Basically, this indicator can be used in two ways:
1. In a mean reversion strategy, when there is an unusual distance from it;
2. In a trend following strategy, when the price is in an acceptable region.
As an indicator of volatility, the greatest utility is shown in first case.
This is because it allows identifying abnormal prices, extremely stretched in relation to an average, including market crashes.
 How the calculation is done: 
First, the distance of the price from a given average in percentage terms is measured.
Then, the historical average volatility is obtained.
Finally the indicator is calculated through the ratio between the distance and the historical volatility.
According to the description proposed by the creators, when the L&S Volatility Index is above 30 it means that the price is "stretched".
The closer to 100 the more stretched.
When it reaches 0, it means the price is on average.
█ What to look for
Basically, you should look at non-standard prices.
How to identify it?
When the oscillator is outside the Dynamic Zone and/or the Fixed Zone (above 30), it is because the price is stretched.
Nothing on the market is guaranteed.
As with the RSI, it is not because the RSI is overbought or oversold that the price will necessarily go down or up.
It is critical to know when NOT to buy, NOT to sell or NOT to do anything.
It is always important to consider the context.
█ Improvements
The following improvements have been implemented.
It should be noted that these improvements can be disabled, thus using the indicator in the "purest" version, the same as the one conceived by the creators.
Resources:
1. Customization of limits and zones:
2. Customization of the timeframe, which can be different from the current one.
3. Repaint option (prints the indicator in real time even if the bar has not yet closed. This produces more signals).
4. Customization of price inputs. This affects the calculation.
5. Customization of the reference moving average (the moving average used to calculate the price distance).
6. Customization of the historical volatility calculation strategy.
- Accumulated ATR: calculates the historical volatility based on the accumulated ATR.
- Returns: calculates the historical volatility based on the returns of the source.
Both forms of volatility calculation have their specific utilities and applications.
Therefore, it is worthwhile to have both approaches available, and one should not necessarily replace the other.
Each method has its advantages and may be more appropriate in different contexts.
The first approach, using the accumulated ATR, can be useful when you want to take into account the implied volatility of prices over time,
reflecting broader price movements and higher impact events. It can be especially relevant in scenarios where unexpected events can drastically affect prices.
The second approach, using the standard deviation of returns, is more common and traditionally used to measure historical volatility.
It considers the variability of prices relative to their average, providing a more general measure of market volatility.
Therefore, both forms of calculation have their merits and can be useful depending on the context and specific analysis needs.
Having both options available gives users flexibility in choosing the most appropriate volatility measure for the situation at hand.
 * When choosing "Accumulated ATR", if the indicator becomes difficult to see, there are 3 possibilities:
a) manually adjust the Fixed Zone value;
b) disable the Fixed Zone and use only the Dynamic Zone;
c) normalize the indicator. 
7. Signal line (a moving average of the oscillator).
8. Option to normalize the indicator or not.
9. Colors to facilitate direction interpretation.
Since the L&S is a volatility indicator, it does not show whether the price is rising or falling.
This can sometimes confuse the user.
That said, the idea here is to show certain colors where the price is relative to the average, making it easier to analyze.
10. Alert messages for automations.
Magic LevelsPS MODS :   This indicator calculate the levels based on IndiaVIX, volumes on FnO, cofficient and factor to reach on the level. Hope this can help you to understand the functionality of this Indicator 
This indicator is used for draw levels or "Magic Levels/Lines" for Nifty, Bank Nifty and FnO futures, based on volatility (indiavix) calculations. This powerful tool is designed to provide insights into market volatility and assist traders and investors in making informed decisions in the Indian stock market.
As of now the  indicator draws levels only on Bank Nifty and Nifty.  Soon we'll publish the next update supporting all FnO Futures and stocks. 
The India VIX, often referred to as the "Fear Index," is a popular measure of market volatility and investor sentiment. It quantifies the market's expectations of near-term volatility by calculating the implied volatility of NIFTY options. The VIX Levels Indicator utilizes these calculations to draw key levels on price charts, enhancing traders' understanding of potential market movements.
The indicator's main function is to identify critical support and resistance levels derived from IndiaVIX data. We considered to volatility of all the FnO instruments and calculated the mean value keeping the day into consideration while performing the calculations. These levels serve as significant reference points that can help traders gauge potential price reversals, breakouts, and trends. By integrating the Magic Levels Indicator into their analysis, traders can gain a comprehensive view of market dynamics and improve their timing for entering or exiting positions.
Traders can customize the VIX Levels Indicator to suit their preferences, adjusting parameters such as time period where the default is 1 day. This flexibility allows traders to adapt the indicator to different trading strategies and timeframes. Whether a trader focuses on intraday scalping or swing trading, the Magic Levels Indicator can be a valuable addition to their technical analysis toolkit.
True Range/Expected MoveThis indicator plots the ratio of True Range/Expected Move of SPX. True Range is simple the high-low range of any period. Expected move is the amount that SPX is predicted to increase or decrease from its current price based on the current level of implied volatility. There are several choices of volatility indexes to choose from. The shift in color from red to green is set by default to 1 but can be adjusted in the settings. 
Red bars indicate the true range was below the expected move and green bars indicate it was above. Because markets tend to overprice volatility it is expected that there would be more red bars than green.  If you sell SPX or SPY option premium red days tend to be successful while green days tend to get stopped out. On a 1D chart it is interesting to look at the clusters of bar colors.
Normal Distribution CurveThis Normal Distribution Curve is designed to overlay a simple normal distribution curve on top of any TradingView indicator. This curve represents a probability distribution for a given dataset and can be used to gain insights into the likelihood of various data levels occurring within a specified range, providing traders and investors with a clear visualization of the distribution of values within a specific dataset. With the only inputs being the variable source and plot colour, I think this is by far the simplest and most intuitive iteration of any statistical analysis based indicator I've seen here!
Traders can quickly assess how data clusters around the mean in a bell curve and easily see the percentile frequency of the data; or perhaps with both and upper and lower peaks identify likely periods of upcoming volatility or mean reversion. Facilitating the identification of outliers was my main purpose when creating this tool, I believed fixed values for upper/lower bounds within most indicators are too static and do not dynamically fit the vastly different movements of all assets and timeframes - and being able to easily understand the spread of information simplifies the process of identifying key regions to take action.
The curve's tails, representing the extreme percentiles, can help identify outliers and potential areas of price reversal or trend acceleration. For example using the RSI which typically has static levels of 70 and 30, which will be breached considerably more on a less liquid or more volatile asset and therefore reduce the actionable effectiveness of the indicator, likewise for an asset with little to no directional volatility failing to ever reach this overbought/oversold areas. It makes considerably more sense to look for the top/bottom 5% or 10% levels of outlying data which are automatically calculated with this indicator, and may be a noticeable distance from the 70 and 30 values, as regions to be observing for your investing.
This normal distribution curve employs percentile linear interpolation to calculate the distribution. This interpolation technique considers the nearest data points and calculates the price values between them. This process ensures a smooth curve that accurately represents the probability distribution, even for percentiles not directly present in the original dataset; and applicable to any asset regardless of timeframe. The lookback period is set to a value of 5000 which should ensure ample data is taken into calculation and consideration without surpassing any TradingView constraints and limitations, for datasets smaller than this the indicator will adjust the length to just include all data. The labels providing the percentile  and average levels can also be removed in the style tab if preferred.
Additionally, as an unplanned benefit is its applicability to the underlying price data as well as any derived indicators. Turning it into something comparable to a volume profile indicator but based on the time an assets price was within a specific range as opposed to the volume. This can therefore be used as a tool for identifying potential support and resistance zones, as well as areas that mark market inefficiencies as price rapidly accelerated through. This may then give a cleaner outlook as it eliminates the potential drawbacks of volume based profiles that maybe don't collate all exchange data or are misrepresented due to large unforeseen increases/decreases underlying capital inflows/outflows.
Thanks to @ALifeToMake, @Bjorgum, vgladkov on stackoverflow (and possibly some chatGPT!) for all the assistance in bringing this indicator to life. I really hope every user can find some use from this and help bring a unique and data driven perspective to their decision making. And make sure to please share any original implementaions of this tool too! If you've managed to apply this to the average price change once you've entered your position to better manage your trade management, or maybe overlaying on an implied volatility indicator to identify potential options arbitrage opportunities; let me know! And of course if anyone has any issues, questions, queries or requests please feel free to reach out! Thanks and enjoy.
TTF SMC ToolkitGreetings and welcome to another community indicator from TTF!  This indicator is our attempt to build a suite of tools for use in  Smart Money Concepts (SMC)  and  Price Action   style trading strategies.  If you aren't familiar with these models, we'd encourage you to do some independent research on them to find out how to properly use these models and the tools included in this indicator.
 Important!  To utilize all features of this indicator fully, please select "Bring to front" under the visual order menu. 
All of the fundamental concepts of this toolkit revolve around smart money concepts and price action trading, here are some key concepts of this indicator's different features:
 
   DR (defining range):  This is a technique that uses the candle wicks (high and low of price) during a specific hour of a trading session to create a trading framework to help visualize order flow. When price breaks the high of the range, there is a very high statistical probability based on price action history, that the bottom of the range won't be traded past for the rest of that trading session. Vice versa for price breaking the low of the range.
   IDR (implied defining range):  Similar to DR above, this method uses the candle body (open and close of price) of price during a specific hour of a trading session to help create a trading framework to help visualize order flow.
   Equilibrium:  Any range can be objectively divided into a top and bottom half. The equilibrium represents the 50% mark between a range high and a range low. It is most often plotted with a fibonacci tool.
   Fair Pricing Model:  This is a hypothesis postulating that "big money" (a.k.a. "market movers", "institutional investors", etc.) seeks to buy in the discount area of any given price range, and sell in the premium area of that same range.  See  DR  and  IDR  for examples of possible techniques to help identify and define the price range to apply to this model.
   Non-discretionary Levels:  This is essentially a fancy way of saying that the levels drawn by this indicator are strictly rules-based, and will always behave in the following manner:
1. For a given trading session, once the levels are drawn, they will remain constant throughout the rest of the trading session, no matter what price does afterwards.  
2. The levels drawn will be drawn using the same rules every single day, without human bias or discretion.
   Williams Fractals:  This fractal pattern is based upon a specific candlestick pattern sequence.  For a bullish Williams fractal, you will see X number of falling candles, followed by X number of rising candles.  The candle at the fulcrum (bottom or top of the fractal structure) is where the fractal will print. a bearish fractal will be the inverse of this pattern.  Note that this is a lagging indicator as it takes X candles after the fulcrum candle for the fractal pattern to complete.  In most common cases, the value of X is 2 (2 falling candles, the fulcrum candle, and 2 rising candles) for a total of 5 candles to complete the fractal pattern.   You can find more information in this article, which describes this type of fractal:   www.investopedia.com 
   Fractal Wyckoff Accumulation/Distribution:  The Wyckoff Method is used by investors and traders to determine market trends, select investments, and time the placement of trades. It can help them identify the times at which big players are accumulating (or distributing) positions in a security. Fractal Wyckoff accumulation/distribution refers to watching the process occur on a lower timeframe, from a higher timeframe. For more information on the Wycoff Theory, you can see this article:  www.investopedia.com 
 
Now that we've covered some terms and definitions, let's cover the 4 major components included in this indicator.
ICT NY Midnight/NY Open (08:30 NY time):
  
 
  The first piece of the indicator being displayed here is the ICT midnight and 8:30am NY price lines. These lines can be used as non-discretionary levels, or as intra-day premium/discount as part of a fair-pricing model.
 
DR/IDR:
  
 
  Initially developed by TheMas7er, DR stands for defining range, and it highlights a range during high volume periods of the day that can act as non-discretionary levels, with very high historical accuracy.
 
Williams Fractals
  
 
  Williams Fractals denote fractal market structure, and can be used to mechanically create ranges and view potential liquidity pools in a similar manner to using pivot points.
 
Triple M:
  
 
  This tool highlights wicks that represent fractal Wyckoff accumulation and distribution. This pattern can be used an a potential entry trigger when paired with other confluences.
 
And now that we've covered the core concepts/definitions and an overview of each major component of this indicator, it's time to bring everything together by giving an example of how these tools can be used to define a strategy.
 
  Before NYSE open, turn on the price lines to get a sense of whether price is in the premium or discount of the daily fair-pricing model. 
  Once NYSE market opens, wait for DR/IDR to establish and break its range. 
  If the bias from DR/IDR aligns with the fair pricing model from the ICT price lines, you could look for a fractal Wyckoff entry during a retracement.
 
Disclaimer:  This strategy is provided purely as an example and has not been tested by us.  Please do your own due diligence by thoroughly backtesting and forward-testing on a demo account befor using any proposed strategy live market with real money!
 Important!  To utilize all features of this indicator fully, please select "Bring to front" under the visual order menu.
5EMA BollingerBand Nifty Stock Scanner
 What ?  
We all heard about (well: over-heard) 5-EMA strategy. Which falls into the broader category of  mean reversal  type of trading setup. 
What is mean reversal?
Price (or any time series, in fact) tries to follow a  mean . Whenever price diverges from the mean it tries to meet it back. 
It is empirically observed by some traders (I honestly don't know who first time observed it) that in Indian context specially, 5 Exponential Moving Average (5-EMA) works pretty good as that mean. 
So whenever price moves away from that 5-EMA, it ultimately comes back and attain total nirvana :) Means: if price moved way higher than the 5EMA without touching it, then price will correct to meet it's 5-EMA and if price moved way lower, it will be uplifted to meet it's 5-EMA. Funny - but it  works !
Now there are already enough social media coverage on this 5-EMA strategy/setup. Even TradingView has some excellent work done on these setups. Kudos to all those great souls. 
So when we came to know about this, we were thinking what we should do for the community. Because it is well cover topic (specially in Indian context). Also, there are public indicators. 
Then we thought why not come up with a scanner which will scan all the Nifty-50 constituent stocks and find out on the fly, real-time which all stocks are matching this 5-EMA setup and causing a Buy/Sell trade recommendation.
Hence here we are with the first version of our first scanner on the 5EMA setup (well it has some more  masala  than merely a 5-EMA setup).
 Why? 
Parts of why is already covered up. 
Now instead of blindly following 5-EMA setup, we added the Bollinger band as well. Again: it's also not new. There are enough coverage in social media about the 5-EMA+BB strategy/setup. We mercilessly borrowed from all of these.
Suppose you have an indicator. 
Now you apply the indicator in your chart. And then you need to (rock) and roll through your watchlist of Nifty-50 stocks (note: TradingView has no default watchlist of Nifty-50 stock by default -  you have to create one custom watchlist to list all manually) to find out which all are matching the setup, need to take a note about the trade recomendations (entry, SL, target) and other stuffs like VWAP, Volume, volatility (Bollinger Band Width).
Not any more.
This scanner will track all the Nifty-50 stocks (technically: 40 stocks other than Banking stocks) and provide which one to Buy or Sell (if any), what's the entry, SL, target, where is the VWAP of the day, what's the picture in volume (high, low, rising, falling) and the implied volatility (using Bolling band width). Also it has a naive alerting mechanism as well.
In fact the code is there to monitor the (Future) OI also and all the OI drama (OI vs price and all the 4 stuffs like long build up, long unwinding, short covering, short buildup). But unfortunately, due to some limitations of the TradingView (that one can not monitor more than 40 `ta.security` call) we have to comment out the code. If you wish you can monitor only 20 stocks and enable the OI monitoring also (20 for stocks + 20 for their OI monitoring .. total 40 `ta.security` call).
  How?  
To know the divergence from 5-EMA we just check if the high of the candle (on closing) is below the 5-EMA. Then we check if the closing is inside the Bollinger Band (BB). That's a Buy signal. SL: low of the candle, T: middle and higher BB.
Just opposite for selling. 5-EMA low should be above 5-EMA and closing should be inside BB (lesser than BB higher level). That's a Sell signal. SL: high of the candle, T: middle and lower BB.
Along with we compare the current bar's volume with the last-20 bar VWMA (volume weighted moving average) to determine if the volume is high or low.
Present bar's volume is compared with the previous bar's volume to know if it's rising or falling.
VWAP is also determined using `ta.vwap` built-in support of TradingView. 
The Bolling Band width is also notified, along with whether it is rising or falling (comparing with previous candle). 
Simple, but effective.
  Customization  
As usual the EMA setup (5 default), the BB setup (20 SMA with 1.5 standard deviation), we provided option wherther to include or exclude BB role in the 5-EMA setup (as we found out there are two schools of thought .. some people use BB some don't. Lets make all happy :))
We also provide options to choose other symbols using Settings if they wish so. We have the default 40 non banking Nifty stocks (why non-banking? - Bank Nifty is in ATH :) .. enough :)). But if user wishes can monitor others too (provided the symbol is there in TradingView).
Although we strongly recommend the  timeframe as 30 minutes  , you can choose what's fit you most.
The output of the scanner is a table. By default the table is placed in the right-bottom (as we are most comfortable with that). However you can change per your wish. We have the option to choose that.
  What is unique in it ?  
This is more of an indicator. This is a scanner (of Nifty-50 stocks). So you can apply (our recommendation is in 30m timeframe) it to any chart (does not matter which chart it is) and it will show every 30 mins (which is also configurable) which all stocks (along with trade levels) to Buy and Sell according to the setup. 
It will ease your trading activity. 
You can concentrate only on the execution, the filtering you can leave it to this one.
  Limitations  
 
  There is a build in limitation of the TradingView platform is that one can call only upto 40 securities API. Not beyond that. So naturally we are constraint by that. Otherwise we could monitor 190 Nifty F&O stocks itself. 
  30m is the recommended timeframe. In very lower (say 5m) this script tends to go out of heap (out of memory). Please note that also.
 
  How to trade using this?  
  Put any chart in 30m (recommended) timeframe.
  Apply this screener from Indicators (shortcut to launch indicators is just type / in your keyboard).
  This will provide the Buy (shown in green color) or Sell (shown in red color) recommendations in a table, at every 30m candle closing.
  Note the volume and BB width as well.
   Wait for at least 2 5-minutes candles to close above/below the recommended level . 
  Take the trade with the SL and target mentioned. 
  Mentions  
 
  @QuantNomad. The whole implementation concept we mercilessly borrowed from him, even some of his code snippet we took it (after asking him through one of his videos comment section and seeking explicit permission which he readily granted within an hour). Thank You sir @QuantNomad. Indebted to you. 
  Monika (Rawat) ji: for reviewing, correcting, providing real time examples during live market hours, often compromising her own trading activities, about the effectiveness and usefulness of this setup. Thank You madam ji. Indebted to you. 
  There are innumerable contents in social media about this. Don't even know whom all we checked. Thanks to all of them.
  
Happy Trading (in stocks - isn't enough of Indices already?)
  Disclaimer  
  This piece of software does not come up with any warrantee or any rights of not changing it over the future course of time.
  We are not responsible for any trading/investment decision you are taking out of the outcome of this indicator.
Options Price CalculatorIn the team, we continue to explore and expand the boundaries of TradingView. 
For now, there is not much an options trader can do with options in TradingView. 
We wanted to change that and created a simple option pricer. 
You can set up in parameters a set of strikes, implied volatility, and days to expiry. 
The indicators will take a risk-free rate from US01Y and the underlying price from your current chart. 
It will compute prices and greeks for both put and call options. 
Thanks to @MUQWISHI for helping code it.
Disclaimer
Please remember that past performance may not indicate future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
L_Trade_BoundariesLibrary   "L_Trade_Boundaries" 
Trade Boundaries suggest a strength of the security with respect to previous lows. The "L" implies library, and the trade boundaries implies it could be utilized for price strengths. Though, this should not be used as a single parameter to trade wildly. This library can be imported to a custom indicator to utilized the custom functions. There are moving averages attached at the bottom right of the canvas (overlay) to benchmark the closing price with respect to Moving Averages: 20, 28, and 200 (i.e., "D" if timeframe == "D") respectively. The Volume Indicator located at the top of the canvas is a default function (function already made by the trading view) this shows the volume with respect to the selected time frame. All of the indicators tell a story with regard to the security price (in strength terms).
What is available in this Library?
Litmus Color
> This is a function will change color of two numbers, if the first number is less than the second, the color will be red; otherwise, the color will be green.
Lister
> This is simply using an array by revisiting previous lows and plotting to the current time frame (i.e., "D"). There is a custom frequency input for the function, it will go back as much as the implied/specified length.  Note:    I am still learning how to use array, use this function with discretion.   I would also appreciate if there are suggestions commented below.
Moving Average
> This function invokes three moving average metrics: 20, 28, and 200  respectively. The values are displayed at the bottom right of the canvas. 
Timeframe Highlight
> This function checks for the input timeframe (i.e., "D", "W", "M") and if the time frame happens to be the same, it will give a "true" result. This result can be utilized for highlighting the positive results on the canvas (the red lines).
 litmus_color(value1, value2) 
  Parameters:
     value1 
     value2 
 lister(length) 
  Parameters:
     length 
 moving_averages() 
 timeframe_highlight(timeframe) 
  Parameters:
     timeframe
Historical Federal Fund Futures CurveUse this indicator to plot the federal funds futures implied rates term structure against historical curves
Based upon the work of @BarefootJoey, @longfiat, @OpptionsOnly






















