Unlocking the Power of Long Candle MidpointI'm excited to share with you a fascinating concept that can help you identify potential breakout points in the market.
The Pine Script code provided below is designed to identify the midpoint of a long candle, which can be a crucial level for traders to watch.
In this blog post, we'll dive deeper into the concept, explore its applications, and analyze a real-life example of TATACHEM listed on NSE, which is currently trading around a potential psychology line.
What is the Long Candle Midpoint?
The long candle midpoint is a technical indicator that calculates the midpoint of a candlestick that has a significant price movement. This midpoint is then used to draw a horizontal line, which can serve as a potential support or resistance level. The idea is that if a candlestick has a large price movement, it's likely that the market will react to this movement by testing the midpoint of the candle.
How Does the Long Candle Midpoint Indicator Work?
The Pine Script code provided above is designed to calculate the midpoint of a long candle based on the following parameters:
Length: The length of the candlestick is calculated using the len input parameter.
Line Length: The length of the line is calculated using the linExt input parameter.
Calculation Method: The calculation method can be set to either "Highest True Range", "Average True Range", or "Both".
Multiplier: The multiplier is used to adjust the midpoint calculation based on the average range of the candlestick.
The script then plots a horizontal line at the midpoint of the long candle, which can be used as a potential support or resistance level.
Real-Life Example:
Let's take a look at TATACHEM, a stock listed on the National Stock Exchange of India (NSE). As you can see in the chart below,
TATACHEM has been trading around a potential psychology line drawn from the midpoint of a large candle.
As you can see, the stock has previously failed to break above this line, but it's currently trading around it. This could be a sign that the market is preparing for a potential breakout. If the stock can break above this line, it could lead to a bullish rally.
Conclusion
The long candle midpoint indicator is a powerful tool that can help traders identify potential breakout points in the market. By analyzing the midpoint of a long candle, traders can gain insights into the market's sentiment and potential areas of support or resistance.
In the case of TATACHEM, the stock is currently trading around a potential psychology line, which could be a sign of a potential breakout. Traders can consider this point in their watch list for a potential entry. Tips for Traders
Use the long candle midpoint indicator in conjunction with other technical indicators to gain a more comprehensive understanding of the market.
Look for confirmation from other indicators before entering a trade.
Set stop-loss and take-profit levels based on the potential breakout point.
Monitor the market closely and be prepared to adjust your strategy if the market doesn't behave as expected.
By incorporating the long candle midpoint indicator into your trading strategy, you can gain an edge in the market and make more informed trading decisions.
Sentiment
Cumulative Volume Delta (MTF)Cumulative Volume Delta (CVD) Indicator
The Cumulative Volume Delta (CVD) indicator is a powerful analytical tool used to understand the behavior and dynamics of market participants through volume analysis. It tracks the net difference between buying and selling pressure, providing insights into market trends and potential reversals. Here's a detailed description of this indicator and its components:
The Cumulative Volume Delta (CVD) indicator calculates the cumulative net difference between buying and selling volume over a specified period. By analyzing this net difference, traders can gain insights into the underlying strength or weakness of a price movement, helping to identify trends, reversals, and potential breakout points.
Key Components:
Bull & Bear Power Calculation:
Bull Power: Represents the strength of buyers in the market. It is calculated based on the relationship between the current and previous price bars. A higher Bull Power indicates stronger buying pressure.
Bear Power: Represents the strength of sellers in the market. It is also calculated based on the relationship between the current and previous price bars. A higher Bear Power indicates stronger selling pressure.
Bull & Bear Volume Calculation:
Bull Volume: The volume attributed to buying pressure. It is calculated by taking the proportion of Bull Power relative to the total of Bull Power and Bear Power, multiplied by the total volume.
Bear Volume: The volume attributed to selling pressure. It is calculated similarly to Bull Volume but using Bear Power.
Delta Calculation:
Delta: The net difference between Bull Volume and Bear Volume for each bar. A positive Delta indicates more buying pressure, while a negative Delta indicates more selling pressure.
Cumulative Volume Delta (CVD):
CVD: The running total of the Delta values over time. It accumulates the net buying and selling pressure to provide a visual representation of the market's cumulative sentiment.
Moving Average of CVD (CVD MA):
CVD MA: A simple moving average of the CVD, used to smooth out fluctuations and help identify the overall trend. It provides a baseline to compare the current CVD value against, highlighting divergences or convergences.
Multi-Timeframe Functionality:
The enhanced version of the CVD indicator includes multi-timeframe (MTF) capabilities, allowing users to select and analyze data from different timeframes. This feature enhances the versatility of the indicator by providing a broader perspective on market dynamics across various time intervals.
Practical Applications:
Trend Identification: By tracking the CVD and its moving average, traders can identify the prevailing trend. An upward-sloping CVD indicates sustained buying pressure, while a downward-sloping CVD indicates sustained selling pressure.
Divergences: Divergences between the CVD and price can signal potential reversals. For example, if the price is making new highs but the CVD is not, it may indicate weakening buying pressure and a potential reversal.
Breakout Confirmation: Significant changes in the CVD can confirm breakouts. A sharp increase in the CVD during a price breakout indicates strong buying support, adding confidence to the breakout.
Support and Resistance Levels: The CVD can help identify significant support and resistance levels based on changes in volume dynamics. For instance, a notable increase in buying volume at a support level can reinforce its strength.
VIX Percentile Rank HistogramVIX Percentile Rank Histogram
The VIX Percentile Rank Histogram provides a visual representation of the CBOE Volatility Index (VIX) percentile rank over a customizable lookback period, helping traders gauge market sentiment and make informed trading decisions.
Overview:
This indicator calculates the percentile rank of the VIX over a specified lookback period and displays it as a histogram. The histogram helps traders understand whether the current VIX level is relatively high or low compared to its recent history. This information is particularly useful for timing entries and exits in the S&P 500 or related ETFs and Mega Caps.
How It Works:
VIX Data Integration: The script fetches daily VIX close prices, regardless of the chart you are viewing, to analyze market volatility.
Percentile Rank Calculation: The indicator calculates the rank percentile of the VIX over the chosen lookback period.
Histogram Visualization: The histogram plots the difference between the flipped VIX percentile rank and 50, showing green bars for ranks below 50 (indicating lower market volatility) and red bars for ranks above 50 (indicating higher market volatility).
Usage:
This indicator is most effective when trading the S&P 500 (SPX, SPY, ES1!) or ETFs and Mega Caps that closely follow the S&P 500. It provides insight into market sentiment, helping traders make more informed decisions.
Timing Entries and Exits: Green histogram readings suggest it's a good time to enter or hold long positions, while red readings suggest considering exits or short positions.
Market Sentiment: A high VIX percentile rank (red bars) indicates market fear and uncertainty, while a low percentile rank (green bars) suggests investor confidence and reduced volatility.
Key Features:
Customizable Lookback Period: The default lookback period is set to 20 days, but can be adjusted based on the trader's average trade duration. For example, if your trades typically last 20 days, a 20-day lookback period helps contextualize the VIX level relative to its recent history.
Histogram Visualization: The histogram provides a clear visual representation of market volatility.
Green Bars: Indicate a lower-than-median VIX percentile rank, suggesting reduced market volatility.
Red Bars: Indicate a higher-than-median VIX percentile rank, suggesting increased market volatility.
Threshold Line: A dashed gray line at the 0 level serves as a visual reference for the median VIX rank.
Important Note:
This indicator always shows readings from the VIX, regardless of the chart you are viewing. For example, if you are looking at Natural Gas futures, this indicator will provide no relevant data. It works best when trading the S&P 500 or related ETFs and Mega Caps.
MC vs Total MCMC vs Total MC
this is an edit of StableCoin MC vs Total MC by Crypto5Max supporting muti timeframes and addition dominances
is a powerful and versatile TradingView indicator designed to help traders and analysts visualize the dominance of different types of cryptocurrencies (StableCoin, AltCoin, BTC, ETH) relative to the total market capitalization. This indicator provides a clear and concise way to monitor market trends and make informed decisions based on the dominance of specific cryptocurrency segments.
Key Features:
Customizable Time Frames: Select from a variety of time frames including 5 Min, 15 Min, 30 Min, 1HR, 2HR, 4HR, 8HR, and Daily to tailor the analysis to your needs.
Dominance Type Selection: Choose the type of market capitalization dominance you want to track - StableCoins, AltCoins, Bitcoin, or Ethereum.
Total Market Capitalization Options: Analyze the market with different total market capitalization metrics - total crypto market cap, total market cap excluding BTC, or total market cap excluding BTC and ETH.
Dynamic Label Display: A label that follows the plotted dominance line and dynamically displays the dominance percentage, providing a clear visual representation.
Invisible Background Option: Choose to have an invisible background for a cleaner chart presentation.
How It Works:
Time Frame Selection: Use the time_frame input to choose the desired time frame for your analysis.
Dominance Type Selection: Select the type of dominance to display using the mcap_type input.
Total Market Capitalization Selection: Choose the total market capitalization metric with the total_sym input.
Dominance Calculation: The indicator calculates the dominance of the selected cryptocurrency type as a percentage of the total market capitalization.
Visual Display: The chosen dominance is plotted on the chart, and a label displaying the dominance percentage is dynamically updated to follow the plotted line.
Use Cases:
Market Trend Analysis: Identify trends in the dominance of StableCoins, AltCoins, BTC, or ETH to gauge market sentiment.
Portfolio Allocation: Make informed decisions about portfolio allocation by understanding the market share of different cryptocurrency types.
Technical Analysis: Combine with other technical indicators to enhance your trading strategy and gain deeper market insights.
This indicator is essential for traders, analysts, and investors who want to stay ahead of market movements and make data-driven decisions based on the dominance of various cryptocurrency segments.
Example:
If you select "AltCoin" as the dominance type and "Total 3" as the total market capitalization, the indicator will plot the dominance of AltCoins (excluding BTC and ETH) as a percentage of the total crypto market capitalization (excluding BTC and ETH) on the selected time frame. The dynamic label will display this percentage, updating as the market evolves.
Elevate your market analysis with the MC vs Total MC indicator and gain a comprehensive view of cryptocurrency dominance trends.
ALT Trend DetectionALT Trend Detection Indicator
Overview:
The "ALT Trend Detection" indicator is designed to help traders analyze the relationship between Bitcoin's dominance, Bitcoin's price, and the potential impact on altcoin prices. This indicator uses various time frames and average true range (ATR) calculations to detect trends and provide insights into the altcoin market conditions based on Bitcoin's movements.
How It Works:
BTC Dominance and Price Data:
The indicator fetches Bitcoin dominance data (percentage of the total cryptocurrency market cap that Bitcoin represents) and Bitcoin price data using the selected time frame.
It calculates whether Bitcoin dominance and price are trending up, down, or remaining stable based on ATR calculations.
Altcoin Trend Detection:
The indicator then evaluates different scenarios based on the combination of Bitcoin dominance and price movements. These scenarios help predict the potential impact on altcoin prices.
For instance, if Bitcoin dominance is up and Bitcoin price is up, it might indicate a bearish trend for altcoins. Conversely, if Bitcoin dominance is down and Bitcoin price is up, it might indicate a bullish trend for altcoins (altseason).
Table Display:
The indicator displays a table on the chart that summarizes the current conditions for Bitcoin dominance, Bitcoin price, and the expected impact on altcoins. Each cell in the table is color-coded to provide a quick visual representation of the trends.
Usage:
Add the indicator to your TradingView chart.
Customize the time frame, ATR multiplier, table position, table size, and background color as per your preference.
Observe the table displayed on the chart. It shows the current state of Bitcoin dominance, Bitcoin price, and the potential trend for altcoin prices based on predefined scenarios.
Use this information to make informed trading decisions about altcoins. For example, if the table shows "ALT SEASON" in green, it might be a good time to consider investing in altcoins.
By analyzing the interaction between Bitcoin dominance and price, this indicator helps traders identify potential opportunities and risks in the altcoin market.
Ticker Performance ComparisonTicker Performance Comparison Indicator
With this tool you can compare how three different tickers of your choice have performed over a specific period you choose. It can be used on any timeframe.
As you can see in the image above, I am comparing Nvidia, Bitcoin and Wadzpay over a 365 day period. This shows me at glance which asset has done better and by how much.
It shows how the closing prices have changed from the start of your chosen period to now, by automatically drawing lines on the same scale.
Key Features:
Lookback Period: You decide how many bars (days, weeks, etc.) back to look from today.
Three Tickers: Enter up to three different ticker symbols to see how they stack up against each other
Percentage Change: The tool calculates how much each ticker's closing price has changed, in percentage terms, from the start of your lookback period.
Performance Labels: Labels at the end of the period show the percentage change for each ticker.
Important:
Ignore the lines that are drawn before your lookback period: The lines before your chosen lookback period might be misleading. They appear due to the way historical data is processed and should be ignored. Only consider the data and trends from the start of the lookback period you entered to the present for an accurate comparison.
Use this tool to easily compare how different assets have performed over the timeframe that matters to you.
ka66: FX Sessions High/LowThis indicator is specific to the 24-hour Forex Market. It provides 2 features:
Demarcating forex sessions with open and close lines. Note that looking at various sources online, we use the convention that the Asia session starts with the Tokyo market open, rather than the earlier Sydney session. Presumably this is better since we then have more liquidity in the market. Note that we have three sessions: Asia, London, New York.
At the end of each session, we begin plotting that (closed) session's high and low, which acts as a natural support and resistance for the Forex market. This is the key feature it provides. The first feature is mainly there for a visual guide, which can be turned off via the UI settings, but it certainly helps verifying the logic!
For more background, we are taking the idea of Previous Day High/Low (PDH/PDL), but adjusting it to a multi-session market like Forex. In essence, this is is a "Previous Session High/Low" indicator.
PDH/PDL works fine when you have a market with Regular Trading Hours, ignoring Extended Hours. However, in the Forex market, each session can have differing sentiments, e.g. we often see say London bringing prices up, and New York bringing them back down.
The break of session high/lows (or bouncing off them) can reflect where the potential direction price is going to take.
I also categorised this as a Sentiment indicator, because support and resistance areas where prices react do provide the sentiment of the market. They aren't just lines, they are prices of interest to major players.
Bayesian Trend Indicator [ChartPrime]Bayesian Trend Indicator
Overview:
In probability theory and statistics, Bayes' theorem (alternatively Bayes' law or Bayes' rule), named after Thomas Bayes, describes the probability of an event, based on prior knowledge of conditions that might be related to the event.
The "Bayesian Trend Indicator" is a sophisticated technical analysis tool designed to assess the direction of price trends in financial markets. It combines the principles of Bayesian probability theory with moving average analysis to provide traders with a comprehensive understanding of market sentiment and potential trend reversals.
At its core, the indicator utilizes multiple moving averages, including the Exponential Moving Average (EMA), Simple Moving Average (SMA), Double Exponential Moving Average (DEMA), and Volume Weighted Moving Average (VWMA) . These moving averages are calculated based on user-defined parameters such as length and gap length, allowing traders to customize the indicator to suit their trading strategies and preferences.
The indicator begins by calculating the trend for both fast and slow moving averages using a Smoothed Gradient Signal Function. This function assigns a numerical value to each data point based on its relationship with historical data, indicating the strength and direction of the trend.
// Smoothed Gradient Signal Function
sig(float src, gap)=>
ta.ema(source >= src ? 1 :
source >= src ? 0.9 :
source >= src ? 0.8 :
source >= src ? 0.7 :
source >= src ? 0.6 :
source >= src ? 0.5 :
source >= src ? 0.4 :
source >= src ? 0.3 :
source >= src ? 0.2 :
source >= src ? 0.1 :
0, 4)
Next, the indicator calculates prior probabilities using the trend information from the slow moving averages and likelihood probabilities using the trend information from the fast moving averages . These probabilities represent the likelihood of an uptrend or downtrend based on historical data.
// Define prior probabilities using moving averages
prior_up = (ema_trend + sma_trend + dema_trend + vwma_trend) / 4
prior_down = 1 - prior_up
// Define likelihoods using faster moving averages
likelihood_up = (ema_trend_fast + sma_trend_fast + dema_trend_fast + vwma_trend_fast) / 4
likelihood_down = 1 - likelihood_up
Using Bayes' theorem , the indicator then combines the prior and likelihood probabilities to calculate posterior probabilities, which reflect the updated probability of an uptrend or downtrend given the current market conditions. These posterior probabilities serve as a key signal for traders, informing them about the prevailing market sentiment and potential trend reversals.
// Calculate posterior probabilities using Bayes' theorem
posterior_up = prior_up * likelihood_up
/
(prior_up * likelihood_up + prior_down * likelihood_down)
Key Features:
◆ The trend direction:
To visually represent the trend direction , the indicator colors the bars on the chart based on the posterior probabilities. Bars are colored green to indicate an uptrend when the posterior probability is greater than 0.5 (>50%), while bars are colored red to indicate a downtrend when the posterior probability is less than 0.5 (<50%).
◆ Dashboard on the chart
Additionally, the indicator displays a dashboard on the chart , providing traders with detailed information about the probability of an uptrend , as well as the trends for each type of moving average. This dashboard serves as a valuable reference for traders to monitor trend strength and make informed trading decisions.
◆ Probability labels and signals:
Furthermore, the indicator includes probability labels and signals , which are displayed near the corresponding bars on the chart. These labels indicate the posterior probability of a trend, while small diamonds above or below bars indicate crossover or crossunder events when the posterior probability crosses the 0.5 threshold (50%).
The posterior probability of a trend
Crossover or Crossunder events
◆ User Inputs
Source:
Description: Defines the price source for the indicator's calculations. Users can select between different price values like close, open, high, low, etc.
MA's Length:
Description: Sets the length for the moving averages used in the trend calculations. A larger length will smooth out the moving averages, making the indicator less sensitive to short-term fluctuations.
Gap Length Between Fast and Slow MA's:
Description: Determines the difference in lengths between the slow and fast moving averages. A higher gap length will increase the difference, potentially identifying stronger trend signals.
Gap Signals:
Description: Defines the gap used for the smoothed gradient signal function. This parameter affects the sensitivity of the trend signals by setting the number of bars used in the signal calculations.
In summary, the "Bayesian Trend Indicator" is a powerful tool that leverages Bayesian probability theory and moving average analysis to help traders identify trend direction, assess market sentiment, and make informed trading decisions in various financial markets.
Bitcoin Futures vs. Spot Tri-Frame - Strategy [presentTrading]Prove idea with a backtest is always true for trading.
I developed and open-sourced it as an educational material for crypto traders to understand that the futures and spot spread may be effective but not be as effective as they might think. It serves as an indicator of sentiment rather than a reliable predictor of market trends over certain periods. It is better suited for specific trading environments, which require further research.
█ Introduction and How it is Different
The "Bitcoin Futures vs. Spot Tri-Frame Strategy" utilizes three different timeframes to calculate the Z-Score of the spread between BTC futures and spot prices on Binance and OKX exchanges. The strategy executes long or short trades based on composite Z-Score conditions across the three timeframes.
The spread refers to the difference in price between BTC futures and BTC spot prices, calculated by taking a weighted average of futures prices from multiple exchanges (Binance and OKX) and subtracting a weighted average of spot prices from the same exchanges.
BTCUSD 1D L/S Performance
█ Strategy, How It Works: Detailed Explanation
🔶 Calculation of the Spread
The spread is the difference in price between BTC futures and BTC spot prices. The strategy calculates the spread by taking a weighted average of futures prices from multiple exchanges (Binance and OKX) and subtracting a weighted average of spot prices from the same exchanges. This spread serves as the primary metric for identifying trading opportunities.
Spread = Weighted Average Futures Price - Weighted Average Spot Price
🔶 Z-Score Calculation
The Z-Score measures how many standard deviations the current spread is from its historical mean. This is calculated for each timeframe as follows:
Spread Mean_tf = SMA(Spread_tf, longTermSMA)
Spread StdDev_tf = STDEV(Spread_tf, longTermSMA)
Z-Score_tf = (Spread_tf - Spread Mean_tf) / Spread StdDev_tf
Local performance
🔶 Composite Entry Conditions
The strategy triggers long and short entries based on composite Z-Score conditions across all three timeframes:
- Long Condition: All three Z-Scores must be greater than the long entry threshold.
Long Condition = (Z-Score_tf1 > zScoreLongEntryThreshold) and (Z-Score_tf2 > zScoreLongEntryThreshold) and (Z-Score_tf3 > zScoreLongEntryThreshold)
- Short Condition: All three Z-Scores must be less than the short entry threshold.
Short Condition = (Z-Score_tf1 < zScoreShortEntryThreshold) and (Z-Score_tf2 < zScoreShortEntryThreshold) and (Z-Score_tf3 < zScoreShortEntryThreshold)
█ Trade Direction
The strategy allows the user to specify the trading direction:
- Long: Only long trades are executed.
- Short: Only short trades are executed.
- Both: Both long and short trades are executed based on the Z-Score conditions.
█ Usage
The strategy can be applied to BTC or Crypto trading on major exchanges like Binance and OKX. By leveraging discrepancies between futures and spot prices, traders can exploit market inefficiencies. This strategy is suitable for traders who prefer a statistical approach and want to diversify their timeframes to validate signals.
█ Default Settings
- Input TF 1 (60 minutes): Sets the first timeframe for Z-Score calculation.
- Input TF 2 (120 minutes): Sets the second timeframe for Z-Score calculation.
- Input TF 3 (180 minutes): Sets the third timeframe for Z-Score calculation.
- Long Entry Z-Score Threshold (3): Defines the threshold above which a long trade is triggered.
- Short Entry Z-Score Threshold (-3): Defines the threshold below which a short trade is triggered.
- Long-Term SMA Period (100): The period used to calculate the simple moving average for the spread.
- Use Hold Days (true): Enables holding trades for a specified number of days.
- Hold Days (5): Number of days to hold the trade before exiting.
- TPSL Condition (None): Defines the conditions for taking profit and stop loss.
- Take Profit (%) (30.0): The percentage at which the trade will take profit.
- Stop Loss (%) (20.0): The percentage at which the trade will stop loss.
By fine-tuning these settings, traders can optimize the strategy to suit their risk tolerance and trading style, enhancing overall performance.
Iron Cortex: Volume AnalysisDescription:
This Volume Analysis indicator is designed to identify potential buying and selling pressures in the market by analysing volume and price changes in conjunction with dual Exponential Moving Averages (EMAs).
Signal Identification:
Buying Pressure: This signal is identified when:
i) Volume is rising and the price is increasing.
ii) The current volume is above both the fast and slow EMAs of the volume.
iii) The fast EMA is above the slow EMA.
Selling Pressure: This signal is identified when:
i) Volume is rising and the price is decreasing.
ii) The current volume is above both the fast and slow EMAs of the volume.
iii) The fast EMA is above the slow EMA.
Interpretation:
When the volume bars change to the specified colours, it indicates potential buying or selling pressure based on the underlying conditions. Teal is buying pressure, red is selling pressure.
Use this information in conjunction with other technical analysis tools to make informed trading decisions. As with all indicators, expect some false signals in choppy markets.
This indicator is useful for traders who want to incorporate volume analysis with price trends and EMA crossovers to identify strong market movements. Adjust the settings to fit your trading strategy and enhance your market analysis.
Precise Gap FinderPrecise Gap Finder
This indicator identifies Fair Value Gaps (FVGs) in price action and it is perfect for traders looking to exploit price imbalances and capitalize on trading opportunities.
How It Works:
The Precise Gap Finder detects Fair Value Gaps by analyzing three consecutive candles. A gap is identified when the middle candle’s price range (open to close) is not overlapped by the high and low prices of the surrounding candles. This indicates a price imbalance, which can be a strong signal for potential market moves.
How to Use for Trading:
Identify Entry Points: Use the highlighted Fair Value Gaps to spot potential entry points. An upward FVG can indicate a potential buying opportunity, while a downward FVG can signal a potential selling opportunity.
Confirm Trends: Combine the FVG signals with other technical indicators to confirm trends and enhance the accuracy of your trades.
Risk Management: Use FVGs to identify potential stop-loss and take-profit levels. Gaps can serve as natural support and resistance levels.
Backtesting: Analyze historical data to understand how FVGs have impacted price movements in the past, helping you refine your trading strategy
Ichimoku Cloud w/ HelpersIchimoku Cloud w/ Helpers is your standard Ichimoku Cloud indicator with two additions.
Checkout TradingView's write up on the Ichimoku Cloud here .
The two additions added to this indicator are described below:
1 — A box is drawn centered on the current bar and stretching a length equal to the 'Senkou Span B Period'.
• The box encompasses the highest high and lowest low in that period.
2 — Two new lines are added.
• Green Line : Projection from the Lagging Line (Chikou Span) to the Span A line, indicating historical price action relative to future projected support/resistance.
• Red Line : Projection from the Kijun-sen (Base Line) to the Span B line, indicating medium-term trend direction relative to future projected support/resistance.
Use cases :
• The Box is simply a visual cue to draw your eye towards the area that the Ichimoku Cloud is currently attempting to analyze: Past, Present and Future.
• The green and red lines add a way to interpret the sentiment:
• Diverging Lines with Green Above Red --> Interpret as Bullish Sentiment
• Converging Lines with Green Crossing Above Red --> Interpret as Bullish reversal or strengthening
• Converging Lines with Green Crossing Below Red --> Interpret as Bearish reversal or weakening.
• Diverging Lines with Red Above Green --> Interpret as Bearish Sentiment
• Converging Lines with Red Crossing Below Green --> Interpret as Bullish reversal or weakening bearish trend.
Current limitations :
• Under settings -> Styles, the plotted lines don't allow the colors to be changed. A bug I'm trying to figure out.
Bugs?
Kindly report any issues you run into and I'll try to fix them promptly.
Thank you!
Composite Risk IndicatorThe Composite Risk Indicator is a financial tool designed to assess market risk by analyzing the spreads between various asset classes. This indicator synthesizes information across six key spreads, normalizing each on a scale from 0 to 100 where higher values represent higher perceived risk. It provides a single, comprehensive measure of market sentiment and risk exposure.
Key Components of the CRI:
1. Stock Market to Bond Market Spread (SPY/BND): Measures the performance of stocks relative to bonds. Higher values indicate stronger stock performance compared to bonds, suggesting increased market optimism and higher risk.
2. Junk Bond to Treasury Bond Spread (HYG/GOVT): Assesses the performance of high-yield (riskier) bonds relative to government (safer) bonds. A higher ratio indicates increased appetite for risk.
3. Junk Bond to Investment Grade Bond Spread (HYG/LQD): Compares high-yield bonds to investment-grade corporate bonds. This ratio sheds light on the risk tolerance within the corporate bond market.
4. Growth to Value Spread (VUG/VTV): Evaluates the performance of growth stocks against value stocks. A higher value suggests a preference for growth stocks, often seen in risk-on environments.
5. Tech to Staples Spread (XLK/XLP): Measures the performance of technology stocks relative to consumer staples. This ratio highlights the market’s risk preference within equity sectors.
6. Small Cap Growth to Small Cap Value Spread (SLYG/SLYV): Compares small-cap growth stocks to small-cap value stocks, providing insight into risk levels in smaller companies.
Utility:
This indicator is particularly useful for investors and traders looking to gauge market sentiment, identify shifts in risk appetite, and make informed decisions based on a broad assessment of market conditions. The CRI can serve as a valuable addition to investment analysis and risk management strategies.
Discovery IndexThe Discovery Index is an original technical indicator which attempts to display directional market pressure and momentum based on accumulated candle-over-candle measurements.
Discovery , in this context, is the act of finding (discovering) New Highs and Lows.
> What is 'Discovery'
Not to be confused with "Price Discovery", the term for setting the spot price of an asset.
The term 'Discovery' in Discovery Index is used based on the literal definition of 'Discovery', such as, the action of finding what was previously unknown.
Given this definition,
Discovery is the difference between highs or lows only when the current high is higher than the previous high or the current low is lower than the previous low.
Below is a visual example of exactly where Discovery is seen from each candle.
Since discovery is only based on points of the candle, and not specifically the direction of the candle; it is possible for discovery to occur in both directions from the same candle.
It is also possible for no discovery to occur from a candle.
> Calculation
The Discovery Index is the Net Total of discovery data over a specified length of bars.
Discovery Index = Sum of Upwards Discovery + Sum of Downwards Discovery
Note: Upwards Discovery is always Positive, and Downwards Discovery is always Negative. By adding both together, their Net Total is produced. This value is the "Discovery Index".
Wick Calculation Example
> Volume Discovery
Using Volume for the Discovery Index Calculation allows for a different dimension to be added to the data for new analysis opportunities.
While volume data is only a single value, by accumulating this data over time, we are able to fabricate a candle body from the data by accounting for the direction of the chart candles.
This allows for the Calculation of the Discovery Index based on volume data.
Volume Example
> Display
The display uses a "Candlestick histogram" display. The bodies and wicks from the display represent the discovery data from the respective points in each candle. (Wick Discovery & Candle Body Discovery).
This style of histogram allows for the display of both data sources, preserving the accuracy and distinction between each type, while also providing a clean display.
> Considerations
Discovery index is not an Oscillator, since there are no upper or lower boundaries to its rotations.
There are not (at this time) any "Over-bought" or "Over-sold" Areas, this is partially due to the previous consideration since any levels for these could potentially change from chart to chart. Additionally, it would generally be better to read the data based on the context of the current market.
Non-directional movements effect the Discovery Index as well. Since Discovery does not occur from every bar, the Index reflects hesitations as well as movements in market direction.
With the option to input a symbol, the Discovery Index Indicator is not constrained to one chart ticker for its calculation and could help to see shifts between different symbols, making it easier to compare different assets.
With the separation of wicks and candle body data, a stronger move may be observed by its full-bodied movements, while a potentially more speculative move may be seen from large wick movements. Since wicks are often interpreted as either, Rejection for reversal OR as Testing for continuation, the interpretation for Wick Discovery generally varies based on context.
Discovery Index ⇾ Divergences! Due to its calculation, price (and/or volume) data is displayed in such a way that makes it useful as a tool for identifying divergence opportunities.
Remember, this indicator is lookback based. An immediate significant change from the data source (if not offset by a similar opposite change) will be represented for multiple bars after its occurrence. Due to this, data is likely to be skewed or biased from these occurrences for a period of time after.
Throughout development, "Discovery" has been shortened to just "Disco", therefore, this indicator is also an attempt to bring Disco Back.
Enjoy!
Multi-Frame Market Sentiment DashboardOverview
This Pine Script™ code generates a "Market Sentiment Dashboard" on TradingView, providing a visual summary of market sentiment across multiple timeframes. This tool aids traders in making informed decisions by displaying real-time sentiment analysis based on Exponential Moving Averages (EMA).
Key Features
Panel Positioning:
Custom Placement: Traders can position the dashboard at the top, middle, or bottom of the chart and align it to the left, center, or right, ensuring optimal integration with other chart elements.
Customizable Colors:
Sentiment Colors: Users can define colors for bullish, bearish, and neutral market conditions, enhancing the dashboard's readability.
Text Color: Customizable text color ensures clarity against various background colors.
Label Size:
Scalable Labels: Adjustable label sizes (from very small to very large) ensure readability across different screen sizes and resolutions.
Market Sentiment Calculation:
EMA-Based Sentiment: The dashboard calculates sentiment using a 9-period EMA. If the EMA is higher than two bars ago, the sentiment is bullish; if lower, it's bearish; otherwise, it's neutral.
Multiple Timeframes: Sentiment is calculated for several timeframes: 1 minute, 3 minutes, 5 minutes, 15 minutes, 30 minutes, 1 hour, 4 hours, and 1 day. This broad analysis provides a comprehensive view of market conditions.
Dynamic Table:
Structured Display: The dashboard uses a table to organize and display sentiment data clearly.
Real-Time Updates: The table updates in real-time, providing traders with up-to-date market information.
How It Works
EMA Calculation: The script requests EMA(9) values for each specified timeframe and compares the current EMA with the EMA from two bars ago to determine market sentiment.
Color Coding: Depending on the sentiment (Bullish, Bearish, or Neutral), the corresponding cell in the table is color-coded using predefined colors.
Table Display: The table displays the timeframe and corresponding sentiment, allowing traders to quickly assess market trends.
Benefits to Traders
Quick Assessment: Traders can quickly evaluate market sentiment across multiple timeframes without switching charts or manually calculating indicators.
Enhanced Visualization: The color-coded sentiment display makes it easy to identify trends at a glance.
Multi-Timeframe Analysis: Provides a broad view of short-term and long-term market trends, helping traders confirm trends and avoid false signals.
This dashboard enhances the overall trading experience by providing a comprehensive, customizable, and easy-to-read summary of market sentiment.
Usage Instructions
Add the Script to Your Chart: Apply the "Market Sentiment Dashboard" indicator to your TradingView chart.
Customize Settings: Adjust the panel position, colors, and label sizes to fit your preferences.
Interpret Sentiment: Use the color-coded table to quickly understand the market sentiment across different timeframes and make informed trading decisions.
Normalized Z-ScoreThe Normalized Z-Score indicator is designed to help traders identify overbought or oversold conditions in a security's price. This indicator can provide valuable signals for potential buy or sell opportunities by analyzing price deviations from their average values.
How It Works :
-- Z-Score Calculation:
---- The indicator calculates the Z-Score for both high and low prices over a user-defined period (default is 14 periods).
---- The Z-Score measures how far a price deviates from its average in terms of standard deviations.
-- Average Z-Score:
---- The average Z-Score is derived by taking the mean of the high and low Z-Scores.
-- Normalization:
---- The average Z-Score is then normalized to a range between -1 and 1. This helps in standardizing the indicator's values, making it easier to interpret.
-- Signal Line:
---- A signal line, which is the simple moving average (SMA) of the normalized Z-Score, is calculated to smooth out the data and highlight trends.
-- Color-Coding:
---- The signal line changes color based on its value: green when it is positive (indicating a potential buy signal) and red when it is negative (indicating a potential sell signal). This coloration is also used for the candle/bar coloration.
How to Use It:
-- Adding the Indicator:
---- Add the Normalized Z-Score indicator to your TradingView chart. It will appear in a separate pane below the price chart.
-- Interpreting the Histogram:
---- The histogram represents the normalized Z-Score. High positive values suggest overbought conditions, while low negative values suggest oversold conditions.
-- Using the Signal Line:
---- The signal line helps to confirm the conditions indicated by the histogram. A green signal line suggests a potential buying opportunity, while a red signal line suggests a potential selling opportunity.
-- Adjusting the Period:
---- You can adjust the period for the Z-Score calculation to suit your trading strategy. The default period is 14, but you can change this based on your preference.
Example Scenario:
-- Overbought Condition: If the histogram shows a high positive value and the signal line is green, the security may be overbought. This could indicate that it is a good time to consider selling.
-- Oversold Condition: If the histogram shows a low negative value and the signal line is red, the security may be oversold. This could indicate that it is a good time to consider buying.
By using the Normalized Z-Score indicator, traders can gain insights into price deviations and potential market reversals, aiding in making more informed trading decisions.
ETH Long/Short Ratio BITFINEX - (ALPHRACTAL)Indicator Description: ETH Long/Short Ratio BITFINEX - (ALPHRACTAL)
The ETH Long/Short Ratio BITFINEX - (ALPHRACTAL) indicator provides a detailed analysis of Ethereum (ETH) long and short positions in USD and USDT on the Bitfinex exchange. This indicator is ideal for traders who want to monitor market behavior and better understand the relationship between long and short positions.
Features:
USD and USDT Long/Short Ratio:
Calculates and displays the ratio between long and short ETH positions in USD and USDT.
Helps identify market trends and the relative strength between buyers and sellers.
Color Configuration:
Allows customization of chart colors for clear and distinct visualization of USD and USDT ratios.
Uses colors with adjustable transparency to enhance chart visibility.
Label Display:
Option to show or hide labels indicating the type of ratio (USD or USDT) at the latest chart value.
Labels are useful for quickly identifying the visualized ratio.
Display Control:
Option to enable or disable the display of individual USD and USDT ratio charts.
Flexibility to view only the relevant data for your analysis.
How to Use:
Add the indicator to your chart to visualize the long/short ratios of ETH in USD and USDT.
Adjust colors and transparency as per your preference for better visual distinction.
Use the option to show or hide labels for quick identification of the data.
Analyze the relationship between long and short positions to make informed trading decisions, observing market buying and selling trends.
Example Use Cases:
Market Sentiment Analysis: An increase in the Long/Short ratio may indicate bullish sentiment among traders, while a decrease may indicate bearish sentiment.
Identifying Opportunities: Significant discrepancies between USD and USDT ratios may signal arbitrage opportunities or alert to significant market movements.
This indicator is a powerful tool for Ethereum traders who want a deeper understanding of market behavior and the dynamics of long and short positions on Bitfinex. Add the ETH Long/Short Ratio BITFINEX - (ALPHRACTAL) to your technical analysis toolkit and gain an edge in your trading strategy.
M2 Global Liquidity Index
The M2 Global Liquidity Index calculates a composite index reflecting the aggregate liquidity provided by the M2 money supply of five major currencies: Chinese Yuan (CNY), US Dollar (USD), Euro (EUR), Japanese Yen (JPY), and British Pound (GBP). The M2 money supply includes cash, checking deposits, and easily convertible near money. By incorporating exchange rates (CNY/USD, EUR/USD, JPY/USD, GBP/USD), the script adjusts each country's M2 supply to a common base (USD) and sums them up to produce a global liquidity metric. This metric, plotted on a daily timeframe, provides an overview of the total liquidity available in these five significant economies.
Understanding the M2 money supply is crucial for assessing liquidity because it represents the amount of money readily available in an economy for spending and investment. Higher M2 levels generally indicate more liquidity, suggesting easier access to capital for businesses and consumers, potentially leading to economic growth. Conversely, lower M2 levels can signify tighter liquidity conditions, possibly resulting in constrained spending and investment.
Adaptive RSI StrategyThe Adaptive RSI Strategy is designed to give you an edge by adapting to changing market conditions more effectively than the traditional RSI. By adjusting dynamically to recent price movements, this strategy aims to provide more timely and accurate trade signals.
How Does It Work?
You can set the number of periods for the RSI calculation. The default is 14, but feel free to experiment with different lengths to suit your trading style.
Choose the price data to base the RSI on, typically the closing price.
Decide if you want the strategy to visually highlight upward and downward movements of the Adaptive RSI (ARSI) on the chart. This can help you quickly spot trends.
Adaptive Calculation:
Alpha: The strategy uses an adaptive factor called alpha, which changes based on recent RSI values. This makes the RSI more sensitive to recent market conditions.
Adaptive RSI (ARSI): This is the core of our strategy. It calculates the ARSI using the adaptive alpha, making it more responsive to price changes compared to the traditional RSI.
Trade Signals:
Long Entry (Buy Signal): The strategy triggers a buy signal when the ARSI value crosses above its previous value. This indicates a potential upward trend, suggesting it's a good time to enter a long position.
Short Entry (Sell Signal): Conversely, a sell signal is triggered when the ARSI value crosses below its previous value, indicating a potential downward trend and suggesting it's a good time to enter a short position.
Visual Representation:
If you enable the highlight movements feature, the ARSI line on the chart will change color: green for upward movements and red for downward movements. This makes it easier to see potential trade opportunities at a glance.
Why Use the Adaptive RSI Strategy?
Responsiveness: The adaptive nature of this strategy means it's more sensitive to market changes, helping you react quicker to new trends.
Customization: You can tailor the length of the RSI period and decide whether to highlight movements, allowing you to adapt the strategy to your specific needs and preferences.
Visual Clarity: Highlighting the ARSI movements on the chart makes it easier to spot trends and potential entry points, giving you a clearer picture of the market.
Wicks Rejection PercentagesAnalyzing wick rejection percentages can provide insights into market sentiment and potential future price movements. For example, high wick rejection percentages at key support or resistance levels may indicate strong buying or selling interest and could influence trading decisions.
RSI Screener / Heatmap - By LeviathanThis script allows you to quickly scan the market by displaying the RSI values of up to 280 tickers at once and visualizing them in an easy-to-understand format using labels with heatmap coloring.
📊 Source
The script can display the RSI from a custom timeframe (MTF) and custom length for the following data:
- Price
- OBV (On Balance Volume)
- Open Interest (for crypto tickers)
📋 Ticker Selection
This script uses a different approach for selecting tickers. Instead of inputting them one by one via input.symbol(), you can now copy-paste or edit a list of tickers in the text area window. This approach allows users to easily exchange ticker lists between each other and, for example, create multiple lists of tickers by sector, market cap, etc., and easily input them into the script. Full credit to @allanster for his functions for extracting tickers from the text. Users can switch between 7 groups of 40 tickers each, totaling 280 tickers.
🖥️ Display Types
- Screener with Labels: Each ticker has its own color-coded label located at its RSI value.
- Group Average RSI: A standard RSI plot that displays the average RSI of all tickers in the group.
- RSI Heatmap (coming soon): Color-coded rows displaying current and historical values of tickers.
- RSI Divergence Heatmap (coming soon): Color-coded rows displaying current and historical regular/hidden bullish/bearish divergences for tickers.
🎨 Appearance
Appearance is fully customizable via user inputs, allowing you to change heatmap/gradient colors, zone coloring, and more.
KillZones & Sessions [TradingFinder] Volume | Asia, London & NY🔵 Introduction
🟣 Session
The forex market operates 24 hours a day, 5 days a week, with only Saturdays and Sundays being off; traders often focus on one of the forex trading sessions instead of trying to trade in all markets 24 hours a day.
Trading sessions are time intervals during which a specific financial market is active and trades are conducted. The Asia, London, and New York sessions are the most important trading sessions throughout the 24-hour period, during which a significant amount of money and liquidity enters the market.
🟣 Kill Zone
Traders in financial markets profit from the difference between the price at which they buy or sell and the current market price. Traders have different time horizons for trading.
Among these, some traders engage in daily or even hourly trading and must operate during times when the market has desirable trading volumes and significant price movements.
Kill zones are segments of a session with higher trading volumes and price fluctuations compared to the rest of the session.
🔵 How to Use
🟣 Session Time
The "Asia Session" consists of two sessions: "Sydney" and "Tokyo." The beginning of this session, according to the "UTC" time zone, is at 23:00 and ends at 06:00. Similarly, the beginning of the "Asia KillZone," according to the "UTC" time zone, is at 23:00, and it ends at 03:55.
The "London Session" consists of two sessions: "Frankfurt" and "London." The beginning of this session, according to the "UTC" time zone, is at 07:00, and it ends at 14:25. Similarly, the beginning of the "London KillZone," according to the "UTC" time zone, is at 07:00, and it ends at 09:55.
The beginning of the "New York am" session, according to the "UTC" time zone, is at 14:30, and it ends at 19:25. Similarly, the beginning of the "New York am KillZone," according to the "UTC" time zone, is at 14:30, and it ends at 16:55.
The beginning of the "New York pm" session, according to the "UTC" time zone, is at 19:30, and it ends at 22:55. Similarly, the beginning of the "New York pm KillZone," according to the "UTC" time zone, is at 19:30, and it ends at 20:55.
Important : To prevent session overlap, the working hours of each session have slightly changed.
🔵 Features
🟣 Simultaneous Session and Kill Zone
With this indicator, you can simultaneously view the kill zone and session. High and low lines are used to indicate sessions, while filled areas with color represent kill zones. If you do not want to see kill zones, you can turn off the display settings.
🟣 Candle, Time, and Volume
Using the "More Info" feature, you can see the number of candles, elapsed time, and traded volume within the colored filled area.
🔵 Settings
•Show More Info: To display "More Info," you need to turn on this feature and turn it off whenever you don't need it.
• You can also customize these settings for each session separately :
o Display or hide session.
o Choose session color.
o Set session time range.
o Display or hide kill zone.
o Set kill zone time range.
Dual RSI Differential - Strategy [presentTrading]█ Introduction and How it is Different
The Dual RSI Differential Strategy introduces a nuanced approach to market analysis and trading decisions by utilizing two Relative Strength Index (RSI) indicators calculated over different time periods. Unlike traditional strategies that employ a single RSI and may signal premature or delayed entries, this method leverages the differential between a shorter and a longer RSI. This approach pinpoints more precise entry and exit points, providing a refined tool for traders to exploit market conditions effectively, particularly in overbought and oversold scenarios.
Most important: it is a good eductional code for swing trading.
For beginners, this Pine Script provides a complete function that includes crucial elements such as holding days and the option to configure take profit/stop loss settings:
- Hold Days: This feature ensures that trades are not exited too hastily, helping traders to ride out short-term market volatility. It's particularly valuable for swing trading where maintaining positions slightly longer can lead to capturing significant trends.
- TPSL Condition (None by default): This setting allows traders to focus solely on the strategy's robust entry and exit signals without being constrained by preset profit or loss limits. This flexibility is crucial for learning to adjust strategy settings based on personal risk tolerance and market observations.
BTCUSD 6h LS Performance
█ Strategy, How It Works: Detailed Explanation
🔶 RSI Calculation:
The RSI is a momentum oscillator that measures the speed and change of price movements. It is calculated using the formula:
RSI = 100 - (100 / (1 + RS))
Where RS (Relative Strength) = Average Gain of up periods / Average Loss of down periods.
🔶 Dual RSI Setup:
This strategy involves two RSI indicators:
RSI_Short (RSI_21): Calculated over a short period (21 days).
RSI_Long (RSI_42): Calculated over a longer period (42 days).
Differential Calculation:
The strategy focuses on the differential between these two RSIs:
RSI Differential = RSI_Long - RSI_Short
This differential helps to identify when the shorter-term sentiment diverges from longer-term trends, signaling potential trading opportunities.
BTCUSD Local picuture
🔶 Signal Triggers:
Entry Signal: A buy (long) signal is triggered when the RSI Differential exceeds -5, suggesting strengthening short-term momentum. Conversely, a sell (short) signal occurs when the RSI Differential falls below +5, indicating weakening short-term momentum.
Exit Signal: Trades are generally exited when the RSI Differential reverses past these thresholds, indicating a potential momentum shift.
█ Trade Direction
This strategy accommodates various trading preferences by allowing selections among long, short, or both directions, thus enabling traders to capitalize on diverse market movements and volatility.
█ Usage
The Dual RSI Differential Strategy is particularly suited for:
Traders who prefer a systematic approach to capture market trends.
Those who seek to minimize risks associated with rapid and unexpected market movements.
Traders who value strategies that can be finely tuned to different market conditions.
█ Default Settings
- Trading Direction: Both — allows capturing of upward and downward market movements.
- Short RSI Period: 21 days — balances sensitivity to market movements.
- Long RSI Period: 42 days — smoothens out longer-term fluctuations to provide a clearer market trend.
- RSI Difference Level: 5 — minimizes false signals by setting a moderate threshold for action.
Use Hold Days: True — introduces a temporal element to trading strategy, holding positions to potentially enhance outcomes.
- Hold Days: 5 — ensures that trades are not exited too hastily, helping to ride out short-term volatility.
- TPSL Condition: None — enables traders to focus solely on the strategy's entry and exit signals without preset profit or loss limits.
- Take Profit Percentage: 15% — aims for significant market moves to lock in profits.
- Stop Loss Percentage: 10% — safeguards against large losses, essential for long-term capital preservation.