Custom Hourly Highlight PeriodsThis Pine Script indicator for TradingView allows users to visually highlight up to five distinct periods within a trading day directly on their chart. It's designed to enhance chart analysis by emphasizing specific time frames that may coincide with increased market activity, trading sessions, or personal trading strategies.
Features:
Customizable Highlight Periods: Users can define up to five separate highlight periods, specifying both start and end hours for each. This flexibility supports a wide range of trading strategies and time zones.
Individual Period Activation: Each highlight period can be individually enabled or disabled, allowing users to focus on specific times of interest without cluttering the chart.
Color-Coded Visualization: Each period is highlighted with a different transparent color (blue, red, green, purple, and orange) for clear distinction between different segments of the trading day. Colors are customizable to fit personal preferences or chart themes.
User-Friendly Inputs: Simple input fields make it easy to adjust start/end times and toggle the visibility of each period, requiring no coding experience to customize.
Use Cases:
Identifying Repeating Patterns: Certain regional markets exhibit unique behaviors, with some creating sell pressure in the morning, while others generate buy pressure. This indicator allows for clear visualization of these patterns.
Market Session Highlights: Emphasize the opening and closing hours of major markets (e.g., NYSE, NASDAQ, Forex markets) to identify potential volatility or trading opportunities.
Personal Trading Hours: Mark the time frames when you typically trade or when your trading strategy performs best.
Economic Release Times: Highlight periods when important economic reports are released, which can significantly impact market movement.
Cycles
Global Liquidity Index (Candles)The Global Liquidity Index (Candles) provides a comprehensive overview of major central bank balance sheets worldwide, presenting values converted to USD for consistency and comparability, following relevant forex rates. This indicator, based on the code developed by user ingeforberg , incorporates essential US accounts including the Treasury General Account (TGA) and Reverse Repurchase Agreements (RRP), subtracted from the Federal Reserve's balance sheet to offer a nuanced perspective on US liquidity. Users can tailor their analysis by selectively enabling or disabling specific central banks and special accounts according to their preferences. The index exclusively includes central banks abstaining from currency pegging and with reliable data accessible since late 2007, ensuring a robust aggregated liquidity model.
The calculation of the Global Liquidity Index involves subtracting the Treasury General Account (TGA) and Reverse Repurchase Agreements (RRP) from the Federal Reserve System (FED) and adding the balance sheets of major central banks worldwide: the European Central Bank (ECB), the People's Bank of China (PBC), the Bank of Japan (BOJ), the Bank of England (BOE), the Bank of Canada (BOC), the Reserve Bank of Australia (RBA), the Reserve Bank of India (RBI), the Swiss National Bank (SNB), the Central Bank of the Russian Federation (CBR), the Central Bank of Brazil (BCB), the Bank of Korea (BOK), the Reserve Bank of New Zealand (RBNZ), Sweden's Central Bank (Riksbank), and the Central Bank of Malaysia (BNM).
This tool proves invaluable for individuals seeking a consolidated perspective on global liquidity to interpret macroeconomic trends. Analyzing these balance sheets enables users to discern policy trajectories and assess the global economic landscape, providing insights into asset pricing and assisting investors in making well-informed capital allocation decisions. Historically, assets perceived as riskier, such as small caps and cryptocurrencies, have tended to perform favorably during periods of escalating liquidity. Thus, investors may exercise caution regarding additional risk exposure unless a sustained upward trend in global liquidity is evident.
Main differences between the original and updated indicators:
The "Global Liquidity Index (Candles)" script, compared to the original "Global Liquidity Index" script, offers a more detailed and visually rich representation of liquidity data.
"Global Liquidity Index (Candles)" employs candlestick visualization to represent liquidity data. Each candlestick encapsulates open, high, low, and close prices over a given period. This format provides granular insights into liquidity fluctuations, facilitating a more nuanced analysis.
By using candlesticks, the script offers traders detailed information about liquidity dynamics. They can analyze the patterns formed by candlesticks to discern trends, reversals, and market sentiment shifts, aiding in making informed trading decisions.
Price and Volume Stochastic Divergence [MW]Introduction
This indicator creates signals of interest for entering and exiting long and short positions on equities. It primarily uses up and down trends defined by the change in cumulative volume with some filtering provided by a short period exponential moving average (9 EMA by default).
Settings
Moving Average Period : The moving average over which the cumulative volume delta is calculated. Default: 14
Short Period EMA : The EMA used to represent price action, and is used to generate the EMA Delta line. Default: 27 (3*3*3)
Long Period EMA : The second EMA used to calculate the EMA Delta line. Default: 108 (2*2*3*3*3)
Stochastic K Value : The value used for stochastic curve smoothing. Default: 3
Dot Size : The diameter of the larger indicator. Default: 10
Dot Transparency : The transparency level of the outer ring of the primary BUY/SELL signal. Default: 50 (0 is opaque, 100 is transparent)
Band Distance from 0 to 100 : The upper and lower band distance. Default: 20
Calculations
The cumulative volume delta (CVD) is calculated using candle bodies and wicks. For a red candle, buying volume is calculated by multiplying the volume by the spread percentage of the average of the top and bottom wicks, while Selling Volume is calculated multiplying the volume by the spread percentage of the average of the top and bottom wicks - in addition to the spread percentage of the candle body.
For a green candle, buying volume is calculated by multiplying the volume by the spread percentage of the average of the top and bottom wicks - plus the spread percentage of the candle body - while Selling Volume is calculated using only the spread percentage average of the top and bottom wicks.
Once we have the CVD, we can then perform a stochastic calculation of the CVD value.
stochastic calculation = (current value - lowest value in period) / (highest value in period - lowest value in period)
We’ll do the same stochastic calculation for the short term EMA (27 EMA default) as well as for the difference between the short term and long term EMA.
When the stochastic CVD value is rising from zero and the short term EMA stochastic value equals 100, then it’s a major bullish signal. When the stochastic CVD value is falling from 100 and the short term EMA stochastic value equals 0, then it’s a major bearish signal.
Sometimes, after a bullish or bearish signal, the stochastic CVD will reverse direction triggering a new opposing signal.
How to Interpret
The CVD indicates when there is either more buying than selling or vice versa. A value over 50 for the stochastic CVD curve represents more buying taking place. A value below 50 represents more selling. One might intuitively believe that when there is more buying volume than selling volume that the price would follow suit. This is not always the case.
Most of the time buying volume will precede consistent price movement upwards, and selling volume will precede consistent price movement downwards. When this divergence occurs, the indicator generates a signal. When this divergence begins to fail, and buying or selling volume reverses, then another signal is generated indicating that the buying/selling impulse is headed back into the direction of price action.
These interactions are visually represented on the chart with the coral line that represents CVD, and the yellow line that represents the EMA, or the average price. When the coral line goes up and the yellow line stays down, that’s the BUY signal. When the coral line goes down and the yellow line stays up, that’s the sell signal. When the coral line switches direction, the chart generates another signal showing that volume is moving in a direction that supports the price.
The orange line represents the stochastic representation of the difference between the short EMA (27 by default) and the long EMA (108 by default). EMA differences is a method that can be used to define a trend. When a short term EMA is above a longer term EMA, that may represent a bullish trend. When it is below, that may represent a bearish trend. When all 3 lines are rising or falling in the same direction at the same time, it tends to indicate a movement that has the potential to continue.
Other Usage Notes and Limitations
It's important for traders to be aware of the limitations of any indicator and to use them as part of a broader, well-rounded trading strategy that includes risk management, fundamental analysis, and other tools that can help with reducing false signals, determining trend direction, and providing additional confirmation for a trade decision. Diversifying strategies and not relying solely on one type of indicator or analysis can help mitigate some of these risks.
This indicator can be paired with the MW Volume Impulse indicator if it is desired to see the actual buying and selling cumulative volume deltas. Also, in many cases, the BUY and SELL signals tend to correspond with Keltner Bands (ATR Bands) becoming extended. Lastly, volume weighted average price (VWAP) along with other macro events can impact price and negate signals. To view VWAP lines, you may choose to use the Multi VWAP or Multi VWAP for Gaps indicator to help ensure that the signals you see in this indicator are not being affected by VWAP lines.
PCTR - Pi Cycle Top Risk [Logue]Pi-cycle Top Risk (PCTR) - The PCTR indicator uses divergence of the Pi-cycle top indicator display the risk that a macro top in Bitcoin (BTC) is near. The Pi-cycle top 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 a top signal when the fast moving average (111-day) crosses above the 2x multiple of the slow moving average (350-day).
What's interesting is the indicator can also signal a bottom when the divergence of the fast moving average is at an extreme versus the slow moving average. The indicator signals a bottom when the fast MA is 66% away from the slow MA value.
Both the top and bottom signals are clearly shown on the chart on a scale from 100 to 0.
TcTrendThis script using 4 moving averages to indicate if the current pair is in an up or downtrend. The middle 2 moving averages are used to indicate an upcoming trend flip.
Optionally also shows the trend of current main symbol against BTC, ETH and SOL, and a configurable pair.
Also shows if BTC.D and CURRENT.D are in an up or downtrend.
All above settings are configurable.
Expected Daily Range @shrilss This indicator provides traders with insights into potential price movements based on statistical analysis of historical data. It calculates expected high and low price levels for the current trading day, as well as maximum expected high and low levels, aiding traders in setting appropriate entry and exit points.
This indicator utilizes the previous day's open and close prices to establish a midpoint, around which the expected price range is calculated. By factoring in a user-defined standard deviation multiplier, traders can adjust the sensitivity of the expected price levels to market volatility.
The script plots the previous day's midpoint, along with the expected high and low price levels for the current day. Additionally, it offers insights into potential maximum price fluctuations by plotting the maximum expected high and low levels.
ICT Hydra MacrosThis indicator allows you to set a colored box at each time frame specified as Macro.
The purpose of this customizable color box is to be able to identify the start and end of the desired time frame, as well as the highest and lowest price during that time frame.
It also allows to place the schedule in numbers inside the box in order to quickly identify the painted time frame.
The indicator has up to 26 customizable boxes both in time frame and color. This allows to have different time frames that each Trader considers convenient for his strategy.
Settings:
General Settings:
Limit Days to Draw: Indicates the number of past days in which boxes will be drawn. Default value is 5 past days.
Timeframe Limit: Indicates the maximum time frame in which the boxes will be displayed. Default value is 5 minutes.
Timezone: Indicates the desired Timezone to calculate the schedules that will be configured later.
Macros Settings:
Show Macros Boxes: Enables or disables all boxes. It is enabled by default.
Display Text: Enables or disables all labels inside the boxes containing the time frame corresponding to the box. It is enabled by default.
Macros Transparency: Indicates the transparency percentage of the selected color for all boxes. By default it contains a value of 80% transparency.
Macro 1-26: Indicates the start time and end time, as well as the color of the individual box. Each Macro can be enabled or disabled individually. Note that the boxes of each Macro will be visible only if the "Show Macros Boxes" property is enabled. By default, there are specified certain Macros or time frames with a duration of 20 minutes, which are Manipulation or Expansion Macros that mentor Hydra has taught us based on the knowledge that ICT has provided for everyone.
The objective of this indicator is to provide a visual tool on the Macros or Time Frames in which the Trader can easily observe the desired schedule and which will automatically adjust according to the time and price on all 4 sides of the box.
Crypto Stablecoin Supply - Indicator [presentTrading]█ Introduction and How it is Different
The "Stablecoin Supply - Indicator" differentiates itself by focusing on the aggregate supply of major stablecoins—USDT, USDC, and DAI—rather than traditional price-based metrics. Its premise is that fluctuations in the total supply of these stablecoins can serve as leading indicators for broader market movements, offering traders a unique vantage point to anticipate shifts in market sentiment.
BTCUSD 6h for recent bull market
BTCUSD 8h
█ Strategy, How it Works: Detailed Explanation
🔶 Data Collection
The strategy begins with the collection of the closing supply for USDT, USDC, and DAI stablecoins. This data is fetched using a specified timeframe (**`tfInput`**), allowing for flexibility in analysis periods.
🔶 Supply Calculation
The individual supplies of USDT, USDC, and DAI are then aggregated to determine the total stablecoin supply within the market at any given time. This combined figure serves as the foundation for the subsequent statistical analysis.
🔶 Z-Score Computation
The heart of the indicator's strategy lies in the computation of the Z-Score, which is a statistical measure used to identify how far a data point is from the mean, relative to the standard deviation. The formula for the Z-Score is:
Z = (X - μ) / σ
Where:
- Z is the Z-Score
- X is the current total stablecoin supply (TotalStablecoinClose)
- μ (mu) is the mean of the total stablecoin supply over a specified length (len)
- σ (sigma) is the standard deviation of the total stablecoin supply over the same length
A moving average of the Z-Score (**`zScore_ma`**) is calculated over a short period (defaulted to 3) to smooth out the volatility and provide a clearer signal.
🔶 Signal Interpretation
The Z-Score itself is plotted, with its color indicating its relation to a defined threshold (0.382), serving as a direct visual cue for market sentiment. Zones are also highlighted to show when the Z-Score is within certain extreme ranges, suggesting overbought or oversold conditions.
Bull -> Bear
█ Trade Direction
- **Entry Threshold**: A Z-Score crossing above 0.382 suggests an increase in stablecoin supply relative to its historical average, potentially indicating bullish market sentiment or incoming capital flow into cryptocurrencies.
- **Exit Threshold**: Conversely, a Z-Score dropping below -0.382 may signal a reduction in stablecoin supply, hinting at bearish sentiment or capital withdrawal.
█ Usage
Traders can leverage the "Stablecoin Supply - Indicator" to gain insights into the underlying market dynamics that are not immediately apparent through price analysis alone. It is particularly useful for identifying potential shifts in market sentiment before they are reflected in price movements. By integrating this indicator with other technical analysis tools, traders can develop a more rounded and informed trading strategy.
█ Default Settings
- Timeframe Input (`tfInput`): Allows users to specify the timeframe for data collection, adding flexibility to the analysis.
- Z-Score Length (`len`): Set to 252 by default, representing the period over which the mean and standard deviation of the stablecoin supply are calculated.
- Color Coding: Uses distinct colors (green for bullish, red for bearish) to indicate the Z-Score's position relative to its thresholds, enhancing visual clarity.
- Extreme Range Fill: Highlights areas between defined high and low Z-Score thresholds with distinct colors to indicate potential overbought or oversold conditions.
By integrating considerations of stablecoin supply into the analytical framework, the "Stablecoin Supply - Indicator" offers a novel perspective on cryptocurrency market dynamics, enabling traders to make more nuanced and informed decisions.
Pivot Extremes BreakoutI created the "Pivot Extremes Breakout" (PEB) indicator to easily spot breakout zones using pivot points. This tool comes from my need to anticipate market direction and capitalize on breakouts. PEB uses the last two pivot points to predict price paths and highlights potential breakout areas, adjusting for any timeframe. It simplifies seeing where the market might move next with color-coded lines and zones, aiming to improve your trading decisions.
STABLECOINS DEPEG FINDERSTABLECOINS DEPEG FINDER
With this script, you will be able to understand how DePeg in stablecoins USDT, USDC, and FDUSD can influence the TOTAL Market Cap.
WHAT IS DEPEG?
DePeg occurs when a stablecoin loses its peg. It can't maintain the $1.00 price for a while (or anymore). Traders can use DePeg for high-quality trading both in Crypto and Stablecoins. Usually, a Negative DePeg (e.g., 0.98%) means you can buy Stablecoins at a 2% discount. This translates to a 2% gain when the Stablecoin returns to its peg. Additionally, a Positive DePeg could be a good moment for selling or withdrawal.
WHY DEPEG MATTERS IN THE CRYPTO SPACE
Depeg in Crypto markets is primarily a matter of "earning from small differences in peg." If well understood, it can help traders and analysts to spot whales' next moves. Usually, when a negative DePeg (below $1) occurs, it means whales are in a hurry to sell their Stablecoin tokens for Crypto Tokens. In this hurry, they sell Stablecoins at a discount. In the short term, a Crypto pump is likely planned, and they buy the next x100 token.
On the other hand, a positive DePeg (above $1) means whales are in a hurry to convert tokens into Stablecoins because they are heavily selling Crypto Tokens. This leads to them paying more for Stablecoins. Positive Depeg is more interesting than Negative DePeg. Usually, it signifies an important sell-off in the crypto environment, creating high tension to safeguard your hard-earned money. Whales hurry to convert altcoins and tokens into stablecoins, causing a Positive Depeg (they are willing to pay more to be safe). Positive DePeg is plotted as Intense Background Color.
Identifying 'areas' where this occurs could help traders and analysts understand this highly manipulative market better and take positions.
THE SCRIPT
This script will help traders and analysts understand when USDT, USDC, and FDUSD depegged and how the crypto market reacted. It comes with the possibility to check and plot backgrounds when there's Positive DePeg or Negative DePeg for USDT, USDC, or FDUSD.
It's pretty useful for data analysis. In the bottom-right part, you can check the actual stablecoin peg for the three Stablecoins:
- Highest Positive DePeg in a given BackTrace
- Average Positive DePeg in a given BackTrace
- Actual Peg for USDT, USDC, FDUSD
- Average Negative DePeg in a given BackTrace
- Lowest Negative DePeg in a given BackTrace
UNDERSTANDING THE BACKGROUND PLOT
NEGATIVE DEPEG
For each Stablecoin, negative DePeg is plotted as Translucent Background Color: USDT lime, USDC aqua, FDUSD grey. You can choose from settings whether it needs to be enabled or disabled for each token.
POSITIVE DEPEG
For each Stablecoin, positive DePeg is plotted as Intense Background Color: USDT lime, USDC aqua, FDUSD grey. You can choose from settings whether it needs to be enabled or disabled for each token.
USE CASE EXAMPLES
With this script you can plan to be alerted WHEN one of those stablecoin are depegging over a threesold. Than you can act accordingly.
BUY OPPORTUNITY
Let' suppose you want to see how USDC can influence Crypto Price when deppeged
I've setup signal to be plotted only for negative Depeg when USDC goes below 0.998. As you can see it was a very good and nice buy area for the entire crypto market
SELL OPPORTUNITY
Spot a selling point could be harder. In the example below let's see how USDC positive DePeg can show signal of Crypto dump earlier in daily TF
Astro: Celestial Body LongitudesThis is fork of the previous Astro: Planetary Longitudes indicator that now includes over a dozen different celestial bodies, made possible after the most recent update of the AstroLib library .
Celestial longitude is a measurement of the position of a celestial body in its orbit around the Sun, expressed in degrees of arc along the plane of the body's orbit. It is one of the fundamental coordinates used in astronomy to describe the position of a planet or other celestial object.
The concept of longitude is important in astrology, where it is used to determine the position of the planets in the zodiac. In this context, the longitude is measured along the ecliptic, which is the apparent path of the Sun on the celestial sphere. Astrologers use the position of the planets in the zodiac to make predictions and interpretations about personality traits, life events, earthquakes, market events, and other aspects of human experience.
This indicator includes geocentric/heliocentric longitude lines with retrograde identification, Vedic Nakshatras, and astrological zodiac & aspects for each of the celestial bodies. Hover over labels for additional information.
HTF Candle ProjectionsThe HTF Candle Projections indicator shows a number of candles from a higher time frame (HTF) projected to the right of the candles in the current timeframe. This can be very useful if you want to analyze two different timeframes without the need to switching between the different timeframes.
This indicator is highly inspired by the HTF Power of Three indicator by @toodegrees but is fully free and open source, it also have support for showing more than just one candle in the projection. It is also inspired by the HTF Candle Insights (Expo) indicator by @Zeiierman but differ in the way that it update the HTF candles in real time and also have support for showing Open/High/Low projections that also updates in real time.
This indicator is released under TradingViews default license ( Mozilla Public License 2.0 )
Bitcoin Price Based On ElectricityThis script Calculates the price of Bitcoin solely on the hashrate and the cost of electricity.
The calculation is quite conservative considering its based on the average cost of electricity globally and we are assuming that everyone is running the latest mining hardware, which is the most efficient and cost effective.
Under both of these assumptions the calculation for bitcoins price is almost identical to the price we are seeing now.
If we change the reward rate to 3.125 (Aprils reward amount) then the price of one bitcoin per cost of work will be around 100k.
I am sure I am missing some important numbers in this calculation, fees, start up costs etc. However, it is very interesting to see that the price of Bitcoin can be calculated almost perfectly based on the hashrate and cost of electricity.
PROOF OF WORK
Test - Most correlated assetThis is a simple test to find the most and least correlated assets in a list.
Time Range zoneThis TradingView script displays two time zones on the chart. The first zone starts at 8:00 AM and ends at 1:00 PM, while the second zone starts at 5:00 PM and ends at 10:00 PM. If the current time is within either of these two zones, a green or red background is drawn on the chart, respectively. This script is set by default for my personal XRP strategy.
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.
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.
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.
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