MA Direction Histogram
The MA Direction Histogram is a simple yet powerful tool for visualizing the momentum of a moving average (MA). It highlights whether the MA is trending up or down, making it ideal for identifying market direction quickly.
Key Features:
1. Custom MA Options: Choose from SMA, EMA, WMA, VWMA, or HMA for flexible analysis.
2. Momentum Visualization: Bars show the difference between the MA and its value from a lookback period.
- Blue Bars: Upward momentum.
- Yellow Bars: Downward momentum.
3. Easy Customization: Adjust the MA length, lookback period, and data source.
How to Use:
- Confirm Trends: Positive bars indicate uptrends; negative bars suggest downtrends.
- *Spot Reversals: Look for bar color changes as potential reversal signals.
Compact, intuitive, and versatile, the "MA Direction Histogram" helps traders stay aligned with market momentum. Perfect for trend-based strategies!
Sentiment
Coinbase Premium Index (Any Symbol)The Coinbase Premium Index provides a valuable insight into market dynamics by calculating the price premium between Coinbase (USD pairs) and Binance (USDT pairs). A positive premium typically indicates heavy buying pressure on Coinbase, often coinciding with upward price trends on lower timeframes. Conversely, a negative premium suggests selling pressure or weaker demand on Coinbase compared to Binance.
** Key Features: **
**Dynamic Symbol Detection**: Automatically detects the current chart symbol and adapts the premium calculation accordingly.
**Customizable Moving Averages**:
Select between SMA (Simple Moving Average) or EMA (Exponential Moving Average).
Adjust the moving average period to suit your trading strategy (default: SMA with 50 periods).
**Error Handling for Missing Data**:
Displays "Symbol not on Coinbase" when the cryptocurrency is unavailable on Coinbase.
Plots zero-value columns in light grey for unsupported symbols.
**Visual Representation**:
Premium values are displayed as columns: green for positive premiums, red for negative premiums.
A moving average line in light grey helps highlight trends.
Zero Line: A horizontal dashed line is included as a reference point.
** Why Use This Script?**
The Coinbase Premium Index helps traders identify moments of increased buying pressure among U.S. investors, often indicative of bullish momentum on lower timeframes. Use this tool to monitor premium dynamics and gain a clearer understanding of market sentiment across major exchanges.
** How to Use: **
Add this script to your TradingView chart.
Adjust the moving average type and period through the input menu.
Use the premium columns and moving averages to identify potential price trends and validate exchange-specific trading opportunities.
Enhanced Gap Up/Down AnalysisThis Pine Script indicator, titled "Enhanced Gap Up/Down Analysis", is designed to visually analyze the percentage gaps between the current day's opening price and the previous day's closing price. It provides valuable insights into market behavior by categorizing gaps and coloring them based on specific conditions.
Key Features:
Bar Coloring Based on Conditions:
Gap-Up Days:
Green if the day closes higher than it opens.
Red if the day closes lower than it opens.
Gap-Down Days:
Red if the day closes lower than it opens.
Green if the day closes higher than it opens.
The bar's position reflects the gap percentage (positive values for gap-ups above the X-axis, negative values for gap-downs below the X-axis).
Gap Size Thresholds:
Users can define small and moderate gap thresholds to categorize gaps:
Small Gaps: Transparent color.
Moderate Gaps: Opaque color.
Large Gaps: Fully visible color.
Ensures small gaps are less than moderate gaps with validation logic.
Filter Gaps by Percentage:
Includes filters to show gaps only within a user-defined range (minFilterGap to maxFilterGap).
Histogram Visualization:
Plots the gap percentages as a histogram for easy visual analysis:
Positive bars for gap-ups.
Negative bars for gap-downs.
Alerts for Large Gaps:
Alerts notify when a gap exceeds the moderate threshold in either direction.
Use Cases:
Identify Market Sentiment:
Quickly assess whether gap-ups or gap-downs dominate.
Analyze whether gaps tend to follow through or reverse by observing bar colors.
Filter Relevant Gaps:
Focus on significant gaps (e.g., only gaps greater than 2%).
Visual Aid for Trading:
Helps traders detect patterns in market gaps and price movement relationships (e.g., gaps and reversals).
Customizable Inputs:
Small and Moderate Gap Thresholds: Define gap categories.
Gap Filter Range: Control which gaps to display.
Alerts: Get notified of significant gaps.
This tool is particularly useful for traders analyzing price gaps and their implications for market trends or reversals.
Psychological Levels- Rounding Numbers Psychological Levels Indicator
Overview:
The Psychological Levels Indicator automatically identifies and plots significant price levels based on psychological thresholds, which are key areas where market participants often focus their attention. These levels act as potential support or resistance zones due to human behavioral tendencies to round off numbers. This indicator dynamically adjusts the levels based on the stock's price range and ensures seamless visibility across the chart.
Key Features:
Dynamic Step Sizes:
The indicator adjusts the levels dynamically based on the stock price:
For prices below 500: Levels are spaced at 10.
For prices between 500 and 3000: Levels are spaced at 50, 100, and 1000.
For prices between 3000 and 10,000: Levels are spaced at 100 and 1000.
For prices above 10,000: Levels are spaced at 500 and 1000.
Extended Visibility:
The plotted levels are extended across the entire chart for improved visualization, ensuring traders can easily monitor these critical zones over time.
Customization Options:
Line Color: Choose the color for the levels to suit your charting style.
Line Style: Select from solid, dashed, or dotted lines.
Line Width: Adjust the thickness of the lines for better clarity.
Clean and Efficient Design:
The indicator only plots levels relevant to the visible chart range, avoiding unnecessary clutter and ensuring a clean workspace.
How It Works:
It calculates the relevant step sizes based on the price:
Smaller step sizes for lower-priced stocks.
Larger step sizes for higher-priced stocks.
Primary, secondary, and (if applicable) tertiary levels are plotted dynamically:
Primary Levels: The most granular levels based on the stock price.
Secondary Levels: Higher-order levels for broader significance.
Tertiary Levels: Additional levels for lower-priced stocks to enhance detail.
These levels are plotted across the chart, allowing traders to visualize key psychological areas effortlessly.
Use Cases:
Day Trading: Identify potential intraday support and resistance levels.
Swing Trading: Recognize key price zones where trends may pause or reverse.
Long-Term Investing: Gain insights into significant price zones for entry or exit strategies.
Ticker Tape with Multiple Inputs# Ticker Tape
A customizable multi-symbol price tracker that displays real-time price information in a scrolling ticker format, similar to financial news tickers.
This indicator is inspired from Tradingciew's default tickertape indicator with changes in the way inputs are given.
### Overview
This indicator allows you to monitor up to 15 different symbols simultaneously across any supported exchanges on TradingView. It displays essential price information including current price, price change, and percentage change in an easy-to-read format at the bottom of your chart.
### Features
• Monitor up to 15 different symbols simultaneously
• Support for any exchange available on TradingView
• Real-time price updates
• Color-coded price changes (green for increase, red for decrease)
• Smooth scrolling animation (can be disabled)
• Customizable scroll speed and position offset
### Input Parameters
#### Ticker Tape Controls
• Running: Enable/disable the scrolling animation
• Offset: Adjust the starting position of the ticker tape
#### Symbol Settings
• Exchange (1-15): Enter the exchange name (e.g., NSE, BINANCE, NYSE)
• Symbol (1-15): Enter the symbol name (e.g., BANKNIFTY, RELIANCE, BTCUSDT)
### Display Format
For each symbol, the ticker shows:
1. Symbol Name
2. Current Price
3. Price Change (Absolute and Percentage)
### Example Usage
Input Settings:
Exchange 1: NSE
Symbol 1: BANKNIFTY
Exchange 2: NSE
Symbol 2: RELIANCE
The ticker tape will display:
`NIFTY BANK 46750.00 +350.45 (0.75%) | RELIANCE 2456.85 -12.40 (-0.50%) |`
### Use Cases
1. Multi-Market Monitoring: Track different markets simultaneously without switching between charts
2. Portfolio Tracking: Monitor all your positions in real-time
### Tips for Best Use
1. Group related symbols together for easier monitoring
2. Use the offset parameter to position important symbols in your preferred viewing area
3. Disable scrolling if you prefer a static display
4. Leave exchange field empty for default exchange symbols
### Notes
• Price updates occur in real-time during market hours
• Color coding helps quickly identify price direction
• The indicator adapts to any chart timeframe
• Empty input pairs are automatically skipped
### Performance Considerations
The indicator is optimized for efficiency, but monitoring too many high-frequency symbols might impact chart performance. It's recommended to use only the symbols you actively need to monitor.
Version: 2.0 Stock_Cloud
Last Updated: December 2024
[blackcat] L1 Banker Move█ OVERVIEW
The Pine Script is an indicator designed to analyze market signals for institutional and short-term investors. It calculates and plots three main signals: Institutional Signal, Institutional Build, and Short-Term Investor Signal. The script uses a combination of price, volume, and moving average data to generate these signals, which can help traders identify potential buying or selling opportunities.
█ LOGICAL FRAMEWORK
The script is structured into several main sections:
1 — Input Parameters
The script does not explicitly define any input parameters, relying on default values for calculations.
2 — Custom Functions
• reference_value(values, length) : Retrieves the first non-NA value from a specified number of past values.
• calculate_institutional_and_short_term_signals(low, close, open, volume) : Calculates the institutional and short-term investor signals based on price, volume, and moving average data.
3 — Calculations
• Price and Volume Metrics: The script calculates various smoothed price changes, lowest and highest values over different periods, and volume-weighted prices.
• Moving Averages: It computes simple moving averages (SMA) and exponential moving averages (EMA) for different periods.
• RSI Calculation: The script calculates a custom RSI for different periods.
• Signal Generation: It generates the institutional and short-term investor signals based on the calculated metrics.
4 — Plotting
The script plots the three main signals on the chart using the plot function.
The flow of data and logic is as follows:
• The reference_value function is used to find reference values for calculations.
• The calculate_institutional_and_short_term_signals function performs the core calculations and returns the institutional and short-term investor signals.
• The main script calls this function and plots the results.
█ CUSTOM FUNCTIONS
1 — reference_value(values, length)
• Purpose : Retrieves the first non-NA value from a specified number of past values.
• Parameters :
• values: An array of values.
• length: The number of past values to consider.
• Return Value : The first non-NA value found or na if no valid value is found.
• Functionality : Iterates through the specified number of past values and returns the first non-NA value.
2 — calculate_institutional_and_short_term_signals(low, close, open, volume)
• Purpose : Calculates the institutional and short-term investor signals based on price, volume, and moving average data.
• Parameters :
• low: Low price series.
• close: Close price series.
• open: Open price series.
• volume: Volume series.
• Return Values :
• institutional_signal: The institutional signal.
• institutional_build: The institutional build signal.
• short_term_investor_signal: The short-term investor signal.
• Functionality :
• Computes various price and volume metrics.
• Calculates moving averages and volume-weighted prices.
• Generates the institutional and short-term investor signals based on these metrics.
█ KEY POINTS AND TECHNIQUES
1 — Advanced Pine Script Features
• Custom Functions: The script defines and uses custom functions to encapsulate complex logic.
• Conditional Statements: Extensive use of iff and if statements to control the flow of calculations.
• Looping Constructs: The for loop in reference_value function to iterate through past values.
• Exponential Moving Averages (EMA): Used to smooth out price and signal changes.
• Volume-Weighted Price (VWP): Calculated to factor in volume in price analysis.
• Custom RSI Calculation: A custom RSI formula is used, which differs from the standard RSI calculation.
2 — Optimization Techniques
• Efficient Data Handling: The reference_value function efficiently finds the first non-NA value without unnecessary computations.
• Smoothed Signals: Using EMAs to smooth out noisy signals for better trend identification.
3 — Unique Approaches
• Combination of Metrics: The script combines multiple metrics (price, volume, moving averages, and custom RSI) to generate comprehensive signals.
• Institutional Build Signal: A unique approach to detect institutional activity by comparing current price levels with historical lows and smoothed price changes.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
1 — Potential Modifications
• Input Parameters: Add input parameters to allow users to customize the lengths and thresholds used in the calculations.
• Strategy Version: Convert the indicator into a strategy by adding buy/sell signals based on the generated signals.
• Additional Indicators: Integrate other technical indicators (e.g., MACD, Bollinger Bands) to enhance the signal generation process.
2 — Similar Trading Scenarios
• Institutional Activity Analysis: Use similar techniques to analyze institutional activity in other markets or assets.
• Volume Analysis: Apply the volume-weighted price and volume analysis to identify significant price movements.
• Multi-Timeframe Analysis: Extend the script to analyze signals across multiple timeframes for a more robust trading strategy.
3 — Related Pine Script Concepts
• Pine Script Functions: Understanding how to define and use custom functions effectively.
• Conditional Logic: Mastering the use of iff and if statements for complex logic.
• Looping Constructs: Familiarity with for loops for iterating through data.
• Moving Averages: Knowledge of different types of moving averages and their applications.
• Volume Analysis: Techniques for incorporating volume data into price analysis.
squeeze candles with volume Function :
This indicator was designed to detect specific candles called “squeeze”. These candles are characterized by a relatively small body (the difference between the opening and closing price) and long shadows (the distance between the high and low prices), accompanied by significant volume. They often indicate a period of increased volatility or a potential trend reversal.
Use :
Visual detection:
Candles identified as "squeeze" are highlighted in red on the chart.
An “S” icon appears above each detected squeeze candle.
Alerts:
The indicator emits an audible and visual alert when a squeeze candle with high volume is detected (if alerts are enabled).
Market analysis:
This indicator is particularly useful for identifying trading opportunities during periods when the market is showing signs of compression or impending volatility.
Customizable settings:
Minimum volume: Defines the threshold at which the volume is considered high.
Maximum body/shadow ratio: Allows you to adjust the sensitivity to detect squeeze candles (the lower the ratio, the smaller the detected candles will have in relation to their shadows).
Benefits :
Provides accurate alerts on key market candles.
Helps anticipate large movements through analysis of volume and candle characteristics.
Adaptable to different strategies thanks to adjustable parameters.
Ideal for:
Traders who want to identify areas of potential volatility or reversal signals in the market, regardless of the asset or time frame used.
US Recessions OverlayThe US Recessions Overlay indicator highlights the periods of US economic recessions directly on your TradingView chart. Using historical data from the Great Depression to the present, it provides a visual representation of recessions as transparent red backgrounds. This can help traders and analysts correlate market movements with historical economic downturns.
Features:
- Displays US recessions since the Great Depression (1929) as shaded areas.
- Automatically adjusts the background shading to match the date ranges of historical recessions.
- A simple and effective way to observe market behavior during recessionary periods.
- Fully customizable to include new recession periods or modify transparency levels.
How to Use:
Apply the indicator to any chart. Recession periods will appear as red-shaded backgrounds, providing a clear visual cue for market behavior during those times.
Use Case:
Ideal for traders, economists, and market historians who wish to study the impact of recessions on financial markets.
Candled LWMA (Loacally Weighted MA)The Locally Weighted Moving Average (LWMA) is a type of moving average that emphasizes recent data points by assigning them higher weights compared to older values. Unlike the Simple Moving Average (SMA), which treats all data points equally, or the Exponential Moving Average (EMA), which uses a fixed weighting factor, the LWMA applies a linear weighting scheme. This means that the most recent prices contribute more significantly to the average, making the LWMA more responsive to price changes while retaining a smooth curve.
In trading, the LWMA is particularly useful for identifying trends and detecting price reversals with reduced lag. By giving more importance to the latest prices, it provides a clearer picture of the current market dynamics. Traders often use the LWMA in combination with other indicators to confirm trends or spot potential entry and exit points. The adjustable length parameter allows for fine-tuning the indicator to match different market conditions and trading styles. Its ability to adapt to recent price behavior makes it a valuable tool for both short-term and long-term traders.
RSI to Price RatioThe RSI to Price Ratio is a technical indicator designed to provide traders with a unique perspective by analyzing the relationship between the Relative Strength Index (RSI) and the underlying asset's price. Unlike traditional RSI, which is viewed on a scale from 0 to 100, this indicator normalizes the RSI by dividing it by the price, resulting in a dynamic ratio that adjusts to price movements. The histogram format makes it easy to visualize fluctuations, with distinct color coding for overbought (red), oversold (green), and neutral (blue) conditions.
This indicator excels in helping traders identify potential reversal zones and trend continuation signals. Overbought and oversold levels are dynamically adjusted using the price source, making the indicator more adaptive to market conditions. Additionally, the ability to plot these OB/OS thresholds as lines on the histogram ensures traders can quickly assess whether the market is overstretched in either direction. By combining RSI’s momentum analysis with price normalization, this tool is particularly suited for traders who value precision and nuanced insights into market behavior. It can be used as a standalone indicator or in conjunction with other tools to refine entry and exit strategies.
Volume Weighted Jurik Moving AverageThe Jurik Moving Average (JMA) is a smoothing indicator that is designed to improve upon traditional moving averages by reducing lag while enhancing responsiveness to price movements. It was created by Jurik Research and is often used to track trends with greater accuracy and minimal delay. The JMA is based on a combination of **exponential smoothing** and **phase adjustments**, making it more adaptable to varying market conditions compared to standard moving averages like SMA (Simple Moving Average) or EMA (Exponential Moving Average).
The core advantage of the JMA lies in its ability to adjust to price changes without excessively lagging, which is a common issue with traditional moving averages. It incorporates a **phase parameter** that can be adjusted to smooth out the signal further or make it more responsive to recent price action. This phase adjustment allows traders to fine-tune the JMA's sensitivity to the market, optimizing it for different timeframes and trading strategies.
How JMA Works and Benefits of Adding Volume Weight
The JMA works by applying a **smoothing process** to price data while allowing for adjustments through its phase and power parameters. These parameters help control the degree of smoothness and responsiveness. The result is a curve that follows price trends closely but with less lag than traditional moving averages.
Adding **volume weighting** to the JMA enhances its ability to reflect market activity more accurately. Just like the **Volume-Weighted Moving Average (VWMA)**, volume-weighting adjusts the moving average based on the strength of trading volume, meaning that price movements with higher volume will have a greater influence on the JMA. This can help traders identify trends that are supported by significant market participation, making the moving average more reliable.
The benefit of a volume-weighted JMA is that it responds more effectively to price movements that occur during periods of high trading volume, which are often considered more significant. This can help traders avoid false signals that may occur during low-volume periods when price changes may not reflect true market sentiment. By incorporating volume into the calculation, the JMA becomes more aligned with real market conditions, enhancing its effectiveness for trend identification and decision-making.
Bitcoin Events HistoryWith this tool, you can travel back to Bitcoin’s very first price quote and retrace its entire history directly on your chart. Major events are plotted as labels or markers, providing context for how significant moments shaped Bitcoin’s journey.
Key Features
Comprehensive Event Coverage: From Bitcoin’s inception to the most recent updates.
Custom View: Change label colors, styles, sizes, and fonts using the script’s settings.
Regular Updates: New events are added regularly to keep the history current.
Replay History
Use Bar Replay Mode to step through Bitcoin’s price history and see events unfold in sequence.
Follow the on-screen instructions for a more immersive experience.
Community Contributions
If you notice a significant event missing or misplaced on a particular date, feel free to leave a comment! Your suggestions will be considered for the next update.
To all Bitcoin enthusiasts, traders, and anyone eager to explore the history of cryptocurrency from its inception, I hope you enjoy this indicator :)
Sentiment Divergence IndicatorThe Sentiment Divergence Indicator (SDI) is a sophisticated tool that combines sentiment analysis with price action to identify potential trade opportunities. By detecting divergences between sentiment data and price movements, the SDI provides early signals of possible trend reversals, helping traders make informed decisions.
How It Works
Sentiment Data Integration:
Utilizes sentiment data from sources such as social media sentiment or news sentiment to gauge market mood.
Analyzes sentiment trends to provide insights into trader psychology.
Price Action Analysis:
Uses indicators like RSI to evaluate price movements.
Detects divergences between sentiment and price to signal potential market reversals.
Divergence Highlighting:
Bullish Divergence: Occurs when sentiment is strong, but the price is weak, indicating a potential upward reversal.
Bearish Divergence: Occurs when sentiment is weak, but the price is strong, indicating a potential downward reversal.
Customization Options:
Lookback Period: Customizable period for sentiment and price analysis.
Divergence Threshold: Adjustable threshold to detect significant divergences.
Signal Colors: Customizable colors for bullish and bearish divergence signals.
Line Thickness: Adjustable line thickness for better visualization.
Visual Representation:
Plots sentiment and price data as oscillators on the chart, similar to RSI.
Highlights bullish and bearish divergences with clear markers.
Alerts:
Custom alerts notify traders when significant divergences are detected, helping them act promptly.
How to Use It
Set Up: Customize the lookback period, divergence threshold, signal colors, and line thickness according to your preference.
Interpret Signals:
Bullish Divergence: Look for buying opportunities when bullish divergences are detected.
Bearish Divergence: Look for selling opportunities when bearish divergences are detected.
Utilize Alerts: Set up alerts to be notified of significant divergences, ensuring you never miss important market signals.
Benefits
Early Reversal Signals: Helps identify potential trend reversals before they occur.
Comprehensive Analysis: Combines sentiment and price action for robust trading insights.
Customizable: Fully customizable to fit individual trading strategies and preferences.
Ideal For
The SDI is ideal for traders looking to leverage sentiment analysis and price action to detect potential market reversals and enhance their trading strategies..
Market Sentiment Composite IndexDescription
The Market Sentiment Composite Index is an advanced indicator designed to provide traders with a comprehensive view of market sentiment by aggregating data from multiple key indicators. This tool helps traders identify potential overbought and oversold conditions, enabling more informed trading decisions.
How It Works
Indicator Components:
Relative Strength Index (RSI): Measures the magnitude of recent price changes to evaluate overbought or oversold conditions.
Average True Range (ATR): Gauges market volatility by analyzing the range of price movements.
MACD (Moving Average Convergence Divergence): Indicates momentum and potential buy/sell signals based on moving average crossovers.
Volume Score: Assesses trading volume in relation to its historical average to detect unusual activity.
Normalization: Each component is normalized to a 0-100 scale, ensuring consistency across different metrics.
Composite Calculation: The normalized values are averaged to form the Composite Sentiment Score. This score ranges from 0 to 100, providing a unified measure of market sentiment.
Visual Representation:
Sentiment Score Plot: The composite sentiment score is plotted on the chart.
Overbought/Oversold Levels: Default levels set at 70 (overbought) and 30 (oversold), customizable by the user.
Horizontal Lines: Dashed lines at the overbought and oversold levels for easy reference.
Alerts: Custom alerts notify traders when the sentiment score crosses the overbought or oversold thresholds, helping them stay informed of significant market conditions.
Usage
The Market Sentiment Composite Index is ideal for traders who seek a holistic view of market sentiment. By combining multiple indicators into a single score, it provides a robust tool to identify potential reversal points and confirm trends.
Key Benefits
Comprehensive Insight: Integrates multiple indicators for a well-rounded sentiment analysis.
Customization: Adjustable overbought and oversold levels to fit individual trading strategies.
User-Friendly: Clear visual representation and alerts to keep traders informed..
Correlation Coefficient [Giang]### **Introduction to the "Correlation Coefficient" Indicator**
#### **Idea behind the Indicator**
The "Correlation Coefficient" indicator was developed to analyze the linear relationship between Bitcoin (**BTCUSD**) and other important economic indices or financial assets, such as:
- **SPX** (S&P 500 Index): Represents the U.S. stock market.
- **DXY** (Dollar Index): Reflects the strength of the USD against major currencies.
- **SPY** (ETF representing the S&P 500): A popular trading instrument.
- **GOLD** (Gold price): A traditional safe-haven asset.
The correlation between these assets can help traders understand how Bitcoin reacts to market movements of traditional financial instruments, providing opportunities for more effective trading decisions.
Additionally, the indicator allows users to **customize asset symbols for comparison**, not limited to the default indices (SPX, DXY, SPY, GOLD). This flexibility enables traders to tailor their analysis to specific goals and portfolios.
---
#### **Significance and Use of Correlation in Trading**
**Correlation** is a measure of the linear relationship between two data series. In the context of this indicator:
- **The correlation coefficient ranges from -1 to 1**:
- **1**: Perfect positive relationship (both increase or decrease together).
- **0**: No linear relationship.
- **-1**: Perfect negative relationship (one increases while the other decreases).
- **Use in trading**:
- Identify **strong relationships or unusual divergences** between Bitcoin and other assets.
- Help determine **market sentiment**: For example, if Bitcoin has a negative correlation with DXY, traders might expect Bitcoin to rise when the USD weakens.
- Provide a foundation for hedging strategies or investments based on inter-asset relationships.
---
#### **Components of the Indicator**
The "Correlation Coefficient" indicator consists of the following key components:
1. **Main Data (BTCUSD)**:
- The closing price of Bitcoin is used as the central asset for calculations.
2. **Comparison Data**:
- Users can select different asset symbols for comparison. By default, the indicator supports:
- **SPX**: Stock market index.
- **DXY**: Dollar Index.
- **SPY**: Popular ETF.
- **GOLD**: Gold price.
3. **Correlation Coefficients**:
- Calculated between BTC and each comparison index, based on a Weighted Moving Average (WMA) over a user-defined period.
4. **Graphical Representation**:
- Displays individual correlation coefficients with each comparison index, making it easier for traders to track and analyze.
---
#### **How to Analyze and Use the Indicator**
**1. Identify Key Correlations:**
- Observe the correlation lines between BTC and the indices to determine positive or negative relationships.
- Example:
- If the **Correlation Coefficient (BTC-DXY)** sharply declines to -1, this indicates that when USD strengthens, Bitcoin tends to weaken.
**2. Analyze the Strength of Correlations:**
- **Strong Correlations**: If the coefficient is close to 1 or -1, the relationship between the two assets is very clear.
- **Weak Correlations**: If the coefficient is near 0, Bitcoin may be influenced by other factors outside the compared index.
**3. Develop Trading Strategies:**
- Use correlations to predict Bitcoin's price movements:
- If BTC has an inverse relationship with **DXY**, traders might consider selling BTC when the USD strengthens.
- If BTC and **SPX** are strongly correlated, traders can monitor the stock market to predict Bitcoin's trend.
**4. Evaluate Changes Over Time:**
- Use different timeframes (daily, weekly) to track the correlation's fluctuations.
- Look for unusual signals, such as a breakdown or shift from positive to negative relationships.
---
#### **Conclusion**
The "Correlation Coefficient" indicator is a powerful tool that helps traders analyze the relationship between Bitcoin and major financial indices. The ability to customize asset symbols for comparison makes the indicator flexible and suitable for various trading strategies. When used correctly, this indicator not only provides insights into market sentiment but also supports the development of intelligent trading strategies and optimized profits.
TheHorsyAlgoPROThe Horsy algo is an automated strategy that uses any minute Higher timeframe range as reference and search for a purge of liquidity on the HTF high or low where buyside or sell side liquidity is, the algo only search this at specific desired times that can be configured according to the time you usually trade, the strategy is known as Turtle soup purge and reverse or lately as CRT.
Why is useful?
The purpose of this Algorithm is to help turtle soup traders to quickly identify when the market is likely to reverse the algo evaluates if the opportunity is worth it, base on risk reward and other desired filters. Also this strategy can help to quickly backtest the trader strategy it can be configured in different timeframes and adapt to the trader personality, they can easily see the results and statistics and notice if its profitable or not.
This algo is useful for intraday traders looking for a purge and reverse at a key times and at key HTF price levels this only looks the previous HTF highs and lows but is important to also monitor Order blocks, FVGs, gaps, or wicks to have the best results.
How it works and how it does it?
The Horsy algo simply Jumps from one type of liquidity to another one buyside to sell side or vice versa. In order for the algo to trigger an entry it has to meet these conditions
1. Take HTF liquidity, trade above a HTF high or below a HTF low in the selected time window
2. Make a change in the state of delivery with a close below the previous candle low for shorts and close above previous candle high for longs.
3. Allow for a reasonable risk reward, it will use the highest high for shorts and the lowest low for longs. The default take profit is the opposite side of the range.
4. Validate others user filters this include enter only trades aligned with the HTF bias, or trades aligned with the LTF bias or booth. The algo have the option to enter only premium and discount entries. And finally, an option to allow for different contract sizes depending of the maximum percent of the account we want to risk default is 1%. For this last option is important to check the initial balance and leverage are configured correctly, is disable by default because it requires more capital to perform well.
We can see the algo performing in the picture below with a short trade, notice there are some white lines, they are the high or the low of HTF candle that start generating inside candles in the HTF meaning a possible consolidation. The algo plots the HTF ranges in a shaded boxes as you can see below
The HTF bias as you can see in the picture is calculated based on the last close of the HTF meaning close above previous HTF high is bullish close below previous HTF low is bearish. This HTF bias level is also the last HTF mid-price or 50%. By default, this line is enabled.
The LTF bias is calculated based on the range created from the expansion outside the previous HTF range is also the mid-price. If the LTF close above previous HTF high is bullish and if the LTF close below previous HTF low is bearish. By default this LTF bias line is disable.
This strategy includes an original and personal developed code that uses dealing ranges to recognize if the market is expanding, retracing, reversing or consolidating. This allow the algo to exit the position when it detects a retracement or at the end of the expansion. This is the default exit type.
You can monitor the previous dealing ranges created in history with an option than can be enable, by default is disable, this ranges are created after price takes buyside and then sell side or vice versa. So this dealing ranges can be useful also to identify minor pools of liquidity and premium and discount in the lower timeframe.
The picture below is a long example, the exit in this case is just at the high of the range. The normal take profit is in a blue line for longs.
How to use it?
First select the desired HTF timeframe recommended is from 30min to 240min then you setup the chart on the lower timeframe you want to trade recommended is from 1min to 15min to enter. By default This strategy is designed to work for intraday during key times when price take stops and then moves quickly away from them. You can select as much as 6 different times or just one. After you select the desired time window where the algo will look for the purge and reverse, They are highlighted in the candles that change colors excluding the gray ones that indicates consolidation.
Then the Algo allow to performs several additional filters in the entries you can select if you want to trade only longs or shorts trades, you can select when to move the stop loss to Break even. In deviations of the risk or you can just select to remove risk when price hits the 50% of previous HTF range.
You can select the minimum desired risk reward of the trade before is allow to be taken. Once is configured correctly the algo should trigger signals with a triangle up or down plus the strategy entry.
At the beginning of the picture there are some blue lines in the HTF high low and close, this is to easily identify that the market is in the Asia session, the time can be configured by the user, these lines are normally gray.
On the right top of the screen you can see some statistics about the strategy how many trades it took, ARR is an approximated value of the accumulated total risk reward of all the trades when they get closed in the simulation.
Profit factor and percent profitable are also shown should be green it means that the strategy makes money over time. But apart from that is important to notice how it makes money it is stable over time? it is a roller coaster? that why I Include this other measurements MxcsTps is the maximum consecutives take profits and Mxcsls is the maximum consecutive stop losses it takes, the slash number after it is the consecutive Break evens. So this way you know what to expect and what is normal in the strategy.
The algo shows all the times the stop loss, take profit and break even level if enable in the colored red lines for short and blue lines for longs. You can also select how price will manage the profit or stoploss point meaning that you can choose to wait for the candle to close to invalidate your idea or to take profit. This is good to avoid liquidity sweeps but can also lead to mayor loses if the idea is wrong. The default setting is to close the trade when price takes the high or low where the stoploss is, the take profit is taken after a retracement to allow to profit on expansions. You can select also to exit on a reversal if you want to ride all the move. This last option has to be used with caution because sometimes price just retrace or reverse very fast decreasing the trade profit and overall strategy performance.
The algo have the option to use standard deviation from the normal risk if you prefer to prevent liquidity sweeps near the stop level this make wider stops but can lead to increased loses so it has to be used carefully.
Below is a picture that show the entry stop and take profit levels with an exit on a retracement activated.
Strategy Results
The backtesting results are obtained simulating a 2000usd account in the Micro Nasdaq using 1 contract per trade. Commission are set to 2usd per contract, slippage to 1tick. You can see in list of trades we are not risking more than 1 % percent of the account. The backtested range is from august to November 2024. This strategy doesn’t generate too much trades because of the time filters and conditions that has to be meet to take an entry but you can see the results of the last 4months with the available data that are around 32 trades.
The default settings for this strategy is HTF as 240min designed to work on a LTF 5min chart, the default purge times are 245-300, 745-800, 845-900, 1045-1100 and 1245-1300 UTC-4, the algo will look for shorts or longs, with a minimum risk reward of 2.0. With an additional filter of the HTFBias. The take profit is by default taken on the first retracement after hitting the target. The default settings are optimized to work on the Nasdaq or Spy, but can also perform well in other assets with the correct adjustments.
Remember entries constitute only a small component of a complete winning strategy. Other factors like risk management, position-sizing, trading frequency, trading fees, and many others must also be properly managed to achieve profitability. Past performance doesn’t guarantee future results. To really take advantage of this strategy you have to study turtle soup and the HTF key levels use this only as a confirmation that your overall idea will play out and use it to backtest your model.
Summary of features
·Adaptable strategy to different HTF timeframes from 1-1440min
· Select up to 6 different purge time windows UTC-4, UTC-5
· Choose desired Risk Reward per trade
· Easily see the HTF high low close and 50% key levels in the LTF
· Identify HTF consolidations that generate key major liquidity pools
· HTF/LTF bias filters to trade in favor of the big trend or in sync
· Shaded boxes that indicate if the market is bullish, bearish or consolidating
· See the current midpoint of the last expansion move
· Optimal trade entry filter to trade only in a discount or premium
· Customizable trade management take profit, stop, breakeven level
· Option to exit on a close, retracement or reversal after hitting the take profit level
· Option to exit on a close or reversal after hitting stop loss
· Configurable breakeven point with standard deviations or at 50% of the HTF
· Calculate different contract sizes depending of a percentage of the initial balance
· Standard deviations from normal risk can be used to prevent liquidity sweeps
· See dealing ranges history to check minor pools of liquidity and premium or discount
· Dashboard with instant statistics about the strategy current settings
MktCumTickThis script is a market sentiment indicator that calculates the cumulative TICK (Trade Imbalance Sentiment) for four major markets: NYSE (New York Stock Exchange), NASDAQ (National Association of Securities Dealers Automated Quotations), Dow Jones, and AMEX (American Stock Exchange).
Here's a breakdown of the script:
1. Market data requests: The script requests data for the four markets, including:
- TICK (Trade Imbalance Sentiment) data
- HLC3 (High, Low, Close) data
- ADVN (Advancing issues), DECL (Declining issues), and UNCH (Unchanged issues) data
2. Cumulative TICK calculation: The script calculates the cumulative TICK for each market by dividing the TICK data by the maximum TICK value for each market.
3. Plotting: The script plots the cumulative TICK values for each market as separate lines on the chart.
4. Background color: The script changes the background color of the chart based on the cumulative TICK values. If all four markets have decreasing cumulative TICK values, the background color turns red. If all four markets have increasing cumulative TICK values, the background color turns green.
The purpose of this indicator is to provide a visual representation of market sentiment across multiple markets. By analyzing the cumulative TICK values, traders can gain insights into market trends and make more informed trading decisions.
Some possible uses of this indicator include:
- Identifying market trends and sentiment
- Confirming trade entries and exits
- Monitoring market conditions and adjusting trading strategies accordingly
Coinbase Premium HeatmapCoinbase Premium Heatmap visualizes spot bitcoin premium (or discount) on Coinbase, relative to other spot markets, visualized as a heatmap overlay.
OPTIMIZED FOR CLARITY
Coinbase Premium can whipsaw quickly, with dramatic state changes over relatively brief periods, unnecessarily complicating its use (for our purposes).
To mitigate whipsaws, the script (a) averages premium/discount on an hourly basis, and (b) introduces lightweight exponential smoothing, to further simplify/clarify state.
WHY IT MATTERS
Spot Coinbase premium is a strong proxy for bullish institutional sentiment and net inflows/accumulation by western financial institutions, ETF providers, and corporations (like MicroStrategy) adding bitcoin to their treasury.
In aggregate, this holder cohort drives trend & sentiment more than any other, so it's important to know their directional bias.
HOW IT'S CALCULATED
Premium / discount calculates the spread between Coinbase spot BTC price, and spot price on Binance + Bybit. Calculation is averaged hourly, with light exponential smoothing.
HOW WE USE THE SCRIPT
When assessing optimal moments to hedge exposure (or sell spot assets) near a presumed impending cycle top, awareness of institutional sentiment is a crucial variable. This script:
(a) Filters out unnecessarily early cycle exit signals (if Coinbase premium is still present)
(b) Confirms other metrics that indicate an impending cycle top (if the neutral to bearish institutional sentiment we'd expect to see is in effect), and
(c) Visualizes state changes (from bearish to bullish & vice versa), that often make for good swing entries & exits on lower timeframes.
Futures Correlation VisualizerOVERVIEW
This indicator plots the normalized price changes of commonly traded futures. Visualizing data in this way makes studying and understanding market participation and sentiment easier.
Note:
Only 20 symbols can be plotted. The "request" functions are limited to 40 calls , 1 timeframe counts as a call, and 2 timeframes are used per symbol. Normalized values are derived by dividing the charts timeframe by 1D data. A runtime error will occur when more than 20 symbols are enabled. This limitation is unavoidable.
INPUTS
You can configure:
Colors and color scheme
Symbols to plot (most common futures)
Norm. source (todays open / yesterdays close)
Measurement type (%, ‱, Δ)
Label, zone, and zero options
True Total Altcoin Market CapThis indicator calculates the real total altcoin market capitalization by removing Bitcoin, Ethereum, and major stablecoins (USDT, USDC, BUSD, DAI) from the total cryptocurrency market cap. It replaces the standard price bars with custom-colored candlesticks showing the true altcoin market movements.
Features:
Excludes BTC, ETH, and major stablecoins for accurate altcoin market analysis
Custom color scheme: Green (#26a79b) for bullish and Red (#ef5351) for bearish candles
Based on CRYPTOCAP:TOTAL data
Helps traders focus on pure altcoin market trends
Non-repainting, using standard OHLC data
This tool provides a clearer view of altcoin market strength by filtering out the influence of major cryptocurrencies and stablecoins.
Daily Directional Bias Indicator (S&P 500)This indicator is designed to help you be on the right side of the trade.
Most traders who struggle to know which way price may move are only looking at part of the picture. This Directional Bias Indicator uses both the Accumulation/Distribution Line and VIX for directional confirmation.
The Accumulation/Distribution Line
The Accumulation/Distribution (ACC) line helps us gauge market momentum by showing the cumulative flow of money into or out of an asset. When the ACC line is rising, it suggests that buying pressure is dominating, indicating a bullish market. Conversely, when the ACC line is falling, it suggests that selling pressure is stronger, indicating a bearish market. By comparing the ACC line with the VWAP, traders can see if the price is moving in line with the overall market sentiment. If the ACC line is above the VWAP, it suggests the market is in a bullish phase; if it's below, it indicates a bearish phase.
The VIX
The VIX (Volatility Index) is often referred to as the "fear gauge" of the market. When the VIX is rising, it typically signals increased market fear and higher volatility, which can be a sign of bearish market conditions. Conversely, when the VIX is falling, it suggests lower volatility and a more stable, bullish market. Using the VIX with the VWAP helps us confirm market direction, particularly in relation to the S&P 500.
VWAP
For both the ACC Line and VIX, we use a VWAP line to gauge whether the ACC line or the VIX is above or below the average. When the ACC line is above the VWAP, we view it as a sign that price will go up. However, because the VIX has an inverse relationship, when the VIX falls below the VWAP, we take that as a sign to go long.
How to use
The yellow line represents the ACC Line.
The red line represents the VWAP based on the ACC line.
The triangles at the bottom simply show when the ACC line is above or below the VWAP.
The triangles at the top show whether the VIX is bullish or bearish.
If both triangles (top or bottom) are bullish, this confirms that the price of an asset like the S&P 500 will likely go up. If both triangles are pointing down, it suggests that price will fall.
As always, test for yourself.
Happy trading!
COT Report Indicator with Selectable Data TypeOverview
The COT Report Indicator with Selectable Data Types is a powerful tool for traders who want to gain deeper insights into market sentiment using the Commitment of Traders (COT) data. This indicator allows you to visualize the net positions of different participant categories—Commercial, Noncommercial, and Nonreportable—directly on your chart.
The indicator is fully customizable, allowing you to select the type of data to display, sync with your chart's timeframe, or choose a custom timeframe. Whether you're analyzing gold, crude oil, indices, or forex pairs, this indicator adapts seamlessly to your trading needs.
Features
Dynamic Data Selection:
Choose between Commercial, Noncommercial, or Nonreportable data types.
Analyze the net positions of market participants for more informed decision-making.
Flexible Timeframes:
Sync with the chart's timeframe for quick analysis.
Select a custom timeframe to view COT data at your preferred granularity.
Wide Asset Coverage:
Supports various assets, including gold, silver, crude oil, indices, and forex pairs.
Automatically adjusts to the ticker you're analyzing.
Clear Visual Representation:
Displays Net Long, Net Short, and Net Difference (Long - Short) positions with distinct colors for easy interpretation.
Error Handling:
Alerts you if the symbol is unsupported, ensuring you know when COT data isn't available for a specific asset.
How to Use
Add the Indicator:
Click "Indicators" in TradingView and search for "COT Report Indicator with Selectable Data Types."
Add it to your chart.
Customize the Settings:
Data Type: Choose between Commercial, Noncommercial, or Nonreportable positions.
Data Source: Select "Futures Only" or "Futures and Options."
Timeframe: Sync with the chart's timeframe or specify a custom one (e.g., weekly, monthly).
Interpret the Data:
Green Line: Net Long Positions.
Red Line: Net Short Positions.
Black Line: Net Difference (Long - Short).
Supported Symbols:
Gold, Silver, Crude Oil, Natural Gas, Forex Pairs, S&P 500, US30, NAS100, and more.
Who Can Benefit
Trend Followers: Identify the buying/selling trends of Commercial and Noncommercial participants.
Sentiment Analysts: Understand shifts in sentiment among major market players.
Long-Term Traders: Use COT data to confirm or contradict your fundamental analysis.
Example Use Case
For example, if you're trading gold (XAUUSD) and select Noncommercial Positions, you’ll see the long and short positions of speculators. An increase in net long positions may signal bullish sentiment, while an increase in net short positions may indicate bearish sentiment.
If you switch to Commercial Positions, you'll get insights into how hedgers and institutions are positioning themselves, helping you confirm or counterbalance your current trading strategy.
Limitations
The indicator only works with supported symbols (COT data availability is limited to specific assets).
The COT data is updated weekly, so it is not suitable for short-term intraday trading.
Onchain Analysis - BTCIntroduction
This indicator is designed to equip traders with actionable insights into long-term BITSTAMP:BTCUSD market dynamics through a blend of on-chain metrics and technical tools. It provides a streamlined visualization of market sentiment and critical price levels using unique and proprietary methodologies.
The script features:
NUPL (Net Unrealized Profit/Loss) with advanced bar color coding.
350DMA and 350DMAx2, offering insights into key Bitcoin cycle levels.
Logarithmic Fibonacci Extension, aiding in precise target setting during price discovery phases.
Core Functionality
NUPL Analysis
NUPL reflects the network's aggregate unrealized profit or loss, calculated as (Market Cap − Realized Cap) / Market Cap. Bars are color-coded dynamically to simplify the interpretation of market sentiment. The emotional states (e.g., euphoria, fear) are visually represented for quick analysis, making this indicator particularly valuable for traders monitoring Bitcoin's macro cycles. This implementation improves clarity by aggregating NUPL across all holders rather than separating short- and long-term holders.
350DMA and 350DMAx2
The 350DMAx2 line has historical relevance as a key level during Bitcoin bull cycles, often acting as a resistance point during price rallies. This implementation also includes precise visualization of price interaction with the 350DMA, enabling traders to anticipate potential retracement or breakout zones. Furthermore, to minimize chart clutter, the 350DMA and 350DMAx2 lines are designed to dynamically appear only when the price is near these levels. This ensures that traders can focus on relevant data without unnecessary visual distractions.
Logarithmic Fibonacci Extensions
Unlike traditional Fibonacci extensions, logarithmic levels better suit assets like Bitcoin that grow exponentially. The calculated levels provide traders with clear targets in price discovery phases, enhancing the utility of this feature.
Key Advantages and Unique Features
Enhanced Visualization : NUPL bar color-coding simplifies sentiment analysis, allowing traders to instantly identify key turning points in market psychology.
Historical Context : The script incorporates insights derived from past market cycles, emphasizing the significance of 350DMAx2 levels.
Customization : Traders can adapt settings like lookback periods (e.g., 500 for daily, 100 for weekly) to fit their preferred timeframe and trading strategy.
Proprietary Insights : The script integrates logarithmic Fibonacci levels in a unique manner, optimizing their application to logarithmic assets.
Why This Indicator is Valuable
This indicator is not a simple combination of existing tools; it is a carefully curated suite of functionalities designed to address specific needs of crypto traders. The advanced NUPL representation and integration of logarithmic Fibonacci make it a distinct addition to any trader's toolkit. It provides clarity in interpreting long-term trends and offers actionable insights for navigating Bitcoin's cyclical nature.
How to Use
NUPL Monitoring
Pay close attention to initial color changes, e.g. orange and red, since it may establish clear pull-back. Especially, when bars turn black, it suggests that the market is heavily in profit, often signaling a market top.
350DMAx2 Interaction
If the price is trading below or near the 350DMAx2 level, it often reflects a key resistance zone. Historically, price rejections from this level are common, offering traders critical insights into potential retracement scenarios.
Logarithmic Fibonacci Extensions
Logarithmic Fibonacci extension levels are especially valuable for assets like BITSTAMP:BTCUSD , which exhibit logarithmic growth. These levels provide:
Target Identification: During price discovery phases, the logarithmic Fibonacci levels act as critical resistance or support points, enabling traders to set realistic price targets.
Market Top Detection: When extreme NUPL values (e.g., black bars) align with price interaction near logarithmic Fibonacci levels, the likelihood of a market top increases significantly. This alignment offers a robust method for identifying overbought or overextended market conditions.
Combining Concepts
When NUPL's extreme signals (e.g., red or black bars) align with price movements near the 350DMAx2 level, the likelihood of a significant pullback increases. Additionally, these scenarios can be further validated by observing logarithmic Fibonacci resistance levels, which can provide added confidence in identifying market tops during price discovery phases.