time_and_sessionA library that provides utilities for working with trading sessions and time-based conditions. Functions include session checks, date range checks, day-of-week matching, and session high/low calculations for daily, weekly, monthly, and yearly timeframes. This library streamlines time-related calculations and enhances time-based strategies and indicators.
Library   "time_and_session" 
Provides functions for checking time and session-based conditions and retrieving session-specific high and low values.
 is_session(session, timeframe, timezone) 
  Checks if the current time is within the specified trading session
  Parameters:
     session (string) : The trading session, defined using input.session()
     timeframe (string) : The timeframe to use, defaults to the current chart's timeframe
     timezone (string) : The timezone to use, defaults to the symbol's timezone
  Returns: A boolean indicating whether the current time is within the specified trading session
 is_date_range(start_time, end_time) 
  Checks if the current time is within a specified date range
  Parameters:
     start_time (int) : The start time, defined using input.time()
     end_time (int) : The end time, defined using input.time()
  Returns: A boolean indicating whether the current time is within the specified date range
 is_day_of_week(sunday, monday, tuesday, wednesday, thursday, friday, saturday) 
  Checks if the current day of the week matches any of the specified days
  Parameters:
     sunday (bool) : A boolean indicating whether to check for Sunday
     monday (bool) : A boolean indicating whether to check for Monday
     tuesday (bool) : A boolean indicating whether to check for Tuesday
     wednesday (bool) : A boolean indicating whether to check for Wednesday
     thursday (bool) : A boolean indicating whether to check for Thursday
     friday (bool) : A boolean indicating whether to check for Friday
     saturday (bool) : A boolean indicating whether to check for Saturday
  Returns: A boolean indicating whether the current day of the week matches any of the specified days
 daily_high(source) 
  Returns the highest value of the specified source during the current daily session
  Parameters:
     source (float) : The data series to evaluate, defaults to high
  Returns: The highest value during the current daily session, or na if the timeframe is not suitable
 daily_low(source) 
  Returns the lowest value of the specified source during the current daily session
  Parameters:
     source (float) : The data series to evaluate, defaults to low
  Returns: The lowest value during the current daily session, or na if the timeframe is not suitable
 regular_session_high(source, persist) 
  Returns the highest value of the specified source during the current regular trading session
  Parameters:
     source (float) : The data series to evaluate, defaults to high
     persist (bool) : A boolean indicating whether to retain the last value outside of regular market hours, defaults to true
  Returns: The highest value during the current regular trading session, or na if the timeframe is not suitable
 regular_session_low(source, persist) 
  Returns the lowest value of the specified source during the current regular trading session
  Parameters:
     source (float) : The data series to evaluate, defaults to low
     persist (bool) : A boolean indicating whether to retain the last value outside of regular market hours, defaults to true
  Returns: The lowest value during the current regular trading session, or na if the timeframe is not suitable
 premarket_session_high(source, persist) 
  Returns the highest value of the specified source during the current premarket trading session
  Parameters:
     source (float) : The data series to evaluate, defaults to high
     persist (bool) : A boolean indicating whether to retain the last value outside of premarket hours, defaults to true
  Returns: The highest value during the current premarket trading session, or na if the timeframe is not suitable
 premarket_session_low(source, persist) 
  Returns the lowest value of the specified source during the current premarket trading session
  Parameters:
     source (float) : The data series to evaluate, defaults to low
     persist (bool) : A boolean indicating whether to retain the last value outside of premarket hours, defaults to true
  Returns: The lowest value during the current premarket trading session, or na if the timeframe is not suitable
 postmarket_session_high(source, persist) 
  Returns the highest value of the specified source during the current postmarket trading session
  Parameters:
     source (float) : The data series to evaluate, defaults to high
     persist (bool) : A boolean indicating whether to retain the last value outside of postmarket hours, defaults to true
  Returns: The highest value during the current postmarket trading session, or na if the timeframe is not suitable
 postmarket_session_low(source, persist) 
  Returns the lowest value of the specified source during the current postmarket trading session
  Parameters:
     source (float) : The data series to evaluate, defaults to low
     persist (bool) : A boolean indicating whether to retain the last value outside of postmarket hours, defaults to true
  Returns: The lowest value during the current postmarket trading session, or na if the timeframe is not suitable
 weekly_high(source) 
  Returns the highest value of the specified source during the current weekly session. Can fail on lower timeframes.
  Parameters:
     source (float) : The data series to evaluate, defaults to high
  Returns: The highest value during the current weekly session, or na if the timeframe is not suitable
 weekly_low(source) 
  Returns the lowest value of the specified source during the current weekly session. Can fail on lower timeframes.
  Parameters:
     source (float) : The data series to evaluate, defaults to low
  Returns: The lowest value during the current weekly session, or na if the timeframe is not suitable
 monthly_high(source) 
  Returns the highest value of the specified source during the current monthly session. Can fail on lower timeframes.
  Parameters:
     source (float) : The data series to evaluate, defaults to high
  Returns: The highest value during the current monthly session, or na if the timeframe is not suitable
 monthly_low(source) 
  Returns the lowest value of the specified source during the current monthly session. Can fail on lower timeframes.
  Parameters:
     source (float) : The data series to evaluate, defaults to low
  Returns: The lowest value during the current monthly session, or na if the timeframe is not suitable
 yearly_high(source) 
  Returns the highest value of the specified source during the current yearly session. Can fail on lower timeframes.
  Parameters:
     source (float) : The data series to evaluate, defaults to high
  Returns: The highest value during the current yearly session, or na if the timeframe is not suitable
 yearly_low(source) 
  Returns the lowest value of the specified source during the current yearly session. Can fail on lower timeframes.
  Parameters:
     source (float) : The data series to evaluate, defaults to low
  Returns: The lowest value during the current yearly session, or na if the timeframe is not suitable
Cari dalam skrip untuk "weekly"
Futures Auto Levels [NariCapitalTrading]Futures Auto Levels Indicator 
 Introduction 
The "Futures Auto Levels" (FAL) indicator shows the previous day's levels, weekly open, high, low, and the Initial Balance Range (IBR).
 Indicator Components 
The FAL indicator comprises the following components:
Previous Day's Levels: These include the open, high, low, and close of the previous trading day. They are represented on the chart by lines and labels, helping to identify significant price levels from the prior session.
Weekly Open, High, Low: These levels represent the open, high, and low prices of the current trading week.
Initial Balance Range (IBR): The IBR is calculated based on the price range during the first 60 minutes of the trading day. It helps identify initial trading range and potential breakout levels.
 How to Use the Indicator 
 1. Previous Day's Levels: 
Monitor the previous day's open, high, low, and close to identify key support and resistance levels.
Use these levels to gauge market sentiment and potential price reversals.
 2. Weekly Open, High, Low: 
Pay attention to the weekly open, high, and low to understand the market's behavior within the weekly timeframe.
These levels can act as reference points for setting profit targets and stop-loss orders.
 3. Initial Balance Range (IBR): 
Watch for price movements within the IBR to identify potential trading opportunities.
Breakouts above or below the IBR may signal the beginning of a new trend or continuation of the current trend.
 Suggested/Potential Strategies 
 Reversal Trading:  Look for price reversals around previous day's levels, especially when they coincide with other technical indicators or significant support/resistance zones.
 Trend Following:  Follow the trend by trading breakouts above/below the IBR or weekly high/low levels. Use trailing stops to capture profits while the trend remains intact.
 Range Trading:  Trade within the IBR when the market is consolidating. Buy near the IBR low and sell near the IBR high, with tight stop-loss orders to manage risk.
 Conclusion 
The Futures Auto Levels indicator is designed to help incorporate levels into trading analysis and trading strategies to improve profitability and consistency.
Algoflow's Levels PlotterAlgoflow's Levels Plotter - Indicator
 Release Date: Jan. 15, 2024
Release version: v3 r1
Release notes date: Jan. 15, 2024
 Overview 
Parses user's input of levels to be plotted and labeled on the chart for NQ & ES futures
 Features 
 Quick plotting of predetermined price levels.
 - Type or copy from another source of values in a predetermined output format.
 Supports separate line plotting for Weekly, OVN and RTH values
 - Plot only Weekly, OVN or RTH levels, or all
- Configure colors separately for Inflection Points, Weekly, OVN & RTH levels
- Shift/place price labels separately to easily identify levels
 User Impacts of Changes 
 Requires users to remove previous version and re-add indicator "Algoflow's Levels Plotter", then re-add values.  Colors and shift values will need to be re-entered and/or reconfigured
 Support 
Questions, feedbacks, and requests are welcomed.  Please feel free to use Comments or direct private message via TradingView. 
 Quick usage notes: 
The indicator allows you to enter data for both ES & NQ at the same time.  This is useful in single chart window/layout situations, like viewing on the phone.  When you switch between futures, the data is already there.
If you leave the entries blank, nothing will be plotted.  This is useful if you want to have separate charts for ES & NQ.  So you can just enter only the relevant data of either.
As an indicator, input values are saved within it, until it is removed from the chart.  Input for one chart will not update other charts of the same ticker, even in the same layout.  
The easiest and quickest way to share the inputs across all charts and layouts is to use the Indicator Templates feature.
- After input values are entered (for both ES & NQ futures) via the indicator's Settings, select ""Save as Default"".
- Click on ""Indicator Templates"" (4 squares icon), and click on ""Save Indicator template...""
- Remove the previous version of the indicator in other charts.
- Click on ""Indicator Templates"" icon, and select the newly created template.  Repeat this for other charts of the same futures ticker
The labels can be disabled in settings > Style tab.  Use the Inputs tab to configure orientation (left or right of current bar on chart), and how much spacing from the current (in distance of bars)
 Format example: 
 Primary directional inflection point: 1234
For Bulls:  1244.25, 1254, 1264.50
For Bears:  1224, 1214, 1204
 Changes 
v3 r1 - Fixed erroneous default values in Weekly input sections. Added options to en/disable display of each set (session) of levels. Default label text size to normal, from small.
- Jan 15, 2024
v2 r9 - Added support for USTEC & US500.
- Dec. 10, 2023
v2 r8 - Added configuration features for users to modify the labels' text colors and size. Simplified code further by moving inputs processing modules into a single user function.
- Oct. 31, 2023
v2 r7 - Added support for the micro NQ & ES.  Modified to ignore string case in inputs
- Oct 18, 2023
v2 r4 - Added support of weekly lines and labels features.  Began the process of optimizing/simplifying code
- Oct. 15, 2023
v2 r3 - Made Inflection Point levels' colors configurable
- Oct. 04, 2023
v2 r2 - Removed comments & debug codes from development build revision #518
- Oct. 04, 2023
v2 r1 - Released from development revision #518.  Major rewrite to fix previous and overlapping plots of lines and labels.
- Oct. 04, 2023
v1 r2 - First release of indicator
- Oct. 02, 2023
Sunday Vertical Lines (00:00 NY)Short Description: 
Experience enhanced chart clarity with our "Sunday Midnight Vertical Lines" indicator. This tool elegantly marks every Sunday at 00:00 New York time, providing traders with a clear reference point for weekly market resets and potential strategy adjustments.
 Detailed Description: 
Purpose:
The "Sunday Midnight Vertical Lines" indicator is designed to help traders and market analysts visually segment their charts based on weeks. By clearly demarcating the start of each trading week, this tool aids in performing weekly analyses, understanding market rhythms, and preparing for the week ahead.
Key Features:
Automatic Time Zone Adjustment: The indicator adjusts for New York time, ensuring accuracy regardless of the user's local time zone.
Visual Clarity: Draws a distinct red vertical line at 00:00 each Sunday, offering a stark contrast against typical chart elements.
Performance Optimized: Efficiently coded to maintain chart performance, even on data-rich interfaces.
User-Friendly: No complex settings required. The tool works immediately upon addition to the chart, facilitating ease of use for traders of all skill levels.
Use Cases:
Weekly Market Analysis: Ideal for traders who conduct weekly market reviews, as it visually segments the chart at the beginning of each trading week.
Strategic Planning: Useful for planning and adjusting weekly trading strategies.
Historical Reference: Assists in historical market analysis by providing clear reference points for the start of each week.
Conclusion:
Whether you're a day trader, swing trader, or long-term investor, the "Sunday Midnight Vertical Lines" indicator is a simple yet powerful tool to enhance your chart analysis. It offers a clear, visual reference point for the start of each trading week, aiding in strategy development and market understanding.
[KenStrat] - Catching trend for the PipsDescription:
The "  - Catching trend for the Pips" indicator is designed to help traders identify potential trend reversal points and capture significant price movements, with a focus on both daily and weekly perspectives.
**Friday Close Analysis:**
This component of the indicator concentrates on the Friday close of each week. The script displays visual elements on the daily chart exclusively. Specifically, it marks key price levels, providing insights into the closing position relative to the week's range. The indicator categorizes the closing price into three zones: above 66%, between 33% and 66%, and below 33%. This distinction aids traders in assessing the strength and directionality of the market at the end of the week. The displayed label offers a concise summary of the Friday's closing behavior, aiding in quick trend analysis.
**Weekly Trend Verification:**
The second part of the indicator focuses on verifying the weekly trend. By identifying the highest highs and lowest lows of the past two weeks, the script determines whether the current price action exhibits a bullish or bearish trend. The visualization on the chart helps traders assess the broader trend direction and make informed decisions based on the prevailing market sentiment. The label dynamically updates to indicate whether the overall trend is bullish, bearish, or neutral.
**Key Features:**
- Differentiates between Friday closing price zones for trend assessment.
- Weekly trend verification based on highest highs and lowest lows.
- Visual representation of trend conditions on the chart.
- Dynamic labels for quick interpretation of trend strength and direction.
- Exclusively designed for daily and weekly timeframes.
The "  - Catching trend for the Pips" indicator provides a comprehensive tool for traders seeking to capture and analyze trend movements efficiently, allowing for informed decision-making in the dynamic Forex market.
ICT True Day Range [MK]The indicator displays the following:
Vertical line day separator from 00:00 to 00:00 EST
High/Low lines for the days true range from 00:00 to EOD
Opening line from 00:00 EST to EOD
Opening line from 08:30 EST to EOD
Weekly Opening line from Sunday open at 18:00 EST to last bar in the week
Monday range high/low/mid line, which can be extended to EOW
Text displaying Days of the Week
All functions can be fully customized regarding color/style and line width.
Below shows image of indicator with day separator: (it didn't show on the main chart despite being enabled?)
All of the above are to be used to give the user all the tools necessary to analyze the following concepts which can be studied on ICTs you tube channel:
Weekly profile, eg, has the weekly manipulated below the weekly open to then rise the rest of the week?
Daily profile, eg, has the day manipulated below the daily open (00:00 EST) to then rise the rest of the day?
Daily liquidity grab, eg has the current day taken PDH/PDL at the start of the current day?
Daily targets, eg will the current day end up taking liquidity from the PDH/PDL?
Monday range, will Mondays high/low range act as the accumulation phase of the weekly AMD profile?
Tuesday/Wednesday/Thursday/Friday reversal, eg, does a day of the week line up with a HTF target and a high volatility news event which could see price reverse after the manipulation phase of the weekly AMD profile?
In strong trending markets, will the 0830 open line be used in the NY session as manipulation reference in the same manner as the 00:00 line is normally used?
The above examples of how the indicator 'could' be used are not the only ways to use the indicator.
The indicator is by no means a trading strategy on its own. Users should be fully aware of ICT concepts and have performed extensive back-testing before using the indicator with live accounts.
RVol LabelThis Code is update version of Code Provided by @ssbukam, Here is Link to his original Code and review the Description
  
Below is Original Description
1. When chart resolution is Daily or Intraday (D, 4H, 1H, 5min, etc), Relative Volume shows value based on DAILY. RVol is measured on daily basis to compare past N number of days.
2. When resolution is changed to Weekly or Monthly, then Relative Volume shows corresponding value. i.e. Weekly shows weekly relative volume of this week compared to past 'N' weeks. Likewise for Monthly. You would see change in label name. Like, Weekly chart shows W_RVol (Weekly Relative Volume). Likewise, Daily & Intraday shows D_RVol. Monthly shows M_RVol (Monthly Relative Volume).
3. Added a plot (by default hidden) for this specific reason: When you move the cursor to focus specific candle, then Indicator Value displays relative volume of that specific candle. This applies to Intraday as well. So if you're in 1HR chart and move the cursor to a specific candle, Indicator Value shows relative volume for that specific candlestick bar.
4. Updating the script so that text size and location can be customized.
Changes to Updated Label by me
1. Added Today's Volume to the Label
2. Added Total Average Volume to the Label
3. Comparison vs Both in Single Line and showing how much volume has traded vs the average volume for that time of the day
4. Aesthetic Look of the Label
How to Use Relative Volume for Trading
Using Relative Volume (RVol) in trading can be a valuable tool to help you identify potential trading opportunities and gain insight into market behavior. Here are some ways to use RVol in your trading strategy:
Identifying High-Volume Breakouts: RVol can help you spot potential breakouts when the volume surges significantly above its average. High RVol during a breakout suggests strong market interest, increasing the probability of a sustained move in the direction of the breakout.
Confirming Trends and Reversals: RVol can act as a confirmation tool for trends and reversals. A trend accompanied by rising RVol indicates a strong and sustainable move. Conversely, a trend with declining RVol might suggest a weakening trend or potential reversal.
Spotting Volume Divergence: When the price is moving in one direction, but RVol is declining or not confirming the move, it may indicate a divergence. This discrepancy could suggest a potential reversal or trend change.
Support and Resistance Confirmation: High RVol near key support or resistance levels can indicate potential price reactions at those levels. This confirmation can be valuable in determining whether a level is likely to hold or break.
Filtering Trade Signals: Incorporate RVol into your existing trading strategy as a filter. For example, you might consider taking trades only if RVol is above a certain threshold, ensuring that you focus on high-impact trading opportunities.
Avoiding Low-Volume Traps: Low RVol can indicate a lack of interest or participation in the market. In such situations, price movements may be erratic and less reliable, so it's often wise to avoid trading during low RVol periods.
Monitoring News Events: Around significant news events or earnings releases, RVol can help you gauge the market's reaction to the information. High RVol during such events can present trading opportunities but be cautious of increased volatility and potential gaps.
Adjusting Trade Size: During periods of extremely high RVol, it might be prudent to adjust your position size to account for higher risk.
Using Relative Volume in Morning Session
If the Volume traded in first 15 minute to 30 Minutes is already at 50% or 100% depending upon the ticker, it means that it is going to have very high Volume vs average by end of the day.
This gives me conviction for Long or Short Trades
Remember that RVol is not a standalone indicator; it works best when used in conjunction with other technical and fundamental analysis tools. Additionally, RVol's effectiveness may vary across different markets and trading strategies. Therefore, backtesting and validating the use of RVol in your trading approach is essential.
Lastly, risk management is crucial in trading. While RVol can provide valuable insights, it cannot guarantee profitable trades. Always use appropriate risk management strategies, such as setting stop-loss levels, and avoid overexposing yourself to the market based solely on RVol readings.
ICT HTF Liquidity Levels /w Alert [MsF]Japanese below / 日本語説明は英文の後にあります。
-------------------------
*This indicator is based on sbtnc's "HTF Liquidity Levels". It's a very cool indicator. thank you.
It has 3 functions: visualization of HTF liquidity (with alert), candle color change when displacement occurs, and MSB (market structure break) line display.
=== Function description ===
1. HTF liquidity (with alert)
Lines visualize the liquidity pools on the HTF bars. Alerts can be set for each TF's line.
Once the price reaches the line, the line is repaint.
To put it plainly, the old line disappears and a new line appears. The line that disappeared remains as a purged line. (It is also possible to hide the purged line with a parameter)
The alert will be triggered at the moment the line disappears. An alert will be issued when you touch the HTF's liquid pools where the loss is accumulated, so you can notice the stop hunting with the alert.
This alert is an original feature of this indicator.
The timeframe of the HTF can't modify. You can get Monthly, weekly, daily and H1 and H4.
Each timeframe displays the 3 most recent lines. By narrowing it down to 3, it is devised to make it easier to see visually. (This indicator original)
2. Displacement
Change the color display of the candlesticks when a bullish candle stick or bearish candle stick is attached. Furthermore, by enabling the "Require FVG" option, you can easily discover the FVG (Fair Value Gap). It is a very useful function for ICT trading.
3. MSB (market structure break)
Displays High/Low lines for the period specified by the parameter. It is useful for discovering BoS & CHoCH/MSS, which are important in ICT trading.
=== Parameter description ===
- HTF LIQUIDITY
  - Daily … Daily line display settings (color, line width)
  - Weekly … Weekly line display settings (color, line width)
  - Monthly … Monthly line display settings (color, line width)
- INTRADAY LIQUIDITY
  - 1H … 1H line display settings (color, line width)
  - 4H … 4H line display settings (color, line width)
- PURGED LIQUIDITY … Display setting of the line once the candle reaches
  - Show Purge Daily … Daily purged line display/non-display setting
  - Show Purge Weekly … Weekly purged line display/non-display setting
  - Show Purge Monthly … Monthly purged line display/non-display setting
  - Show Purge 1H … 1H purged line display/non-display setting
  - Show Purge 4H … 4H purged line display/non-display setting
- MARKET STRUCTURE BREAK - MBS
  - Loopback … Period for searching High/Low
- DISPLACEMENT FOR FVG
  - Require FVG … Draw only when FVG occurs
  - Displacement Type … Displacement from open to close? or from high to low?
  - Displacement Length … Period over which to calculate the standard deviation
  - Displacement Strength … The larger the number, the stronger the displacement detected
-------------------------
このインジケータはsbtncさんの"HTF Liquidity Levels"をベースに作成しています。
上位足流動性の可視化(アラート付き)、変位発生時のローソク色変更、MSB(market structure break)ライン表示の3つの機能を有します。
<機能説明>
■上位足流動性の可視化
上位足の流動性の吹き溜まり(ストップが溜まっているところ)をラインで可視化します。ラインにはアラートを設定することが可能です。
一度価格がラインに到達するとそのラインは再描画されます。
平たく言うと、今までのラインが消えて新しいラインが出現する。という事です。
消えたラインはpurgeラインとして残ります。(パラメータでpurgeラインを非表示にすることも可能です)
アラートはラインが消える瞬間に発報します。上位足の損切り溜まってるところにタッチするとアラートを発報するので、アラートにてストップ狩りに気づくことができます。
このアラート発報については本インジケータオリジナルの機能となります。
表示可能な上位足のタイムフレームは固定です。月足、週足、日足およびH1とH4を表示することができます。
各タイムフレーム、直近から3つのラインを表示します。3つに絞ることで視覚的に見やすく工夫しています。(本インジケータオリジナル)
■変位発生時のローソク色変更
大きな陽線、陰線を付けた場合に、そのローソク足をカラー表示を変更します。
さらに"Require FVG"オプションを有効にすることで、FVG(Fair Value Gap)を容易に発見することができます。ICTトレードにを行うにあたり大変有用な機能となっています。
■MSB(market structure break)ライン表示
パラメータで指定した期間のHigh/Lowをライン表示します。ICTトレードで重要視しているBoS & CHoCH/MSSの発見に役立ちます。
<パラメータ説明>
- HTF LIQUIDITY
  - Daily … 日足ライン表示設定(色、線幅)
  - Weekly … 週足ライン表示設定(色、線幅)
  - Monthly … 月足ライン表示設定(色、線幅)
- INTRADAY LIQUIDITY
  - 1H … 1時間足ライン表示設定(色、線幅)
  - 4H … 4時間足ライン表示設定(色、線幅)
- PURGED LIQUIDITY … 一度到達したラインの表示設定
  - Show Purge Daily … 日足ライン表示/非表示設定
  - Show Purge Weekly … 週足ライン表示/非表示設定
  - Show Purge Monthly … 月足ライン表示/非表示設定
  - Show Purge 1H … 1時間足ライン表示/非表示設定
  - Show Purge 4H … 4時間足ライン表示/非表示設定
- MARKET STRUCTURE BREAK - MBS
  - Loopback … High/Lowを探索する期間
- DISPLACEMENT FOR FVG
  - Require FVG … FVG発生時のみ描画する
  - Displacement Type … openからcloseまでの変位か?highからlowまでの変位か?
  - Displacement Length … 標準偏差を計算する期間
  - Displacement Strength … 変位の強さ(数字が大きいほど強い変位を検出)
Higher Time Frame Average True RangesPurpose: This script will help an options trader asses risk and determine good entry and exit strategies
Background Information: The true range is the greatest of: current high minus the current low; the absolute value of the current high minus the previous close; and the absolute value of the current low minus the previous close. The Average True Range (ATR) is a 14-day moving average of the true range. Traders use the ATR indicator to assess volatility in stocks and decide when to enter and exit trades. It is important to note the limitations of using True Range and ATR: These indications cannot tell you the direction of your options trade (call vs. put) and they cannot tell you whether a particular trend is about to reverse. However, it can be used to assess if volatility has peaked for a particular direction and time period.
How this script works: This indicator calculates true range for the daily (DTR), weekly (WTR), and monthly (MTR) time frames and compares it to the Average True Range (ATR) for each of those time frames (DATR, WATR, and MATR). The comparison is displayed into a colored table in the upper right-hand corner of the screen. When a daily, weekly, or monthly true range reaches 80% of its respective ATR, the row for that time frame will turn Orange indicating medium risk for staying in the trade. If the true range goes above 100% of the respective ATR, then the row will turn Red indicating high risk for staying in the trade. When the row for a time period turns red, volatility for the time period has likely peaked and traders should heavily consider taking profits. It is important to note these calculations start at different times for each time frame: Daily (Today’s Open), Weekly (Monday’s Open), Monthly (First of the Month’s Open). This means if it’s the 15th of the month then the Monthly True Range is being calculated for the trading days in the first half of the month (approximately 10 trade days).
The script also plots three sets of horizontal dotted lines to visually represent the ATR for each time period. Each set is generated by adding and subtracting the daily, weekly, and monthly ATRs from that time periods open price. For example, the weekly ATR is added and subtracted from Mondays open price to visually represent the true range for that week. The DATR is represented by red lines, the WATR is represented by the green lines, and the MATR is represented by the blue lines. These plots could also be used to assess risk as well.
How to use this script: Use the table to assess risk and determine potential exit strategies (Green=Low Risk, Orange=Medium Risk, Red=High Risk. Use the dotted lines to speculate what a stock’s price could be in a given time period (Daily=Red, Weekly=Green, and Monthly=Blue). And don’t forget the true range’s calculation and plots starts at the beginning of each time period!
Invest-Long : Script for quick checks before investingA simple script to verify RSI, SMAs, VWMA, and Pivots on Daily, Weekly, and Monthly time frames. 
In case if you are not interested in SMA's or want to add different cheks -- simply copy the script to local and edit. 
Happy investing. 
Add the script to any chart and table values remain the same irrespective of current chart resolution, as it checks on Daily, Weekly, and Monthly time frames. 
The table has multiple columns.
1st column checks on RSI value on all 3 timeframes.  Ideally, look for all green and D>W>M
2nd Column: Check current Close is above 20 SMA and 50 SMA on Daily / Weekly / Monthly time frames 
3rd Column:  Check SMA 13> SMA 34, SMA 34 > SMA 55 and SMA 20 > SMA 50  on Daily / Weekly time frames 
4th Column: Check  Current close is above Weekly Pivot and Monthly Pivot. And also verify Close is above 4 Week High. 
5th Column: Verify Close is above Daily VWMA. Also Daily VWMA is > Weekly VWMA and Weekly > Monthly.
// Similarly you can add more checks based on different time frames
Feel free to trouble me incase if need help.
VWAP + EMA Analysis [Joshlo]Overview and Use Case 
VWAP Analysis gives the possibility to combine multiple time frames of VWAP along with a triplet of exponential moving averages. This can provide insight into potential scalp, swing and longer term trades, depending on your time frame. The use of this indicator with it's setup is based off the the Scalp Setup Alerts provided by Roensch Capital.
The primary use for this script is to help with intraday scalp set ups. Using the Daily VWAP, turned on by default, we can look for price to respect and bounce from one of the VWAP lines (support or resistance) back toward equilibrium, we can also look for price to bounce off of equilibrium and move back toward VWAP support or resistance.
The chart attached shows  AMD   bouncing off of the Daily time frame VWAP Resistance level multiple times (see yellow boxes), often with confirmation given by an increase in volume which is often far higher than the average volume. In many of these cases a short position could've been opened or put option could have been placed with a profitable outcome.
Every line projected onto the chart via this indicator has the potential to create support or resistance as well as causing 'hang ups', meaning price loses it's momentum, slows down and hangs out in the particular area. This is shown on the chart within the green box. 
 Chart walkthrough - See attached chart 
After a rejection off of the Daily VWAP Resistance line (depicted by the white circle), price starts to move back toward Daily VWAP Equilibrium. In order to reach this line, price needs to move through the 20EMA (white) and 50EMA (purple), the Weekly VWAP Resistance (red circles) and the 200EMA (orange). All of these lines are a part of this single indicator. 
The 20EMA seems to offer little resistance but follows the price on it's move, offering some resistance to a volatile move upward. Initially upon contact with the 50EMA, price hangs up and bounces above and below the line whilst finding support on the Weekly VWAP Resistance at the same time. This causes a 'hang up' or sideways movement for around 20 minutes of trading. A potential trade may have entered at the white circle with a VWAP Resistance rejection and exited upon contact with the 50EMA in anticipation of multiple EMAs and support / resistance lines converging which is known to cause price movement to slow.
Eventually with an increase in volume, price breaks below the 20EMA (white), 50EMA (purple) and the Weekly VWAP Resistance level (red circles). Price then finds support on the 200EMA (orange), although there was potential for the price to fall to the Daily VWAP Equilibrium (solid blue). As the Red VWAP lines tend to act more often as resistance as opposed to support (price is rarely above these lines for extended periods), the trade from earlier may have profited more by awaiting contact with the 200EMA before exiting, taking the assumption that the Weekly VWAP Resistance was more likely to act as resistance than support.
A period of consolidation in the green box, around the Weekly VWAP Resistance, 20EMA, 50EMA and with support from the 200EMA eventually resulted in another break out where the price came back up to the Daily VWAP Resistance. Prior to the end of this trading day, there were two more opportunities for scalp setups based off of the price showing consistent rejections off the Daily VWAP Resistance back down to the 50EMA.
In the final example, price breaks above the Daily VWAP Resistance but quickly rejects off of the Monthly VWAP Resistance. For examples where the VWAP Resistance or Support or broken, it can help to look at an indicator such as the RSI to look for bullish divergence or bearish divergence.
Just as this example shows bounces and rejection off of VWAP Resistance, the same applies around the Equilibrium and Support VWAP lines.
The perfect scenario would be to find a ticker where there has already been two or three bounces off of one of these levels, with the goal of taking the trade on the next bounce and either using a percentage price target or technical price target based off of the EMAs or VWAP lines. If there are EMAs close in the direction you want to take the trade, there is a higher chance of hang ups and reversals, so a clear run is the more desired trade set up.
You can also look for these indicator lines to stack up in order to form a stronger support and resistance. For example the 200EMA and Daily VWAP Equilibrium being close to each other may suggest it would take more of an effort to break both of these levels, but one by itself may break more easily.
 Indicator Setup 
In the settings for the indicator, almost everything you might want to change can be done from the Input tab.
The three options for VWAP (daily, weekly and monthly) allow for analysis on multiple time frames. Daily is turned on as standard.
Standard Deviation Multiplier is set to 2 as standard, this effects the distance of the VWAP support and resistance from the equilibrium line. This seems to be a level that works well with finding support and resistance lines, however if there is excessively high or low volume, occasionally the lines can be thrown off. You can adjust this level if required to find a 'sweet spot' where price likes to reject or find support.
The colors for all VWAPs can be adjusted via the Inputs tab, however if you'd like to change the  type  of line these are depicted as, this can be done from the Styles tab.
The 3 EMAs (20, 50 and 200) can be toggled on or off and also have their color changed. The style of the lines can be adjusted from with the Styles tab if required.
[CP]Pivot Boss Multi Timeframe CPR Inception with MACD and EMAINTRODUCTION:  
This indicator combines multi-timeframe CPR bands with MACD Momentum and EMA trend, all projected on the candlestick chart through a novel visualization. 
If you have seen my other indicators on TradingView, you would know that I use floor pivots a lot and “Secrets of a Pivot Boss” is my favorite book. While using floor pivots, time and again I have noticed an interesting price behavior,
 Trending moves in price typically start from around the Central Pivot Range (CPR). The CPR could be from ANY timeframe. These moves can easily be caught using simple momentum and trend indicators like MACD and EMA crossovers.   
Yes, it is that simple. Follow along to understand how to use this indicator. 
 INDICATOR SETTINGS:  
RANGEBOUND MACD AND EMA MARKINGS: 
TradingView limits the max number of labels that can be shown on a chart to 500. Therefore, if you go far back enough, you won't see any markings for the MACD or EMA setups. If you are looking to test the efficacy of this indicator in the past, change the start and end dates to your desired timeframe and then select the  ‘Mark MACD and EMA Setups in Range?’  option.
MULTI TIMEFRAME CENTRAL PIVOT RANGE: 
Here you can select CPRs and their bands from which timeframes are shown on the chart. I will share my favorite settings later in this description.
CPR CONFIGURATION: 
Show CPR Labels: CPRs markings can carry labels, so that you don’t confuse between which line is what. Use this setting to toggle them On/Off.
Show Next Time Period Pivots: Check this option if you want to see the CPR of the next time period. This is typically done to figure out the  ’Two Day CPR Relationship’ . Read the book, “Secrets of a Pivot Boss”, to understand more. 
EMA TREND: 
Show EMA on the Chart: EMAs will be plotted on the chart. Standard stuff. 
Mark EMA Crossovers on Chart: EMA crossovers will be marked on the chart in diamond shapes. If you are using EMA crossovers, I recommend setting this option to True. 
Rest of the EMA settings are fairly obvious. 
MACD MOMENTUM: 
 Projecting MACD parameters directly on the candlesticks is surely going to give you a new perspective about price action and MACD.  
Also, in order to better understand the MACD projections on the chart, you can add a standard MACD indicator on the chart with default settings to figure out what my indicator is actually showing you. 
Marking MACD Crossovers on Chart: Marks the MACD signal crossovers on the chart. This visualization was a game changer for me. 
Show MACD Histogram on Chart: Projects the complete MACD Histogram in a novel fashion (Try it!). You will be able to  visually see  the ebbs and flow of momentum in the charts. 
Mark MACD Histogram Peaks on Chart: Marks only the MACD peaks instead of the complete histogram. Peaks are a great way to enter an ongoing trend and to play an intraday rangebound market. 
Rest of the settings are just the standard settings that you will find in a typical MACD indicator. 
ALERTS: 
Not shown in the settings panel, but I have added alerts for EMA and MACD Crossovers so that you don’t have to sit in front of the charts or constantly check the price all day long. 
If you don’t know how to set alerts in TradingView, then please Google it. 
 INDICATOR USAGE EXAMPLES:  
This indicator can be used in intraday as well as in higher timeframes. 
There are quite a few variations possible, I personally prefer to use the EMA crossovers in intraday (5m) and MACD on Daily timeframes. 
This is just a matter of personal preference, some people might prefer using EMAs only or MACD only in all timeframes. 
Here are my personal settings for the intraday 5-minute timeframe: 
 
  Turn on all the CPR pivots starting from Yearly all the way to Daily. You can turn on 6 hourly and 4 hourly as well if you want. 
  Hourly CPR is mostly used when the price is in a strong trend and you missed the entry and don’t know when to enter.  Price will typically experience pullbacks towards the Hourly CPR, before resuming in the direction of the trend. That is your chance to hop onto the bandwagon.  
  For Intraday, I keep the Bands off. Just a personal preference here. 
  You can turn ON the  Show CPR Labels , if you want. 
  Turn ON both the options in the EMA TREND section. You would want to see the EMA crossovers marked on the chart as well as the EMAs themselves, as the distance between the two EMAs will give you an idea about the strength of the trend. 
  Keep rest of the settings in the EMA section as default (you can change the colors if you wish). I keep the same EMAs as the ones kept in the MACD indicator. I like to keep things simple. 
  In the MACD MOMENTUM section, turn ON  Mark MACD Histogram Peaks on Chart  and all the other options turned OFF. Leave the other settings as default. By the way, these are the default settings of the standard MACD Indicator. 
  You can set up EMA Bullcross and Bearcross alarms if you like.
 
Before checking out the examples, remember one super simple rule: 
  SOME OF THE BEST TRENDING MOVES IN THE MARKET, BE IT INTRADAY OR OTHERWISE, ORIGINATE IN THE VICINITY OF A LARGER TIMEFRAME PIVOT/CPR.    
Look for price settling above/below a pivot, and then a move away from the pivot in any direction is typically a trending move. 
You can use hourly pivots or MACD Histogram peaks marked on the chart to enter an existing trend, or add to your positions. 
Let’s have a look at a few recent intraday examples from the Crypto, Indian, and US equity markets. 
I have added my comments in the charts to make you easily understand what is going on. 
 Understand that both, moving average crossover and MACD, will give out a lot of signals (chop) every day. But almost 70% of them are going to be fake signals. It is the signals that you get when the price is near a Pivot, that tend to convert into gorgeous trending moves that last.  
BTC 5m Charts 
    
    
    
NIFTY Futures 5m Charts (good intraday trends are hard to find here, as the market is very efficient)
    
    
    
TSLA 5m Charts 
    
    
    
Some important points for using this indicator in higher timeframes: 
   
  For higher timeframes, my personal preference is to go with the MACD indicator. I personally find MACD to be  lethal  on daily and weekly timeframes, if you know how to use it well. 
  The default settings of the indicator are the settings I use for both, Daily and Weekly, timeframes. Additionally, I turn off the CPR labels. 
  In theory large trending moves still have a big probability to start near an important pivot level, however, in larger timeframes, trending moves can start from anywhere. They need not start in the vicinity of any important pivot (but they often do!). 
  Weekly pivots can act as great pullback levels when the price is in strong momentum, when trading on the daily timeframe. 
  Quarterly Pivots act as great pullback levels when the price is in strong momentum, when trading on the weekly timeframe. 
 
BTC Weekly Chart
    
BTC Daily Chart 
    
Nifty Weekly Chart 
    
Nifty Daily Chart 
    
NASDAQ Weekly Chart 
    
NASDAQ Daily Chart 
    
 FINAL WORDS:   
 
  Please understand that I have  Cherry Picked  the examples to showcase the capability of the indicator and its usage. 
 DO NOT  conflate the accuracy of examples with the accuracy of this indicator.
  Biggest catch is the fact that this indicator, like every other indicator out there, will have whipsaws. Some I have also marked in the example charts. 
  You need to come up with your own technique to avoid whipsaws, one technique I have shared here……  big moves typically start near pivots.   
  Work on avoiding whipsaws and finding you own edge in the markets.  
  If you really want to learn how to use Pivots, read the book  ’Secrets of a Pivot Boss’ . This book can change your life. 
 
My:HTF O/H/L/C█ MY Higher Time Frame Open / High / Low / Close
This indicator shows one line per Higher Time Frame Price of Interest.
We are interested to know whether we are currently seeing support or resistance at previous daily / weekly / monthly price of interest.
Each price of interest can be displayed or hidden in the configuration. Each line has a label attached to it with the (short) label on it to help identifying what is this line.
Price of interest with (short) label : 
 
  Current Daily Open (CDO)
  Current Daily High (CDH)
  Current Daily Low (CDL)
  Previous Daily Open (PDO)
  Previous Daily High (PDH)
  Previous Daily Low (PDL)
  Previous Daily Close (PDC)
  Current Weekly Open (CWO)
  Current Weekly High (CWH)
  Current Weekly Low (CWL)
  Previous Weekly Open (PWO)
  Previous Weekly High (PWH)
  Previous Weekly Low (PWL)
  Previous Weekly Close (PWC)
  Current Monthly Open (CMO)
  Current Monthly High (CMH)
  Current Monthly Low (CML)
  Previous Monthly Open (PMO)
  Previous Monthly High (PMH)
  Previous Monthly Low (PML)
  Previous Monthly Close (PMC)
RVC-Trade-With-Pivot-LevelsHow to Use PIVOT Levels for Trading 
Always remember ->:  *Trade with trend* 
About script: 
1. Daily and Weekly close above Pivot Level. 
	-- Sentiment is highly positive. Pivot Level acts as strong support. 
2. Daily Close above Pivot and Weekly Close Below Pivot
	-- Sentiment is positive.Weekly Pivot Level may act as strong resistance. 
3. Daily close below Pivot and weekly close above Pivot 
	-- Sentiment is negative but weekly Pivot Level can acts as strong support. 
4. Daily and Weekly Close below Pivot Level 
	-- Sentiment is highly Negative. Pivot Level acts as strong resistance. 
	
BUY/SELL -- ENTRY 
BUY ABOVE 23.6% UPWARD 
IF Trend is positive and price cross and sustains above 23.6%(R1) upside, then it will be entry from BUY perspective. 
If R1 is entry, R2/R3/R4/R5 ... will be targets.
SELL Below 23.6% Downward 
IF Trend is negative and price cross and sustains below 23.6%(S1) downside, then it will be entry from SELL perspective.
If S1 is Sell side entry, S2/S3/S4/S5 will be targets. 
Before taking ENTRY on BUY or SELL Side, please know your risk levels, Stop Loss and trade EXECUTION process. 
Finally: 
My view is my view and remains with me only.  Once you accept it and trade it, it becomes your view. So credit or blame all yours.:)
Double RSIThis is double RSI script which plots one time frame higher RSI along with the current time frame i.e 
For Weekly chart it display  Weekly and Monthly RSI
For Daily chart it display  Daily and Weekly RSI
For Intraday chart it display  Intraday and Daily RSI.
Usage:
If Daily RSI is above 60 and weekly above 40 and moving up then stock is in a good uptrend look for buying when Daily takes support at 60. Usually First test of Daily produces a good entry for subsequent entries probability decreases.
For Downtrend look for Daily RSI below 40 and weekly below 60.
Volumeweighted macd leader with bb squeezethis indicator is very useful for stocks or crytpto especialy 3d and weekly charts
daily shows good too but if u re a daily trader use it if not dont use it coz 4h and daily is noisy some when there is no trend
thats why weekly and 3d is good because it ll give u accurate signal and trend reversals
this is not my script just a combination of lazybear squeeze momentum, macdleader and volume weighted macd of kivanc
i merge them so it also shows bb squeeze on zero line and settings name is median
macd leader is 2 differen color above zero line and below zero line
above zero line if macd leader is green its buy signal and trend is up
if blue it meand no trend or trend reversal so sell or wait if u use 4h or daily but 3d and weekly it means sell
below zero line macd leader color is red and means that there is downtrend and do not buy
when 3d or weekly turns blue on macd leader it means trend reversal about the start
good with heiken ashi candles
DO NOT FORGET THIS IS NOT PERFECT INDICATOR FOR SHORT TERM, PREFER IT 3D AND WEEKLY FR BETTER RESULTS
High and low statisticsHigh/Low Pattern Analyzer (All Timeframes)
Ever wonder if there's a hidden pattern in the market?
Does the high of the week usually happen on a Tuesday?
Does the low of the month always form in the first week?
Which 15-minute candle really sets the high for the entire day?
This indicator is a powerful statistical tool designed to answer these questions by analyzing historical price action to find patterns in when the high and low of a period are formed.
The Core Idea: Daily High & Low of the Week
The simplest and most popular feature of this indicator is the "Daily high and low of the week" analysis.
What it does:
It looks back over your chosen number of weeks (e.g., the last 100) and finds out which day of the week (Monday, Tuesday, Wednesday, etc.) made the final high and which day made the final low for each of those weeks.
How to use it:
Go to the script settings.
Enable the "Daily High/Low of the Week" module.
Set your chart to the 1D (Daily) timeframe.
A table will appear on your chart (bottom-right by default) showing the exact count and percentage for each day. This lets you see at a glance if there's a strong tendency for the market you're watching.
Advanced Analysis: Other Timeframes
This script goes far beyond just the daily chart. It includes four other independent analysis modules:
1. 4-Hour High/Low of the Week
What it does: For intraday and swing traders. This module finds which 4-hour candle session (e.g., the 08:00 candle, the 16:00 candle) tends to form the high or low of the entire week.
Key Feature (DST Aware): This table is "season-aware." It knows that the 08:00 "summertime" (DST) candle is the same trading session as the 07:00 "wintertime" (STD) candle. It groups them together so your data is never split or messy.
2. Weekly High/Low of the Month
What it does: For a monthly perspective. This module finds which week of the month (Week 1, 2, 3, 4, or 5) is most likely to form the monthly high or low.
How to use: Enable it and set your chart to the 1W (Weekly) timeframe.
3. Monthly High/Low of the Year
What it does: The ultimate "big picture" view. This module finds which month (Jan, Feb, Mar, etc.) most frequently forms the high or low for the entire year.
How to use: Enable it and set your chart to the 1M (Monthly) timeframe.
The Power User Module: Custom Timeframe Analysis
This is the most powerful feature. It lets you analyze any timeframe combination you want.
What it does: It finds out which "Lower Timeframe" (LTF) candle made the high or low of any "Higher Timeframe" (HTF) you choose.
Example: Do you want to know which 15-minute candle makes the Daily high?
Set your chart to the 15M timeframe.
Go to the "Custom Timeframe Analysis" settings.
Set the "Higher Timeframe" to "1D".
The script will draw a "season-aware" table (just like the 4H module) showing you the exact 15-minute candles (09:15, 09:30, etc.) that are statistically most likely to form the day's high or low.
Other Features
Show Labels: Each module has an option to "Show labels," which will draw a label (e.g., "Daily High of the Week") directly on the chart at the exact bar that made the high or low.
Custom Dividers: Each module has its own optional, color-customizable divider (e.g., weekly, monthly) that you can toggle on to see the periods more clearly.
Clean Settings: All modules are disabled by default (except for "Daily") to keep your chart clean. You only need to enable the specific analysis you want to see.
This tool was built to turn your curiosity about market patterns into actionable, statistical data. Enjoy!
COT Index v.2COT Index v.2 Indicator
( fix for extreme values) 
📊 Overview
The COT (Commitment of Traders) Index Indicator transforms raw COT data into normalized indices ranging from 0-100, with extensions to 120 and -20 for extreme market conditions. This powerful tool helps traders analyze institutional positioning and market sentiment by tracking the net long positions of three key market participant groups.
🎯 What It Does
This indicator converts weekly CFTC Commitment of Traders data into easy-to-read oscillator format, showing:
Commercial Index (Blue Line) - Smart money/hedgers positioning
NonCommercial Index (Orange Line) - Large speculators/funds positioning
Nonreportable Index (Red Line) - Small traders positioning
📈 Key Features
Smart Scaling Algorithm
0-100 Range: Normal market conditions based on recent price action
120 Level: Extreme bullish positioning (above historical maximum)
-20 Level: Extreme bearish positioning (below historical minimum)
Dual Time Frame Analysis
Short Period (26 weeks default): For current market scaling
Historical Period (156 weeks default): For extreme condition detection
Flexible Data Sources
Futures Only reports
Futures and Options combined reports
Automatic symbol detection with manual overrides for HG and LBR
🔧 Customizable Settings
Data Configuration
Adjustable lookback periods for both current and historical analysis
Report type selection (Futures vs Futures & Options)
Display Options
Toggle individual trader categories on/off
Customizable reference lines (overbought/oversold levels)
Optional 0/100 boundary lines
Adjustable line widths and colors
Reference Levels
Upper Bound: 120 (extreme bullish)
Overbought: 80 (default)
Midline: 50 (neutral)
Oversold: 20 (default)
Lower Bound: -20 (extreme bearish)
💡 Trading Applications
Contrarian Signals
High Commercial Index + Low NonCommercial Index = Potential bullish reversal
Low Commercial Index + High NonCommercial Index = Potential bearish reversal
Market Sentiment Analysis
Track institutional vs retail positioning divergences
Identify extreme market conditions requiring attention
Monitor smart money accumulation/distribution patterns
Confirmation Tool
Use alongside technical analysis for trade confirmation
Validate breakouts with positioning data
Assess market structure changes
📊 Visual Elements
Status Table: Displays current settings and symbol information
Color-Coded Lines: Easy identification of each trader category
Reference Levels: Clear overbought/oversold boundaries
Extreme Indicators: Visual cues for unusual market conditions
⚠️ Important Notes
COT data is released weekly on Fridays (Tuesday data)
Best suited for weekly and daily timeframes
Requires symbols with available CFTC data
Works automatically for most futures contracts
🎯 Best Practices
Use in conjunction with price action analysis
Look for divergences between price and positioning
Pay special attention to extreme readings (120/-20 levels)
Consider all three indices together for complete market picture
Allow for data lag (3-day delay from CFTC)
This indicator is ideal for swing traders, position traders, and anyone interested in understanding the positioning dynamics of professional vs retail market participants.
AutoPivot Levels with Alerts [ChartWhizzperer] – Dynamic EditionAuto-Pivot Levels 4 methods with alerts   – Dynamic Edition 
Now with
- Live Mode
- 4 Pivot Methods
- 7 Session Types (5m, 15m, 30m, Hourly, Daily, Weekly, Monthly)
- PineConnector-Ready Alerts!
Free, Open Source, Pine Script v6-compliant.
NEW: Live Mode (Ultra-Dynamic, Repainting) – Switchable in UI!
Instantly switch between Classic (session-based, repaint-free) and Live (rolling window, real-time, repainting) using the simple checkbox in the settings!
Live Mode recalculates all pivots on every tick/bar, using the current high/low/close for the chosen session (5m, 15m, 30m, hourly, daily, weekly, monthly).
 Perfect for: 
- Scalping and high-frequency trading
- Real-time bot/automation setups (PineConnector-ready)
- Fast-moving or breakout markets
Classic Mode: For traditional, stable levels based on confirmed session data – ideal for backtesting and trading history.
 Four Calculation Methods (Choose What Fits YOU) 
1.  Classic 
   Standard pivot calculation.
   Based on previous session’s High, Low, Close.
   Simple, proven, and suitable for any asset.
2.  Fibonacci 
   Projects levels using Fibonacci ratios of the prior session’s range.
   Great for traders who want to align pivots with fib retracements and extensions.
3.  Camarilla 
   Uses unique multipliers for support/resistance, focusing on mean reversion and volatility.
   Popular among futures and forex day traders.
4.  Woodie 
   Puts extra weight on previous Close for more responsive pivots.
   Often used in trending or choppy conditions.
Switch methods anytime  in the UI  – the script recalculates instantly and keeps your chart clean!
 Level-Specific Alerts – PineConnector Ready! 
Dedicated alert for EVERY level and direction (Up/Down):
 Pivot (P), R1, R2, R3, S1, S2, S3 
 No configuration hassle: 
All alerts are pre-defined in the TradingView Alert Panel and work across all session types (5m → monthly).
 Machine-readable message format: 
PIVOT=R1 DIR=UP SYMBOL={{ticker}} PRICE={{close}}
Direct plug-and-play with PineConnector, webhooks, Discord, Telegram, bots, and other automation tools.
 Never miss a breakout, reversal, or key support/resistance touch! 
 Powerful Customization & Performance 
- Session selection: 5m, 15m, 30m, Hourly, Daily, Weekly, Monthly (choose what suits your trading style).
- Show/hide any level (Pivot, R1–R3, S1–S3) for minimal chart clutter.
- Color selection for each level to match your theme or highlight key pivots.
- Auto-cleanup: Old lines and labels are cleared on every recalculation or session change for maximum performance and visual clarity.
- Zero runtime errors: Strict Pine Script v6 practices for stability.
 How To Use – Quick Start 
1) Add the indicator to your TradingView chart.
2) Pick your calculation method (Classic, Fibonacci, Camarilla, Woodie).
3) Set session type (5m, 15m, 30m, Hourly, Daily, Weekly, Monthly).
4) Switch between Classic and Live Mode with a single click in settings.
5) Customize your levels (on/off, colors).
6) Open the Alert Panel, select any pre-configured alert (e.g. "R2 Cross Down"), and go live!
7) Connect with PineConnector or any webhook system instantly using the pre-formatted alert messages.
 Who Is It For? 
- Active scalpers & bot traders: Live Mode + PineConnector-ready alerts = instant, automated reactions.
- Swing and position traders: Use Classic Mode for stable, repaint-free levels.
- Strategy developers: Seamless integration into automated and manual trading workflows.
 License & Community 
Open Source, Non-Commercial:
Free for personal & educational use under CC BY-NC-SA 4.0.
 Feedback, bug reports & ideas: 
Drop a comment, or contact me for feature requests.
Trade smart. Trade dynamic. Unlock the true power of pivots – with ChartWhizzperer!
Fixed High Timeframe Moving AveragesFixed High Timeframe Moving Averages (W/D/4H) 
 Summary 
This indicator plots essential, high-timeframe (HTF) Moving Averages onto your chart, **no matter which timeframe you are currently viewing**.
It is designed for traders who need multi-timeframe context at a glance. Stop switching charts to see where the 200-Week or 50-Day MA is—now you can see all critical HTF levels directly on your 5-minute (or any other) chart.
---
 Who it’s for 
Traders who rely on moving averages but like to work on lower chart timeframes while keeping higher timeframe context in sight. If you scalp on 1–15m yet want Weekly/Daily/4H MAs always visible, this is for you.
---
 What it shows 
Pinned (“fixed”) moving averages from higher timeframes—Weekly  (20/100/200) , Daily  (50/100/200/365)  and 4H  (200) —rendered on any chart timeframe. Your favorite HTF MAs stay on screen no matter what TF you’re currently analyzing.
---
 Features 
* **MA types:** SMA, EMA, VWMA, Hull.
* **Fully configurable:** toggle each line, set periods, colors, and thickness.
* **Two alert modes (see below):** intrabar vs confirmed HTF close.
* **Works on any symbol & chart TF** using `request.security` to fetch HTF data.
---
 Alerts & Modes 
This indicator solves the biggest problem with MTF alerts: false signals. You can choose one of two modes:
1.  **Intrabar mode** — compares current chart price to the HTF MA. Triggers as soon as price crosses the HTF line; great for early signals but may update until the HTF bar closes.
2.  **Confirmed mode** — checks HTF close vs HTF MA. Signals only on the higher-TF bar close; fewer false starts, no intrabar repainting on that TF.
Per-line *Cross Above / Cross Below* conditions are provided for all enabled MAs (e.g., “20W — Cross Above”, “365D — Cross Below”, etc.).
**How to use alerts:** add the script → “Create Alert” → pick any condition from the script’s list.
---
 Why this helps 
* Keeps Weekly/Daily structure visible while you execute on LTF.
* Classic anchors (e.g., 200D, 20W/100W/200W) are popular for trend bias, dynamic support/resistance, and pullback context.
* Lets you standardize MA references across all your lower-TF playbooks.
---
 Notes on confirmation & repainting 
* Intrabar signals can change until the higher-TF bar closes (that’s expected with multi-TF data).
* Confirmed mode waits for the HTF close—cleaner, but later. Choose what fits your workflow.
---
 Quick setup 
1.  Pick `MA Type` (SMA/EMA/VWMA/Hull).
2.  Enable the HTF lines you want (Weekly 20/100/200; Daily 50/100/200/365; 4H 200).
3.  Choose `Alert Mode` (Intrabar vs Confirmed).
4.  Style colors/widths to taste and set alerts on the lines you care about.
---
 Good practice 
* Combine HTF MAs with price action (swings, structure, liquidity grabs) rather than using them in isolation.
* Always validate signals in your execution TF and use a risk plan tailored to volatility.
* Protect your capital: position sizing, stops, and disciplined risk management matter more than any single line on the chart.
---
 Disclaimer 
 For educational/informational purposes only; not financial advice. Trading involves risk—manage it responsibly.
VWAP Composites📊 VWAP Composite - Advanced Multi-Period Volume Weighted Average Price Indicator
═══════════════════════════════════════════════════════════════════
🎯 OVERVIEW
VWAP Composite is an advanced volume-weighted average price (VWAP) indicator that goes beyond traditional single-period VWAP calculations by offering composite multi-period analysis and unprecedented customization. This indicator solves a common problem traders face: traditional VWAP resets at arbitrary intervals (session start, day, week), but significant price action and volume accumulation often spans multiple periods. VWAP Composite allows you to anchor VWAP calculations to any timeframe—or combine multiple periods into a single composite VWAP—giving you a true representation of average price weighted by volume across the exact periods that matter to your analysis.
═══════════════════════════════════════════════════════════════════
⚙️ HOW IT WORKS - CALCULATION METHODOLOGY
📌 CORE VWAP CALCULATION
The indicator calculates VWAP using the standard volume-weighted formula:
• Typical Price = (High + Low + Close) / 3
• VWAP = Σ(Typical Price × Volume) / Σ(Volume)
This calculation is performed across user-defined time periods, ensuring each bar's contribution to the average is proportional to its trading volume.
📌 STANDARD DEVIATION BANDS
The indicator calculates volume-weighted standard deviation to measure price dispersion around the VWAP:
• Variance = Σ  / Σ(Volume)
• Standard Deviation = √Variance
• Upper Band = VWAP + (StdDev × Multiplier)
• Lower Band = VWAP - (StdDev × Multiplier)
These bands help identify overbought/oversold conditions relative to the volume-weighted mean, with high-volume price excursions having greater impact on band width than low-volume moves.
📌 COMPOSITE PERIOD METHODOLOGY (Auto Mode)
Unlike traditional VWAP that resets at fixed intervals, Auto Mode creates composite VWAPs by combining the current period with N previous periods:
• Period Span = 1: Current period only (standard VWAP behavior)
• Period Span = 2: Current period + 1 previous period combined
• Period Span = 3: Current period + 2 previous periods combined
• And so on...
Example: A 3-period Weekly composite VWAP calculates from the start of 2 weeks ago through the current week's end, creating a single VWAP that represents 21 days of continuous price and volume data. This provides context about where price stands relative to the volume-weighted average over multiple weeks, not just the current week.
═══════════════════════════════════════════════════════════════════
🔧 KEY FEATURES & ORIGINALITY
✅ DUAL OPERATING MODES
1️⃣ MANUAL MODE (5 Independent VWAPs)
Define up to 5 separate VWAP calculations with custom start/end times:
• Perfect for anchoring VWAP to specific events (earnings, Fed announcements, major reversals)
• Each VWAP has independent color settings for lines and deviation band backgrounds
• Individual control over calculation extension and visual extension (explained below)
• Useful for tracking multiple institutional accumulation/distribution zones simultaneously
2️⃣ AUTO MODE (Composite Period VWAP)
Automatically calculates VWAP across combined time periods:
• Supported periods: Daily, Weekly, Monthly, Quarterly, Yearly
• Configurable period span (1-20 periods)
• Always up-to-date, recalculates on each new bar
• Ideal for systematic analysis across consistent timeframes
✅ DUAL EXTENSION SYSTEM (Manual Mode Innovation)
Most VWAP indicators only offer "on/off" for extending calculations. This indicator provides two distinct extension options:
🔹 EXTEND CALCULATION TO CURRENT BAR
When enabled, continues including new bars in the VWAP calculation after the defined end time. The VWAP value updates dynamically as new volume enters the market.
Use case: You anchored VWAP to a major low 3 weeks ago. You want the VWAP to continue evolving with new volume data to track ongoing institutional positioning.
🔹 EXTEND VISUAL LINE ONLY
When enabled (and calculation extension is disabled), projects the "frozen" VWAP value forward as a reference line. The VWAP value remains fixed at what it was at the end time, but the line and deviation bands visually extend to current price.
Use case: You want to see how price is behaving relative to the VWAP that existed at a specific point in time (e.g., "Where is price now vs. the 5-day VWAP that existed at last Friday's close?").
This dual system gives you unprecedented control over whether you're tracking a "living" VWAP that incorporates new data or using historical VWAP levels as static reference points.
✅ CUSTOMIZABLE STANDARD DEVIATION BANDS
• Adjustable multiplier (0.1 to 5.0)
• Independent background colors with opacity control for each VWAP
• Dashed band lines for easy visual distinction from main VWAP
• Bands extend when visual extension is enabled, maintaining zone visibility
✅ COMPREHENSIVE LABELING SYSTEM
Each VWAP displays:
• Current VWAP value
• Upper deviation band value (High)
• Lower deviation band value (Low)
• Extension status indicator (Calc Extended / Visual Extended)
• Color-coded for quick identification
═══════════════════════════════════════════════════════════════════
📖 HOW TO USE THIS INDICATOR
🎯 SCENARIO 1: EVENT-ANCHORED VWAP (Manual Mode)
Use case: A stock gaps down 15% on earnings and you want to track where institutions are positioning during the recovery.
Setup:
1. Switch to Manual Mode
2. Enable VWAP 1
3. Set Start Time to the earnings gap bar
4. Set End Time to current time (or leave far in future)
5. Enable "Extend Calculation to Current Bar"
6. Watch how price respects the VWAP as a dynamic support/resistance
Interpretation:
• Price above VWAP = buyers in control since the event
• Price testing VWAP from above = potential support
• Volume-weighted standard deviation bands show normal price range
• Price outside bands = potential exhaustion/mean reversion setup
🎯 SCENARIO 2: MULTI-WEEK INSTITUTIONAL ACCUMULATION ZONE (Auto Mode)
Use case: You trade swing setups and want to identify where institutions have been accumulating over the past 3 weeks.
Setup:
1. Switch to Auto Mode
2. Select "Weekly" period type
3. Set Period Span to 3
4. Enable standard deviation bands
Interpretation:
• 3-week composite VWAP shows the true average institutional entry
• Price bouncing off VWAP repeatedly = strong support (institutions defending their average)
• Price breaking below VWAP on high volume = potential distribution
• Deviation bands contracting = consolidation; expanding = volatility increase
🎯 SCENARIO 3: COMPARING MULTIPLE TIME HORIZONS (Manual Mode)
Use case: You want to see short-term vs medium-term vs long-term VWAP alignments.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Last 5 trading days (blue)
3. VWAP 2: Last 10 trading days (orange)
4. VWAP 3: Last 20 trading days (purple)
5. Enable "Extend Calculation" for all
6. Set different background colors for visual separation
Interpretation:
• All VWAPs aligned upward = strong trend across all timeframes
• Price between VWAPs = finding equilibrium between different trader timeframes
• Short-term VWAP crossing long-term VWAP = momentum shift
• Price rejecting at higher-timeframe VWAP = that timeframe's traders defending their average
🎯 SCENARIO 4: HISTORICAL VWAP REFERENCE LEVELS (Manual Mode)
Use case: You want to see where the 1-month VWAP was at each month-end as static reference levels.
Setup:
1. Switch to Manual Mode
2. VWAP 1: Set to last month's start/end dates
3. VWAP 2: Set to 2 months ago start/end dates
4. VWAP 3: Set to 3 months ago start/end dates
5. Disable "Extend Calculation"
6. Enable "Extend Visual Line Only"
Interpretation:
• Each VWAP represents the volume-weighted average for that complete month
• These become static support/resistance levels
• Price returning to old monthly VWAPs = institutional memory/gap fill behavior
• Useful for identifying longer-term value areas
═══════════════════════════════════════════════════════════════════
🎨 CUSTOMIZATION OPTIONS
GENERAL SETTINGS
• Show/hide labels
• Line style: Solid, Dashed, or Dotted
• Standard deviation multiplier (impacts band width)
• Toggle standard deviation bands on/off
MANUAL MODE (Per VWAP)
• Custom start and end times
• Line color picker
• Background color picker (with transparency control)
• Extend calculation option
• Extend visual option
• Show/hide individual VWAPs
AUTO MODE
• Period type selection (Daily/Weekly/Monthly/Quarterly/Yearly)
• Period span (1-20 periods)
• Line color
• Background color (with transparency control)
═══════════════════════════════════════════════════════════════════
💡 TRADING APPLICATIONS
✓ Mean Reversion: Use deviation bands to identify stretched prices likely to return to VWAP
✓ Trend Confirmation: Price sustained above VWAP = bullish bias; below = bearish bias
✓ Support/Resistance: VWAP often acts as dynamic S/R, especially on higher volume periods
✓ Institutional Positioning: Multi-day/week VWAPs show where large players have established positions
✓ Entry Timing: Wait for pullbacks to VWAP in trending markets
✓ Stop Placement: Use VWAP ± standard deviation as volatility-adjusted stop levels
✓ Breakout Confirmation: Breakouts from consolidation with price reclaiming VWAP = stronger signal
✓ Multi-Timeframe Analysis: Compare short vs long-period VWAPs to gauge momentum alignment
═══════════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
• The indicator redraws on each bar to maintain accurate visual representation (uses `barstate.islast`)
• Maximum lookback is limited to 5000 bars for performance optimization
• Time range calculations work across all timeframes but are most effective on intraday to daily charts
• Standard deviation bands assume volume-weighted distribution; extreme events may violate assumptions
• Auto mode always calculates to current bar; use Manual mode for fixed historical periods
═══════════════════════════════════════════════════════════════════
This indicator is open-source. Feel free to examine the code, learn from it, and adapt it to your needs.
Relative Momentum Rotation [CHE]  Relative Momentum Rotation   — Ranks assets by multi-horizon momentum for guided rotational selection with regime overlay
  Summary 
This indicator evaluates a universe of assets using a blended momentum measure across three time horizons, then ranks them to highlight top performers for potential portfolio rotation. It incorporates a regime filter to contextualize signals, tinting the background to indicate favorable or unfavorable market conditions and labeling transitions for awareness. By focusing on relative strength within a selectable universe, it helps identify leaders without relying on absolute thresholds, reducing noise from isolated trends and promoting disciplined asset switching.
  Motivation: Why this design? 
Traders often struggle with momentum signals that perform unevenly across market phases, such as overreacting in volatile periods or lagging in steady uptrends, leading to suboptimal rotations in multi-asset portfolios. The core idea of relative momentum rotation addresses this by comparing assets head-to-head within a defined group, blending short- and long-term changes to capture sustained strength while a regime overlay adds a macro layer to avoid fighting broader trends. This setup prioritizes peer-relative outperformance over standalone measures, aiding consistent selection in rotational strategies.
  What’s different vs. standard approaches? 
- Reference baseline: Traditional rate-of-change indicators track absolute price shifts over a single window, which can generate whipsaws in sideways markets or miss cross-asset opportunities.
- Architecture differences:
  - Blends three distinct horizons into one composite score for a fuller momentum picture, rather than isolating one period.
  - Applies ranking across a customizable universe (e.g., crypto or tech stocks) to emphasize relatives, not absolutes.
  - Integrates a simple regime check via moving average crossover on a reference symbol, gating selections without overcomplicating the core logic.
  - Outputs a dynamic table for visual ranking, plus subtle visual cues like background tints, instead of cluttered plots.
- Practical effect: Charts show clearer hierarchy among assets, with regime tints providing at-a-glance context—top ranks stand out more reliably in bull regimes, helping traders focus rotations without constant recalibration.
  How it works (technical) 
The indicator starts by assembling a list of symbols from the selected universe, including only those marked as active to keep the group focused. For each symbol, it gathers change rates over three specified horizons on a higher timeframe, blends them using user-defined weights (automatically normalized if they do not sum to one), and computes a single composite score. Scores are then ranked to select the top performers up to a set number, forming a rotation candidate list.
To add context, a regime state is determined by comparing the reference symbol's price to its moving average on daily bars—above signals a positive environment, below a negative one, with an option to invert this logic. The current chart's symbol is checked against the top list for inclusion status. All higher-timeframe data pulls are set to avoid lookahead bias, though updates may shift slightly until bars close. Persistent variables track the table state and prior regime to handle redraws efficiently, ensuring the display rebuilds only when the selection count changes.
  Parameter Guide 
Universe — Switches between predefined crypto or US-tech symbol sets for ranking peers. Default: Crypto. Trade-offs/Tips: Crypto for volatile assets; US-Tech for equities—match to your portfolio to avoid mismatched volatility.
Include Symbol 1–12 — Toggles individual symbols in the universe on or off. Default: Varies (true for top 10, false for extras). Trade-offs/Tips: Start with defaults for a balanced group; disable laggards to sharpen focus, but keep at least 5–8 for robust ranking.
Scoring Timeframe — Sets the aggregation period for momentum changes (e.g., monthly bars). Default: Monthly. Trade-offs/Tips: Monthly for long-term rotation; weekly for faster signals—increases noise if too short.
Weight 12m / 6m / 3m — Adjusts emphasis on long/medium/short horizons in the blend. Default: 0.50 / 0.30 / 0.20. Trade-offs/Tips: Heavier long-term for stability in trends; balance to fit asset class—test sums near 1.0 to avoid auto-normalization surprises.
ROC over MA instead of Close — Uses smoothed averages for change rates to reduce chop. Default: False. Trade-offs/Tips: Enable in noisy markets for fewer false tops; adds slight lag, so monitor for delayed rotations.
Top N to hold — Limits selections to this many highest-ranked assets. Default: 10. Trade-offs/Tips: Lower for concentrated bets (higher risk/reward); higher for diversification—align with your position sizing.
Mark current symbol if in Top N — Highlights if the chart's asset ranks in the selection. Default: True. Trade-offs/Tips: Useful for self-scanning; disable in multi-chart setups to declutter.
Enable Regime Filter — Activates macro overlay using reference symbol. Default: True. Trade-offs/Tips: Core for trend-aware trading; disable for pure momentum plays, but risks counter-trend entries.
Regime Symbol — Chooses the benchmark for regime (e.g., broad index). Default: QQQ. Trade-offs/Tips: Broad market proxy like SPY for equities; swap for BTC in crypto to match universe.
SMA Length (D) — Sets the averaging window for regime comparison. Default: 100. Trade-offs/Tips: Longer for fewer flips (smoother regimes); shorter for quicker detection—default suits daily checks.
Invert (rare) — Flips the regime logic (price above average becomes negative). Default: False. Trade-offs/Tips: Only if your view inverts the benchmark; test thoroughly as it reverses all tints/labels.
Show Ranking Table — Displays the ranked list with scores and regime status. Default: True. Trade-offs/Tips: Essential for selection; position tweaks help on crowded charts.
Table X / Y — Places the table on the chart (e.g., top-right). Default: Right / Top. Trade-offs/Tips: Corner placement avoids price overlap; middle for central focus in reviews.
Dark Theme — Applies inverted colors for visibility. Default: True. Trade-offs/Tips: Matches most TradingView themes; toggle for light backgrounds without losing contrast.
Text Size — Scales table font for readability. Default: Normal. Trade-offs/Tips: Smaller for dense data; larger on big screens—impacts only last-bar render.
Background Tint by Regime — Colors the chart faintly green/red based on state. Default: True. Trade-offs/Tips: Subtle cue for immersion; disable if it distracts from price action.
Label on Regime Flip — Adds text markers at state changes. Default: True. Trade-offs/Tips: Aids journaling flips; space them by disabling in low-vol periods to cut clutter.
 Reading & Interpretation
The ranking table lists top assets by position, symbol, percentage score (higher indicates stronger blended momentum), and regime status—green "ON" for favorable, red "OFF" for cautionary. Background shifts to a light teal in positive regimes (suggesting alignment for longs) or pale red in negative ones (hinting at reduced exposure). Flip labels appear as green "Regime ON" above bars or red "Regime OFF" below, marking transitions without ongoing noise. If the current symbol appears in the top rows with a solid score, it signals potential hold or entry priority within rotations.
  Practical Workflows & Combinations 
- Trend following: Scan the table weekly on monthly charts for top entrants; confirm with higher highs/lows in price structure before rotating in. Use regime tint as a veto—skip buys in red phases.
- Exits/Stops: Rotate out of bottom-half ranks monthly; tighten stops below recent lows during regime flips to protect against reversals. Pair with volatility filters like average true range for dynamic sizing.
- Multi-asset/Multi-TF: Defaults work across crypto/equities on daily+ timeframes; for intraday, shorten scoring to weekly but expect more interim noise. Scale universe size with portfolio count—e.g., top 5 for aggressive crypto rotations.
  Behavior, Constraints & Performance 
Signals update on bar close to confirm higher-timeframe data, but live bars may preview shifts from security calls, introducing minor repaint until finalized—mitigated by non-lookahead settings, though daily regime checks can lag by one session. Arrays handle up to 12 symbols efficiently, with loops capped at selection size; max bars back at 5000 supports historical depth without overload. Resource use stays low, but dense universes on very long charts may slow initial loads.
Known limits include sensitivity to universe composition (skewed groups amplify biases) and regime lag at sharp market turns, potentially delaying rotations by a period.
  Sensible Defaults & Quick Tuning 
Defaults assume a 10-asset crypto rotation on monthly scoring with balanced weights and QQQ regime—ideal for intermediate-term equity-like plays. For too-frequent table reshuffles, extend scoring timeframe or weight longer horizons more. If selections feel sluggish, shorten the 3-month weight or enable MA smoothing off. In high-vol environments, raise top N and SMA length for stability; for crypto bursts, drop to weekly scoring and invert regime if using a volatile proxy.
  What this indicator is—and isn’t 
This is a selection and visualization tool for momentum-based rotations, layering relative ranks and regime context onto charts to inform asset picks. It is not a standalone system—pair it with entry/exit rules, position sizing, and risk limits. Nor is it predictive; it reacts to past changes and may underperform in prolonged ranges or during universe gaps.
  Disclaimer 
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
 Best regards and happy trading
Chervolino 
 Where does it come from, specifically? 
The principle of “composite momentum across multiple horizons” is common in TAA/rotation strategies. As a documented example: Keller/Butler use a composite 1/3/6/12-month momentum (“13612W”)—same idea, different windows/weights.
Robot Wealth
A practical vendor example: EPS Momentum calculates an RMR composite as a weighted mix of 12/6/3/1-month ranks (very close to “12/6/3”).
EPS Momentum
Related but not identical: StockCharts’ RRG measures the momentum rotation of relative strength—often mentioned in the same context, but it doesn’t have a fixed “12/6/3” composite.
chartschool.stockcharts.com
How is it typically computed?
ROC_12 + ROC_6 + ROC_3 (often scaled/weighted), then ranked vs. peers; the rotation periodically holds the top ranks in the portfolio. (Variants use different weights or additionally include 1-month—see the sources above.)
robotwealth.com
epsmomentum.com
Choppiness Index | CipherDecodedThe Choppiness Index is a multi-timeframe regime indicator that measures whether price action is trending or consolidating.
 This recreation was inspired by the Choppiness Index chart from Checkonchain, with full credit to their team for the idea. 
🔹 How It Works 
 CI = 100 * log10( SUM(ATR(1), n) / (highest(high, n) – lowest(low, n)) ) / log10(n) 
Where:
 
  n – lookback length (e.g. 14 days / 10 weeks / 10 months)
  ATR(1) – true-range of each bar
  SUM(ATR(1), n) – total true-range over  n  bars
  highest(high, n) and lowest(low, n) – price range over  n  bars
  Low values → strong trend 
  High values → sideways consolidation 
 
Below is a simplified function used in the script for computing CI on any timeframe:
 
f_ci(_n) =>
    _tr   = ta.tr(true)                 
    _sum  = math.sum(_tr, _n)             
    _hh   = ta.highest(high, _n)
    _ll   = ta.lowest(low,  _n)
    _rng  = _hh - _ll
    _rng > 0 ? 100 * math.log10(_sum / _rng) / math.log10(_n) : na
 
 
 Consolidation Threshold — 50.0
 Trend Threshold — 38.2
 
 When Weekly CI < Trend Threshold, a trending zone (yellow) appears.
 When Weekly CI > Consolidation Threshold, a consolidation zone (purple) appears.
 Users can toggle either background independently.
 
🔹 Example Background Logic 
 bgcolor(isTrend and Trend ? color.new(#f3e459, 50) : na, title = "Trending",      force_overlay = true)
bgcolor(isConsol and Cons ? color.new(#974aa5, 50) : na, title = "Consolidation", force_overlay = true) 
🔹 Usage Tips 
 
 Observe the Weekly CI for regime context.
 Combine with price structure or trend filters for signal confirmation.
 Low CI values (< 38) indicate strong trend activity — the market may soon consolidate to reset.
 High CI values (> 60) reflect sideways or range-bound conditions — the market is recharging before a potential new trend.
 
🔹  Disclaimer 
This indicator is provided for educational purposes.
No trading outcomes are guaranteed.
This tool does not guarantee market turns or performance; it should be used as part of a broader system.
Use responsibly and perform your own testing.
🔹  Credits 
Concept origin — Checkonchain Choppiness Index






















