CRT Hourly/15m dividers and opensRange Separator is a unique tool designed to help traders visualize critical price levels and ranges on their charts. This script employs the innovative concepts of "Candles Are Ranges" and the "Power of 3 (PO3)" to enhance trading strategies by marking key time intervals and price levels.
What the Script Does:
Hourly Lines:
Automatically draws vertical lines at the start of each hour.
Provides an option to display only the current hour's line for a cleaner visual.
Allows customization of line color, width, and style.
15-Minute Lines:
Adds vertical lines at 15-minute intervals to highlight smaller time ranges.
Includes an option to draw horizontal lines at the 15-minute interval prices.
Offers customization for line color, width, and style.
Horizontal Lines:
Draws horizontal lines based on the opening, high, or low price of the selected timeframe.
Customizable options for line color, width, and style.
How the Script Works:
Candles Are Ranges: Each candle represents a price range (OHLC) on any timeframe. The script visually emphasizes these ranges, helping traders understand price action better.
Power of 3 (PO3): This concept divides price delivery into three stages: formation, turtle soup (stop hunting), and distribution/expansion. The script marks these intervals, aiding in identifying potential key levels for entries and exits.
How to Use the Script:
Adding the Script:
Apply the script to your chart and adjust the settings in the input menu.
Customize the appearance of hourly and 15-minute lines to suit your preference.
Analyzing the Chart:
Observe the hourly lines to determine higher timeframe biases.
Use 15-minute lines to identify more granular price movements.
Pay attention to horizontal lines that mark significant price levels based on your chosen criteria (open, high, low).
Trading Strategy:
Combine the script's visual aids with your understanding of the "Candles Are Ranges" and "Power of 3" concepts.
Use these visual cues to make informed decisions about potential entry and exit points.
What Makes it Original:
Integration of Candles Are Ranges and PO3 Concepts: Unlike traditional scripts that merely plot lines, this script uniquely integrates two powerful trading theories to provide a comprehensive view of price action.
Customizable Visual Aids: Offers extensive customization options for line colors, widths, and styles, allowing traders to tailor the script to their specific needs.
Enhanced Timeframe Analysis: By marking both hourly and 15-minute intervals, the script provides a detailed view of price ranges across multiple timeframes, enhancing the trader's ability to make informed decisions.
- Key script Parameters
Show Hourly Lines: Toggles the display of vertical lines marking each hour.
Hourly Lines Color: Sets the color of the hourly vertical lines.
Hourly Lines Width: Chooses the width of the hourly vertical lines (1, 2, or 3).
Hourly Lines Style: Selects the style of the hourly lines (Solid, Dashed, or Dotted).
Horizontal Line Color: Defines the color of the horizontal lines drawn at hourly intervals.
Horizontal Line Width: Determines the width of the horizontal lines (1, 2, or 3).
Horizontal Line Style: Sets the style of the horizontal lines (Solid, Dashed, or Dotted).
Horizontal Line Start Price: Specifies which price (Open, High, Low) the horizontal lines will start from.
Show Current Hour Only: Limits the display to only the current hour's horizontal line.
Show 15-Minute Lines: Toggles the display of vertical lines marking each 15-minute interval.
15-Minute Lines Color: Sets the color of the 15-minute vertical lines.
15-Minute Lines Width: Chooses the width of the 15-minute vertical lines (1, 2, or 3).
15-Minute Lines Style: Selects the style of the 15-minute lines (Solid, Dashed, or Dotted).
Show 15-Minute Horizontal Lines: Toggles the display of horizontal lines at 15-minute intervals.
15-Minute Horizontal Lines Color: Defines the color of the horizontal lines drawn at 15-minute intervals.
15-Minute Horizontal Lines Width: Determines the width of the horizontal lines (1, 2, or 3).
15-Minute Horizontal Lines Style: Sets the style of the horizontal lines (Solid, Dashed, or Dotted).
Important Notes:
- Credit to @Yazdanian and his basic "Hourly separators" indicator that plots a simple vertical line every hour which provided the idea for this version and expanded on
- This script is designed to complement your trading strategy by providing visual aids and should be used alongside other technical analysis tools.
It is not intended to issue buy or sell signals but to help you understand price ranges and potential key levels.
Disclaimer: The script is provided as-is, and the authors are not responsible for any trading losses incurred using this script. Always perform your own analysis and use proper risk management.
Cycles
Multi-Timeframe Period Separator [CHE]Multi-Timeframe Period Separator
Introduction
- Purpose: This TradingView script is designed to help traders by automatically drawing period separators on the chart based on various timeframes.
- Benefits: Enhances chart readability, provides better visualization of time periods, and supports multiple timeframe types.
Features
1. Timeframe Selection:
- Auto Timeframe
- Multiplier
- Manual
2. Customization Options:
- Separator color
- Separator style
- Separator width
3. Display Options:
- Time period information box
- Customizable size and position of the info box
Code Breakdown
1. Timeframe Type Selection
- Options: Users can choose between "Auto Timeframe," "Multiplier," and "Manual." A multiplier can be set for the alternate resolution.
2. Resolution Calculation
- Automatic, Multiplier, and Manual Resolution Calculation: The resolution is calculated based on the selected timeframe type.
3. Automatic Timeframe Function
- Dynamic Timeframe Calculation: A function for automatically calculating the appropriate timeframe based on the current chart resolution.
4. Drawing the Separators
- Drawing Separators on the Chart: Separators are drawn based on the selected timeframe and the user's customization options.
5. Display of the Time Period
- Information Box Settings: Users can enable the display of an information box showing the current timeframe. The size, position, and colors of the box can be customized.
- Displaying the Time Period in the Information Box: If enabled, the information box shows the current time period.
Usage
1. Loading the Script: Add the script to your TradingView chart.
2. Setting Timeframe Type: Choose from Auto, Multiplier, or Manual.
3. Customizing Separators: Adjust the color, style, and width of the separators to your preference.
4. Displaying the Time Period: Enable the information box to show the current timeframe.
Conclusion
- Summary: This script provides a robust solution for traders who need clear visual separation of different time periods on their charts.
- Customization: Flexible options allow you to tailor the appearance and functionality to suit your trading style.
R-Squared Trend Strength and Direction [CHE] Introduction
TradingView is a web-based platform that allows traders and investors to conduct comprehensive technical analyses, develop trading strategies, and track market movements in real-time. One of the many features TradingView offers is the ability to create custom indicators using Pine Script. In this presentation, we will focus on the implementation and application of an R-Squared indicator for analyzing trend strength and direction, as well as using the T3 indicator for trend direction confirmation.
---
What is R-Squared?
R-Squared (R²), also known as the coefficient of determination, is a statistical measure that represents the proportion of the variance for a dependent variable that's explained by an independent variable(s). In technical analysis, R-Squared is used to quantify the clarity of a trend. A higher R-Squared indicates a clearer trend, less affected by random price fluctuations.
---
Pine Script: Implementing the R-Squared Indicator
Inputs:
- Source: The data source to be analyzed, such as the average of high and low prices.
- Period: The period length for calculating sums and R-Squared values.
Sum Calculations:
- Sum X and Sum XX: These sums relate to the indices of the selected period.
- Sum XY and Sum YY: These sums relate to the products of the indices and their respective price values.
- Sum Y: The sum of price values over the chosen period.
Q-Values Calculation:
- Q-values are used to calculate the R-Squared value, which indicates trend clarity.
Trend State:
- Based on the R-Squared value, a trend state is determined, indicating whether a clear trend is present. Specific threshold values are used to identify trend changes.
---
Using the T3 Indicator
The T3 indicator is used exclusively for confirming the trend direction in this strategy. It helps verify the direction of the trend identified by the R-Squared indicator.
T3 Indicator Calculation:
- The T3 indicator uses a series of exponential smoothings to smooth price movements and provide a clearer view of the trend direction.
- The T3 indicator confirms the trend direction indicated by the R-Squared indicator.
---
Functioning of the R-Squared and T3 Combination
1. Input Parameters:
- Define the data source and period length for calculating sums and R-Squared values.
2. Sum Calculations:
- Calculate various sums over the defined period needed to derive Q-values.
3. Q-Values Calculation:
- Derive Q1, Q2, and Q3 from the sums to calculate the R-Squared value.
4. Trend State:
- Use the R-Squared value to determine if a clear trend is present, utilizing threshold values to recognize trend changes.
5. Trend Direction Confirmation with T3:
- Calculate the T3 indicator to confirm the trend direction. The T3 is used solely for direction confirmation, not for clarity.
6. Long and Short Conditions:
- Define long and short entry conditions based on the combination of R-Squared and T3 indicators, and visualize them on the chart.
---
Conclusion
The R-Squared indicator is a powerful tool for analyzing the clarity of a trend. By integrating it into TradingView using Pine Script, traders can make informed decisions and optimize their trading strategies. The T3 indicator is used exclusively in this strategy to confirm the trend direction, enhancing the accuracy of trading signals.
---
Questions and Discussion
Are there any questions about the implementation or application of the R-Squared indicator in TradingView? How can we further improve this indicator or integrate it into existing strategies?
Best regards
Chervolino
Vlad Waves█ CONCEPT
Acceleration Line (Blue)
The Acceleration Line is calculated as the difference between the 8-period SMA and the 20-period SMA.
This line helps to identify the momentum and potential turning points in the market.
Signal Line (Red)
The Signal Line is an 8-period SMA of the Acceleration Line.
This line smooths out the Acceleration Line to generate clearer signals.
Long-Term Average (Green)
The Long-Term Average is a 200-period SMA of the Acceleration Line.
This line provides a broader context of the market trend, helping to distinguish between long-term and short-term movements.
█ SIGNALS
Buy Mode
A buy signal occurs when the Acceleration Line crosses above the Signal Line while below the Long-Term Average. This indicates a potential bullish reversal in the market.
When the Signal Line crosses the Acceleration Line above the Long-Term Average, consider placing a stop rather than reversing the position to protect gains from potential pullbacks.
Sell Mode
A sell signal occurs when the Acceleration Line crosses below the Signal Line while above the Long-Term Average. This indicates a potential bearish reversal in the market.
When the Signal Line crosses the Acceleration Line below the Long-Term Average, consider placing a stop rather than reversing the position to protect gains from potential pullbacks.
█ UTILITY
This indicator is not recommended for standalone buy or sell signals. Instead, it is designed to identify market cycles and turning points, aiding in the decision-making process.
Entry signals are most effective when they occur away from the Long-Term Average, as this helps to avoid sideways movements.
Use larger timeframes, such as daily or weekly charts, for better accuracy and reliability of the signals.
█ CREDITS
The idea for this indicator came from Fabio Figueiredo (Vlad).
Edufx's Power of ThreeIndicator Overview
Name: Edufx's Power of Three
Purpose:
To highlight the high and low price ranges of specific hourly candles on a chart.
To visualize these ranges using rectangles.
Features
Visibility Toggle:
Users can enable or disable the visibility of the rectangles highlighting the high and low price ranges of the specified candles.
Customizable Rectangle Length:
Users can adjust the length of the rectangles that extend from the specified candle's high and low prices.
Price Range Tracking:
The high and low prices of the specified candles are tracked and stored.
Rectangle Drawing:
Rectangles are drawn from 5 bars before the end of the specified hour, highlighting the high and low price ranges.
How It Works
Price Range Tracking:
During each specified hour, the high and low prices are updated with the highest and lowest prices observed.
Rectangle Drawing:
At the end of each specified hour, the high and low prices are used to draw rectangles extending 5 bars backward from the end of the hour.
Rectangles are color-coded (red, green, and blue) for easy identification.
Usage
This indicator is useful for traders who want to monitor and react to key price levels at specific times of the day.
The visual rectangles help in identifying potential trading opportunities based on price action relative to these key levels.
Example
If the price moves above the high of the specified candle but fails to close above it, a visual rectangle will highlight this price range.
Similarly, if the price moves below the low of the specified candle but fails to close below it, the rectangle will indicate this range.
This indicator provides visual aids to assist traders in making informed decisions based on the behavior of price at specific key levels.
Stocks Above 5-Day Average (FOMO)Overview
Inspired by Matt Carusos's FOMO indicator, this breadth indicator is designed to provide a visual representation of the percentage of stocks within major indices that are trading above their 5-day moving average.
Functionality
The indicator plots the percentage of stocks trading above their 5-day moving average for the following indices:
S&P 500
Nasdaq
Russell 2000
Dow Jones
All Markets (MMFD)
The indicator includes two horizontal lines:
Upper Threshold: Default at 85%
Lower Threshold: Default at 15%
These lines are used to identify potential overbought (above upper threshold) or oversold (below lower threshold) conditions.
Plot Shapes:
Small circles are plotted at the points where the percentage of stocks crosses the upper or lower thresholds, with colors matching the respective index.
Table:
The current percentage of stocks above the 5-day average for each index.
A warning sign (⚠️) is shown in the table if the percentage crosses the upper or lower threshold, regardless of whether the index plot is enabled or not.
Risk Management Calculator with Fees and Take Profit [CHE]Risk Management Calculator with Fees and Take Profit
Welcome to the Risk Management Calculator with Fees and Take Profit script! This powerful tool is designed to help traders manage their risk effectively, calculate leverage, and set take profit targets. The script is inspired by and builds upon the ideas from the following TradingView script: ().
This script is inspired by and builds upon the ideas from the following TradingView script:
Features
1. Portfolio Size Input: Enter the size of your portfolio to accurately calculate your risk and leverage.
2. Max Loss Percent Input: Specify the maximum percentage of your portfolio that you are willing to risk on a single trade.
3. Max Leverage Input: Set the maximum leverage you are comfortable using.
4. Trading Fee Input: Include trading fees in your calculations to get a more realistic view of your potential losses and gains.
5. ATR Settings: Configure the ATR period and multiplier to calculate your stop loss and take profit levels.
6. RSI Settings: Adjust the RSI period for trend analysis.
How to Use
Portfolio Size
- Description: This is the total value of your trading account.
- Input: `portfolioSize`
- Default Value: 100
- Minimum Value: 0.001
Max Loss Percent
- Description: The maximum percentage of your portfolio you are willing to lose on a single trade.
- Input: `maxLossPercent`
- Default Value: 3%
- Range: 0.1% to 100%
Max Leverage
- Description: The maximum leverage you wish to use.
- Input: `maxLeverage`
- Default Value: 125
- Range: 1 to 125
Trading Fee
- Description: The fee percentage you pay per trade.
- Input: `feeRate`
- Default Value: 1%
- Range: 0% to 10%
ATR Settings
- ATR Period: Number of bars used to calculate the Average True Range.
- Input: `atrPeriod`
- Default Value: 5
- ATR Multiplier: Multiplier for ATR to set stop loss levels.
- Input: `atrMultiplier`
- Default Value: 2.0
Take Profit Multiplier
- Description: Multiplier for ATR to set take profit levels.
- Input: `takeProfitMultiplier`
- Default Value: 2.0
RSI Settings
- RSI Period: Period for the RSI calculation.
- Input: `rsiPeriod`
- Default Value: 14
Dashboard
The script includes a customizable dashboard that displays the following information:
- Portfolio Size
- Maximum Loss Amount
- Entry Price
- Stop Loss Price
- Stop Loss Percentage
- Calculated Leverage
- Order Value
- Order Quantity
- Trend Direction
- Adjusted Maximum Loss Percentage
- Take Profit Price
Dashboard Settings
- Location: Choose the position of the dashboard on the chart.
- Options: 'Top Right', 'Bottom Right', 'Top Left', 'Bottom Left'
- Size: Adjust the size of the dashboard text.
- Options: 'Tiny', 'Small', 'Normal', 'Large'
- Text/Frame Color: Set the color for the text and frame of the dashboard.
Underlying Principles and Assumptions
Leverage Calculation
The leverage calculation is fundamental to risk management in trading. It ensures that the risk per trade does not exceed a specified percentage of the portfolio. This calculation takes into account the potential loss from the entry price to the stop loss level, adjusted for trading fees. By dividing the maximum acceptable loss by the total potential loss (including fees), we derive a leverage that limits the exposure per trade. This approach helps traders avoid over-leveraging, which can lead to significant losses.
ATR and Stop Loss
The Average True Range (ATR) is used to set stop loss levels because it measures market volatility. A higher ATR indicates more volatility, which means wider stop losses are needed to avoid being prematurely stopped out by normal market fluctuations. By using an ATR multiplier, the stop loss is dynamically adjusted based on current market conditions, providing a more robust risk management strategy.
Take Profit Calculation
The take profit level is calculated as a multiple of the ATR, ensuring that it is set at a realistic level relative to market volatility. This method aims to capture significant price movements while avoiding the noise of smaller fluctuations. Setting take profit targets this way helps in locking in profits when the market moves favorably.
RSI for Trend Confirmation
The Relative Strength Index (RSI) is used to confirm the trend direction. An RSI above 50 typically indicates a bullish trend, while an RSI below 50 indicates a bearish trend. By aligning trades with the prevailing trend, the script increases the probability of successful trades. This trend confirmation helps in making informed decisions about leverage and position sizing.
Risk Color Coding
The script uses color coding to visually indicate the risk level and trend direction. Green indicates a favorable condition for long trades, red for short trades, and gray for neutral conditions. This intuitive color coding aids in quickly assessing the market conditions and making timely trading decisions.
Conclusion
This script aims to provide a comprehensive risk management tool for traders. By integrating portfolio size, leverage, fees, ATR, and RSI, it helps in making informed trading decisions. We hope you find this tool useful in your trading journey.
Happy Trading!
Advanced ADX [CryptoSea]The Advanced ADX Analysis is a sophisticated tool designed to enhance market analysis through detailed ADX calculations. This tool is built for traders who seek to identify market trends, strength, and potential reversals with higher accuracy. By leveraging the Average Directional Index (ADX), Directional Indicator Plus (DI+), and Directional Indicator Minus (DI-), this indicator offers a comprehensive view of market dynamics.
New Overlay Feature: This script uses the new 'force overlay' feature which lets you plot on the chart as well as plotting in an oscillator pane at the same time.
force_overlay=true
Key Features
Comprehensive ADX Tracking: Tracks ADX values along with DI+ and DI- to provide a complete view of market trend strength and direction. The ADX measures the strength of the trend, while DI+ and DI- indicate the trend direction. This combined analysis helps traders identify strong and weak trends with precision.
Trend Duration Monitoring: Monitors the duration of strong and weak trends, offering insights into trend persistence and potential reversals. By keeping track of how long the ADX has been above or below a certain threshold, traders can gauge the sustainability of the current trend.
Customizable Alerts: Features multiple alert options for strong trends, weak trends, and DI crossovers, ensuring traders are notified of significant market events. These alerts can be tailored to notify traders when certain conditions are met, such as when the ADX crosses a threshold or when DI+ crosses DI-.
Adaptive Display Options: Includes customizable background color settings and extended statistics display for in-depth market analysis. Users can choose to highlight strong or weak trends on the chart background, making it easier to visualize market conditions at a glance.
In the example below, we have a bullish scenario play out where the DI+ has been above the DI- for 11 candles and our dashboard shows the average is 10.48 candles. With the ADX above its threshold this would be a bullish signal.
This ended up in a 20%+ move to the upside. The dashboard will help point out things to consider when looking to exit the position, the DI+ getting close to the max DI+ duration would be a sign that momentum is weakening and that price may cool off or even reverse.
How it Works
ADX Calculation: Computes the ADX, DI+, and DI- values using a user-defined period. The ADX is derived from the smoothed average of the absolute difference between DI+ and DI-. This calculation helps determine the strength of a trend without considering its direction.
Trend Duration Analysis: Tracks and calculates the duration of strong and weak trends, as well as DI+ and DI- durations. This analysis provides a detailed view of how long a trend has been in place, helping traders assess the reliability of the trend.
Alert System: Provides a robust alert system that triggers notifications for strong trends, weak trends, and DI crossovers. The alerts are based on specific conditions such as the duration of the trend or the crossover of directional indicators, ensuring traders are informed about critical market movements.
Visual Enhancements: Utilizes color gradients and background settings to visually represent trend strength and duration. This feature enhances the visual analysis of trends, making it easier for traders to identify significant market changes at a glance.
In the example below, we see the ADX weakening after we have just had a move up, if you are looking to get into this position you want to see the ADX growing with either the DI+ or DI- breaking their average durations.
As you can see below, although the ADX manages to move above the threshold, there are no DI+/- breaks which is shown by price moving sideways. Not something most traders would be interested in.
Application
Strategic Decision-Making: Assists traders in making informed decisions by providing detailed analysis of ADX movements and trend durations. By understanding the strength and direction of trends, traders can better time their entries and exits.
Trend Confirmation: Reinforces trading strategies by confirming potential reversals and trend strength through ADX and DI analysis. This confirmation helps traders validate their trading signals, reducing the risk of false signals.
Customized Analysis: Adapts to various trading styles with extensive input settings that control the display and sensitivity of trend data. Traders can customize the indicator to suit their specific needs, making it a versatile tool for different trading strategies.
The Advanced ADX Analysis by is an invaluable addition to a trader's toolkit, offering depth and precision in market trend analysis to navigate complex market conditions effectively. With its comprehensive tracking, alert system, and customizable display options, this indicator provides traders with the tools they need to stay ahead of the market.
Bitcoin Macro Trend Map [Ox_kali]
## Introduction
__________________________________________________________________________________
The “Bitcoin Macro Trend Map” script is designed to provide a comprehensive analysis of Bitcoin’s macroeconomic trends. By leveraging a unique combination of Bitcoin-specific macroeconomic indicators, this script helps traders identify potential market peaks and troughs with greater accuracy. It synthesizes data from multiple sources to offer a probabilistic view of market excesses, whether overbought or oversold conditions.
This script offers significant value for the following reasons:
1. Holistic Market Analysis : It integrates a diverse set of indicators that cover various aspects of the Bitcoin market, from investor sentiment and market liquidity to mining profitability and network health. This multi-faceted approach provides a more complete picture of the market than relying on a single indicator.
2. Customization and Flexibility : Users can customize the script to suit their specific trading strategies and preferences. The script offers configurable parameters for each indicator, allowing traders to adjust settings based on their analysis needs.
3. Visual Clarity : The script plots all indicators on a single chart with clear visual cues. This includes color-coded indicators and background changes based on market conditions, making it easy for traders to quickly interpret complex data.
4. Proven Indicators : The script utilizes well-established indicators like the EMA, NUPL, PUELL Multiple, and Hash Ribbons, which are widely recognized in the trading community for their effectiveness in predicting market movements.
5. A New Comprehensive Indicator : By integrating background color changes based on the aggregate signals of various indicators, this script essentially creates a new, comprehensive indicator tailored specifically for Bitcoin. This visual representation provides an immediate overview of market conditions, enhancing the ability to spot potential market reversals.
Optimal for use on timeframes ranging from 1 day to 1 week , the “Bitcoin Macro Trend Map” provides traders with actionable insights, enhancing their ability to make informed decisions in the highly volatile Bitcoin market. By combining these indicators, the script delivers a robust tool for identifying market extremes and potential reversal points.
## Key Indicators
__________________________________________________________________________________
Macroeconomic Data: The script combines several relevant macroeconomic indicators for Bitcoin, such as the 10-month EMA, M2 money supply, CVDD, Pi Cycle, NUPL, PUELL, MRVR Z-Scores, and Hash Ribbons (Full description bellow).
Open Source Sources: Most of the scripts used are sourced from open-source projects that I have modified to meet the specific needs of this script.
Recommended Timeframes: For optimal performance, it is recommended to use this script on timeframes ranging from 1 day to 1 week.
Objective: The primary goal is to provide a probabilistic solution to identify market excesses, whether overbought or oversold points.
## Originality and Purpose
__________________________________________________________________________________
This script stands out by integrating multiple macroeconomic indicators into a single comprehensive tool. Each indicator is carefully selected and customized to provide insights into different aspects of the Bitcoin market. By combining these indicators, the script offers a holistic view of market conditions, helping traders identify potential tops and bottoms with greater accuracy. This is the first version of the script, and additional macroeconomic indicators will be added in the future based on user feedback and other inputs.
## How It Works
__________________________________________________________________________________
The script works by plotting each macroeconomic indicator on a single chart, allowing users to visualize and interpret the data easily. Here’s a detailed look at how each indicator contributes to the analysis:
EMA 10 Monthly: Uses an exponential moving average over 10 monthly periods to signal bullish and bearish trends. This indicator helps identify long-term trends in the Bitcoin market by smoothing out price fluctuations to reveal the underlying trend direction.Moving Averages w/ 18 day/week/month.
Credit to @ryanman0
M2 Money Supply: Analyzes the evolution of global money supply, indicating market liquidity conditions. This indicator tracks the changes in the total amount of money available in the economy, which can impact Bitcoin’s value as a hedge against inflation or economic instability.
Credit to @dylanleclair
CVDD (Cumulative Value Days Destroyed): An indicator based on the cumulative value of days destroyed, useful for identifying market turning points. This metric helps assess the Bitcoin market’s health by evaluating the age and value of coins that are moved, indicating potential shifts in market sentiment.
Credit to @Da_Prof
Pi Cycle: Uses simple and exponential moving averages to detect potential sell points. This indicator aims to identify cyclical peaks in Bitcoin’s price, providing signals for potential market tops.
Credit to @NoCreditsLeft
NUPL (Net Unrealized Profit/Loss): Measures investors’ unrealized profit or loss to signal extreme market levels. This indicator shows the net profit or loss of Bitcoin holders as a percentage of the market cap, helping to identify periods of significant market optimism or pessimism.
Credit to @Da_Prof
PUELL Multiple: Assesses mining profitability relative to historical averages to indicate buying or selling opportunities. This indicator compares the daily issuance value of Bitcoin to its yearly average, providing insights into when the market is overbought or oversold based on miner behavior.
Credit to @Da_Prof
MRVR Z-Scores: Compares market value to realized value to identify overbought or oversold conditions. This metric helps gauge the overall market sentiment by comparing Bitcoin’s market value to its realized value, identifying potential reversal points.
Credit to @Pinnacle_Investor
Hash Ribbons: Uses hash rate variations to signal buying opportunities based on miner capitulation and recovery. This indicator tracks the health of the Bitcoin network by analyzing hash rate trends, helping to identify periods of miner capitulation and subsequent recoveries as potential buying opportunities.
Credit to @ROBO_Trading
## Indicator Visualization and Interpretation
__________________________________________________________________________________
For each horizontal line representing an indicator, a legend is displayed on the right side of the chart. If the conditions are positive for an indicator, it will turn green, indicating the end of a bearish trend. Conversely, if the conditions are negative, the indicator will turn red, signaling the end of a bullish trend.
The background color of the chart changes based on the average of green or red indicators. This parameter is configurable, allowing adjustment of the threshold at which the background color changes, providing a clear visual indication of overall market conditions.
## Script Parameters
__________________________________________________________________________________
The script includes several configurable parameters to customize the display and behavior of the indicators:
Color Style:
Normal: Default colors.
Modern: Modern color style.
Monochrome: Monochrome style.
User: User-customized colors.
Custom color settings for up trends (Up Trend Color), down trends (Down Trend Color), and NaN (NaN Color)
Background Color Thresholds:
Thresholds: Settings to define the thresholds for background color change.
Low/High Red Threshold: Low and high thresholds for bearish trends.
Low/High Green Threshold: Low and high thresholds for bullish trends.
Indicator Display:
Options to show or hide specific indicators such as EMA 10 Monthly, CVDD, Pi Cycle, M2 Money, NUPL, PUELL, MRVR Z-Scores, and Hash Ribbons.
Specific Indicator Settings:
EMA 10 Monthly: Options to customize the period for the exponential moving average calculation.
M2 Money: Aggregation of global money supply data.
CVDD: Adjustments for value normalization.
Pi Cycle: Settings for simple and exponential moving averages.
NUPL: Thresholds for unrealized profit/loss values.
PUELL: Adjustments for mining profitability multiples.
MRVR Z-Scores: Settings for overbought/oversold values.
Hash Ribbons: Options for hash rate moving averages and capitulation/recovery signals.
## Conclusion
__________________________________________________________________________________
The “Bitcoin Macro Trend Map” by Ox_kali is a tool designed to analyze the Bitcoin market. By combining several macroeconomic indicators, this script helps identify market peaks and troughs. It is recommended to use it on timeframes from 1 day to 1 week for optimal trend analysis. The scripts used are sourced from open-source projects, modified to suit the specific needs of this analysis.
## Notes
__________________________________________________________________________________
This is the first version of the script and it is still in development. More indicators will likely be added in the future. Feedback and comments are welcome to improve this tool.
## Disclaimer:
__________________________________________________________________________________
Please note that the Open Interest liquidation map is not a guarantee of future market performance and should be used in conjunction with proper risk management. Always ensure that you have a thorough understanding of the indicator’s methodology and its limitations before making any investment decisions. Additionally, past performance is not indicative of future results.
Percentages from 52 Week HighThis script is helpful for anyone that wants to monitor 5, 10, 20, 30, 40, 50% drops from the 52 week moving high.
I have been using a version of this script for a few years now and thought I would share it back with the community as I wrote it in 2021 to find quick deals when flipping through charts of stocks I've been watching. I never seemed to find anything doing this simple yet intuitive thing and I found myself regularly computing these lines manually on each chart. This will save you from having to do that as it automatically draws each level on your chart based on the recent 52 week or daily high.
I recently added the ability to turn on/off different levels and defaulted to setting 5, 10, and 20 % drops from the 52 week high. You can also change this to be a 52 day moving high if that's your preference.
Please let me know if you have ideas for modification as I wanted to share this with the community given I had not seen anything out there giving me what I wanted - which is why I wrote it.
All the best friends.
Prometheus IQR bandsThis indicator is a tool that uses market data to plot bands along with a price chart.
This tool uses interquartile range (IQR) instead of Standard Deviation (STD) because market returns are not normally distributed. There is also no way to tell if the pocket of the market you are looking at is normally distributed. So using methods that work better with non-normal data minimizes risk more than using a different process.
Calculation
Code for helper functions:
// Function to calculate the percentile value
percentile(arr, p) =>
index = math.floor(p * (array.size(arr) - 1) + 0.5)
array.get(arr, index)
manual_iqr(data, lower_percentile, upper_percentile)=>
// Sort the data
data_arr = array.new()
for i = 0 to lkb_
data_arr.push(close )
array.sort(data_arr)
sorted_data = data_arr.copy()
n = array.size(data_arr)
// Calculate the specified percentiles
Q1 = percentile(sorted_data, lower_percentile)
Q3 = percentile(sorted_data, upper_percentile)
// Calculate IQR
IQR = Q3 - Q1
// Return the IQR
IQR
IQRB(lkb_, sens)=>
sens_l = sens/100
sens_h = (100-sens)/100
val = manual_iqr(close, sens_l, sens_h)
sma = ta.sma(close, int(lkb_))
upper = sma + val
lower = sma - val
Percentile Calculation (percentile function):
Calculates the percentile value of an array (arr) at a given percentile (p).
Uses linear interpolation to find the exact percentile value in a sorted array.
Manual IQR Calculation (manual_iqr function):
Converts the input data into an array (data_arr) and sorts it.
Computes the lower and upper quartiles (Q1 and Q3) using the specified percentiles (lower_percentile and upper_percentile).
Computes the Interquartile Range (IQR) as IQR = Q3 - Q1.
Returns the computed IQR.
IQRB Function Calculation (IQRB function):
Converts the sensitivity percentage (sens) into decimal values (sens_l for lower percentile and sens_h for upper percentile).
Calls manual_iqr with the closing prices (close) and the lower and upper percentiles.
Calculates the Simple Moving Average (SMA) of the closing prices (close) over a specified period (lkb_).
Computes the upper and lower bands of the IQR using the SMA and the calculated IQR (val).
Returns an array containing the upper band, lower band, and SMA values.
After the IQR is calculated at the specified sensitivity it is added to and subtracted from a SMA of the specified period.
This provides us with bands of the IQR sensitivity we want.
Trade Examples
Step 1: Price quickly and strongly breaks below the bottom band and continues there for some bars.
Step 2: Price re-enters the bottom band and has a strong reversal.
Step 1: Price strongly breaks above the top band and continues higher.
Step 2: Price breaks below the top band and reverses to the downside.
Step 3: Price breaks below the bottom band after our previous reversal.
Step 4: Price regains that bottom band and reverses to the upside.
Step 5: Price continues moving higher and does not break above the top band or reverse.
Step 1: Price strongly breaks above the top band and continues higher.
Step 2: Price breaks below the top band and reverses to the downside.
Step 3: Price breaks below the bottom band after our previous reversal.
Step 4: Price regains that bottom band and reverses to the upside.
Step 5: Price strongly breaks above the top band after the previous reversal.
Step 6: Price breaks below the top band and reverses down.
Step 7: Price strongly breaks above the top band and continues moving higher.
Step 8: Price breaks below the top band and reverses down.
Step 9: Price strongly breaks above the top band and continues moving higher.
Step 10: Price breaks below the top band and reverses down.
Step 1: Price breaks above the top band.
Step 2: Price drops below the top band and chops slightly, without a large reversal from that break.
Step 3: Price breaks below the bottom band.
Step 4: Price re-enters the bottom band and just chops, no large reversal.
Step 5: Price breaks below the bottom band.
Step 6: Price retakes the bottom band and strongly reverses.
This tool can be uses to spot reversals and see when trends may continue as the stay inside the bands. No indicator is 100% accurate, we encourage traders to not follow them blindly and use them as tools.
Normalized Relative Strength LineNormalized Relative Strength Line Indicator
Overview
The "Normalized Relative Strength Line" indicator measures the relative performance of a stock compared to a benchmark index (e.g., NSE
). This indicator helps traders and investors identify whether a stock is outperforming or underperforming the selected benchmark over a specified lookback period. The values are normalized to a range of -100 to +100 for easy interpretation.
Key Features
Comparison Symbol: Users can select a benchmark index or any other comparison symbol to measure relative performance.
Lookback Period: A user-defined period for normalization, typically set to a number of trading days (e.g., 252 days for one year).
Relative Strength Calculation: The indicator calculates the percentage change in price for both the stock and the comparison symbol from the start of the lookback period.
Normalization: The relative strength values are normalized to a range of -100 to +100 to facilitate comparison and visualization.
Smoothing: An optional 14-period simple moving average (SMA) is applied to the normalized relative strength line for a smoother representation of trends.
Interpretation
Positive Values (+100 to 0): When the normalized relative strength (RS) line is above 0, it indicates that the stock is outperforming the comparison symbol. Higher values signify stronger outperformance.
Negative Values (0 to -100): When the normalized RS line is below 0, it indicates that the stock is underperforming the comparison symbol. Lower values signify stronger underperformance.
Horizontal Line at 0: The horizontal line at 0 serves as a reference point. Crossing this line from below indicates a shift from underperformance to outperformance, and crossing from above indicates a shift from outperformance to underperformance.
Crossovers: The points where the RS line crosses the moving average (red line) can signal potential changes in relative performance trends.
Example Use Case
If the normalized RS line of a stock consistently remains around +100, it suggests that the stock has been strongly outperforming the comparison symbol over the selected lookback period. Conversely, if it remains around -100, it suggests strong underperformance.
Heads UpAn indicator that gives you the "heads up" that that bullish/ bearish strength is increasing.
I wanted an indicator that could give me the "heads up" that bullish/ bearish strength is increasing. This would help me get into a breakout early or avoid entering a breakout that had a high probability of failure.
Here are my definitions for this indicator:
My bull bar definition:
- A green candle that closes above 75% of it's candle range.
- The candle's body does not overlap the previous candle's body. Tails/ wicks CAN overlap.
My bear bar definition:
- A red candle that closes below 75% of it's candle range.
- the candle's body does not overlap the previous candle's body. Tails/ ticks CAN overlap.
Bullish strength increasing (arrow up):
- Bull bars are increasing in size (the candle's range) compared to previous 5 bars.
- 2 consecutive bull bars.
Bearish strength increasing (arrow down):
- Bear bars are increasing in size (the candle's range) compared to previous 5 bars.
- 2 consecutive bear bars.
You will not see this indicator trigger very often but when it does - it's because there is a change in bullish bearish strength.
Things to be aware of:
Use the indicator in line with the context of the previous trend. You will get triggers that fail. These are usually because they appear counter trend. When in doubt zoom out.
It will not call every successful breakout. If you understand the definitions you'll understand why it appears.
This is my first indicator and used for my personal use. Feedback and other ideas are welcome.
Biquad Band Pass FilterThis indicator utilizes a biquad band pass filter to isolate and highlight a specific frequency band in price data, helping traders focus on price movements within a targeted frequency range.
The Length parameter determines the center frequency of the filter, affecting which frequency band is isolated. Adjusting this parameter allows you to focus on different parts of the price movement spectrum.
The Bandwidth (BW) controls the width of the frequency band in octaves. It represents the bandwidth between -3 dB frequencies for the band pass filter. A narrower bandwidth results in a more focused filtering effect, isolating a tighter range of frequencies.
Key Features of Biquad Filters
Biquad filters are a type of digital filter that provides a combination of low-pass, high-pass, band-pass, and notch filtering capabilities. In this implementation, the biquad filter is configured as a band pass filter, which allows frequencies within a specified band to pass while attenuating frequencies outside this band. This is particularly useful in trading to isolate specific price movements, making it easier to detect patterns and trends within a targeted frequency range.
Biquad filters are known for their smooth response and minimal phase distortion, making them ideal for technical analysis. The customizable length and bandwidth allow for flexible adaptation to different trading strategies and market conditions. Designed for real-time charting, the biquad filter operates efficiently without significant lag, ensuring timely analysis.
By incorporating this biquad band pass filter into your trading toolkit, you can enhance your chart analysis with clearer insights into specific frequency bands of price movements, leading to more informed trading decisions.
Volume Weighted Average Price Ratio (log) [ilyaQwerty]The VWAP Ratio indicator is a valuable tool for traders aiming to assess market trends and price movements in relation to the Volume Weighted Average Price (VWAP). Volume Weighted Average Price Ratio represents the ratio of the price of the asset compared to total traded volume in US Dollars. In a context of Bitcoin, VWAP ratio helps traders assess the market state, if it is overvalued or undervalued. High values of the indicator can suggest that the market is highly overvalued and low values can indicate a great buying opportunity.
Ratio Calculation: The VWAP Ratio is computed by dividing the current price by the VWAP (Price / VWAP). VWAP represents a ratio between a cumulative sum of a traded value (price multiplied by the volume) and a cumulative traded volume.
BTC-Specific Optimization: Although the indicator can be applied to various assets, the VWAP Ratio indicator is particularly useful for Bitcoin (BTC) due to its significant trading volume and unique market behaviour.
60-Day Cycle Long-Only IndicatorThe following indicator generates ‘Buy’ signals based on rotating 60-day cycles. The general theory is that when buying strong, growth-oriented assets, 60-day micro-cycles culminate into larger macro-cycles.
Summary:
Explaining the Upper and Lower Bounds in the 60-Day Cycle Strategy:
1. Cycle High (Upper Bound):
The cycle high is the highest closing price of the asset over the past 60 days. This value acts as the upper boundary of the 60-day cycle, indicating the peak price level during this period. When the current closing price is above this boundary, it suggests a potential distribution phase, where the asset might be overbought, and larger players may be selling off their positions. In the strategy, the cycle high is plotted as a red line on the chart, helping traders visually identify the upper limit of the 60-day trading range.
2. Cycle Low (Lower Bound):
The cycle low is the lowest closing price of the asset over the past 60 days. This value acts as the lower boundary of the 60-day cycle, indicating the trough price level during this period. When the current closing price is below this boundary, it suggests a potential accumulation phase, where the asset might be oversold, and larger players may be accumulating positions at lower prices. In the strategy, the cycle low is plotted as an orange line on the chart, helping traders visually identify the lower limit of the 60-day trading range.
How These Bounds Are Calculated:
• Cycle High: Calculated using the highest closing price over the last 60 trading days. In Pine Script, this is achieved with the function ta.highest(close, cycle_length), where cycle_length is set to 60 days.
• Cycle Low: Calculated using the lowest closing price over the last 60 trading days. In Pine Script, this is achieved with the function ta.lowest(close, cycle_length), where cycle_length is set to 60 days.
Interpretation and Application:
• Buy Signal: A buy signal is generated when the closing price crosses above the cycle low. This indicates a potential end to the bearish phase and the start of a bullish trend.
• Distribution Phase: When the closing price crosses above the cycle high, it suggests the market is in a distribution phase, potentially signaling a bearish trend or a sell-off period.
Example:
On a trading chart, the cycle high and cycle low are plotted as horizontal lines, with their colors distinguishing them (red for cycle high and orange for cycle low). These lines create a visual range within which the asset's price has moved over the last 60 days, helping traders quickly assess whether the current price is near the upper or lower bound.
By identifying and plotting these upper and lower bounds, traders can better understand the current market phase and make more informed trading decisions based on the 60-day cycle strategy. This indicator can be used across various assets.
Jobinsabu014This Pine Script code is for an advanced trading indicator that displays enhanced moving averages with buy and sell labels, trend probability, and support/resistance levels. Here’s a detailed description of its components and functionality:
### Description:
1. **Indicator Initialization**:
- The indicator is named "Enhanced Moving Averages with Buy/Sell Labels and Trend Probability" and is set to overlay on the chart.
2. **Input Parameters**:
- **Moving Averages**: Four different moving averages (short and long periods for default and enhanced) with customizable periods.
- **Probability Threshold**: Determines the threshold for trend probability.
- **Support/Resistance Lookback**: Number of bars to look back for calculating support and resistance levels.
- **Signals Valid From**: Timestamp from which the signals are considered valid.
3. **Moving Averages Calculation**:
- **Default Moving Averages**: Calculated using simple moving averages (SMA) for the specified periods.
- **Enhanced Moving Averages**: Calculated using SMAs for different specified periods.
4. **Plotting Moving Averages**:
- Plots the default and enhanced moving averages with different colors for distinction.
5. **Crossover Detection**:
- Detects when the short moving average crosses above or below the long moving average for default moving averages.
6. **Buy/Sell Signal Labels**:
- Adds "BUY" and "SELL" labels on the chart when crossovers are detected after the specified valid timestamp.
- Tracks entry prices for buy/sell signals and adds labels when the price moves +100 points.
7. **Trend Detection for Enhanced Indicator**:
- Detects uptrend or downtrend based on the enhanced moving averages.
- Calculates a simple probability of trend based on price movement and EMA.
- Determines buy and sell signals based on trend conditions and volume-based buy/sell pressure.
8. **Plot Buy/Sell Signals for Enhanced Indicator**:
- Plots buy/sell signals based on the enhanced conditions.
9. **Background Color for Trends**:
- Changes the background color to green for uptrend and red for downtrend.
10. **Trend Lines**:
- Draws imaginary trend lines for uptrend and downtrend based on enhanced moving averages.
11. **Support and Resistance Levels**:
- Calculates and plots support and resistance levels using the specified lookback period.
- Stores and plots previous support and resistance levels with dashed lines.
12. **Expected Trend Labels**:
- Adds labels indicating expected uptrend or downtrend based on buy/sell signals.
13. **Alerts**:
- Sets alert conditions for buy and sell signals, triggering alerts when these conditions are met.
14. **Demand and Supply Zones**:
- Draws and extends horizontal lines for demand (support) and supply (resistance) zones.
### Summary:
This script enhances traditional moving average crossovers by adding trend probability calculations, volume-based pressure, and support/resistance levels. It visualizes expected trends and provides comprehensive buy/sell signals with corresponding labels, background color changes, and alerts to help traders make informed decisions.
ICT Killzones and Sessions W/ Silver Bullet + MacrosForex and Equity Session Tracker with Killzones, Silver Bullet, and Macro Times
This Pine Script indicator is a comprehensive timekeeping tool designed specifically for ICT traders using any time-based strategy. It helps you visualize and keep track of forex and equity session times, kill zones, macro times, and silver bullet hours.
Features:
Session and Killzone Lines:
Green: London Open (LO)
White: New York (NY)
Orange: Australian (AU)
Purple: Asian (AS)
Includes AM and PM session markers.
Dotted/Striped Lines indicate overlapping kill zones within the session timeline.
Customization Options:
Display sessions and killzones in collapsed or full view.
Hide specific sessions or killzones based on your preferences.
Customize colors, texts, and sizes.
Option to hide drawings older than the current day.
Automatic Updates:
The indicator draws all lines and boxes at the start of a new day.
Automatically adjusts time-based boxes according to the New York timezone.
Killzone Time Windows (for indices):
London KZ: 02:00 - 05:00
New York AM KZ: 07:00 - 10:00
New York PM KZ: 13:30 - 16:00
Silver Bullet Times:
03:00 - 04:00
10:00 - 11:00
14:00 - 15:00
Macro Times:
02:33 - 03:00
04:03 - 04:30
08:50 - 09:10
09:50 - 10:10
10:50 - 11:10
11:50 - 12:50
Latest Update:
January 15:
Added option to automatically change text coloring based on the chart.
Included additional optional macro times per user request:
12:50 - 13:10
13:50 - 14:15
14:50 - 15:10
15:50 - 16:15
Usage:
To maximize your experience, minimize the pane where the script is drawn. This minimizes distractions while keeping the essential time markers visible. The script is designed to help traders by clearly annotating key trading periods without overwhelming their charts.
Originality and Justification:
This indicator uniquely integrates various time-based strategies essential for ICT traders. Unlike other indicators, it consolidates session times, kill zones, macro times, and silver bullet hours into one comprehensive tool. This allows traders to have a clear and organized view of critical trading periods, facilitating better decision-making.
Credits:
This script incorporates open-source elements with significant improvements to enhance functionality and user experience.
Forex and Equity Session Tracker with Killzones, Silver Bullet, and Macro Times
This Pine Script indicator is a comprehensive timekeeping tool designed specifically for ICT traders using any time-based strategy. It helps you visualize and keep track of forex and equity session times, kill zones, macro times, and silver bullet hours.
Features:
Session and Killzone Lines:
Green: London Open (LO)
White: New York (NY)
Orange: Australian (AU)
Purple: Asian (AS)
Includes AM and PM session markers.
Dotted/Striped Lines indicate overlapping kill zones within the session timeline.
Customization Options:
Display sessions and killzones in collapsed or full view.
Hide specific sessions or killzones based on your preferences.
Customize colors, texts, and sizes.
Option to hide drawings older than the current day.
Automatic Updates:
The indicator draws all lines and boxes at the start of a new day.
Automatically adjusts time-based boxes according to the New York timezone.
Killzone Time Windows (for indices):
London KZ: 02:00 - 05:00
New York AM KZ: 07:00 - 10:00
New York PM KZ: 13:30 - 16:00
Silver Bullet Times:
03:00 - 04:00
10:00 - 11:00
14:00 - 15:00
Macro Times:
02:33 - 03:00
04:03 - 04:30
08:50 - 09:10
09:50 - 10:10
10:50 - 11:10
11:50 - 12:50
Latest Update:
January 15:
Added option to automatically change text coloring based on the chart.
Included additional optional macro times per user request:
12:50 - 13:10
13:50 - 14:15
14:50 - 15:10
15:50 - 16:15
ICT Sessions and Kill Zones
What They Are:
ICT Sessions: These are specific times during the trading day when market activity is expected to be higher, such as the London Open, New York Open, and the Asian session.
Kill Zones: These are specific time windows within these sessions where the probability of significant price movements is higher. For example, the New York AM Kill Zone is typically from 8:30 AM to 11:00 AM EST.
How to Use Them:
Identify the Session: Determine which trading session you are in (London, New York, or Asian).
Focus on Kill Zones: Within that session, focus on the kill zones for potential trade setups. For instance, during the New York session, look for setups between 8:30 AM and 11:00 AM EST.
Silver Bullets
What They Are:
Silver Bullets: These are specific, high-probability trade setups that occur within the kill zones. They are designed to be "one shot, one kill" trades, meaning they aim for precise and effective entries and exits.
How to Use Them:
Time-Based Setup: Look for these setups within the designated kill zones. For example, between 10:00 AM and 11:00 AM for the New York AM session .
Chart Analysis: Start with higher time frames like the 15-minute chart and then refine down to 5-minute and 1-minute charts to identify imbalances or specific patterns .
Macros
What They Are:
Macros: These are broader market conditions and trends that influence your trading decisions. They include understanding the overall market direction, seasonal tendencies, and the Commitment of Traders (COT) reports.
How to Use Them:
Understand Market Conditions: Be aware of the macroeconomic factors and market conditions that could affect price movements.
Seasonal Tendencies: Know the seasonal patterns that might influence the market direction.
COT Reports: Use the Commitment of Traders reports to understand the positioning of large traders and commercial hedgers .
Putting It All Together
Preparation: Understand the macro conditions and review the COT reports.
Session and Kill Zone: Identify the trading session and focus on the kill zones.
Silver Bullet Setup: Look for high-probability setups within the kill zones using refined chart analysis.
Execution: Execute the trade with precision, aiming for a "one shot, one kill" outcome.
By following these steps, you can effectively use ICT sessions, kill zones, silver bullets, and macros to enhance your trading strategy.
Usage:
To maximize your experience, shrink the pane where the script is drawn. This minimizes distractions while keeping the essential time markers visible. The script is designed to help traders by clearly annotating key trading periods without overwhelming their charts.
Originality and Justification:
This indicator uniquely integrates various time-based strategies essential for ICT traders. Unlike other indicators, it consolidates session times, kill zones, macro times, and silver bullet hours into one comprehensive tool. This allows traders to have a clear and organized view of critical trading periods, facilitating better decision-making.
Credits:
This script incorporates open-source elements with significant improvements to enhance functionality and user experience. All credit goes to itradesize for the SB + Macro boxes
HTF OverlayThe "HTF Overlay" indicator provides a fully customizable higher timeframe (HTF) candle overlay on your current chart, designed to enhance your analysis and trading strategies. This tool is particularly useful for traders utilizing ICT's AMD power of three strategies, focusing on key candle OHLC/OLHC expansions, or those who need a quick reference to a higher timeframe without switching charts.
Originality and Usefulness:
The "HTF Overlay" script stands out due to its seamless integration of HTF candles onto lower timeframe charts. It ensures the current developing candle is left untouched, preserving the clarity of ongoing market activity. This feature is crucial for traders who need to analyze market structure on a smaller timeframe within the context of a larger timeframe candle.
Functionality:
Dynamic HTF Candle Display:
The script overlays HTF candles, updating them in real-time as new HTF candles form. This allows traders to see historical price behavior and trends alongside the current price action.
Visual Customization:
Users can adjust various aspects of the HTF candles, including the number of candles displayed, body colors, wick colors, wick thickness, and transparency levels for both body and wick. This ensures the overlay fits seamlessly with any chart setup.
Real-time Updates:
The indicator updates dynamically, ensuring that the HTF candles remain relevant to the current market conditions without affecting the developing candle.
How It Works:
Data Retrieval: The script uses the request.security function to fetch HTF data, including open, high, low, close, time, and time close values.
Candle Overlay: It calculates the visual parameters for the HTF candles (body and wick positions, colors, and transparency) and overlays them on the chart.
Update Mechanism: The script differentiates between new and ongoing candles, updating the current candle in real-time without disrupting its development.
How to Use:
Setup:
Select the higher timeframe you want to overlay (e.g., 240 minutes for 4-hour candles).
Specify the number of HTF candles to display.
Customize the appearance of the HTF candles, including colors and transparency settings for both the body and wicks.
Interpretation:
Use the HTF overlay to validate trading decisions by analyzing price action from a broader perspective.
Identify key support and resistance levels, trend directions, and potential reversal points by comparing current price action with HTF structures.
Integration:
Combine this indicator with other tools your strategy may use for a more comprehensive analysis.
Use it in conjunction with the first and last candle highlight feature to quickly identify key reference points and enhance your trading strategy.
Conclusion:
The "HTF Overlay" indicator is a versatile and essential tool for traders who need to incorporate higher timeframe analysis into their trading strategies. Its customizable features and real-time updates provide a deeper insight into market dynamics, helping traders make more informed decisions. Whether used for trend confirmation, breakout identification, or support/resistance analysis, this indicator enhances your ability to navigate the markets effectively.
Prometheus OscillatorThis oscillator is a tool meant to determine an up or down trend using a measure of volatility and what skews the market has.
Calculation
The first thing to do is normalize the price to have a 0 handle and be a decimal. The reason to do this is to get the 0 line for every asset.
After the source value has been normalized calculate standard deviation and skew.
Standard Deviation
To calculate standard deviation Prometheus uses Pinescript's built-in function.
standard_dev = ta.stdev(src, len, true)
Standard deviation is a decent and quick estimation of historical volatility over a period of time specified by the user.
Skew
Skew is calculated as follows:
mean = ta.sma(src, len)
m3 = math.sum(math.pow(src - mean, 3), len) / len
m2 = math.pow(math.sum(math.pow(src - mean, 2), len) / len, 1.5)
skew = m3 / m2
Skew is a value used to determine how far on one side of a distribution a value is. When the market is aggressively moving higher the skew will be a bigger positive number. When it is moving lower, a negative number. When the values are small, still either positive or negative, is when the market is moving calmly in either direction.
Adding these two values together provides us with our oscillator.
Trade Examples
A simple way to use this tool is to use 0-line crosses as bullish or bearish alerts
Step 1: Cross above 0 line, long alert. The price proceeds to move up.
Step 2: Cross below 0 line, short alert. The Price moves down.
Step 3: Cross above 0 line, long alert. The price chops then the price proceeds to move up.
0 line crosses can work but may not always be reliable.
Step 1: Cross above 0 line, long alert. The price proceeds to move up.
Step 2: Cross below 0 line, short alert. The Price bounces as the downtrend is signaled, but then continues to sell off.
Step 3: Cross above 0 line, long alert. The price chops at the high and then reverses.
Step 4: Cross below 0 line, short alert. proceeds to move down.
Step 5: Cross above 0 line, long alert. The price proceeds to move up.
Not every alert will be perfect, we encourage traders to use tools as well as their own discretion.
Previous highs and lows may be a good tell if the alert will be true.
Step 1: Cross above 0 line, long alert. The price proceeds to move up.
Step 2: Cross below 0 line, short alert. The Price bounces as the downtrend is signaled, false alert.
Step 3: Cross above 0 line, long alert. The price chops at the high and then moves up.
Step 4: Cross below 0 line, short alert. The price chops a lot with a false break to the upside, the oscillator itself does not move fast or high which could have been a sign it was false.
Step 5: Step 3's downtrend continues.
Step 6: Cross above the 0 line. A new up trend emerges.
The indicator has more than one use. Detecting false moves in a greater trend is advantageous to not get faked out.
Step 1: Price moves up, however, the oscillator does not break 0, and the trend remains bearish before a true break of 0 line and moves up.
Step 2: While the oscillator is below the 0 line the price moves up. The oscillator does not change its sign and the downtrend continues until a true break of 0 line and moves up.
Inputs:
Len: Lookback length for how many bars back to go to calculate the oscillator.
No indicator is 100% accurate, use them along with your own discretion.
Bitcoin Production CostFirst inspired by the amazing @capriole_charles, I decided to create my own version of calculating the Bitcoin production cost and to share it with you guys.
One of the main difference is the electricity cost calculation. I used a country-specific input system that calculates the weighted electricity cost leveraged by the distribution of the Bitcoin network hashrate. I like the fact that it requires little updating although it is less realistic for past calculations (further in the past production costs seems too low).
How to use:
- Add the indicator to your chart.
- Adjust the inputs if needed. Update the percentage of Bitcoin network Hashrate or electricity Cost per countries. Update the mining hardware stats to the most recent hardware. For example I used a Bitcoin Miner S21 Pro stats.
- Check the multiple variables in the data window.
- Turn on/off the halving event in the style tab
Bitcoin Logarithmic Regression
This indicator displays logarithmic regression channels for Bitcoin. A logarithmic regression is a function that increases or decreases rapidly at first, but then steadily slows as time moves. The original version of this indicator/model was created as an open source script by a user called Owain but is not available on TradingView anymore. So I decided to update the code to the latest version of pinescript and fine tune some of the parameters.
How to read and use the logarithmic regression:
There are 3 different regression lines or channels visible:
Green Channel: These lines represent different levels of support derived from the logarithmic regression model.
Purpose: The green channel is used to identify potential support levels where the price might find a bottom or bounce back upwards.
Interpretation:
If the price is approaching or touching the lower green lines, it might indicate a buying opportunity or an area where the price is considered undervalued.
------------------------------------------------
Red Channel: These lines represent different levels of resistance derived from the logarithmic regression model.
Purpose: The red channel is used to identify potential resistance levels where the price might encounter selling pressure or face difficulty moving higher.
Interpretation:
If the price is approaching or touching the upper red lines, it might indicate a selling opportunity or an area where the price is considered overvalued.
-------------------------------------------------
Purple Line This line represents to so-called "fair price" of Bitcoin according to the regression model.
Purpose: The purple line can be used to identify if the current price of Bitcoin is under- or overvalued.
Interpretation: A simple interpretation here would be that over time the price will have the tendency to always return to its "fair price", so starting to DCA more when price is under the line and less when it is over the line could be a suitable investment strategy.
----------------------------------------------------
Practical Application:
You can use this regression channel to build your own, long term, trading strategies. Notice how Bitcoin seems to always act in kind of the same 4 year cycle:
- Price likes to trade around the purple line at the time of the halvings
- After the halvings we see an extended sideways range for up to 300 days
- After the sideways range Bitcoin goes into a bull market frenzy (the area between the green and red channel)
- The price tops out at the upper red channel and then enters a prolonged bear market.
Buying around the purple line or lower line of the green channel and selling once the price reaches the red channel can be a suitable and very profitable strategy.
Adaptive Bollinger-RSI Trend Signal [CHE]Adaptive Bollinger-RSI Trend Signal
Indicator Overview:
The "Adaptive Bollinger-RSI Trend Signal " (ABRT Signal ) is a sophisticated trading tool designed to provide clear and actionable buy and sell signals by combining the power of Bollinger Bands and the Relative Strength Index (RSI). This indicator aims to help traders identify potential trend reversals and confirm entry and exit points with greater accuracy.
Key Features:
1. Bollinger Bands Integration:
- Utilizes Bollinger Bands to detect price volatility and identify overbought or oversold conditions.
- Configurable parameters: Length, Source, and Multiplier for precise adjustments based on trading preferences.
- Color customization: Change the colors of the basis line, upper band, lower band, and the fill color between bands.
2. RSI Integration:
- Incorporates the Relative Strength Index (RSI) to validate potential buy and sell signals.
- Configurable parameters: Length, Source, Upper Threshold, and Lower Threshold for customized signal generation.
3. Signal Generation:
- Buy Signal: Generated when the price crosses below the lower Bollinger Band and the RSI crosses above the lower threshold, indicating a potential upward trend.
- Sell Signal: Generated when the price crosses above the upper Bollinger Band and the RSI crosses below the upper threshold, indicating a potential downward trend.
- Color customization: Change the colors of the buy and sell signal labels.
4. State Tracking:
- Tracks and records crossover and crossunder states of the price and RSI to ensure signals are only generated under the right conditions.
- Monitors the basis trend (SMA of the Bollinger Bands) to provide context for signal validation.
5. Counters and Labels:
- Labels each buy and sell signal with a counter to indicate the number of consecutive signals.
- Counters reset upon the generation of an opposite signal, ensuring clarity and preventing signal clutter.
6. DCA (Dollar-Cost Averaging) Calculation:
- Stores the close price at each signal and calculates the average entry price (DCA) for both buy and sell signals.
- Displays the number of positions and DCA values in a label on the chart.
7. Customizable Inputs:
- Easily adjustable parameters for Bollinger Bands, RSI, and colors to suit various trading strategies and timeframes.
- Boolean input to show or hide the table label displaying position counts and DCA values.
- Intuitive and user-friendly configuration options for traders of all experience levels.
How to Use:
1. Setup:
- Add the "Adaptive Bollinger-RSI Trend Signal " to your TradingView chart.
- Customize the input parameters to match your trading style and preferred timeframe.
- Adjust the colors of the indicator elements to your preference for better visibility and clarity.
2. Interpreting Signals:
- Buy Signal: Look for a "Buy" label on the chart, indicating a potential entry point when the price is oversold and RSI signals upward momentum.
- Sell Signal: Look for a "Sell" label on the chart, indicating a potential exit point when the price is overbought and RSI signals downward momentum.
3. Trade Execution:
- Use the buy and sell signals to guide your trade entries and exits, aligning them with your overall trading strategy.
- Monitor the counter labels to understand the strength and frequency of signals, helping you make informed decisions.
4. Adjust and Optimize:
- Regularly review and adjust the indicator parameters based on market conditions and backtesting results.
- Combine this indicator with other technical analysis tools to enhance your trading accuracy and performance.
5. Monitor DCA Values:
- Enable the table label to display the number of positions and average entry prices (DCA) for both buy and sell signals.
- Use this information to assess the cost basis of your trades and make strategic adjustments as needed.
Conclusion:
The Adaptive Bollinger-RSI Trend Signal is a powerful and versatile trading tool designed to help traders identify and capitalize on trend reversals with confidence. By combining the strengths of Bollinger Bands and RSI, this indicator provides clear and reliable signals, making it an essential addition to any trader's toolkit. Customize the settings, interpret the signals, and execute your trades with precision using this comprehensive indicator.