Central Banks Balance Sheets ROI% ChangeIntroducing the "Central Banks Balance Sheets ROI% Change" indicator, a tool designed to offer traders and analysts an understanding of global liquidity dynamics.
This indicator tracks the Return on Investment (ROI) percentage changes across major central banks' balance sheets, providing insights into shifts in global economic liquidity not tied to cumulative figures but through ROI calculations, capturing the pulse of overall economic dynamics.
Key Enhancements:
ROI Period Customization: Users can now adjust the ROI calculation period, offering flexibility to analyze short-term fluctuations or longer-term trends in central bank activities, aligning with their strategic time horizons.
Chart Offset Feature: This new functionality allows traders to shift the chart view, aiding in the alignment of data visualization with other indicators or specific analysis needs, enhancing interpretive clarity.
Central Bank Selection: With options to include or exclude data from specific central banks among the world's top 15 economies (with the exception of Mexico and the consolidation of the EU's central bank data), traders can tailor the analysis to their regional focus or diversification strategies.
US M2 Option: Recognizing the significance of the M2 money supply as a liquidity metric, this indicator offers an alternative view focusing solely on the US M2, allowing for a concentrated analysis of the US liquidity environment.
Comprehensive Coverage: The tool covers a wide array of central banks, including the Federal Reserve, People's Bank of China, European Central Bank, and more, ensuring a broad and inclusive perspective on global liquidity.
Visualization Enhancements: A histogram plot vividly distinguishes between positive and negative ROI changes, offering an intuitive grasp of liquidity expansions or contractions at a glance.
This indicator is a strategic tool designed for traders who seek to understand the undercurrents of market liquidity and its implications on global markets.
Whether you're assessing the impact of central bank policies, gauging economic health, or identifying investment opportunities, the "Central Banks Balance Sheets ROI% Change" indicator offers a critical lens through which to view the complex interplay of global liquidity factors.
サイクル
Election Year GainsShows the yearly gains of the chart in U.S. Election years.
Use the options to turn on other years in the cycle.
For use with the 12M chart.
Will show non-sensical data with other intervals.
Fight Or Flight Index [log] - LTF [MethodAlgo]Introduction:
"Fight Or Flight" is a robust yet user-friendly indicator designed for long-term cycle analysis and gauging market sentiment. Excluded from our Premium Indicator Collection, we are delighted to offer this tool to the community for free.
Before Use:
- This is a first-layer analysis tool, identifying potential over/under-valued price areas, not predicting future market movements.
- Tailored for long-term investment analysis. Designed for use on timeframes "1D" and above; unsupported timeframes will display nothing.
- If the asset has less 2 years of data, indicator will display nothing.
Concept:
Fight Or Flight utilizes a 2-year Moving Average (MA) as a baseline (neon white), with reference lines at 2.5x and 5x of the MA (white and neon red). By tracking asset movements through bear and bull market cycles, the indicator simplifies the identification of these cycles for long-term investors.
Instructions:
- Supported timeframes: 1D, 3D, 1W, 2W, 3W, 9W, 1M, 3M, 6M, 12M; auto-adjusts MA parameters for listed timeframes for the same result.
- Recommended to use log chart for clearer views; supports all chart types but functions optimally in log mode. or the upper channel line will look odd (but not wrong).
- Set up advice: Use the indicator in a separate chart with a fixed timeframe.
UI:
- Neon White: Indicates market bottom, a 2-year MA auto-adjusted for the supported timeframe.
- Neon Red: Indicates market top, set at 5x the 2-year MA.
- White: Sits between the top and bottom lines, serving as a support, resistance, or equilibrium line.
- Filled Area: Red (Flight) signals an overheated market, suggesting an exit; White (Fight) denotes an undervalued market, suggesting an possible entry.
Use Case:
Traders can observe price levels in comparison to the MA levels provided by the indicator for cycle analysis:
- Below Neon White: Indicates undervalue, over-pessimistic market conditions; potential for outsized returns.
- Near or above Neon Red: Suggests an overvalued or overexcited market; plan your exit strategy.
Risk Disclaimer:
Trading is inherently risky; this indicator provides indications based on historical data, and past performance does not guarantee future results. Use it as part of your confluence reference and avoid making trading decisions solely based on one indicator.
ATR MACD - a comparable MACD [Rise Sense]ATR MACD - a comparable MACD 是一位名为tonyblackwhite在知乎上发表的关于MACD的文章启发下制作的指标。这个指标克服了MACD在多个方面的痛点,例如时间变化、跨市场对比和MACD动量生命周期等问题。通过在基础上引入新功能,该指标不仅解决了这些问题,还使用户能够更轻松地比较不同时间级别和商品。
这一创新不仅提高了MACD的使用体验,而且为用户提供更便捷的获取所需信息的途径。通过解决原有MACD存在的限制,ATR MACD - a comparable MACD 为使用者提供了更为全面和灵活的分析工具,有望在MACD的应用中发挥更大的作用。
ATR MACD - a comparable MACD is an indicator created after reading an article on MACD by the author tonyblackwhite on Zhihu. This indicator overcomes various pain points of MACD, such as the MACD time change issue, cross-market MACD issue, MACD momentum lifecycle issue, and more. Building upon this foundation, it directly incorporates features that allow for comparing different timeframes and commodities, aiming to enhance users' experience in utilizing MACD and helping them effortlessly obtain desired information.
This innovation not only improves the user experience with MACD but also provides a more user-friendly way for users to compare different timeframes and commodities. By addressing the limitations of the original MACD, ATR MACD - a comparable MACD offers users a more comprehensive and flexible analytical tool, potentially playing a greater role in the application of MACD.
Index Kill Zones - SMC IndicatorsWhat are Index Kill Zones?
Index Kill Zones are specific Time Windows of opportunity during the Session for Indices that have the potential for the highest volatility and where looking for trading opportunities is ideal.
The Index Kill Zone Indicator is specifically designed for the SP500, NQ100, and DJ30, Markets. What differentiates this script from other Kill Zones scripts is that this script is based on NY Midnight as the basis for the start of the day.
This is not the usual below-average Index Kill Zone indicator because this indicator does not only show the 3 main Kill Zones or Sessions, but it also offers extra Kill Zones within each session that are called "AM Session", "PM Session", the "Launch Hour", the "Silver Bullet for the London, AM, and PM Sessions", and the "Last Hour" for the London, AM, and PM sessions.
Another key differentiator of this indicator's functionality is that it shows the highs and lows of each Kill zone allowing SMC traders to monitor Time-Based Liquidity above the highs and lows of each trading session.
By splitting each trading day into AM and PM Sessions, we can identify 3 types of potential daily profiles. These daily profiles could be used as conceptual templates as to what to expect from the price during a certain day. The 6 templates are the following:
1. Two Sessions Up: Where the price would go in one direction higher during both the AM and PM Sessions.
2. Two Sessions Down: Where the price would go in one direction lower during both the AM and PM Sessions.
3. AM Rally, then PM Decline: The price would go higher during the AM session and then lower during the PM Session.
4. AM Decline, then PM Rally: The price would go lower during the AM session and then higher during the PM Session.
5. Consolidation, AM Rally, then PM Decline: Where the price would consolidate most of the AM Session, then go higher into the last hour, and then reverse and go lower during the PM Session.
5. Consolidation, AM Decline, then PM Rally: Where the price would consolidate most of the AM Session, then go lower into the last hour, and then reverse and go higher during the PM Session.
Within each AM and PM Session, there is a "Silver Bullet" that acts as a time window of opportunity to get into a continuation trade in the direction of the prevailing trend.
Also, within each AM and PM Session, there is a "Last Hour" that acts as a time window of opportunity to get into a trade in the direction of the potential trend if the price has not moved yet, or as a reversal trade opportunity if the price has already ran previous short-term highs or lows.
Finally, we have also incorporated a Notification function to remind the trader of the start of the trading Kill Zones to not miss out on potential trade opportunities.
Key Functionalities
Universal Time Reference
Every day starts at 00:00 NY Midnight, irrespective of the trader's local time, Instead of the Standard GMT Midnight. This allows all Index Kill Zones to be in line with the New York start of the day at Midnight, as taught by ICT.
Weekend Highlighter
This feature highlights time from Sunday Market Open at 5 PM NY Time to 00:00 NY Midnight.
It's useful for identifying the non-trading or the low volatility periods when trading should be avoided.
Features Breakdown
Lookback Period
Defaulted to 60 trading days, aligning with “IPDA Data Ranges”, which is ideal for backtesting.
It's adjustable for trading, and it's recommended to keep it at 20 trading days to focus on the most recent data only.
24-hour Daily Intervals
The 24-hour intervals are not the same as the usual daily candle. Instead, the start of each trading day is anchored to the 00:00 NY Midnight.
Highlights "Days of the Week" labels, "Weekend" Trading Time, and the daily high-low ranges based on the start of trading day mark being at 00:00 NY Midnight.
London Kill Zones (Green)
The Full London Session starts from 02:00 NY Time to 05:00 NY Time.
London Silver Bullet starts from 03:00 NY Time to 04:00 NY Time.
London Last Hour starts from 04:00 NY Time to 05:00 NY Time.
Highlights the high and low of the London Kill Zone to Identify Time-Based Liquidity above and below the London Kill Zone Range.
AM Session Kill Zone (Blue)
The full AM Session Starts from 09:30 NY time to 12:00 NY Time.
AM Session Silver Bullet starts from 10:00 NY Time to 11:00 NY Time.
AM Session Last Hour starts from 11:00 NY Time to 12:00 NY Time.
Highlight the high and low of the AM Session to Identify Time-Based Liquidity above and below the AM Session Range.
Highlights the time when there is the highest volatility during the AM Session.
PM Session Kill Zone (Orange)
The full PM Session Starts from 13:00 NY time to 16:00 NY Time.
PM Session Silver Bullet starts from 14:00 NY Time to 15:00 NY Time.
PM Session Last Hour starts from 15:00 NY Time to 16:00 NY Time.
Highlight the high and low of the PM Session to Identify Time-Based Liquidity above and below the PM Session Range.
Highlights the time when there is the highest volatility during the PM Session.
Bonus Features
Daily & Weekly Open Price Levels
The Open Price levels draw a horizontal line from the start of the trading day at 00:00 NY midnight, and it extends it towards the end of the trading day.
This is useful for understanding where the price is relative to the daily candle.
When Bullish, the trader should look for setups at or below the daily or weekly open price.
When Bearish, the trader should look for setups at or above the daily or weekly open price.
Whether to choose the Daily or Weekly open price depends on the trader's trading style. If the trader is day trading or scaling, then it's more appropriate to choose the Daily Open Price.
However, Day Traders can also use the Weekly candle to align with the Weekly Candle's expected range direction.
On the other hand, if the trader is a Swing Trader and wants to capitalise on the weekly candle's trend, then it's more appropriate to choose the Weekly Open Price.
However, Swing Traders can also use the Daily Open Price when looking to take a trade to time better entries with a high risk-to-reward ratio.
Daily Open Price Level (in Green) and Weekly Open Price Level (in White)
Kill Zones Open Price Level
This is useful if the trader is an intra-session trader and wants to treat the sessions as the daily candle. In this case, the trader can use the Kill Zones Open Price levels based on the same logic of the Daily Open Price, where the trade would look for buy opportunities below the Session's open price and look for sell opportunities above the Session's Open Price Level.
Notifications
The trader can also receive alerts as a reminder at the start of the desired session to ensure that he or she does not miss the start of the trading session.
Forex Kill Zones - SMC IndicatorsWhat are Kill Zones?
Kill Zones are specific Time Windows of opportunity during the Session that have the potential for the highest volatility and where looking for trading opportunities is ideal.
The Forex Kill Zone Indicator is specifically designed for the Forex Market. What differentiates this script from other Kill Zones scripts is that this script is based on NY Midnight as the basis for the start of the day.
This is not the usual below-average Kill Zone indicator because this indicator does not only show the 3 main Kill Zones or Sessions, but it also offers extra Kill Zones that are called "Asian Range (AR)", "Central Bank Dealing Range (CBDR)", and "FLOUT".
Another key differentiator of this indicator's functionality is that it shows the highs and lows of each Kill zone allowing SMC traders to monitor Time-Based Liquidity above the highs and lows of each trading session.
Another added benefit of this indicator is the Standard Deviations features for the AR, CBDR, and FLOUT that we added. The Standard Deviations act as key levels where there is a high probability of price reacting when in confluence with 1H or higher key levels (PD Arrays). The Standard Deviations are not pivot levels but are ranges above and below the Kill Zones that rely on TIME and PRICE in their calculations.
Finally, we have also incorporated a Notification function to remind the trader of the start of the trading Kill Zones to not miss out on potential trade opportunities.
Key Functionalities
1) Universal Time Reference:
Every day starts at 00:00 NY Midnight, irrespective of the trader's local time, Instead of the Standard GMT Midnight. This allows all Kill Zones to be in line with the New York start of the day at Midnight, as thought by ICT.
Weekend Highlighter
This feature highlights time from Sunday Market Open at 5 PM NY Time to 00:00 NY Midnight.
It's useful for identifying the non-trading or the low volatility periods when trading should be avoided.
Features Breakdown
Lookback Period
Defaulted to 60 trading days, aligning with “IPDA Data Ranges”, which is ideal for backtesting.
Adjustable for trading, and it's recommended to keep it at 20 trading days to focus on most recent data only.
24-hour Daily Intervals
The 24-hour intervals are not the same as the usual daily candle. Instead, the start of each trading day is anchored to the 00:00 NY Midnight.
Highlights "Days of the Week" labels, "Weekend" Trading Time, and the daily high-low ranges based on the start of trading day mark being at 00:00 NY Midnight.
London Kill Zone (Green)
Starts from 01:00 NY Time to 05:00 NY Time.
London closes at 12:00 NY Time.
Highlight the high and low of the London Kill Zone to Identify Time-Based Liquidity above and below the London Kill Zone Range.
Marks the London Close Session to mark the end of London End of the trading day, where volatility drops.
Highlights the time when there is the highest volatility during the London Session Kill Zone.
New York Kill Zone (Blue)
Starts from 07:00 NY time to 10:00 NY Time.
Marks The CME Open at 08:30 (the opening of the Bond Market).
Highlight the high and low of the New York Kill Zone to Identify Time-Based Liquidity above and below the NY Kill Zone Range.
Highlights the time when there is the highest volatility during the New York Session.
The Central Bank Dealing Range or "CBDR" (Orange)
Starts From 14:00 NY Time to 20:00 NY Time.
Highlight the high and low of the CBDR Kill Zone to Identify Time-Based Liquidity above and below the CBDR Kill Zone Range.
Also, there is an added ability to add the CBDR Standard Deviations above and below the CBDR.
Can also extend the CBDR Standard Deviations key levels until the end of the next day's London Kill Zone.
What are the CBDR Standard Deviations?
The Standard Deviations are extensions of the CBDR above and below the CBDR original range. It takes the high and low of the range and adds the range above and below the original range by x times.
The CCBDR Standard Deviations are NOT pivot levels. They are used as points of reference where we could expect the price to react when in confluence with higher timeframe reference points.
The idea behind them is that if the price is Bearish, the price could rally to +1 CBDR Standard Deviation below dropping lower. As shown in the image below on Thursday, the two vertical lines before the start of Thursday mark the CBDR Kill Zone, then the price rallied to +1 CBDR SDv and then dropped.
Asian Range "AR" Kill Zone
Starts from 20:00 NY Time to 00:00 NY Time.
Highlight the high and low of the AR Kill Zone to Identify Time-Based Liquidity above and below the AR Kill Zone Range.
Also, there is an added ability to add the AR Standard Deviations above and below the AR.
This KillZone should be primarily used when CBDR exceeds 40 pips.
Similar to the CBDR, the AR Standard Deviations also can be used as points of reference where we could expect the price to react when in confluence with higher timeframe reference points.
The AR Standard Deviations can also be extended until the end of the next day's London Kill Zone.
FLOUT Range
It Combines AR and CBDR, spanning from 14:00 NY Time to 00:00 NY Time.
The FLOUT should only be used when both AR and CBDR have small ranges of less than 10 pips combined.
Highlight the high and low of the FLOUT Kill Zone to Identify Time-Based Liquidity above and below the FLOUT Kill Zone Range.
The FLOUT Standard Deviations also can be used as points of reference where we could expect the price to react when in confluence with higher timeframe reference points.
The Flout Standard Deviations can be extended until the end of the next day London Kill Zone.
Bonus Features
Daily & Weekly Open Price Levels
The Open Price levels draw a horizontal line from the start of the trading day at 00:00 NY midnight, and it extends it towards the end of the trading day.
This is useful for understanding where the price is relative to the daily candle.
When Bullish, the trader should look for setups at or below the daily or weekly open price.
When Bearish, the trader should look for setups at or above the daily or weekly open price.
Whether to choose the Daily or Weekly open price depends on the trader's trading style. If the trader is day trading or scaling, then it's more appropriate to choose the Daily Open Price.
However, Day Traders can also use the Weekly candle to align with the Weekly Candle's expected range direction.
On the other hand, if the trader is a Swing Trader and wants to capitalise on the weekly candle's trend, then it's more appropriate to choose the Weekly Open Price.
However, Swing Traders can also use the Daily Open Price when looking to take a trade to time better entries with a high risk-to-reward ratio.
Notifications
The trader can also receive alerts as a reminder at the start of the desired session to not miss out on the start of the trading session.
Gains CorrelationsScript Description: This script is to tie the major futures indexes together at a macro level with the normal relationships (i.e. 10YR Yield, DXY, VIX inversely related to Equities) and determine how strong the correlation is between them using a 20 period average. For example, a move up in the 10YR yield while having a strong inverse covariance with equities should signal a downward move for equities. In addition, if ES and NQ are going down, and the Dow and RTY have a strong covariance, the probability of them going down as well is strong. Overall, it's a macro indicator on broad market movements.
Originality & Usefulness: The script functions by tying 7 major indexes together using correlation strength relative to the currently selected ticker. The user can change the tickers and also invert if needed. This is different from the single correlation script by adding in several as they track in tandem. The chart used is to illustrate periods where correlations are tight with equities and the lines are clustered towards the top range of strong covariance. It also highlights when Equities are far out of line with others like gold (GC). A loose covariance would mean the relationship is weak and this indicator would show a divergence in price action between them. The overall intent is to show that most indexes rise and fall together but sometimes they move faster together.
Ichimoku BalaIndicator Overview
The Ichimoku Bala indicator is a modification of the traditional Ichimoku Kinko Hyo indicator that aims to improve its effectiveness in identifying trend reversals and potential trading opportunities. It incorporates additional lines, such as the Senkou Span B--0 line, to provide more nuanced insights into price movements.
Input Parameters
The indicator has several input parameters that allow you to customize its appearance and behavior:
enableReplay: Whether to enable replay mode, which allows you to analyze historical data.
i_date: The date to start replaying historical data.
chiko2: The period for the Chikou Span 78 line.
TenkanShift: The offset for the Tenkan-Sen line.
KinjunShift: The offset for the Kinjun-Sen line.
KumoShift: The offset for the Kumo (Senkou Span A and Senkou Span B) lines.
ChikouSpanShift: The offset for the Chikou Span line.
TenkanPeriods: The period for the Tenkan-Sen line.
KinjunPeriods: The period for the Kinjun-Sen line.
SenkouSpanBPeriods: The period for the Senkou Span B line.
senkouSpanBPeriod: The period for the Senkou Span B--0 line.
AddbasePeriods1: The period for the Direction Line.
DirectionLineShift: The offset for the Direction Line.
AddbasePeriods2: The period for the Quality Line.
QualityLineShift: The offset for the Quality Line.
offset_colour_candle: The offset for coloring the previous candle before the flat start.
Indicator Calculations
The indicator calculates the following lines:
TenkanSen: A moving average of the highest and lowest prices over 9 periods.
KinjunSen: A moving average of the Tenkan-Sen line over 26 periods.
Senkou Span A: The average of the Tenkan-Sen and Kinjun-Sen lines shifted 26 periods forward.
Senkou Span B: The average of the highest and lowest prices over 52 periods shifted 26 periods forward.
Senkou Span B--0: The average of the highest and lowest prices over 52 periods.
It also determines the flatness of the Tenkan-Sen, Kinjun-Sen, and Senkou Span B lines and identifies the start of a flat period.
Indicator Visualizations
The indicator plots the following lines:
TenkanSen: A blue line.
KinjunSen: A red line.
Chikou Span: A green line shifted one period forward.
Senkou Span A: A green line.
Senkou Span B: A red line.
Senkou Span B--0: A gray line.
Direction Line: A blue line.
Quality Line: A red line.
It also colors the previous candle before the flat start according to the type of flat detected:
candleColor: Purple for a flat involving the Tenkan-Sen and Kinjun-Sen lines.
candleColor2: Yellow for a flat involving the Senkou Span B line.
candleColor3: Gray for a flat involving all three lines.
Modifications by Seyedbala
The provided code includes additional modifications by Seyedbala, including:
Adding a parameter offset_colour_candle to control the offset for coloring the previous candle before the flat start.
Modifying the color of the fill between the Tenkan-Sen and Kinjun-Sen lines to #23dde0 for flatStart and color.purple for all other cases.
Modifying the color of the fill between the Senkou Span B line and Kinjun-Sen lines to yellow for flatStart2 and color.yellow for all other cases.
Modifying the color of the fill between the Tenkan-Sen and Senkou Span B lines to gray for flatStart3 and color.gray for all other cases.
These modifications aim to enhance the visual representation of the flat areas and make it easier to identify the different types of flat patterns.
Overall, the Ichimoku Bala indicator is a valuable tool for analyzing price movements and identifying potential trading opportunities. Its modifications by Seyedbala further enhance its capabilities and provide more nuanced insights into market trends.
Sessions [TradingFinder] New York, London, Tokyo & Sydney ForexTiming is one of the influential factors in a trader's position. This indicator categorizes transactions into three sessions (Asia, Europe, and America). Five significant trading cities (New York, London, Frankfurt, Tokyo, and Sydney) are selectable.
I recommend using the tool on a 5-minute time frame, but it is usable on all time frames.
Settings:
• Trading sessions: Display or hide each trading session as needed.
• Color: Change the color of each box.
• Session time intervals: The default is based on the main working hours for each time interval and can be adjusted.
• Information table: Delete or display additional information table.
Information Table:
• Trading sessions
• Opening and closing times of each trading session
How to Use:
Initiating trading sessions involves entering with increased liquidity, and the market usually experiences significant movements. Many trading strategies are based on "time" and "session openings." This tool empowers traders to focus intensely on each time interval.
These trading sessions are crucial for all Forex, stock, and index traders:
The total price ceiling and floor in the Asia session (Tokyo and Sydney) are crucial for traders in the European session.
The European session starts with Frankfurt, and an hour later, London begins, collectively forming the European session.
The dashboard provides additional information, displaying hours based on UTC.
Customization options are considered in all sections so that everyone can apply their own settings.
Important: Default times are the most accurate for each region, and in most indicators, this time is not correctly selected. Therefore, the level of influence and time intervals are specified at the beginning of each session. If you are using another indicator, match its default time to the announced time and share the results with me in the comments.
Crypto USD LiquidityThe "Crypto USD Liquidity " indicator is designed to offer a comprehensive analysis of liquidity dynamics within the cryptocurrency market, specifically focusing on various stablecoins. This versatile tool allows users to tailor their analysis by adjusting key parameters such as the Rate of Change (ROC) length and the smoothing rate.
The indicator incorporates a user-friendly interface with options to selectively display the supply data for major stablecoins, including USDT, BUSD, USDC, DAI, and TUSD . Users can toggle these options to observe and compare the liquidity trends of different stablecoin assets.
The total liquidity is computed as the summation of the selected stablecoin supplies, providing a holistic view of the overall crypto market liquidity. The Rate of Change (ROC) and its smoothing are then applied to the aggregated liquidity data. This process helps users identify trends and potential turning points in the liquidity landscape.
The visual representation on the chart includes a color-coded display: positive changing ROC values are shaded in green, indicating potential increases in liquidity, while negative values are shaded in red, suggesting potential decreases. This color scheme enhances the user's ability to quickly interpret the changing dynamics of stablecoin liquidity.
Moreover, the script includes a Zero Line for reference and overlays the raw ROC values for additional insight. The resulting chart not only serves as a powerful analytical tool for traders and investors but also contributes to a deeper understanding of the nuanced movements within the broader cryptocurrency market.
In summary, the "Crypto USD Liquidity" Pine Script indicator empowers users with a customizable and visually informative tool for analyzing and interpreting the complex dynamics of stablecoin liquidity, facilitating more informed decision-making in the realm of cryptocurrency trading and investment.
Monthly Data Analysis [ProjeAdam]OVERVIEW
This indicator was developed to quickly analyze the seasonal movements of financial investment instruments.
I would like to thank Zafer Brother for his ideas.
IMPORTANT NOTE:
In order to calculate monthly price changes properly, we need to examine the chart on a monthly time period.
USER GUIDE:
1 - Time Period Selection: Users can input the start and end years for their analysis. This feature enables users to focus on specific time frames that are of interest to them, such as analyzing market behavior during certain historical events or periods.
2 - Monthly Data Aggregation: The script seems to collect and process data on a monthly basis, enabling a detailed analysis of market trends within each month.
3 - Percentage Change Calculation: It calculates the percentage change in prices, which is a crucial metric in financial analysis for understanding market movements.
4 - Customization and Visualization: Users can customize background colors for each month, enhancing the visual appeal and readability of the data on charts.
ALGORITHM
1 - Time Range Settings:
The user can enter the start and end year of the analysis. These dates determine the time period in which data analysis will be performed.
2- Creating Monthly Data Series and Calculating Total Months:
A separate float array and percentage change array is created for each month.
3- Percentage Change Calculation:
Using the data in the series created for each year and each month, the months of the selected years are summed and divided by the total number of years.
4 - Visualization of Results:
Table helps us to quickly check our data in our monthly average percentage change for selected years.
5- Coloring the Graph According to Background Conditions:
The user who checks the results in the table can check the price changes in the months between the selected years from the graph by turning on the background of the desired month in the indicator settings.
In the example above, I selected the months of June, July and August.
By changing the background of the months of June, July and August between the years I have selected in the chart, I can easily examine the seasonal price movement in these months.
Example
I observe that the snowiest month among the years I choose in the airline company I work with is November, and I can easily make my analysis by turning on the background setting of November.
Benefits
Customized Analysis: By allowing users to select specific start and end years, the script provides tailored analysis, making it more relevant and useful for individual trading strategies or historical research.
Trend Identification: Monthly data aggregation and percentage change calculations can help in identifying short-term and long-term market trends, vital for making informed trading decisions.
Enhanced Visualization: Custom background colors for different months can make the chart more user-friendly, aiding in quicker interpretation and analysis of data.
User-Friendly Dashboard: The script includes a dashboard feature that provides a summary of data analysis, making it easier for users to get an overview of market trends.
If you have any ideas what to add to my work to add more sources or make calculations cooler, suggest in DM .
BTB - Bitcoin (BTC) Top and Bottom Indicator [Logue]This indicator is a combination of multiple on-chain, seasonality, and momentum BTC macro cycle bottom and top indicators. The BTB detects confluence of multiple indicators to select bottoms and tops of each BTC macro cycle. More detail can be seen on the BTI and BBI indicators. The BTB indicators are:
1) Cumulative Value Days Destroyed (CVDD) - The CVDD is the ratio of the cumulative value of coin days destroyed in USD and the market age (in days). When the BTC price goes below this value, BTC is generally considered to be undervalued. The bottom indicator is triggered when the BTC price is below the CVDD or above the CVDD extension. Because the "strength" of the BTC tops has decreased over the cycles, a logarithmic function for the extension was created by fitting past cycles as log extension = slope * time + intercept.
2) Net Unrealized Profit Loss (NUPL) - The NUPL measures if past transfers of BTC are currently in an unrealized profit or loss state. Historically positive or negative NUPL values indicate an over/undervaluation of the BTC network. The bottom indicator is triggered when the NUPL is below -15 and the top is triggered above an adjusted value based on decreasing "strength" of BTC tops. A decreasing linear function (trigger = slope * time + intercept) was fit to past cycle tops and used to determine overvaluation.
3) Market Value-Realized Value Z-score (MVRV-Z) - The MVRV-Z measures the value of the bitcoin network by comparing the market cap to the realized value and dividing by the standard deviation of the market cap (market cap – realized cap) / std(market cap)). The bottom indicator is triggered when the MVRVZ value is below 4 and tops are above 55.
4) Puell multiple (PUELL) - PUELL is the ratio between the daily coin issuance in USD and its 365-day moving average. This multiple helps to measure miner profitability. Extremes in PUELL may indicate tops or bottoms. The bottom indicator triggers when the PUELL is below 0.4 and top is triggered above 3.33.
5) Calendar Seasonality Index (CSI) - The CSI takes advantage of the consistency of BTC cycles. Past cycles have formed macro bottoms every four years between December and February which triggers the bottom indicator. Past cycles have formed macro tops every four years between October 21st and December 12th, triggering the top indicator.
6) Halving Seasonality Index (HSI) - Past cycles have formed macro bottoms approximately 948 days after each halving, triggering this indicator at set times, 948 +- 45 days, after each halving. Aside from the first halving, cycles have formed macro tops approximately 538 days after each halving. Therefore, this indicator triggers at 538 +- 10 days after each halving.
7) Polylog Regression (PLR) - The BTC cycle tops and bottoms were separately fit using a polynomial regression. The shape of the regression into the future was estimated and a fit was used to estimate when tops and bottoms are near. This triggers when the BTC price is inside or below the lower polylog regression channel and when the BTC price is inside or above the upper polylog regression channel.
8) Realized Price (RP) - The RP is summation of the value of each BTC when it last moved divided by the total number of BTC in circulation. This gives an estimation of the average "purchase" price of BTC. This indicator triggers when the BTC price is below the realized price or above an RP extension. Because the "strength" of the BTC tops has decreased over the cycles, a logarithmic function for the extension was created by fitting past cycles as log extension = slope * time + intercept.
9) Plus Directional Movement (PDM) weekly index - The PDM is a momentum indicator that measures the strength of a trend in the positive direction. The weekly PDM is calculated by determining the difference between the week's high price and the previous week's high price smoothed by a 14-period moving average. Higher PDM values indicate higher momentum in the positive (higher price) direction. Based on decreasing "strength" of BTC tops, a decreasing linear function (trigger = slope * time + intercept) was fit to past cycle tops for this indicator. This indicator is triggered when the PDM is above the trigger value or below 14.
10) Logarithmic Moving Average Convergence Divergence (LMACD) weekly indicator - The LMACD is a momentum indicator that measures the strength of a trend using the difference of the log values of the 12-period and 26-week exponential moving averages. Larger positive numbers indicate a larger positive momentum. Based on decreasing "strength" of BTC tops, a decreasing linear function (trigger = slope * time + intercept) was fit to past cycle tops for this indicator. This indicator is triggered when the PDM is above the trigger value or below -0.06.
11) Hash Rate Capitulation (HRC) - The HRC indicator measures the rate of change of the hash rate. Steadily increasing hash rate is a sign of health of the bitcoin network. This indicator uses moving averages (20- and 100-day) of the hash rate to indicate when a decrease in the rate of change is has occurred (i.e., the 20-day MA goes below the 100-day MA). This indicator triggers when the 20-day moving average of the hash rate going below the 100-day moving average.
12) Pi-cycle Top (PCT) - The PCT indicator is simply the cross of the 111-day moving average above a 2x multiple of the 350-day moving average of the BTC price. While there is no fundamental reasoning behind why this works, it has worked to indicate previous bitcoin tops by taking advantage of the cyclicality of the BTC price and measurement overextension of BTC price. This indicator triggers when the fast moving average (111-day) crosses above the 2x multiple of the slow moving average (350-day).
13) Transaction Fee Spike (TFS) - Transaction fees on the bitcoin network can signal a mania phase when they increase well above historical values. This mania phase may indicate we are near a top in the BTC price. The daily transaction fee total in USD is divided by the number of daily transactions to calculate the average transaction fee paid on the bitcoin network. The transaction fees increasing above $40 trigger this indicator.
The on-chain indicators (CVDD, NUPL, MVRV-Z, PUELL, RP, and HRC) work together to give a health check of the BTC price as compared to its network health. The seasonality indicators (CSI, HSI, and PLR) work together to map the macro cycles of BTC. The momentum indicators (PDM and LMACD) give the strength of the BTC trend. Each of these indicators is weighted evenly when selected and if over 45% of the indicators are triggering on a candle, the overall BTB indicator prints a clear signal. This signal is meant to indicate when the macro cycle bottom or top is likely hit or is near.
You are able to deselect any indicator you do not wish to have considered and select it back again. To prepare you for indicators triggering, the BTB shows dark blue or dark green when the indicator is close to triggering. The background color of the BBI becomes blue when at least 30% of the indicators considered are triggering and it becomes green when the BBI fully triggers. The BLX is most appropriate chart, but the indicator works on all BTC/USD charts. Because of the limitations of TradingView, the indicator doesn't work on time frames lower than 4 h or over one week.
Use this indicator at your own risk. I make no assertions that this indicator will work to detect any future bottom or top since we all know that past performance is no guarantee of future results.
Cycles 90mThe cycles are separated by vertical lines. The first cycle (Q1) is marked with a red line because it is a manipulative cycle where you should not open positions. Other cycles are green (Q2, Q3, Q4).
You can add the time of the current candle, its size and position on the chart in the settings
The time is highlighted in red in the timeframes 9:30-9:40, 10:00-10:10, 11:00-11:30, 15:30-15:40, 16:00-16:10, 17:00-17:10, 17:30-17:40, as price movements are most often expected during these timeframes.
The cycle lines automatically disappear if you open a timeframe above M15
Moving Average [chkd]日本語の説明は英語の説明の後にあります。
========= English =========
Various analyses of moving averages have been introduced, but the key points to observe are often quite similar. To efficiently observe the following points, I have created this indicator:
The positional relationship between each moving average and candlestick
The slope (directionality) of the moving averages
Moving averages from different time frames
The positional relationship of moving averages is classified into stages:
Stage 1: Short-term MA > Medium-term MA > Long-term MA (Perfect Order)
Stage 2: Medium-term MA > Short-term MA > Long-term MA
Stage 3: Medium-term MA > Long-term MA > Short-term MA
Stage 4: Long-term MA > Medium-term MA > Short-term MA (Reverse Perfect Order)
Stage 5: Long-term MA > Short-term MA > Medium-term MA
Stage 6: Short-term MA > Long-term MA > Medium-term MA
The features of this indicator include:
Displaying multi-timeframe stages in a table
Showing the transition history of stages with dashed lines at the bottom
Selectable table size (compatible with PC and smartphones)
========= Japanese =========
移動平均線の分析は色々紹介されていますが、見るポイントはどれもよく似ています。
以下のポイントを効率よく見れるように、このインジを作成しました。
各移動平均線とローソク足の位置関係
移動平均線の傾き(方向性)
異なるタイムフレームの移動平均線
移動平均線の位置関係は、ステージとして分類しています。
stage1 : 短期MA > 中期MA > 長期MA (パーフェクトオーダー)
stage2 : 中期MA > 短期MA > 長期MA
stage3 : 中期MA > 長期MA > 短期MA
stage4 : 長期MA > 中期MA > 短期MA (逆パーフェクトオーダー)
stage5 : 長期MA > 短期MA > 中期MA
stage6 : 短期MA > 長期MA > 中期MA
移動平均線の分析で、非常にわかりやすいものに小次郎講師の大循環分析があります。
書籍や無料のyoutubeもあるので、併せてみてもらえるとこのインジの使い方のイメージが湧きやすくなると思います。
このインジでは以下の特徴があります。
マルチタイムのステージをテーブルで表示
ステージの変換履歴を下部の点線で表示
テーブルサイズは選択可(pc,スマホ対応)
Cast ForwardThis indicator will not forecast price action. It will not predict price movement nor will it in any way predict the outcome of any trade you may take. This is not a signal for buying or selling. You must do your own back testing and analysis for trading.
Time and price are the two most important components of market data. Where was price at what time? To help visualize this question I created this indicator. It allows for the previous session data to be overlayed onto the chart offset forward 24 hours. What this means is that you have the high, (high/low)/2, and low of each candle plotted on top of your chart for the time frame of the current chart, but offset so that the data from the current candle has the data from the corresponding candle 24 hours prior lined up on the x-axis.
SMA Logic: I used the SMA (Simple Moving Average) function with a length of 1 to plot the data points without any smoothing to give the true values of the data.
For Intraday Charting
For Electronic Trading Hours:
In order to line up the data correctly, for intraday charts, I used the current chart timeframe and divided it into 1380 (number of minutes in the 23 hour futures market trading day) to set the data offset. Using the same math logic, this indicator also gives the correct correlated data on the 30 second time frame. If the chart time frame that is currently being used does not allow for correct data correlation (not a factor of 1380) it will not plot the data.
For Regular Trading Hours:
In order to line up the data correctly, for intraday charts, I used the current chart timeframe and divided it into 405 (number of minutes in the 6 hour 45 minutes New York regular session trading day, including the 15 minute settlement time) to set the data offset. This indicator also gives the correct correlated data on the 30 second time frame. If the chart time frame that is currently being used does not allow for correct data correlation (not a factor of 405) it will not plot the data.
For the Daily Chart:
This indicator plots a visualization of the 20-40-60 day IPDA data range; (The IPDA data range helps traders identify liquidity, price gaps, and equilibrium points in the market, providing insights for optimal trade entries and market structure shifts). It does this using the same SMA logic as the intraday plot. What this means is it offsets the historical data of the daily chart 20, 40, or 60 bars forward. You can plot any combination of the three on the chart at one time, but these will not show on the intraday chart. This allows for visualization of where the market will possibly seek liquidity, seek to rebalance, or seek equilibrium in the future.
itradesize /\ IPDA Look Back - for any timeframeThe script automatically calculates the 20-40-60 look-back periods and their premium and discount ranges.
The base concept is from ICT’s IPDA which should be applied to the daily timeframe but now you can use that same concept on the lower timeframes .
The higher the timeframes you use the more reliable it will be ( when we are talking about lower timeframes than Daily ).
- With the use of the indicator you can apply it on any timeframe with ease.
- You can customize the coloring of premium & discount, frame lines, and even the look of it.
- Hide or show the EQ levels
Below the IPDA texts the indicator shows the actual percentage of the selected range based on the current price fluctuations.
The script handles the 20-40-60 days look-back as fractals so it can be applied on lower timeframes.
The basics:
- The Interbank Price Delivery Algorithm (IPDA): The algorithm creates a shift on the daily chart every 20, 40, and 60 trading days.
- These are the IPDA look-back periods. Every 20 trading days or so there is a new liquidity pool forming on both sides of the market based on ICT concepts.
- Determine the IPDA Data Range of the land 20 trading days.
- Note the highest high & lowest low in the past 20 trading days. Identify the institutional order flow and mark the relevant PD arrays in the selected IPDA look-back period we deemed useful for our trading style.
- This is your current dealing range.
- If the price consolidates for 20 days, consider switching to a 40-day look back.
Inside this dealing range, we look for the next draw on liquidity. Is it reaching for a liquidity pool or is it looking to rebalance at a particular PD Array. This is going to the Bias.
Which IPDA data range should you use?
IPDA20 can be our Short Term range - fit for intraday traders at most
IPDA40 can be our Swing Trade range - have a clear indication of the market profile
IPDA60 can be our range for position trading - have a clear indication of the market profile
Macro Matrix [Pro+] (DRxICT)Description:
Visualize the intricacies of the financial markets with Macro Matrix, a tool meticulously crafted with insights drawn from the teachings of Inner Circle Trader (ICT), and enhanced by ICT_Concepts.
A Macro is a short list of orders that the Interbank Price Delivery Algorithm (IPDA) will run to determine which liquidity to seek or which inefficiencies to rebalance. ICT traders are taught to focus on these Time windows to frame the clearest narrative and observe defining market behaviour. Traders can use the Macro Matrix to stay alerted about key market timings and price swings that arise during these times.
The Macro Matrix Pro+ brings the power of Macros to new heights thanks to ICT_Concepts’s studies of the market, by taking the price range defined by a Macro Time Window (i.e. 9:50-10:10 AM New York Time), and projecting it above and below the original range creating extensions, similar to DR models. Analysts can use these extensions to measure future price swings as targets, retracement levels, or key reversals.
In addition, analysts have the flexibility to choose different extensions over time. Extend projections until the next Macro, for the next 3 Macros, or even for a whole day. By considering and cross-referencing previous Macros, analysts can gain insights into their potential impact on the market and identify key market pivots.
When news events occur in specific macros on specific days of the week, these time based ranges can offer unique insights. This is particularly true when we consider the different impacts that various days of the week can have on market trends. By analyzing news events that fall within macro time ranges, analysts can gain a deeper understanding of the ranges that influence future market movements.
Key Features:
Day of the Week Filtering: refine your macro selection by implementing a day-of-the-week filter. This feature allows you to precisely tailor your chosen macros, enabling you to identify specific time-based opportunities within the week.
CME_MINI:ES1! Friday Macros only:
Macro Range: choose whether to base your macro range projections on the candle bodies or the wicks, offering you versatile control over your analysis and automate drawings.
CME_MINI:NQ1! Body vs. Wick difference:
Macro Extension: toggle between different extension methods to identify prior macro levels for future opportunities. Select to extend macro lines at intervals of 3, 6, 9 macros, or 1, 2, 3 days.
CME_MINI:NQ1! Different Extension periods:
Automatic Macro Coloring: choose to automatically color the macros based on the relationship of the open and the close or choose a single color to identify the macros and projections. Bullish macros will be colored blue and bearish macros will be colored red by default.
FOREXCOM:EURUSD Note how coloring helps determine narrative throughout the day:
Macro Open, Close, and Range Projections: identify key price levels of algorithmic timings to locate price inefficiencies, liquidity pools of interest, and equilibrium price points of fair value. Easily select these levels, as well as range projections up to 2.5 standard deviations.
CME_MINI:NQ1! Levels legend:
Alert Systems: customize alerts with flexible intervals preceding macro initiation in the market. Craft personalized alerts to stay informed and prepared for future market movements.
Usage Guidance:
Add Macro Matrix to your Tradingview chart.
Tailor your experience by toggling specific Time-based macros and style your perspective to be aligned with your analytical preference.
Observe where and when the market begins its macros, and how projections are utilized to influence macro or micro trends.
Leverage this invaluable information with other models and insights to create a stronger narrative for your analysis.
These tools are available ONLY on the TradingView platform.
Terms and Conditions
Our charting tools are products provided for informational and educational purposes only and do not constitute financial, investment, or trading advice. Our charting tools are not designed to predict market movements or provide specific recommendations. Users should be aware that past performance is not indicative of future results and should not be relied upon for making financial decisions. By using our charting tools, the purchaser agrees that the seller and the creator are not responsible for any decisions made based on the information provided by these charting tools. The purchaser assumes full responsibility and liability for any actions taken and the consequences thereof, including any loss of money or investments that may occur as a result of using these products. Hence, by purchasing these charting tools, the customer accepts and acknowledges that the seller and the creator are not liable nor responsible for any unwanted outcome that arises from the development, the sale, or the use of these products. Finally, the purchaser indemnifies the seller from any and all liability. If the purchaser was invited through the Friends and Family Program, they acknowledge that the provided discount code only applies to the first initial purchase of the Toodegrees Premium Suite subscription. The purchaser is therefore responsible for cancelling – or requesting to cancel – their subscription in the event that they do not wish to continue using the product at full retail price. If the purchaser no longer wishes to use the products, they must unsubscribe from the membership service, if applicable. We hold no reimbursement, refund, or chargeback policy. Once these Terms and Conditions are accepted by the Customer, before purchase, no reimbursements, refunds or chargebacks will be provided under any circumstances.
By continuing to use these charting tools, the user acknowledges and agrees to the Terms and Conditions outlined in this legal disclaimer.
Live Economic Calendar by toodegrees⚠️ PLEASE READ ⚠️
Although this indicator is accurate in showcasing live and upcoming News Events, checking the original sources is always suggested. This indicator aims to save Time, but due to limitations it may not be 100% correct 100% of the Time.
Description:
The Live Economic Calendar indicator seamlessly integrates with external news sources to provide real-Time, upcoming, and past financial news directly on your Tradingview chart.
By having a clear understanding of when news are planned to be released, as well as their respective impact, analysts can prepare their weeks and days in advance. These injections of volatility can be harnessed by analysts to support their thesis, or may want to be avoided to ensure higher probability market conditions. Fundamentals and news releases transcend the boundaries of technical analysis, as their effects are difficult to predict or estimate.
Designed for both novice and experienced traders, the Live Economic Calendar indicator enhances your analysis by keeping you informed of the latest and upcoming market-moving news.
This is achieved with three different visual components:
News Table: A dedicated News Table shows the Day of the Week, Date, Time of the Day, Currency, Expected Impact, and News Name for each event (in chronological order). Once a news event has occurred, or the day is over, it will be greyed out – helping to focus on the next upcoming news events.
News Lines: Vertical lines plotted in the future help analysts monitor upcoming news events; vertical lines in the past help analysts spot and backtest previous news events that already occurred.
News Labels: Color-coded news labels will plot once the news events have occurred. This not only gives analysts a minimalistic visual cue, but also retains the information of which news were released at that Time in their tooltips.
Forex Factory Calendar News Feed:
The Forex Factory Data Feed includes news events from January 2007 to the present. The data is updated daily. Please see the Technical Description below for more information.
Forex Factory provides news for all major currencies and markets:
Australia (AUD)
Canada (CAD)
Switzerland (CHF)
China (CNY)
European Union (EUR)
United Kingdom (GBP)
Japan (JPY)
New Zealand (NZD)
United States of America (USD)
Further, there are four types of news impact, defined by respective color-coding which is retained to avoid confusion:
⚪ Holiday
🟡 Low Impact
🟠 Medium Impact
🔴 High Impact
News' Time of the day data is in 24H format, and 'All Day' news are marked at Daily candle open.
⚠️ Original Release Notes ⚠️
The original release of this indicator supports the Forex Factory News Calendar in EST (New York Time). Future updates will include multiple news sources, as well as supporting different Timezones.
Given Data limitations, the Daily chart can omit some data due to the market being close on some days. This will be fixed in the future once an efficient solution is implemented.
Key Features:
Impact-Based News Filtering: Filter news items based on their expected impact (holiday, low, medium, high) to focus on the most market-critical information.
Symbol-Specific News: Automatically filter news to display only what's relevant to the currency pair or trading symbol you are analyzing.
Custom Currency News: Want to see more than the news relevant to the current symbol? Toggle which markets' news you are most interested in.
Chart History: Keep your charts clean by displaying only the drawings of Today's news, or This Week's news.
Custom Lookback: Look further back in Time by choosing a custom number of Lookback Days, allowing you to backtest and keep in mind salient news events from the past.
Line and Label Customization: Both the News Lines and Labels are highly customizable (except the colors), allowing you to make the indicator yours.
Table History: Choose whether to focus on Today's news only, or the news for This Week.
Table Customization: The table colors and position are highly customizable, allowing you to make it fit your visual preference and your layouts' aesthetic.
"Wondering how it's done? 👇"
Technical Description:
This script utilizes Pine Seeds , a service integrated with TradingView for importing custom data. This stunning feature enables users to upload and access custom End Of Day (EOD) data, which can be updated as frequently as five times daily.
This data can be imported in one of two formats:
Single Value: integer or float
Candle Data: open, high, low, close, volume
Upon encountering Pine Seeds, I recognized its potential for importing financial news events. Given that Forex Factory is a primary source of financial news in my personal analysis, integrating it into my layouts seemed like an exciting opportunity. This integration is expected to provide significant value to users looking to integrate additional news feeds all in one place.
Development Challenges:
Format Limitations: News events must be converted into numerical values for import, due to the required Pine Seeds format.
Amount of Data: With all currencies considered, the system may encounter over 40 news events in a single day.
Data Availability: The reliance on End Of Day (EOD) data means that information for the current day is displayed with a delay, and accessing future data is not possible.
Solutions:
Encoding: Each news event is encoded as an integer in the "DCHHMMITYP" format.
D = day of the week
C = currency
HHMM = Time of day
I = news impact
TYP = event ID (see Event Library A and Event Library B )
To ensure data assignment for each candle across the open, high, low, close, and volume series, the value "999" is used as a placeholder:
Importing: Utilizing the encoding system, up to five news events per day can be imported for a singular Pine Seeds custom symbol.
By creating multiple custom Pine Seeds Symbols, efficient imports of a larger number of events is then easily achievable. Nine unique symbols have been established, accommodating up to 45 news events per day.
These symbols are searchable, and accessible as " TOODEGREES_FOREX_FACTORY_SLOT_N " where N ranges from 1 to 9.
The Pine Seeds data feed appears as follows:
Uploading Schedule: To ensure analysts are informed about current and upcoming week's news, events are uploaded one week in advance.
This approach is vital for preparing for potential market impacts across various asset classes and currencies, allowing visibility of an entire week's news ahead of Time.
Data Scraping:
Unfortunately Forex Factory doesn't offer an API to fetch their news feed.
Hence an ad hoc python scraper was developed to read and save news events from January 2007 till the present leveraging Selenium. The scraper algorithm is part of a larger script responsible for scraping data, formatting data, and creating all necessary datasets.
The pseudo-code for the python script is as follows:
Read and save news event data on Forex Factory
Format day of the week, currency, Time of the day, and impact data for the Encoding
Encode and save News Event IDs – Event ID dataset is created
Format news data for Pine Seeds (roll-back date by one week, assign news to open, high, low, close, and volume values)
Create Pine Seeds Datasets
This script is ran everyday at Futures market close (16:00 EST) to update the last part of the each dataset, ensuring accuracy, and taking into account last-minute news additions or revisions.
Once the data (next week's news) is imported by the Live Economic Calendar indicator, it's immediately decoded by leveraging the Forex Factory Decoding Library , and saved into an array.
Upon a new week open, the decoded data is used to plot news events on the chart and in the news table.
See the inner workings of these processes in the Forex Factory Utility Library .
Although these libraries are specifically built for this indicator, feel free to use them to create your own scripts. Looking forward to see what the Pine Script community comes up with!
Thank you for making it this far. Enjoy!
Ciao,
toodegrees
This tool is available ONLY on the TradingView platform.
Terms and Conditions
Our charting tools are provided for informational and educational purposes only and do not constitute financial, investment, or trading advice. Our charting tools are not designed to predict market movements or provide specific recommendations. Users should be aware that past performance is not indicative of future results and should not be relied upon for making financial decisions. By using our charting tools, the user agrees that Toodegrees and the Toodegrees Team are not responsible for any decisions made based on the information provided by these charting tools. The user assumes full responsibility and liability for any actions taken and the consequences thereof, including any loss of money or investments that may occur as a result of using these products. Hence, by using these charting tools, the user accepts and acknowledges that Toodegrees and the Toodegrees Team are not liable nor responsible for any unwanted outcome that arises from the development, or the use of these charting tools. Finally, the user indemnifies Toodegrees and the Toodegrees Team from any and all liability.
By continuing to use these charting tools, the user acknowledges and agrees to the Terms and Conditions outlined in this legal disclaimer.
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.
MVRV Z-ScoreThe MVRV ratio was created by Murad Mahmudov & David Puell. It simply compares Market Cap to Realised Cap, presenting a ratio (MVRV = Market Cap / Realised Cap). The MVRV Z-Score is a later version, refining the metric by normalising the peaks and troughs of the data.
X% Drop in X Days, sold X Days afterIt identifies potential buy signals based on a specified percentage drop in price over a set number of days and calculates the total profit or loss (P/L) over a predefined period. Here's a breakdown of the script and its key parameters:
Script Description:
Indicator Name: "X% Drop in X Days, sold X Days after"
Functionality:
The script signals a buy opportunity when the price of an asset drops by a certain percentage (percentage_drop) within a specified length (length) in days.
It calculates the profit or loss percentage after a set number of days (hold_days) from the buy signal.
The script also displays the cumulative total profit or loss over a specified time frame, from a start date (start_period) to an end date (end_period), which is by default set to the current date.
Display:
Buy signals are marked on the chart.
The profit or loss for each trade after the hold period is displayed.
A label showing the total cumulative profit or loss, along with the start and end dates, is displayed on the chart.
Key Parameters:
percentage_drop (10.0% by default) : The percentage decrease in price that triggers a buy signal. It represents the threshold for the price drop to consider a buying opportunity.
length (3 days by default): The period over which the drop in price is considered. It's the timeframe used to evaluate the percentage drop.
hold_days (30 days by default) : The duration for holding the asset after the buy signal before selling. This parameter defines the time after which the profit or loss is calculated.
start_period (Set to "2022-11-21" by default): The beginning date for calculating the cumulative total profit or loss. This parameter allows the user to define a specific starting point for the analysis.
end_period (Set to the current date by default): The end date for the cumulative total profit or loss calculation. It defaults to the current date but can be set to a specific date for backtesting purposes.
Script Mechanics:
Buy Signal Logic: A buy signal is generated when the closing price is below the highest price of the last 'length' days, adjusted by the 'percentage_drop'.
Profit/Loss Calculation: For each buy signal, the script calculates the profit or loss percentage after 'hold_days' from the purchase. This is displayed on the chart for each trade.
Total P/L Display: The script calculates and displays the cumulative total profit or loss in the defined period (from 'start_period' to 'end_period') in a label on the chart.
Usage:
This script is useful for traders who follow a strategy based on buying assets after significant price drops and holding for a predetermined period. It automates the detection of potential buy opportunities and the calculation of profit or loss, aiding in decision-making and performance analysis.
Forecast: PastFluxDelta PredictionThe theory is that time periods and the conditions during these periods repeat themselves. Especially if it is the same day of the week in the past, there is a high probability that price fluctuations will roughly repeat themselves.
Eternal return (or eternal recurrence) is a philosophical concept which states that time repeats itself in an infinite loop, and that exactly the same events will continue to occur in exactly the same way, over and over again, for eternity.
History does repeat itself.
The stock market is a manifest example.
Chief market strategist at Miller Tabak + Co. Matt Maley pointed out the strong resemblance between the stock market recently and that in the past.
Various scientific studies and articles show that there could be something to this theory
Most of the investors are ignoring the parallels between stocks today and "heady" years 1929, 1999 and 2007…
Post Labor Day sees investors returning to the S&P 500 near all-time highs and some dark economic shadows lurking …
So how should we regard these inescapable results?
Nietzsche said we should embrace them, accept them, and love them. Once they stop, expect them to start again.
But remember that the future is fundamentally uncertain and that past results are by no means a guarantee of future performance.
Based on this, this indicator uses historical trading data from a year, a week or a day ago and compares price fluctuations in the past with current conditions.
"Bars to predict" can be used to indicate how far into the future the indicator is looking.
"Amount of bars to show" determines how many bars are generally displayed. A high value allows you to see how accurate the method was in the past.
Market Health MonitorThe Market Health Monitor is a comprehensive tool designed to assess and visualize the economic health of a market, providing traders with vital insights into both current and future market conditions. This script integrates a range of critical economic indicators, including unemployment rates, inflation, Federal Reserve funds rates, consumer confidence, and housing market indices, to form a robust understanding of the overall economic landscape.
Drawing on a variety of data sources, the Market Health Monitor employs moving averages over periods of 3, 12, 36, and 120 months, corresponding to quarterly, annual, three-year, and ten-year economic cycles. This selection of timeframes is specifically chosen to capture the nuances of economic movements across different phases, providing a balanced view that is sensitive to both immediate changes and long-term trends.
Key Features:
Economic Indicators Integration: The script synthesizes crucial economic data such as unemployment rates, inflation levels, and housing market trends, offering a multi-dimensional perspective on market health.
Adaptability to Market Conditions: The inclusion of both short-term and long-term moving averages allows the Market Health Monitor to adapt to varying market conditions, making it a versatile tool for different trading strategies.
Oscillator Thresholds for Recession and Growth: The script sets specific thresholds that, when crossed, indicate either potential economic downturns (recessions) or periods of growth (expansions), allowing traders to anticipate and react to changing market conditions proactively.
Color-Coded Visualization: The Market Health Monitor employs a color-coding system for ease of interpretation:
-- A red background signals unhealthy economic conditions, cautioning traders about potential risks.
-- A bright red background indicates a confirmed recession, as declared by the NBER, signaling a critical time for traders to reassess risk exposure.
-- A green background suggests a healthy market with expected economic expansion, pointing towards growth-oriented opportunities.
Comprehensive Market Analysis: By combining various economic indicators, the script offers a holistic view of the market, enabling traders to make well-informed decisions based on a thorough understanding of the economic environment.
Key Criteria and Parameters:
Economic Indicators:
Labor Market: The unemployment rate is a critical indicator of economic health.
High or rising unemployment indicates reduced consumer spending and economic stress.
Inflation: Key for understanding monetary policy and consumer purchasing power.
Persistent high inflation can lead to economic instability, while deflation can signal weak
demand.
Monetary Policy: Reflected by the Federal Reserve funds rate.
Changes in the rate can influence economic activity, borrowing costs, and investor
sentiment.
Consumer Confidence: A predictor of consumer spending and economic activity.
Reflects the public’s perception of the economy
Housing Market: The housing market often leads the economy into recession and recovery.
Weakness here can signal broader economic problems.
Market Data:
Stock Market Indices: Reflect overall investor sentiment and economic
expectations. No gains in a stock market could potentially indicate that economy is
slowing down.
Credit Conditions: Indicated by the tightness of bank lending, signaling risk
perception.
Commodity Insight:
Crude Oil Prices: A proxy for global economic activity.
Indicator Timeframe:
A default monthly timeframe is chosen to align with the release frequency of many economic indicators, offering a balanced view between timely data and avoiding too much noise from short-term fluctuations. Surely, it can be chosen by trader / analyst.
The Market Health Monitor is more than just a trading tool—it's a comprehensive economic guide. It's designed for traders who value an in-depth understanding of the economic climate. By offering insights into both current conditions and future trends, it encourages traders to navigate the markets with confidence, whether through turbulent times or in periods of growth. This tool doesn't just help you follow the market—it helps you understand it.